

:root {
  --bg: #07080d;
  --bg-soft: #0b0d15;
  --ink: #edeef5;
  --muted: #9ba0b5;
  --accent: #7c6cff;
  --accent-2: #59e3ff;
  --accent-3: #ff6ec7;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html, body {
  scroll-behavior: smooth !important;
}


html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.55s ease both;
}



@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.is-exiting {
  opacity: 0;
  animation: none;
  transition: opacity 0.4s ease;
}

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


.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 108, 255, 0.12), transparent 60%),
    var(--bg);
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.aurora__blob--1 {
  width: 520px; height: 520px;
  background: var(--accent);
  top: -140px; left: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}

.aurora__blob--2 {
  width: 440px; height: 440px;
  background: var(--accent-2);
  top: 30%; right: -160px;
  opacity: 0.18;
  animation: drift2 26s ease-in-out infinite alternate;
}

.aurora__blob--3 {
  width: 380px; height: 380px;
  background: var(--accent-3);
  bottom: -160px; left: 35%;
  opacity: 0.12;
  animation: drift3 30s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, -70px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(90px, -110px) scale(1.2); } }

.aurora__grid {
  position: absolute;
  inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}


.cursor-glow {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,255,0.09), transparent 65%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}


.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #5b4be0);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 108, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(124, 108, 255, 0.5);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.25);
  background: var(--glass-strong);
}

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }


.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  width: min(1060px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  transition: box-shadow 0.3s, background 0.3s;
}

.nav__brand { justify-self: start; }
.nav__links { justify-self: center; }
.nav__actions { justify-self: end; }

.nav.is-scrolled {
  background: rgba(11, 13, 21, 0.7);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.nav__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s cubic-bezier(.2,.8,.2,1);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }


.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.nav__lang-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav__lang-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b4be0);
  box-shadow: 0 4px 14px rgba(124, 108, 255, 0.35);
  transform-origin: center;
  animation: pillPop 0.5s cubic-bezier(.2, 1.4, .4, 1) 0.12s both;
}

@keyframes pillPop {
  from { transform: scale(0.55); opacity: 0; }
  60%  { transform: scale(1.08); }
  to   { transform: scale(1); opacity: 1; }
}

.nav__lang-btn:not(.is-active):hover { color: var(--ink); }



.nav__burger {
  display: none;
  position: fixed;
  top: 24px;
  right: 26px;
  z-index: 400;
}

.nav__burger.hamburger {
  box-sizing: content-box;
  width: 30px;
  height: 30px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 100%;
  height: 100%;
}

.hamburger-line {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  transition: all 900ms cubic-bezier(0.19, 1, 0.22, 1);
}
.hamburger-line:last-of-type { align-self: flex-end; }

