:root {
  --bg: #07080d;
  --bg-soft: #0c0e16;
  --glass: rgba(14, 16, 26, 0.62);
  --ink: #eef1f8;
  --muted: #9aa3b8;
  --faint: #6b7388;
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #7cf4ff;
  --blue: #6284ff;
  --accent-ink: #041418;
  --radius: 22px;
  --header-h: 84px;
  --display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --sans: "Satoshi", "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }
::selection { background: var(--cyan); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(124, 244, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 80;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width .2s ease, height .2s ease, background .2s ease;
}
.cursor.is-hover {
  width: 44px;
  height: 44px;
  background: rgba(124, 244, 255, 0.08);
}
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--cyan);
  color: var(--accent-ink);
  padding: .6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(1180px, calc(100% - 2.2rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0 .8rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 600;
}
.brand b {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,244,255,.18), rgba(98,132,255,.18));
  border: 1px solid rgba(124, 244, 255, .28);
  font-family: var(--display);
  letter-spacing: -.04em;
}
.brand span { font-size: .92rem; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .28rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav-pill a {
  text-decoration: none;
  color: var(--muted);
  padding: .48rem .9rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
}
.nav-pill a:hover,
.nav-pill a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255,255,255,.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem;
  border-radius: 999px;
  background: rgba(14, 16, 26, 0.85);
  border: 1px solid rgba(124, 244, 255, 0.35);
  backdrop-filter: blur(18px);
  z-index: 60;
}
.lang-btn {
  min-width: 56px;
  height: 34px;
  padding: 0 .55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.lang-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.lang-btn.is-active {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #b8fbff, #5ee4f2);
}
.lang-btn .flag-svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
  flex-shrink: 0;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  color: var(--cyan);
}
.header-cta i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 0 5px rgba(61, 255, 154, .12);
  animation: pulse 2.2s ease infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(61, 255, 154, 0); }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: 2.2rem 0 4rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--cyan);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: .88;
  letter-spacing: -.06em;
  margin: 1rem 0 1.1rem;
  font-weight: 600;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span { display: inline-block; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 10%, var(--cyan) 50%, #a9b7ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.8rem;
}
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, #b8fbff, #5ee4f2);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 30px rgba(94, 228, 242, .22);
}
.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--line);
  color: var(--ink);
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}
.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -18% -10% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(98,132,255,.35), rgba(124,244,255,.08) 42%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.portrait-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: rgba(7, 8, 13, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
}
.portrait-meta strong { display: block; }
.portrait-meta span { color: var(--muted); }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  margin-bottom: 4.5rem;
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding: .9rem 0;
  color: var(--muted);
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.marquee-track b { color: var(--ink); font-weight: 600; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section { padding: 1rem 0 5rem; }
.section-k {
  color: var(--cyan);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -.04em;
  margin: 0 0 1.4rem;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .35rem;
}
.stat span { color: var(--muted); font-size: .88rem; }

.work-list {
  display: grid;
  gap: .7rem;
}
.work {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255,255,255,.02);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.work:hover {
  border-color: rgba(124, 244, 255, .35);
  transform: translateX(4px);
  background: rgba(124, 244, 255, .04);
}
.work-ico {
  width: 72px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  background: #10131c;
  border: 1px solid var(--line);
  color: var(--cyan);
}
.work h3 { margin: 0; font-size: 1.05rem; }
.work p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.work small { color: var(--faint); font-size: .78rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(18px);
}
.panel p { color: var(--muted); margin: 0 0 1rem; }
.contact-rows { display: grid; gap: .55rem; }
.contact-rows a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  padding: .85rem .95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.contact-rows a:hover { border-color: rgba(124,244,255,.4); }
.contact-rows small { color: var(--muted); }

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cv-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 2.4rem 0 1.6rem;
}
.cv-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -.05em;
  line-height: .95;
  margin: .4rem 0 0;
  font-weight: 600;
}
.cv-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.2rem;
  align-items: start;
  padding-bottom: 4rem;
}
.cv-side {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.2rem;
  background: var(--glass);
  backdrop-filter: blur(18px);
}
.cv-side img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 16px;
  margin-bottom: 1rem;
}
.cv-side h2 { margin: 0; font-size: 1.15rem; }
.cv-side p { color: var(--muted); font-size: .9rem; margin: .35rem 0 1rem; }
.cv-side .btn { width: 100%; margin-bottom: .55rem; }
.side-links { display: grid; gap: .4rem; margin-top: .4rem; }
.side-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
}
.side-links a:hover { color: var(--cyan); }

.cv-block { margin-bottom: 2.4rem; }
.cv-block h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0 0 1rem;
  letter-spacing: -.03em;
}
.job {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 1rem;
  padding-bottom: 1.3rem;
  margin-bottom: .2rem;
}
.job-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: .55rem;
  box-shadow: 0 0 0 6px rgba(124,244,255,.1);
}
.job time { color: var(--faint); font-size: .82rem; }
.job h4 { margin: .15rem 0 .15rem; font-size: 1.05rem; }
.job .org { color: var(--cyan); font-weight: 600; margin: 0 0 .45rem; font-size: .92rem; }
.job ul { margin: 0; padding-left: 1.05rem; color: var(--muted); }
.job li { margin: .2rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .82rem;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

.not-found {
  min-height: 80svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.not-found h1 {
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 10rem);
  margin: 0;
  background: linear-gradient(180deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

@media (max-width: 900px) {
  .hero, .about-grid, .stats, .cv-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 2rem; padding-top: 1.2rem; }
  .portrait-wrap { justify-self: center; width: min(100%, 360px); }
  .cv-side { position: relative; top: 0; }
  .work { grid-template-columns: 56px 1fr; }
  .work small { display: none; }
  .cv-hero { flex-direction: column; align-items: start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-pill, .header-cta { display: none; }
  .header-actions { gap: .4rem; }
  .lang-switch { order: 2; }
  .nav-pill.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 1.1rem;
    right: 1.1rem;
    flex-direction: column;
    border-radius: 18px;
    padding: .6rem;
  }
  .cursor { display: none !important; }
  body.has-cursor { cursor: auto; }
}

@media print {
  #fx, .noise, .cursor, .site-header, .site-footer, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  .cv-side { position: static; border: 0; background: none; }
  .lede, .job ul, .job time { color: #333; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .header-cta i { animation: none; }
  .btn:hover, .work:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
