/* ================= TOKENS ================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --card: #141414;
  --card-2: #1b1b1b;
  --text: #f2f0e9;
  --muted: #8a8880;
  --line: rgba(242, 240, 233, 0.1);
  --accent: #c8ff2e;          /* neon lime */
  --accent-ink: #0a0a0a;
  --accent-2: #7b61ff;
  --display: "Syne", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --pad: clamp(16px, 4vw, 56px);
  --radius: 28px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}
[data-theme="light"] {
  --bg: #f1efe8;
  --bg-2: #e8e5dc;
  --card: #fbfaf6;
  --card-2: #f4f2ec;
  --text: #111111;
  --muted: #6b6960;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #5b3dff;
  --accent-ink: #ffffff;
  --accent-2: #ff5b2e;
}

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Qiya marquee va boshqa bezaklar ekran chetidan chiqadi — telefonda sahifa yon tomonga surilmasin.
   iOS Safari faqat body'dagi overflow-x ni hisobga olmaydi, shuning uchun html'da ham kerak.
   clip — sticky/scroll'ni buzmaydi; hidden — eski brauzerlar uchun zaxira. */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
body.loading { overflow: hidden; }
@media (pointer: fine) { body, a, button { cursor: none; } }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
em { font-style: italic; font-family: var(--display); }
.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ================= PRELOADER ================= */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: #0a0a0a; color: #f2f0e9;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad);
  transition: transform 1.1s var(--ease);
}
.preloader.done { transform: translateY(-100%); }
.pre-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pre-name { overflow: hidden; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 6.6vw, 6rem); line-height: 1.05; }
.pre-name span { display: block; animation: rise 1s var(--ease) 0.2s both; }
.pre-count { font-family: var(--display); font-size: clamp(3rem, 12vw, 10rem); font-weight: 800; line-height: 0.85; color: #c8ff2e; }
.pre-bar { height: 2px; background: rgba(255,255,255,0.1); margin-top: 24px; }
.pre-bar i { display: block; height: 100%; width: 0; background: #c8ff2e; }
@keyframes rise { from { transform: translateY(110%); } }

/* ================= DECOR ================= */
#bgCanvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 5%); }
  40% { transform: translate(5%, -3%); } 60% { transform: translate(-3%, -5%); } 80% { transform: translate(4%, 4%); }
}

.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 998; border-radius: 50%; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid var(--text); display: grid; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}
.cursor span { font-family: var(--mono); font-size: 0.72rem; color: #0a0a0a; opacity: 0; transition: opacity 0.2s; text-transform: uppercase; letter-spacing: 0.05em; }
.cursor.hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; border-color: #fff; }
.cursor.label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
.cursor.label span { opacity: 1; color: var(--accent-ink); }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--pad);
  transition: transform 0.5s var(--ease);
}
.nav.hidden { transform: translateY(-120%); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800;
  transition: transform 0.6s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.logo-mark {
  overflow: hidden; padding: 0; background: var(--card-2); isolation: isolate;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.9); transform-origin: 49% 36%; }
.logo-text { font-family: var(--display); font-weight: 700; line-height: 1.1; font-size: 0.95rem; }
.logo-text small { display: block; font-family: var(--body); font-weight: 500; color: var(--muted); font-size: 0.75rem; }

.nav-pill {
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav-pill a {
  position: relative; padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  color: var(--muted); transition: color 0.3s, background 0.3s;
}
.nav-pill a:hover { color: var(--text); }
.nav-pill a.active { background: var(--text); color: var(--bg); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 58px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); position: relative; padding: 3px;
}
.theme-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); transition: transform 0.5s var(--ease);
  box-shadow: inset -6px -4px 0 0 var(--card);
}
[data-theme="light"] .theme-knob { transform: translateX(26px); box-shadow: none; }

.nav-cta {
  padding: 12px 22px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 0.88rem; display: inline-block; overflow: hidden; position: relative;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.nav-cta:hover::before { transform: none; }
.nav-cta span { position: relative; transition: color 0.3s; }
.nav-cta:hover span { color: var(--accent-ink); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--text); flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--bg); transition: 0.4s var(--ease); }
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  min-height: 100svh; padding: 130px var(--pad) 50px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 39.75px; }
.hero-meta { margin-left: auto; }

