/* =========================================================
   RAFI HAIDAR — Gen-Z Digital CV
   Design system & stylesheet
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg: #08080c;
  --bg-2: #0e0e15;
  --bg-3: #14141e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --txt: #f4f4f7;
  --txt-dim: #a2a2b4;
  --txt-mute: #6e6e82;

  --lime: #c8ff2f;
  --violet: #8b5cff;
  --pink: #ff45c8;
  --cyan: #35e6ff;

  --grad-main: linear-gradient(120deg, var(--lime) 0%, var(--cyan) 45%, var(--violet) 100%);
  --grad-warm: linear-gradient(120deg, var(--pink) 0%, var(--violet) 100%);

  --font-display: "Syne", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;

  --shell: 1200px;
  --gutter: clamp(18px, 5vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --glow-lime: 0 0 40px -6px rgba(200, 255, 47, 0.45);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(139, 92, 255, 0.18), transparent 60%),
    radial-gradient(800px 600px at 95% 8%, rgba(200, 255, 47, 0.10), transparent 55%),
    radial-gradient(700px 700px at 60% 100%, rgba(255, 69, 200, 0.09), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--lime); color: #0a0a0f; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0b0b11; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--lime));
  border-radius: 99px;
  border: 3px solid #0b0b11;
}

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

/* ---------- 3. ATMOSPHERE ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.16), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-main);
  z-index: 9999;
  box-shadow: 0 0 12px rgba(200, 255, 47, 0.6);
}

/* ---------- 4. LAYOUT HELPERS ---------- */
.container {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}

.section--alt { background: var(--bg-2); }
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.section__head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 800px; }

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 47, 0.3);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
  background: rgba(200, 255, 47, 0.06);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__title em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__sub {
  color: var(--txt-dim);
  margin-top: 18px;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  max-width: 62ch;
}

/* ---------- 5. REVEAL ---------- */
/* Default: terlihat penuh (aman bila JS mati / observer gagal). */
.reveal { opacity: 1; transform: none; }

/* Hilangkan dulu hanya ketika JS aktif, lalu munculkan saat terlihat. */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 14px 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  padding: 9px 0;
}

.nav__inner {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav__logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.nav__logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--grad-main);
  color: #08080c;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--glow-lime);
  transition: transform 0.4s var(--ease);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(-12deg) scale(1.06); }
.nav__logo-text {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.nav__logo-text em { color: var(--lime); font-style: normal; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 99px;
  color: var(--txt-dim);
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--txt); background: var(--surface-2); }
.nav__links a.is-active { color: var(--lime); }

.nav__cta {
  background: var(--lime) !important;
  color: #08080c !important;
  font-weight: 700 !important;
  margin-left: 6px;
}
.nav__cta:hover { box-shadow: var(--glow-lime); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  width: 20px; height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.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); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 16vw, 180px) 0 clamp(48px, 8vw, 80px);
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}
.blob--lime {
  width: 420px; height: 420px;
  background: rgba(200, 255, 47, 0.28);
  top: -120px; right: -80px;
  animation: float 14s ease-in-out infinite;
}
.blob--violet {
  width: 460px; height: 460px;
  background: rgba(139, 92, 255, 0.34);
  bottom: -140px; left: -140px;
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.12); }
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 8px 15px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
  color: var(--txt-dim);
  margin-bottom: 26px;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 47, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 47, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(200, 255, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 47, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8.2vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.hero__line { display: block; }
.hero__line--accent {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--line-strong);
  -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.28);
}

.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.12rem);
  color: var(--lime);
  margin-bottom: 20px;
  min-height: 1.6em;
  letter-spacing: -0.01em;
}
.caret { animation: blink 1s steps(2) infinite; color: var(--lime); }
@keyframes blink { 50% { opacity: 0; } }

.hero__desc {
  color: var(--txt-dim);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero__desc strong { color: var(--txt); font-weight: 600; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--lime);
  color: #08080c;
  box-shadow: 0 8px 24px -10px rgba(200, 255, 47, 0.7);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(200, 255, 47, 0.85); }

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--txt);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); background: rgba(200, 255, 47, 0.06); }

.btn--lg { padding: 17px 30px; font-size: 1rem; }

/* Hero visual */
.hero__visual { position: relative; justify-self: center; width: min(100%, 400px); }

