:root {
  --bg: #0B0D1F;
  --bg-2: #12152e;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f4fb;
  --muted: #a3a8c6;
  --red: #FF5FA8;
  --orange: #FF8A65;
  --purple: #7B4DFF;
  --cyan: #2F6BFF;
  --yellow: #ffc86b;
  --glass: rgba(18, 21, 46, .65);
  --glass-strong: rgba(18, 21, 46, .96);
  --input: rgba(0, 0, 0, .25);
  --card-strong: rgba(255, 255, 255, .08);
  --shadow-text: rgba(11, 13, 31, .8);
  --grad: linear-gradient(90deg, #2F6BFF, #7B4DFF, #FF5FA8, #FF8A65, #7B4DFF, #2F6BFF);
  --radius: 22px;
  --pad: clamp(16px, 5vw, 80px);
  --display: "Syne", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; }
em { font-family: var(--serif); font-style: italic; font-size: 1.15em; }

/* animated rainbow gradient text */
.grad-text {
  background: var(--grad);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradMove 8s linear infinite;
}
@keyframes gradMove { to { background-position: 300% 0; } }

/* grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 28px;
  transition: clip-path 1s cubic-bezier(.77, 0, .18, 1);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader-text { font-size: clamp(2rem, 6vw, 4rem); text-align: center; line-height: 1.1; }
.serif { font-family: var(--serif); }
.loader .x { color: var(--red); }
.loader .tick { color: #22c55e; }
.loader-bar { width: min(320px, 70vw); height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--grad); background-size: 300% 100%; animation: gradMove 2s linear infinite; }
.loader-count { font-family: var(--display); color: var(--muted); }

/* ============ CURSOR ============ */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 998; border-radius: 50%; }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s;
  mix-blend-mode: difference;
}
.cursor.hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; border-color: #fff; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-grad { color: #fff; background: linear-gradient(135deg, var(--red), var(--purple)); box-shadow: 0 8px 30px -8px rgba(255, 45, 85, .7); }
.btn-grad:hover { box-shadow: 0 14px 40px -8px rgba(168, 85, 247, .8); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--purple); box-shadow: 0 0 30px -6px var(--purple); }
.btn-dark { background: #111; color: #fff; }
.btn-light { background: rgba(255, 255, 255, .2); color: #fff; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 18px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  transition: top .4s;
  max-width: calc(100% - 32px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; white-space: nowrap; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; object-position: top;
  background: linear-gradient(135deg, var(--cyan), var(--red));
}
.nav-links { display: flex; gap: 24px; font-size: .9rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-burger { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 45, 85, .25), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 120px var(--pad) 60px; text-align: center; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); backdrop-filter: blur(8px);
  font-size: .85rem; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 #22c55e; animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } }
.hero-title { font-size: clamp(2rem, 8.6vw, 10rem); font-weight: 800; line-height: .88; margin: 28px 0; }
/* Extra bottom room so descenders (g, y, p) aren't clipped by overflow / background-clip:text */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); padding-bottom: .2em; margin-bottom: -.2em; }
.line-1 > span { color: var(--text); }
.hero-title, .hero-tag { position: relative; z-index: 2; }
.hero-title .line-1 > span { text-shadow: 0 6px 30px var(--shadow-text); }
.hero-avatar {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: clamp(170px, 22vw, 320px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -16px; } }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; text-align: left; margin-top: 40px; }
.hero-sub { text-shadow: 0 2px 12px var(--shadow-text); color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 420px; }
.hero-clients { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span, .who > span {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c); color: #111; font-weight: 700; font-size: .85rem;
  border: 2px solid var(--bg);
}
.avatars span + span { margin-left: -10px; }
.stars { color: var(--yellow); letter-spacing: 2px; font-size: .85rem; }
.hero-meta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.exp-pill {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--red));
  font-family: var(--display); font-size: 1.5rem;
  box-shadow: 0 10px 30px -8px var(--purple);
}
.hero-clients.exp .stars { font-family: var(--display); font-weight: 700; letter-spacing: .04em; font-size: 1rem; }
.hero-clients small { color: var(--muted); }
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint span { width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos {
  border-block: 1px solid var(--line);
  padding: 22px 0;
  background: linear-gradient(90deg, rgba(255, 45, 85, .08), rgba(168, 85, 247, .08), rgba(34, 211, 238, .08));
  transform: rotate(-2deg) scale(1.04);
  margin: 40px 0;
}
.logos span { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 800; padding: 0 32px; white-space: nowrap; }
.logos i { font-style: normal; color: var(--red); font-size: 1.6rem; align-self: center; }
.logos span:nth-of-type(3n+2) { -webkit-text-stroke: 1px var(--text); color: transparent; }

/* ============ SECTIONS ============ */
.section { padding: clamp(80px, 12vw, 150px) var(--pad); position: relative; }
.section-head { margin-bottom: 56px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.eyebrow { color: var(--red); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.center { text-align: center; margin-top: 48px; }

/* glow blobs behind sections */
.work::before, .about::before, .faq::before {
  content: ""; position: absolute; z-index: -1;
  width: 500px; height: 500px; border-radius: 50%;
  filter: blur(120px); opacity: .35;
}
.work::before { background: var(--purple); top: 10%; right: -10%; }
.about::before { background: var(--red); bottom: 0; left: -15%; }
.faq::before { background: var(--cyan); top: 20%; right: -10%; opacity: .2; }

/* ============ WORK ============ */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; perspective: 1200px; }
.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px;
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .3s, box-shadow .3s;
}
.card:hover { border-color: rgba(255, 255, 255, .2); box-shadow: 0 30px 80px -20px var(--g1); }
.card-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(135deg, var(--g1), var(--g2));
  display: grid; place-items: center;
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-ph {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 3.8rem); line-height: .9;
  color: rgba(255, 255, 255, .9); text-align: center; padding: 0 12px; overflow-wrap: anywhere;
  transform: translateZ(40px);
  transition: transform .6s;
}
.card:hover .card-ph { transform: translateZ(40px) scale(1.08) rotate(-3deg); }
.card-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px 6px 6px; }
.card-info h3 { font-size: 1.3rem; }
.card-info p { color: var(--muted); font-size: .88rem; }
.card-tag {
  font-size: .75rem; white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--g1) 50%, transparent);
  background: color-mix(in srgb, var(--g1) 14%, transparent);
}