.hamburger-line::before,
.hamburger-line::after {
  position: absolute;
  top: 0;
  content: "";
  width: 100%;
  height: 100%;
  transition: all 900ms cubic-bezier(0.19, 1, 0.22, 1);
}
.hamburger-line::before { right: 0; background-color: #fff; }
.hamburger-line::after { left: calc(100% + 8px); background-color: #fff; }


.hamburger-line:nth-child(2)::before,
.hamburger-line:nth-child(2)::after { transition-delay: 0.05s; }

@media (hover: hover) {
  .nav__burger.hamburger:hover .hamburger-line::before { right: calc(100% + 8px); }
  .nav__burger.hamburger:hover .hamburger-line::after { left: 0; }
}


.hamburger.active .hamburger-line:first-of-type {
  transform: translate(0, 5px) rotate(135deg);
}
.hamburger.active .hamburger-line:last-of-type {
  width: 100%;
  transform: translate(0, -5px) rotate(45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(4, 5, 10, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 84vw);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 104px 34px 40px;
  background: rgba(11, 13, 21, 0.92);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-left: 1px solid var(--stroke);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke);
  opacity: 0;
  transform: translateX(24px);
  transition: color 0.25s,
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer__links a:hover { color: var(--accent-2); }
.drawer.is-open .drawer__links a { opacity: 1; transform: translateX(0); }
.drawer.is-open .drawer__links a:nth-child(1) { transition-delay: 0.10s; }
.drawer.is-open .drawer__links a:nth-child(2) { transition-delay: 0.16s; }
.drawer.is-open .drawer__links a:nth-child(3) { transition-delay: 0.22s; }
.drawer.is-open .drawer__links a:nth-child(4) { transition-delay: 0.28s; }

.drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.3s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.drawer.is-open .drawer__footer { opacity: 1; transform: translateY(0); }
.drawer__cta { justify-content: center; width: 100%; }
.drawer .nav__lang { align-self: center; }

@media (max-width: 900px) {
  
  .nav {
    display: flex;
    justify-content: space-between;
  }
  .nav__actions { display: none; }
  .nav__burger {
    display: inline-flex;
    padding: 6px;
  }
}


.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}


.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(89, 227, 255, 0.25);
  background: rgba(89, 227, 255, 0.06);
  padding: 8px 16px;
  border-radius: 999px;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(89, 227, 255, 0.35);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(89, 227, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(89, 227, 255, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero__title span { display: block; }

.hero__title-accent {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--accent-3) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 7s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__sub strong { color: var(--ink); font-weight: 600; }

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


.hero__card {
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.6s;
}


.hero__card.is-tilted,
.hero__card.is-tilted.is-visible {
  transform: perspective(1400px) rotateY(-16deg) rotateX(7deg) rotateZ(1.2deg);
  box-shadow:
    -24px 34px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--stroke) inset;
}

.hero__card.is-tilted:hover {
  transform: perspective(1400px) translateY(-6px);
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
}

.code__dot { width: 11px; height: 11px; border-radius: 50%; }
.code__dot--r { background: #ff5f57; }
.code__dot--y { background: #febc2e; }
.code__dot--g { background: #28c840; }

.code__file {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

.code__body {
  padding: 22px;
  font-size: 0.86rem;
  line-height: 1.75;
  min-height: 300px;
  white-space: pre-wrap;
  color: #c8cbe0;
}

.code__body .tk-kw { color: var(--accent-3); }
.code__body .tk-id { color: var(--accent-2); }
.code__body .tk-str { color: #9dff8a; }
.code__body .tk-cm { color: #5d6178; }

.code__caret {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--accent-2);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}



.marquee {
  --marquee-gap: 44px;
  overflow: hidden;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
  list-style: none;
  margin: 0;
  flex-shrink: 0;
}

.marquee__group li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--marquee-gap);
  transition: color 0.25s;
}

.marquee__group li:hover { color: var(--ink); }


.marquee__group li::after {
  content: "◆";
  color: var(--accent);
  font-size: 0.55rem;
  line-height: 1;
}


.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 110px 24px;
  scroll-margin-top: 96px;
}

.section__head { margin-bottom: 54px; }

.section__eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section__sub { color: var(--muted); max-width: 52ch; }


.stack__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 22px;
}

.stack__card {
  flex: 1 1 200px;
  max-width: 300px;
  min-height: 360px;
  padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s, background 0.3s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack__card:hover {
  border-color: rgba(124, 108, 255, 0.4);
  background: var(--glass-strong);
}

.stack__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--stroke);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.stack__icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.stack__icon--java svg {
  width: 40px;
  height: 40px;
}

.stack__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.stack__card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.stack__meter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.stack__meter {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.stack__meter span {
  display: block;
  height: 100%;
  width: 0;
  min-width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s cubic-bezier(.2,.8,.2,1) 0.2s;
  will-change: width;
}

.stack__meter-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  white-space: nowrap;
}



.work__stack {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.work__item {
  position: sticky;
}

.work__item:nth-child(1) { top: 106px; }
.work__item:nth-child(2) { top: 124px; }
.work__item:nth-child(3) { top: 142px; }

.work__card {
  --stack-p: 0; 
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 340px;
  overflow: hidden;
  transform: scale(calc(1 - var(--stack-p) * 0.07));
  filter: brightness(calc(1 - var(--stack-p) * 0.45));
  transform-origin: center top;
  will-change: transform, filter;
  transition: border-color 0.3s;
  
  background:
    linear-gradient(var(--glass), var(--glass)),
    rgba(11, 13, 21, 0.92);
}


.work__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
  background: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 50%),
    rgba(124, 108, 255, 0.36),
    rgba(124, 108, 255, 0.14) 40%,
    transparent 68%);
}

.work__card:hover::after { opacity: 1; }

.work__card:hover { border-color: rgba(124, 108, 255, 0.4); }

.work__preview {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.work__preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.work__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(7, 8, 13, 0.45));
}

.work__preview--a { background: radial-gradient(circle at 30% 30%, rgba(124,108,255,0.55), rgba(11,13,21,0.9)); }
.work__preview--b { background: radial-gradient(circle at 70% 20%, rgba(89,227,255,0.45), rgba(11,13,21,0.9)); }
.work__preview--c { background: radial-gradient(circle at 40% 70%, rgba(255,110,199,0.4), rgba(11,13,21,0.9)); }

.work__badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7,8,13,0.5);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.work__index {
  position: absolute;
  bottom: 6px; right: 18px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  user-select: none;
}