/* Telefon: "Dynamic Island" vidjeti — kompyuterda yashirin */
.island { display: none; }
@media (max-width: 640px) {
  .island {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 12px 22px 12px 12px; border-radius: 999px; position: relative;
    background: #050505; color: #f2f0e9;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.08);
    animation: islandIn 1.1s var(--ease) 0.5s both;
  }
  .island::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--ang, 0deg), transparent 70%, var(--accent), transparent 85%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: islandBorder 4s linear infinite;
  }
  .island-orb {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(from 0deg, var(--accent), #7b61ff, #ff5b8a, #2fd6ff, var(--accent));
    animation: spin 4s linear infinite; position: relative;
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  }
  .island-orb::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #050505; filter: blur(3px); opacity: 0.55; }
  .island-text { display: grid; gap: 2px; line-height: 1.2; flex: 1; }
  .island-text b { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.01em; }
  .island-text small { font-family: var(--mono); font-size: 0.82rem; color: #8a8880; }
  .island-dots i { font-style: normal; animation: dot 1.4s infinite; }
  .island-dots i:nth-child(2) { animation-delay: 0.2s; }
  .island-dots i:nth-child(3) { animation-delay: 0.4s; }
  .island-eq { display: flex; align-items: flex-end; gap: 4px; height: 32px; }
  .island-eq i { width: 4px; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
  .island-eq i:nth-child(2) { animation-duration: 0.8s; animation-delay: -0.3s; }
  .island-eq i:nth-child(3) { animation-duration: 1.2s; animation-delay: -0.6s; }
  .island-eq i:nth-child(4) { animation-duration: 0.9s; animation-delay: -0.1s; }
  .island-eq i:nth-child(5) { animation-duration: 1.1s; animation-delay: -0.5s; }
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes islandBorder { to { --ang: 360deg; } }
@keyframes islandIn { from { opacity: 0; transform: scale(0.6); filter: blur(6px); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes dot { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem;
  background: color-mix(in srgb, var(--card) 60%, transparent); backdrop-filter: blur(10px);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 0 0 rgba(46, 230, 107, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(46, 230, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 107, 0); } }
.hero-meta { display: flex; gap: 24px; color: var(--muted); }

.hero-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.6vw, 10rem); line-height: 0.92; letter-spacing: -0.04em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line.indent { padding-left: 8vw; }
.word { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.ready .word { transform: none; }
.line:nth-child(2) .word { transition-delay: 0.1s; }
.line:nth-child(3) .word { transition-delay: 0.2s; }
.outline { -webkit-text-stroke: 2px var(--text); color: transparent; font-style: italic; }
.accent-word { color: var(--accent); position: relative; }
.star {
  display: inline-block; font-size: 0.35em; vertical-align: top; margin-left: 0.1em;
  animation: spin 6s linear infinite; color: var(--text);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-lead { max-width: 480px; font-size: 1.1rem; color: var(--muted); }
.hero-lead strong { color: var(--text); }
.typed { color: var(--accent); font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -0.15em; margin-left: 3px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; align-items: center; gap: 24px; }
.btn-round {
  width: 150px; height: 150px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.btn-round::before {
  content: ""; position: absolute; inset: 0; background: var(--text); border-radius: 50%;
  transform: scale(0); transition: transform 0.6s var(--ease);
}
.btn-round:hover::before { transform: scale(1); }
.btn-round-inner { position: relative; display: grid; place-items: center; gap: 4px; transition: color 0.4s; }
.btn-round:hover .btn-round-inner { color: var(--bg); }
.btn-round svg { transition: transform 0.5s var(--ease); }
.btn-round:hover svg { transform: rotate(45deg); }
.btn-round small { font-weight: 700; font-size: 0.85rem; }

.rotating-badge { width: 120px; height: 120px; position: relative; display: grid; place-items: center; }
.rotating-badge svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.rotating-badge text { font-family: var(--mono); font-size: 15px; letter-spacing: 3px; fill: var(--muted); text-transform: uppercase; }
.rotating-badge > span { font-size: 1.4rem; animation: bounce 2s infinite; }
@keyframes bounce { 50% { transform: translateY(6px); } }

/* ================= MARQUEE ================= */
.marquee {
  overflow: hidden; background: var(--accent); color: var(--accent-ink);
  transform: rotate(-2deg) scale(1.04); margin: 40px 0 20px; padding: 22px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span, .marquee i {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 3.2rem);
  text-transform: uppercase; padding: 0 28px; white-space: nowrap; font-style: normal; line-height: 1;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= SECTIONS ================= */
.section { padding: clamp(90px, 12vw, 160px) var(--pad); position: relative; }
.sec-label {
  display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 24px;
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em;
}
.sec-label .mono { color: var(--accent); }
.sec-label::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--line); }
.sec-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 1; letter-spacing: -0.04em; max-width: 1000px; margin-bottom: 64px;
}
.sec-title em { color: var(--accent); font-weight: 600; }
.split .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split .sw > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split.visible .sw > span { transform: none; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sec-aside { max-width: 320px; margin-bottom: 64px; }

/* ================= BENTO ================= */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
}
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
}
.card:hover .spot { opacity: 1; }

.c-bio { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.avatar {
  position: absolute; top: 28px; right: 28px; width: 110px; height: 110px; border-radius: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--accent-ink);
  transform: rotate(6deg); overflow: hidden; transition: transform 0.6s var(--ease);
}
.c-bio:hover .avatar { transform: rotate(-4deg) scale(1.05); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.big-quote { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 90%; }
.big-quote em { color: var(--accent); }

.c-stat { justify-content: space-between; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; }
.c-stat.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.c-stat.accent .spot { background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255,255,255,0.35), transparent 50%); }

.c-stack { grid-column: span 2; min-height: 300px; }
.stack-orbit { position: relative; flex: 1; display: grid; place-items: center; min-height: 190px; }
.orbit { position: absolute; border: 1px dashed var(--line); border-radius: 50%; animation: spin 20s linear infinite; }
.o1 { width: 130px; height: 130px; }
.o2 { width: 230px; height: 230px; animation-duration: 32s; animation-direction: reverse; }
.orbit span {
  position: absolute; width: 40px; height: 40px; margin: -20px; border-radius: 12px;
  display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); font-size: 1.1rem;
}
.o1 span:nth-child(1) { top: 0; left: 50%; } .o1 span:nth-child(2) { top: 75%; left: 93%; } .o1 span:nth-child(3) { top: 75%; left: 7%; }
.o2 span:nth-child(1) { top: 0; left: 50%; } .o2 span:nth-child(2) { top: 50%; left: 100%; } .o2 span:nth-child(3) { top: 100%; left: 50%; } .o2 span:nth-child(4) { top: 50%; left: 0; }
.orbit-core {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 50%, transparent);
}

.c-map { grid-column: span 2; justify-content: flex-end; min-height: 240px; }
.map-grid {
  position: absolute; inset: 0; opacity: 0.6;
  background-image: radial-gradient(var(--line) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.map-pin { position: absolute; top: 34%; left: 68%; }
.map-pin span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); position: relative; }
.map-pin span::before, .map-pin span::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ripple 2.4s var(--ease) infinite;
}
.map-pin span::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(0.6); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.map-info { position: relative; display: flex; flex-direction: column; gap: 2px; }
.map-info strong { font-family: var(--display); font-size: 1.5rem; }