/* ============ SERVICES ============ */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tools-label { margin: 32px 0 14px; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: 12px; }
.tool {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  transition: box-shadow .3s, background .3s;
}
.tool:hover { background: color-mix(in srgb, var(--c) 24%, transparent); box-shadow: 0 12px 30px -8px var(--c); }

.stack { position: relative; height: 440px; perspective: 1200px; }
.stack-card {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  transition: transform .7s cubic-bezier(.2, .9, .2, 1), opacity .5s, filter .5s;
  cursor: pointer;
  transform-origin: top center;
}
.stack-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.stack-card p { color: rgba(255, 255, 255, .88); max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-size: .8rem; background: rgba(0, 0, 0, .15); }

/* ============ ABOUT ============ */
.about h2 { margin-bottom: 56px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: visible;
  background: linear-gradient(160deg, var(--red), #7a0a22 60%, var(--purple));
  display: grid; place-items: center;
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-photo img.is-avatar { object-fit: contain; object-position: bottom; z-index: 1; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); transform: translateZ(30px); }
.photo-ph { font-family: var(--display); font-size: 3rem; font-weight: 800; text-align: center; line-height: 1; opacity: .6; }
.about-photo::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: calc(var(--radius) + 3px);
  background: var(--grad); background-size: 300% 100%; animation: gradMove 6s linear infinite;
  filter: blur(18px); opacity: .7;
}
.about-badge {
  position: absolute; right: -20px; bottom: 30px;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line);
  font-family: var(--display); font-size: 2rem; font-weight: 800;
  transform: translateZ(60px);
}
.about-badge small { font-family: var(--body); font-size: .75rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.about-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.about-text b { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.stats > div { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-family: var(--display); font-size: 2rem; font-weight: 800; }
.stats small { display: block; font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); }

/* ============ EXPERIENCE ============ */
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.tl-item {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .2s ease-out, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.tl-item::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(var(--c), transparent);
}
.tl-item:hover { border-color: var(--c); box-shadow: 0 30px 70px -30px var(--c); }
.tl-dur { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: 16px; }
.tl-item h3 { font-size: 1.5rem; }
.tl-co { color: var(--text); font-weight: 600; margin: 4px 0 12px; opacity: .85; }
.tl-item p:not(.tl-co) { color: var(--muted); }
.tl-item .chips span { border-color: var(--line); background: rgba(255, 255, 255, .04); }

/* ============ TESTIMONIALS ============ */
.testi-marquee { margin-inline: calc(var(--pad) * -1); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.testi-marquee .marquee-track { gap: 22px; animation-duration: 40s; padding: 10px 0; }
.tcard {
  width: 340px; flex-shrink: 0;
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .4s, border-color .4s;
}
.tcard:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--red); }
.tcard p { color: var(--muted); flex: 1; }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-size: .9rem; }
.who small { color: var(--muted); font-size: .78rem; }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.faq h2 { margin-bottom: 32px; }
.faq-list { display: grid; gap: 12px; }
details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
details[open] { border-color: rgba(255, 45, 85, .5); background: rgba(255, 45, 85, .06); }
summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 14px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; transition: transform .3s; color: var(--red); }
details[open] summary::after { transform: rotate(45deg); }
summary i { font-style: normal; font-family: var(--display); color: var(--muted); font-size: .8rem; }
details p { padding: 0 22px 20px 52px; color: var(--muted); }