.hero__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(150deg, rgba(200, 255, 47, 0.5), rgba(139, 92, 255, 0.5), rgba(255, 69, 200, 0.4));
  animation: frameTilt 9s ease-in-out infinite;
  z-index: 2;
}
@keyframes frameTilt {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.4deg); }
}
.hero__photo {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  background: var(--bg-3);
  filter: contrast(1.05) saturate(1.05);
}
.hero__photo-glow {
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 8, 12, 0.75));
  z-index: 1;
  pointer-events: none;
}

.sticker {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 15px;
  border-radius: 99px;
  background: var(--bg);
  border: 1.5px solid var(--lime);
  color: var(--lime);
  z-index: 5;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}
.sticker--tl { top: -14px; left: -18px; transform: rotate(-8deg); animation: bob 4s ease-in-out infinite; }
.sticker--br {
  bottom: 34px; right: -20px;
  transform: rotate(6deg);
  border-color: var(--violet);
  color: #cbb8ff;
  background: #12101c;
  animation: bob 5s ease-in-out infinite reverse;
}
.sticker--dot {
  top: 18px; right: 18px;
  padding: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1.05rem;
  color: #08080c;
  background: var(--lime);
  border: 0;
  animation: spin 8s linear infinite;
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes spin { to { rotate: 360deg; } }

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  z-index: 0;
  pointer-events: none;
}
.orbit--1 { inset: -34px; animation: spin 40s linear infinite; }
.orbit--2 { inset: -68px; border-color: rgba(200, 255, 47, 0.16); animation: spin 60s linear infinite reverse; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(44px, 7vw, 72px);
  position: relative;
  z-index: 2;
}
.stats__item {
  background: var(--bg);
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.4vw, 26px);
  transition: background 0.4s var(--ease);
}
.stats__item:hover { background: var(--bg-3); }
.stats__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-mute);
  margin-top: 10px;
}
.stats__item--accent { background: var(--bg-3); }
.stats__item--accent .stats__num { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }

/* ---------- 8. MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-3);
  padding: 18px 0;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: var(--txt-dim);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.marquee__track .sep { color: var(--lime); font-size: 1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 9. ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.about__text p {
  color: var(--txt-dim);
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  margin-bottom: 20px;
}
.about__text strong { color: var(--txt); font-weight: 600; }

.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about__chips li {
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  cursor: default;
}
.about__chips li:hover {
  transform: translateY(-4px) rotate(-2deg);
  border-color: var(--lime);
  background: rgba(200, 255, 47, 0.07);
}

.about__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.about__card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-mute);
  background: var(--surface);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.about__facts { padding: 8px 22px 20px; }
.about__facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.about__facts li:last-child { border-bottom: 0; }
.about__facts span { color: var(--txt-mute); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.about__facts strong { text-align: right; font-weight: 600; }
.about__facts .hl { color: var(--lime); }

/* ---------- 10. BENTO / EXPERTISE ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bento__card {
  position: relative;
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s;
}
.bento__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 255, 47, 0.09), transparent 42%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.bento__card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.bento__card:hover::after { opacity: 1; }
.bento__card--wide { grid-column: 1 / -1; }

.bento__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.bento__icon svg { width: 27px; height: 27px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bento__icon--lime { background: rgba(200, 255, 47, 0.12); border: 1px solid rgba(200, 255, 47, 0.3); }
.bento__icon--lime svg { stroke: var(--lime); }
.bento__icon--violet { background: rgba(139, 92, 255, 0.14); border: 1px solid rgba(139, 92, 255, 0.35); }
.bento__icon--violet svg { stroke: #b49bff; }
.bento__icon--pink { background: rgba(255, 69, 200, 0.12); border: 1px solid rgba(255, 69, 200, 0.32); }
.bento__icon--pink svg { stroke: var(--pink); }

.bento__card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.bento__card p { color: var(--txt-dim); font-size: 0.97rem; }
.bento__card p strong { color: var(--txt); font-weight: 600; }

.bento__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bento__tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--txt-dim);
}

/* ---------- 11. TIMELINE ---------- */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--lime), var(--violet), transparent);
  opacity: 0.4;
}
.timeline__item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 28px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--lime);
  box-shadow: 0 0 0 5px rgba(200, 255, 47, 0.1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.timeline__item:hover .timeline__dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 8px rgba(200, 255, 47, 0.16), 0 0 20px rgba(200, 255, 47, 0.5);
}
.timeline__card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.timeline__card:hover { transform: translateX(8px); border-color: var(--line-strong); background: #171722; }

.timeline__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(200, 255, 47, 0.08);
  border: 1px solid rgba(200, 255, 47, 0.25);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.timeline__card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.timeline__org { color: #b49bff; font-size: 0.92rem; margin-bottom: 16px; margin-top: 4px; }
.timeline__card ul { display: grid; gap: 10px; }
.timeline__card li {
  position: relative;
  padding-left: 22px;
  color: var(--txt-dim);
  font-size: 0.93rem;
}
.timeline__card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--lime);
  rotate: 45deg;
  opacity: 0.75;
}
.timeline__card li strong { color: var(--txt); font-weight: 600; }