.c-learn { grid-column: span 2; }
.learn-list { list-style: none; display: grid; gap: 18px; margin-top: 10px; }
.learn-list li { display: grid; gap: 8px; font-weight: 600; }
.learn-list i { display: block; height: 6px; border-radius: 9px; background: var(--card-2); position: relative; overflow: hidden; }
.learn-list i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); border-radius: inherit; transition: width 1.6s var(--ease) 0.3s; }
.c-learn.visible .learn-list i::after { width: var(--w); }

/* ================= WORK ================= */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid; align-items: center; gap: 24px;
  grid-template-columns: 60px 1.3fr 1.5fr 1fr 110px 40px;
  padding: 34px 8px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate;
}
.work-row::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.work-row:hover::before { transform: scaleY(1); }
.work-row > * { transition: color 0.4s, transform 0.6s var(--ease); }
.work-row:hover > * { color: var(--accent-ink); }
.w-num, .w-year, .w-tags { color: var(--muted); }
.w-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; }
.work-row:hover .w-title { transform: translateX(16px); }
.w-desc { color: var(--muted); }
.w-arrow { font-size: 1.8rem; justify-self: end; }
.w-live { display: inline-flex; align-items: center; gap: 7px; }
.w-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46, 230, 107, 0.6); animation: pulse 2s infinite;
}
.work-row:hover .w-arrow { transform: rotate(45deg); }

