@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/spacegrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/spacegrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrainsmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrainsmono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0f1e;
  --bg-2: #0c1326;
  --bg-panel: #111a2e;
  --bg-panel-2: #0e1626;

  --text: #e6ecf5;
  --text-muted: #8b98b0;
  --text-dim: #5d6b85;

  --accent: #2e9bff;
  --accent-2: #00d4ff;
  --accent-soft: rgba(46, 155, 255, 0.14);
  --border: rgba(46, 155, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.06);

  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --glow: 0 0 0 1px rgba(46, 155, 255, 0.25), 0 18px 50px -18px rgba(46, 155, 255, 0.55);

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 600px at 80% 0%, rgba(46, 155, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(0, 212, 255, 0.10), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 155, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 155, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; font-weight: 600; }

::selection { background: var(--accent); color: #04070f; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 200;
  background: var(--accent);
  color: #04070f;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

.btn--primary {
  background: var(--grad);
  color: #04070f;
  box-shadow: 0 10px 30px -10px rgba(46, 155, 255, 0.65);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(46, 155, 255, 0.8);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad);
  color: #04070f;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px -8px rgba(46, 155, 255, 0.7);
}
.brand__name { font-size: 1.02rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a {
  font-size: 0.94rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, padding 0.2s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active:not(.nav__cta)::after { transform: scaleX(1); }

.nav__cta {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
  transition: border-color 0.2s, box-shadow 0.2s, padding 0.2s;
}
.nav__cta:hover { border-color: var(--accent); box-shadow: var(--glow); }

.nav__cta.is-active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding: 9px 0;
  border-radius: 0;
}
.nav__cta.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.nav__toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 22px;
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__mobile a {
  padding: 14px 4px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}
.nav__mobile a:hover { color: var(--text); }
.nav__mobile.is-open { display: flex; }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.lang-switch__opt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.lang-switch__opt:hover { color: var(--text); }
.lang-switch__opt.is-active,
.lang-switch__opt.is-active:hover { background: var(--grad); color: #04070f; }
.nav__mobile .lang-switch { align-self: flex-start; margin-top: 14px; }
.nav__mobile .lang-switch__opt,
.nav__mobile .lang-switch__opt:hover { border-bottom: 0; padding: 5px 12px; font-size: 0.82rem; }
.nav__mobile .lang-switch__opt.is-active,
.nav__mobile .lang-switch__opt.is-active:hover { color: #04070f; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 0 52px;
  overflow: hidden;
}

.hero__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero__canvas.is-ready {
  opacity: 0.4;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -1.5px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__role {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text);
  margin-top: 6px;
  font-weight: 500;
}
.hero__tagline {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: 18px;
}
.hero__tagline strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero__tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero__tags li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.hero__portrait { display: flex; justify-content: center; }
.portrait {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), var(--glow);
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-2));
}

@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.portrait__ring {
  position: absolute;
  inset: -14px;
  border-radius: 32px;
  background: radial-gradient(58% 58% at 68% 22%,
    rgba(46, 155, 255, 0.30), rgba(0, 212, 255, 0.10) 48%, transparent 74%);
  filter: blur(24px);
  z-index: -1;
  opacity: 0.5;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 1.5px;
  background: conic-gradient(from var(--ring-angle),
    transparent 0deg, transparent 210deg,
    rgba(46, 155, 255, 0.55) 290deg, var(--accent-2) 322deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: ringTravel 9s linear infinite;
}
@keyframes ringTravel { to { --ring-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .portrait::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait__ring, .hero__eyebrow .dot { animation: none; }
}

.stats-strip {
  position: relative;
  z-index: 2;
}
.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-block: 4px 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.stat:hover { border-color: var(--border); transform: translateY(-3px); }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1.15;
}
.stat__num span { color: var(--accent); }
.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.section {
  position: relative;
  padding: clamp(28px, 4vw, 52px) 0;
}

.section__kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -1px;
  max-width: 18ch;
}
.section__head { max-width: 620px; margin-bottom: 30px; }
.section__lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-top: 16px;
}

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about__media { position: relative; }

.console {
  font-family: var(--font-mono);
  background: linear-gradient(160deg, #0d1730, #0a1020);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85), var(--glow);
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-soft);
}
.console__bar > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3550;
}
.console__bar > span:nth-child(1) { background: #ff5f57; }
.console__bar > span:nth-child(2) { background: #febc2e; }
.console__bar > span:nth-child(3) { background: #28c840; }
.console__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.76rem;
  color: var(--text-dim);
}
.console__lines {
  list-style: none;
  margin: 0;
  padding: 22px 20px;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}
.c-prompt { color: var(--accent-2); }
.c-cmd { color: var(--text); }
.c-out { color: var(--text-muted); padding-bottom: 4px; }
.c-ok { color: #28c840; }
.c-caret {
  color: var(--accent-2);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .c-caret { animation: none; } }
.about__badge {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--glow);
  display: grid;
}
.about__badge strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--accent-2);
}
.about__badge span { font-size: 0.8rem; color: var(--text-muted); max-width: 16ch; }