.cta-card {
  position: sticky; top: 100px;
  padding: 34px; border-radius: 28px;
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(145deg, var(--red), #c2185b 55%, var(--purple));
  box-shadow: 0 40px 80px -30px rgba(255, 45, 85, .7);
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}
.cta-avatar { width: 64px; height: 64px; border-radius: 18px; background: #111; object-fit: cover; object-position: top; margin-bottom: 24px; }
.cta-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 16px; transform: translateZ(40px); }
.cta-card p { color: rgba(255, 255, 255, .88); margin-bottom: 8px; }
.cta-contacts { display: grid; gap: 8px; margin-top: 18px; font-weight: 600; }
.cta-contacts a { display: inline-flex; width: fit-content; max-width: 100%; overflow-wrap: anywhere; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .18); transition: background .3s; }
.cta-contacts a:hover { background: rgba(0, 0, 0, .35); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; transform: translateZ(30px); }

/* ============ FOOTER ============ */
.footer { padding: 60px var(--pad) 130px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big { font-size: clamp(2.4rem, 11vw, 12rem); font-weight: 800; line-height: .9; white-space: nowrap; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.socials { display: flex; gap: 22px; flex-wrap: wrap; }
.socials a:hover { color: var(--red); }
.visitor-count {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content; margin: 36px auto 0; padding: 10px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
/* Inter, not Syne: Syne's heavy digits (esp. "1") look broken at this small size */
.visitor-count b { font-family: var(--body); font-size: 1.15rem; font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ============ DOCK ============ */
.dock {
  position: fixed; bottom: 20px; left: 50%; z-index: 100;
  transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  transition: transform .6s cubic-bezier(.2, .9, .2, 1);
}
.dock.show { transform: translate(-50%, 0); }
.dock-text { display: flex; flex-direction: column; line-height: 1.2; margin-right: 8px; }
.dock-text b { font-size: .9rem; }
.dock-text small { color: var(--muted); font-size: .72rem; }
.dock-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card-strong); transition: transform .3s; }
.dock-btn.grad { background: linear-gradient(135deg, var(--red), var(--purple)); }
.dock-btn:hover { transform: scale(1.12) rotate(-8deg); }

/* ============ DYNAMIC EXTRAS ============ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001;
  background: var(--grad); background-size: 200% 100%;
  transform-origin: 0 50%; transform: scaleX(0);
}
span.brand-logo { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .8rem; }
.dot.off { background: var(--purple); box-shadow: none; animation: none; }
.hero-sub .grad-text { font-family: var(--serif); font-style: italic; font-size: 1.2em; }
.nav { transition: top .4s, transform .5s cubic-bezier(.2, .9, .2, 1); }
.nav.hidden { transform: translate(-50%, -140%); }

.cursor-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: #000;
  opacity: 0; transition: opacity .2s;
}
.cursor.label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; border-color: #fff; }
.cursor.label .cursor-label { opacity: 1; }

/* word-by-word 3D heading reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.split .wi { display: inline-block; transform-origin: 50% 100%; will-change: transform; }

.card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.card-link { font-size: .82rem; color: var(--muted); white-space: nowrap; transition: color .3s; }
.card:hover .card-link { color: var(--text); }
.card-link.is-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: color .3s, text-decoration-color .3s; }
.card-link.is-link:hover { text-decoration-color: currentColor; }
.card-media img, .card-ph { will-change: transform; }

.timeline-line { height: 2px; background: var(--line); border-radius: 2px; margin-bottom: 28px; overflow: hidden; }
.timeline-line span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.faq-body { overflow: hidden; }

/* contact form */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  background: var(--purple); filter: blur(140px); opacity: .25; left: -10%; top: 10%;
}
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 36px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-list span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); }
.contact-list a:hover { color: var(--red); }
.contact-form {
  padding: 32px; border-radius: 28px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); backdrop-filter: blur(14px);
  display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px;
  background: var(--input); border: 1px solid var(--line); color: var(--text);
  font: inherit; resize: vertical; outline: none; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(123, 77, 255, .18); }