/* ---------- 12. PUBLICATIONS ---------- */
.pub__counters { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.pub__counter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.pub__counter strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pub__counter span { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt-mute); }

.pubs { display: grid; gap: 14px; }
.pub {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  align-items: start;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.pub:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-3); }

.pub__type {
  grid-row: span 2;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(139, 92, 255, 0.14);
  border: 1px solid rgba(139, 92, 255, 0.35);
  color: #c3adff;
  white-space: nowrap;
}
.pub__type--book {
  background: rgba(200, 255, 47, 0.1);
  border-color: rgba(200, 255, 47, 0.35);
  color: var(--lime);
}
.pub h3 {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.pub__meta { grid-column: 2; color: var(--txt-mute); font-size: 0.85rem; font-family: var(--font-mono); }

/* ---------- 13. CERTIFICATIONS ---------- */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.cert {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.cert::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.cert:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.cert:hover::before { transform: scaleX(1); }

.cert__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.cert__badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--grad-main);
  color: #08080c;
}
.cert__level {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 47, 0.3);
  padding: 4px 10px;
  border-radius: 99px;
}
.cert h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}
.cert p { color: var(--txt-mute); font-size: 0.84rem; }

/* ---------- 14. PROJECTS ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project {
  padding: clamp(24px, 3.2vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--bg-3), var(--bg));
  transition: transform 0.45s var(--ease), border-color 0.45s;
  position: relative;
  overflow: hidden;
}
.project:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.project--wide { grid-column: 1 / -1; }

.project__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 99px;
  margin-bottom: 18px;
  background: rgba(200, 255, 47, 0.1);
  border: 1px solid rgba(200, 255, 47, 0.3);
  color: var(--lime);
}
.project__tag--violet { background: rgba(139, 92, 255, 0.14); border-color: rgba(139, 92, 255, 0.35); color: #c3adff; }
.project__tag--pink { background: rgba(255, 69, 200, 0.12); border-color: rgba(255, 69, 200, 0.32); color: var(--pink); }

.project h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.project__desc { color: var(--txt-dim); font-size: 0.95rem; }
.project__desc strong { color: var(--txt); font-weight: 600; }

.project__list { display: grid; gap: 9px; }
.project__list li, .project__talk li {
  position: relative;
  padding-left: 20px;
  color: var(--txt-dim);
  font-size: 0.92rem;
}
.project__list li::before, .project__talk li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-size: 0.85rem;
}
.project__talk { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project__talk li strong { color: var(--txt); font-weight: 600; }

.project__handles { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.project__handles-label { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt-mute); display: block; margin-bottom: 12px; }
.handles { display: flex; flex-wrap: wrap; gap: 8px; }
.handles span {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  padding: 7px 13px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.handles span:hover { border-color: var(--violet); color: #c3adff; transform: translateY(-2px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span {
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--txt-dim);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.chips span:hover { transform: translateY(-3px); color: var(--txt); border-color: var(--line-strong); }

/* ---------- 15. BUSINESS ---------- */
.business { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.biz {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3.2vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.biz:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.biz__logo {
  flex: 0 0 92px;
  width: 92px; height: 92px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  padding: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
}
.biz__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.biz__body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--lime);
}
.biz__body p { color: var(--txt-dim); font-size: 0.9rem; }

/* ---------- 16. GALLERY ---------- */
.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}
.gallery__tab {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--txt-dim);
  transition: all 0.35s var(--ease);
}
.gallery__tab:hover { color: var(--txt); border-color: var(--line-strong); transform: translateY(-2px); }
.gallery__tab.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: #08080c;
  font-weight: 700;
  box-shadow: var(--glow-lime);
}