.work-preview {
  position: fixed; top: 0; left: 0; width: 340px; height: 240px; margin: -120px 0 0 -170px;
  pointer-events: none; z-index: 50; border-radius: 22px; overflow: hidden;
  transform: scale(0); transition: transform 0.5s var(--ease);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.work-preview.show { transform: scale(1); }
.wp-inner {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 5rem;
  background: linear-gradient(135deg, var(--g1, #7c3aed), var(--g2, #06b6d4));
  transition: background 0.4s;
}
.wp-inner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.4), transparent 55%); }

/* ================= SERVICES ================= */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service {
  position: relative; overflow: hidden; padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); min-height: 300px;
  display: flex; flex-direction: column; gap: 14px; transition: color 0.5s var(--ease);
  isolation: isolate;
}
.service::before {
  content: ""; position: absolute; z-index: -1; width: 200%; aspect-ratio: 1; border-radius: 50%;
  left: 50%; top: 100%; background: var(--text); transform: translate(-50%, 0) scale(0);
  transition: transform 0.8s var(--ease);
}
.service:hover::before { transform: translate(-50%, -50%) scale(1); }
.service:hover { color: var(--bg); }
.service:hover p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.s-num { color: var(--accent); }
.service h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; margin-top: auto; }
.service p { color: var(--muted); max-width: 420px; transition: color 0.5s; }
.s-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.s-tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.78rem; opacity: 0.7; }
.s-plus {
  position: absolute; top: 32px; right: 32px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; background: var(--accent); color: var(--accent-ink);
  transition: transform 0.6s var(--ease);
}
.service:hover .s-plus { transform: rotate(135deg); }

/* ================= JOURNEY ================= */
.journey { position: relative; max-width: 1000px; }
.j-line { position: absolute; left: 180px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.j-line i { display: block; width: 100%; height: 0; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.j-item { display: grid; grid-template-columns: 180px 1fr; gap: 60px; padding: 0 0 70px; position: relative; }
.j-item::before {
  content: ""; position: absolute; left: 173px; top: 12px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.j-year { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--muted); }
.j-item h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.j-org { color: var(--accent); display: block; margin: 8px 0 12px; }

/* ================= CONTACT ================= */
.contact { padding: clamp(90px, 12vw, 160px) var(--pad) 80px; }
.contact-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 10rem); line-height: 0.92; letter-spacing: -0.045em; margin-bottom: 60px;
}
.contact-title em { color: var(--accent); }
.contact-title.visible .word { transform: none; }
.contact-title .line:nth-child(2) .word { transition-delay: 0.12s; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.mail-link {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em; display: inline-flex; gap: 12px; align-items: center;
  border-bottom: 2px solid var(--line); padding-bottom: 8px; position: relative; word-break: break-all;
}
.mail-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.mail-link:hover::after { transform: scaleX(1); transform-origin: left; }
.mail-link span { transition: transform 0.5s var(--ease); color: var(--accent); }
.mail-link:hover span { transform: rotate(45deg); }

.form { display: grid; gap: 28px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 1.05rem; }
.form label .mono { color: var(--accent); margin-right: 6px; }
.form input, .form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 0; color: var(--text); font: inherit; font-size: 1.1rem; resize: none;
  transition: border-color 0.3s;
}
.form input::placeholder, .form textarea::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.send {
  justify-self: start; padding: 20px 40px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 1.05rem; position: relative; overflow: hidden;
}
.send::before { content: ""; position: absolute; inset: 0; background: var(--text); transform: translateY(101%); transition: transform 0.5s var(--ease); border-radius: inherit; }
.send:hover::before { transform: none; }
.send span { position: relative; transition: color 0.3s; }
.send:hover span { color: var(--bg); }
.form-note { color: var(--accent); min-height: 1.4em; font-weight: 600; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 80px; }
.socials a {
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600;
  display: inline-flex; gap: 10px; transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s;
}
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.socials a span { transition: transform 0.4s var(--ease); }
.socials a:hover span { transform: rotate(45deg); }