.field label {
  position: absolute; left: 17px; top: 16px; color: var(--muted); pointer-events: none;
  transition: transform .25s, font-size .25s, color .25s; transform-origin: 0 0;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px); font-size: .72rem; color: var(--red); }
.field.error input, .field.error textarea { border-color: #ff4d6d; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; color: #fff; font-family: inherit; }
.contact-form .btn[disabled] { opacity: .6; pointer-events: none; }
.form-status { min-height: 1.4em; font-size: .92rem; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #ff6b8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============ NAV TOOLS / THEME ============ */
.nav-tools { display: flex; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: 600 .8rem var(--body); cursor: pointer; transition: transform .3s, border-color .3s;
}
.icon-btn:hover { transform: rotate(-15deg) scale(1.08); border-color: var(--purple); }
.i-sun { display: none; }
[data-theme="light"] .i-sun { display: inline; }
[data-theme="light"] .i-moon { display: none; }
.nav-cv-mobile { display: none; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; pointer-events: auto; }
:lang(hi) body, :lang(hi) .hero-sub, :lang(hi) p { font-family: "Hind", var(--body); }

[data-theme="light"] {
  --bg: #f5f3ff;
  --bg-2: #ffffff;
  --card: rgba(11, 13, 31, .045);
  --card-strong: rgba(11, 13, 31, .08);
  --line: rgba(11, 13, 31, .12);
  --text: #12142b;
  --muted: #5b6085;
  --glass: rgba(255, 255, 255, .75);
  --glass-strong: rgba(255, 255, 255, .97);
  --input: rgba(255, 255, 255, .8);
  --shadow-text: transparent;
  --yellow: #d97706;
}
[data-theme="light"] body::after { opacity: .025; }
[data-theme="light"] .hero::before { background: radial-gradient(ellipse at 50% 120%, rgba(255, 95, 168, .18), transparent 60%); }
[data-theme="light"] .work::before, [data-theme="light"] .about::before, [data-theme="light"] .faq::before, [data-theme="light"] .contact::before { opacity: .18; }
[data-theme="light"] .card:hover, [data-theme="light"] .tcard:hover { box-shadow: 0 30px 60px -30px var(--g1, var(--purple)); }
body, .nav, .card, .tcard, .field input, .field textarea { transition: background-color .4s, color .4s, border-color .4s; }

/* ============ SCROLL-3D MODE ============ */
body.scroll-3d #heroCanvas { position: fixed; z-index: 0; pointer-events: none; transition: opacity .6s; }
body.scroll-3d.past-hero #heroCanvas { opacity: .32; }
body.scroll-3d main > *:not(.hero), body.scroll-3d .footer { position: relative; z-index: 1; }

/* ============ GITHUB ============ */
.gh-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.gh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.gh-stats > div { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-family: var(--display); font-size: 2rem; font-weight: 800; }
.gh-stats small { display: block; font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); }
.gh-stats .gh-langs { grid-column: 1 / -1; font-size: 1rem; }
.gh-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.gh-bar i { background: hsl(calc(250 + var(--h)) 85% 62%); }
.gh-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--body); font-weight: 500; font-size: .85rem; }
.gh-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: hsl(calc(250 + var(--h)) 85% 62%); }
.gh-legend small { color: var(--muted); }
.gh-repos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gh-repo { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease-out, border-color .3s; }
.gh-repo:hover { border-color: var(--purple); }
.gh-repo p { color: var(--muted); font-size: .88rem; flex: 1; }
.gh-repo small { color: var(--muted); }
.gh-chart { width: 100%; margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }

/* ============ BLOG ============ */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s ease-out, border-color .3s, box-shadow .3s; }
.post-card:hover { border-color: var(--purple); box-shadow: 0 30px 60px -30px var(--purple); }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--purple), var(--red)); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-cover span { font-family: var(--display); font-weight: 800; font-size: 4rem; color: rgba(255, 255, 255, .85); }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body small { color: var(--muted); }
.post-body h3 { font-size: 1.25rem; }
.post-body p { color: var(--muted); font-size: .92rem; }
.post-body .chips span, .detail .chips span, .detail .chips a { border-color: var(--line); background: var(--card); font-size: .75rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.blog-page { padding-top: 140px; min-height: 80vh; }
.empty-note { color: var(--muted); font-size: 1.1rem; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }

/* ============ DETAIL PAGES (project / post) ============ */
.detail { padding: 130px var(--pad) 80px; position: relative; }
.detail::before { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: 70vw; height: 420px; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(90deg, var(--g1, var(--cyan)), var(--g2, var(--purple))); filter: blur(140px); opacity: .28; }
.narrow { max-width: 780px; margin-inline: auto; }
.detail-hero { max-width: 980px; }
.detail-hero.narrow { max-width: 780px; }
.back-link { display: inline-block; color: var(--muted); margin-bottom: 22px; transition: color .3s, transform .3s; }
.back-link:hover { color: var(--text); transform: translateX(-4px); }
.detail-title { font-size: clamp(2.4rem, 7vw, 5.5rem); font-weight: 800; line-height: .98; margin: 6px 0 20px; }
.detail-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 720px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.detail-meta > div { padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 130px; }
.detail-meta .wide { flex: 1 1 320px; }
.detail-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.detail-meta dd { font-weight: 600; }
.detail-meta .chips { margin-top: 0; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-cover {
  margin: 50px 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9;
  display: grid; place-items: center; transition: transform .2s ease-out;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(135deg, var(--g1, var(--cyan)), var(--g2, var(--purple)));
  box-shadow: 0 50px 100px -40px var(--g1, var(--purple));
}
.detail-cover.narrow { margin-block: 40px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .card-ph { font-size: clamp(1.8rem, 6vw, 5.5rem); overflow-wrap: normal; }
.prose { max-width: 780px; margin: 0 auto; font-size: 1.08rem; line-height: 1.85; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--purple); padding: 6px 0 6px 20px; color: var(--muted); font-style: italic; }
.prose code { font-size: .9em; padding: 2px 7px; border-radius: 6px; background: var(--card-strong); }
.prose pre { padding: 20px; border-radius: 16px; background: #0a0c1c; border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; background: none; color: #e6e8ff; font-size: .9rem; line-height: 1.6; }
.prose img { border-radius: 16px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.gallery { margin-top: 80px; }
.gallery h2 { margin-bottom: 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-item { border: 0; padding: 0; cursor: zoom-in; border-radius: 18px; overflow: hidden; background: var(--card); aspect-ratio: 16 / 10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 1002; background: rgba(5, 6, 15, .92); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; cursor: pointer; }
.next-project {
  display: flex; flex-direction: column; gap: 6px; margin-top: 90px; padding: 44px; border-radius: 28px;
  background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; transition: transform .4s;
}
.next-project:hover { transform: translateY(-6px); }
.next-project small { text-transform: uppercase; letter-spacing: .15em; opacity: .8; }
.next-project b { font-family: var(--display); font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.share span { color: var(--muted); }
.share a, .share button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .3s; }
.share a:hover, .share button:hover { border-color: var(--purple); }
.more-posts { margin-top: 80px; }
.more-posts h2 { margin-bottom: 26px; }
.draft-banner { max-width: 780px; margin: 0 auto 24px; padding: 12px 18px; border-radius: 14px; background: rgba(255, 200, 107, .14); color: #ffc86b; border: 1px dashed rgba(255, 200, 107, .5); }

/* ============ REVIEW PAGE ============ */
.review-page { padding-top: 130px; min-height: 90vh; display: grid; place-items: center; }
.review-card { width: min(680px, 100%); }
.review-card .detail-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.review-form { margin-top: 28px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2.4rem; line-height: 1; color: var(--line); cursor: pointer; transition: transform .2s, color .2s; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--yellow); }
.star-input input:focus-visible + label { outline: 2px solid var(--purple); border-radius: 6px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .work-grid, .services, .about-grid, .faq, .timeline, .contact, .gh-grid, .post-grid, .post-grid.two { grid-template-columns: 1fr; }
  .gh-repos { grid-template-columns: 1fr; }
  .stack { height: 400px; }
  .about-photo { max-width: 420px; }
  .cta-card { position: relative; top: 0; }
}
@media (max-width: 1060px) {
  .nav { gap: 12px; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 20px;
    padding: 8px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-links .nav-cv-mobile { display: block; }
  .nav-cv { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 700px) {
  .nav-contact { display: none; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; padding-top: 100px; }
  .hero-tag { order: -2; font-size: .8rem; }
  .hide-sm, .scroll-hint { display: none; }
  .hero-avatar { position: relative; left: auto; top: auto; transform: none; order: -1; width: 190px; margin-top: 18px; }
  .hero-title { margin: 8px 0 0; }
  .hero-bottom { flex-direction: column; align-items: flex-start; width: 100%; margin-top: 28px; }
  .about-badge { right: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .card-info { flex-direction: column; align-items: flex-start; }
  .card-side { align-items: flex-start; }
  .stats > div { padding: 14px; font-size: 1.5rem; }
  .tcard { width: 280px; }
  .stack-card { padding: 22px; }
  .dock-text { display: none; }
  .dock { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