.work__body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.work__body p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 52ch;
  margin-bottom: 22px;
}

.work__tags {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.work__tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  border: 1px solid rgba(89,227,255,0.25);
  background: rgba(89,227,255,0.05);
  padding: 4px 12px;
  border-radius: 999px;
}

.work__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s, background 0.25s;
}

.work__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.work__link .arrow {
  font-family: var(--font-body);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}

.work__link:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 108, 255, 0.5);
  background: rgba(124, 108, 255, 0.12);
}

.work__link:hover .arrow { transform: translateX(4px); }


.about__panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 44px;
  padding: 56px;
  align-items: center;
}

.about__text {
  display: grid;
  gap: 22px;
}

.about__text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 54ch;
}

.about__text .section__title {
  margin-bottom: 0;
}

.about__stats {
  display: grid;
  gap: 22px;
}

.about__stat {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
}

.about__num, .about__plus {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--ink), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about__plus {
  font-size: 1.2rem;
  vertical-align: top;
  margin-left: 4px;
}

.about__stat p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}


.contact__panel {
  text-align: center;
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
}

.contact__panel::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,255,0.22), transparent 65%);
  top: -210px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}

.contact__sub { color: var(--muted); margin-bottom: 34px; }

.contact__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}


.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--stroke);
}

.footer > p {
  justify-self: start;
}

.footer__top {
  justify-self: end;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer__top:hover { color: var(--ink); }

.footer__links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-self: center;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}

.footer__links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer > p,
  .footer__top {
    justify-self: center;
  }
}


.legal-nav {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: min(1060px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  gap: 24px;
}

.legal-nav .nav__brand {
  justify-self: start;
  flex-shrink: 0;
}

.legal-nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.legal-nav__back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.legal-nav__back:hover { color: var(--ink); }

@media (orientation: portrait) and (max-width: 1024px) {
  .legal-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: calc(100% - 24px);
    padding: 12px 12px;
    top: 12px;
  }
  
  .legal-nav .nav__brand {
    justify-self: start;
  }
  
  .legal-nav__actions {
    justify-self: end;
    justify-content: flex-end;
    gap: 12px;
  }
  
  .legal-nav__back {
    font-size: 0.85rem;
  }
  
  .nav__lang {
    padding: 3px;
    gap: 2px;
  }
  
  .nav__lang-btn {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .legal-nav {
    padding: 10px 12px;
    width: calc(100% - 24px);
    gap: 10px;
  }
  
  .legal-nav__back {
    font-size: 0.75rem;
  }
  
  .nav__lang-btn {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.legal__eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal__updated {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 44px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.75;
}

.legal p { margin-bottom: 16px; }

.legal ul {
  margin: 0 0 16px 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a { color: var(--accent-2); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal__note {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
  font-size: 0.85rem;
  font-style: italic;
}


.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
    text-align: left;
  }
  .hero__scroll { display: none; }
  .about__panel { grid-template-columns: 1fr; padding: 36px 28px; }
  .nav__links { display: none; }
  
  .hero__card.is-tilted {
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  }
  .hero__card.is-tilted:hover {
    transform: perspective(1400px) translateY(-4px);
  }
  
  .work__card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .work__preview { min-height: 180px; }
  .work__preview img { min-height: 180px; }
}

@media (max-width: 560px) {
  .section { padding: 72px 18px; }
  .nav__cta { display: none; }
  .code__body { min-height: 260px; font-size: 0.78rem; }
  .work__body { padding: 26px 24px; }
  .work__index { font-size: 3.2rem; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