.about__body p { color: var(--text-muted); margin-top: 12px; }

.about__body .section__kicker { color: var(--accent-2); }
.about__body .section__title { margin-bottom: 10px; }
.about__pillars {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-2);
  line-height: 2;
  margin-top: 14px;
}

.creds {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
.creds__heading {
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.creds__heading--gap { margin-top: 26px; }
.creds__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.creds__list > li {
  position: relative;
  padding: 16px 18px 16px 46px;
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.creds__list > li:hover { border-color: var(--border); transform: translateX(4px); }

.creds__list > li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.creds__list--certs > li,
.creds__list--edu > li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
}
.creds__list--certs > li { align-items: center; }
.creds__list--edu > li { align-items: flex-start; }
.creds__list--certs > li::before,
.creds__list--edu > li::before { display: none; }
.creds__text { display: block; }
.creds__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent-2);
}
.creds__list--edu .creds__icon { margin-top: 3px; }

.creds__list > li.creds__soon {
  background: transparent;
  border-style: dashed;
  border-color: var(--border);
}
.creds__list > li.creds__soon:hover { transform: none; border-color: var(--accent); }
.creds__soon .creds__icon { color: var(--text-dim); }
.creds__soon strong { color: var(--text-muted); font-weight: 600; }
.creds__soon .creds__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
}
.creds__meta { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }
.creds__chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.creds__chips li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 7px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s;
}
.creds__chips li:hover { color: var(--accent-2); border-color: var(--border); }

.skills {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.skills__group .creds__heading { margin-bottom: 16px; }

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(46, 155, 255, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 24px 60px -28px rgba(46, 155, 255, 0.5);
}
.card:hover::before { opacity: 1; }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-2);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

.timeline {
  list-style: none;
  padding: 0;
  position: relative;
  margin-left: 6px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.timeline__item {
  position: relative;
  padding: 0 0 28px 40px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 155, 255, 0.12);
}

.timeline__item--current .timeline__dot {
  background: var(--accent-2);
  border-color: var(--accent-2);
  animation: dotGlow 1.5s ease-in-out infinite;
}
@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(0, 212, 255, 0.65); }
  50% { box-shadow: 0 0 24px 6px rgba(0, 212, 255, 1); }
}
.timeline__item--current .timeline__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  animation: dotPing 1.5s ease-out infinite;
}
@keyframes dotPing {
  0% { transform: scale(1); opacity: 0.85; }
  70%, 100% { transform: scale(3); opacity: 0; }
}
.timeline__item--current .timeline__role { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .timeline__item--current .timeline__dot { animation: none; box-shadow: 0 0 16px 3px rgba(0, 212, 255, 0.9); }
  .timeline__item--current .timeline__dot::after { display: none; }
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.timeline__role { font-size: 1.2rem; }
.timeline__org { color: var(--text); font-weight: 500; margin-top: 2px; }
.timeline__org a,
.contact__lead a,
.contact__hint a {
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.timeline__org a:hover,
.contact__lead a:hover,
.contact__hint a:hover { border-bottom-color: var(--accent-2); }
.timeline__desc { color: var(--text-muted); margin-top: 8px; max-width: 60ch; }

.section--contact {
  text-align: center;
}
.contact { max-width: 680px; margin-inline: auto; }
.contact__title { max-width: none; margin-inline: auto; }
.contact__lead { margin-inline: auto; max-width: 48ch; }
.contact__email { margin-top: 34px; }
.socials {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.socials a svg { width: 22px; height: 22px; }
.socials a:hover {
  transform: translateY(-3px);
  color: var(--accent-2);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.contact__hint { color: var(--text-dim); font-size: 0.85rem; margin-top: 24px; }

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
  background: var(--bg-2);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--text-muted); font-size: 0.92rem; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--text-dim); font-size: 0.85rem; }

.nf {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0 60px;
}
.nf__inner { max-width: 640px; }
.nf__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  margin-top: 6px;
}
.nf__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  margin-top: 8px;
}
.nf__msg {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 46ch;
  margin-inline: auto;
}
.nf__cmd {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 24px auto 0;
  display: block;
  width: fit-content;
}
.nf__btn { margin-top: 28px; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__portrait { order: -1; }
  .portrait { width: min(70%, 300px); }
  .hero__tagline { margin-inline: 0; }

  .about { grid-template-columns: 1fr; gap: 60px; }
  .about__media { max-width: 380px; }

  .stats-strip__inner { grid-template-columns: repeat(2, 1fr); }

  .creds { grid-template-columns: 1fr; gap: 40px; }
  .skills { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 88px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .stats-strip__inner { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px 16px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