/* ================= FOOTER ================= */
.footer { padding: 0 var(--pad) 28px; overflow: hidden; }
.footer-name {
  font-family: var(--display); font-weight: 800; font-size: 13.2vw; line-height: 0.8; letter-spacing: -0.06em;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, var(--text), transparent 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.12;
  margin-bottom: 24px; user-select: none;
}
.footer-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-bar a { color: var(--text); font-weight: 600; }
.footer-bar a:hover { color: var(--accent); }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.card.reveal.visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 1s var(--ease), transform 0.5s var(--ease), border-color 0.4s; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .work-row { grid-template-columns: 50px 1fr 1fr 40px; }
  .w-tags, .w-year { display: none; }
}
@media (max-width: 900px) {
  .nav-pill {
    position: fixed; top: 86px; left: 16px; right: 16px; flex-direction: column; border-radius: 24px; padding: 10px;
    background: var(--card); opacity: 0; pointer-events: none; transform: translateY(-12px) scale(0.98);
    transition: 0.4s var(--ease);
  }
  .nav-pill.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-pill a { padding: 16px 18px; font-size: 1.1rem; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .logo-text { font-size: 0.85rem; }
  .logo-text small { display: none; }

  .bento { grid-template-columns: 1fr 1fr; }
  .c-bio, .c-stack, .c-map, .c-learn { grid-column: span 2; }
  .c-bio { min-height: 440px; }
  .services { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .work-preview { display: none; }
}
@media (max-width: 640px) {
  .line.indent { padding-left: 0; }
  .hero-title { font-size: 7.4vw; }
  /* Telefonda har bir qator ekran kengligini to'liq egallaydi (so'z uzunligiga qarab alohida o'lcham) */
  .hero-title .line:nth-child(1) { font-size: 14.6vw; }  /* "Vibe coder" ikki qatorga bo'linadi: VIBE / CODER */
  .hero-title .line:nth-child(2) { font-size: 10.4vw; }
  .hero-title .line:nth-child(3) { font-size: 7.5vw; }
  .contact-title { font-size: 10vw; }
  .stat-num { font-size: 2.8rem; }
  .hero-meta { display: none; }
  .hero-actions { width: 100%; justify-content: space-between; }
  .btn-round { width: 120px; height: 120px; }
  .rotating-badge { width: 100px; height: 100px; }
  .work-row { grid-template-columns: 1fr 30px; gap: 8px 12px; padding: 26px 4px; }
  .w-num { display: none; }
  .w-desc { grid-column: 1; grid-row: 2; font-size: 0.9rem; }
  .w-arrow { grid-row: 1 / span 2; grid-column: 2; }
  .service { padding: 28px; min-height: 260px; }
  .s-plus { top: 24px; right: 24px; width: 44px; height: 44px; }
  .j-line { left: 7px; }
  .j-item { grid-template-columns: 1fr; gap: 10px; padding-left: 36px; padding-bottom: 50px; }
  .j-item::before { left: 0; top: 4px; }
  .j-year br { display: none; }
  .f-row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .avatar { width: 84px; height: 84px; font-size: 1.8rem; top: 22px; right: 22px; border-radius: 24px; }
  .o2 { width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .word, .split .sw > span { opacity: 1 !important; transform: none !important; }
}