.gallery__panels { position: relative; }
.gallery__panel { display: none; }
.gallery__panel.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  animation: fadeUp 0.5s var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: saturate(0.9);
}
.gallery__item::after {
  content: "⤢";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #08080c;
  background: rgba(200, 255, 47, 0.72);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(2px);
}
.gallery__item:hover img { transform: scale(1.09); filter: saturate(1.15); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:nth-child(3n) { aspect-ratio: 3 / 4; }

/* ---------- 17. CONTACT ---------- */
.contact { padding-bottom: clamp(80px, 12vw, 140px); }
.contact__box {
  position: relative;
  text-align: center;
  padding: clamp(44px, 8vw, 90px) clamp(24px, 5vw, 60px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(200, 255, 47, 0.12), transparent 70%),
    radial-gradient(600px 320px at 80% 110%, rgba(139, 92, 255, 0.2), transparent 70%),
    var(--bg-3);
  overflow: hidden;
}
.contact__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 72%);
  opacity: 0.45;
  pointer-events: none;
}
.contact__box > * { position: relative; z-index: 1; }

.contact__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 22px;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.contact__title em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact__desc {
  color: var(--txt-dim);
  max-width: 56ch;
  margin: 0 auto 38px;
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 18. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 46px 0 34px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.footer__brand-text strong { font-size: 0.96rem; }
.footer__brand-text span { font-size: 0.8rem; color: var(--txt-mute); font-family: var(--font-mono); }

.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { font-size: 0.86rem; color: var(--txt-dim); transition: color 0.3s; }
.footer__links a:hover { color: var(--lime); }

.footer__copy {
  width: 100%;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--txt-mute);
  text-align: center;
}

/* ---------- 19. TO TOP ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--lime);
  color: #08080c;
  z-index: 800;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: all 0.4s var(--ease);
  box-shadow: 0 12px 30px -10px rgba(200, 255, 47, 0.6);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 20. LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(6, 6, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure { max-width: min(1100px, 100%); text-align: center; }
.lightbox__figure img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.lightbox__caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--txt-dim);
}

.lightbox__close {
  position: absolute;
  top: 18px; right: 20px;
  width: 46px; height: 46px;
  border-radius: 14px;
  font-size: 1.8rem;
  line-height: 1;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  transition: background 0.3s, transform 0.3s;
}
.lightbox__close:hover { background: var(--pink); transform: rotate(90deg); }

.lightbox__nav {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  transition: background 0.3s, transform 0.3s;
}
.lightbox__nav:hover { background: var(--lime); color: #08080c; }
.lightbox__nav--prev:hover { transform: translateX(-3px); }
.lightbox__nav--next:hover { transform: translateX(3px); }

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .nav__links a { padding: 8px 10px; font-size: 0.82rem; }
}

@media (max-width: 940px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 64px 14px auto 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: rgba(12, 12, 18, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 13px 16px; font-size: 0.94rem; border-radius: 12px; }
  .nav__cta { text-align: center; margin-left: 0; margin-top: 6px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(78%, 330px); margin-bottom: 6px; }
  .hero__content { text-align: left; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4.4rem); }

  .about { grid-template-columns: 1fr; }
  .about__card { position: static; }

  .bento { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .business { grid-template-columns: 1fr; }

  .footer__inner { justify-content: center; text-align: center; }
  .footer__brand { width: 100%; justify-content: center; }
  .footer__links { justify-content: center; width: 100%; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pub { grid-template-columns: 1fr; }
  .pub__type { grid-row: auto; justify-self: start; }
  .pub__meta { grid-column: 1; }
  .project__talk { grid-template-columns: 1fr; }
  .gallery__panel.is-active { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(3n) { aspect-ratio: 4 / 3; }
  .biz { flex-direction: column; text-align: center; }
  .sticker--br { right: -6px; bottom: 20px; }
  .sticker--tl { left: -8px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox { gap: 6px; padding: 10px; }
  .cursor-glow { display: none; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions, .contact__actions { flex-direction: column; }
}

@media (max-width: 400px) {
  .gallery__panel.is-active { grid-template-columns: 1fr; }
}

/* Pointer-fine only effects */
@media (hover: none) {
  .gallery__item::after { display: none; }
}
