/* =========================================================
   NEXORA — Web Development & Design
   ========================================================= */
:root {
  --bg: #05060d;
  --bg-2: #0a0c18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(139, 92, 246, 0.35);
  --text: #f4f5fb;
  --muted: #a1a6c0;
  --dim: #6b7090;
  --violet: #7c3aed;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22c3f5;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #5b6cff 45%, #22c3f5 100%);
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,.18), rgba(34,195,245,.12));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  --glow: 0 10px 40px -8px rgba(124, 58, 237, .6);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px));
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 0.9vw + 8px, 18px);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
main, footer { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a[data-target] { cursor: pointer; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.container { width: var(--container); margin-inline: auto; }

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 85%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45;
  animation: orb 22s ease-in-out infinite alternate;
}
.bg-orbs span:nth-child(1) { width: 46vmax; height: 46vmax; background: #5b21b6; top: -18vmax; left: -12vmax; }
.bg-orbs span:nth-child(2) { width: 38vmax; height: 38vmax; background: #1d4ed8; bottom: -16vmax; right: -10vmax; animation-delay: -8s; opacity: .35; }
.bg-orbs span:nth-child(3) { width: 24vmax; height: 24vmax; background: #0891b2; top: 40%; left: 55%; animation-delay: -14s; opacity: .18; }
@keyframes orb { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; z-index: -1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(124, 58, 237, .16), transparent 65%);
  transform: translate3d(-50%, -50%, 0); opacity: 0; transition: opacity .4s;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }

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

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 26px; }
.loader__inner img { width: 88px; height: auto; animation: pulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(124,58,237,.7)); }
.loader__bar { width: 160px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
@keyframes pulse { 50% { transform: scale(1.08) rotate(-4deg); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.h2 { font-size: clamp(2rem, 3.6vw + .5rem, 4rem); font-weight: 700; margin-bottom: .5em; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #b9a4ff;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
p { color: var(--muted); margin: 0 0 1em; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  will-change: transform; isolation: isolate; overflow: hidden;
}
.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 16px 50px -8px rgba(124, 58, 237, .85); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--border-2); background: var(--surface-2); }
.arrow { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); transition: all .3s var(--ease);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--border-2); background: var(--grad-soft); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: padding .4s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { padding: 10px 0; background: rgba(5, 6, 13, .72); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; letter-spacing: .22em; font-size: 1.05rem; }
.brand img { width: 38px; height: auto; filter: drop-shadow(0 4px 14px rgba(124,58,237,.55)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__links { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.nav__links a { position: relative; padding: 8px 16px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: #fff; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(139,92,246,.35); }
.nav__mobile-cta { display: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: #d7ccff; background: rgba(124,58,237,.12); border: 1px solid rgba(139,92,246,.3); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c3f5; box-shadow: 0 0 0 0 rgba(34,195,245,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,195,245,0); } 100% { box-shadow: 0 0 0 0 rgba(34,195,245,0); } }
.hero__title { font-size: clamp(2.5rem, 4.4vw + .6rem, 6rem); font-weight: 800; letter-spacing: -0.045em; margin-bottom: 28px; }
.hero__lead { font-size: clamp(1rem, .6vw + .8rem, 1.25rem); max-width: 560px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero__meta { list-style: none; padding: 26px 0 0; margin: 0; display: flex; gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--border); max-width: 560px; }
.hero__meta b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 2vw + .6rem, 2.4rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__meta span { font-size: .85rem; color: var(--dim); }
.hero__visual { position: relative; height: 560px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 18px; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }
.float-card .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); font-size: 1.1rem; color: #fff; }
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--dim); font-size: .78rem; }
/* ---------- CSS 3D logo object ---------- */
.scene3d { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1400px; }
.obj3d { position: relative; width: min(460px, 86%); aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; }
.ring3d { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d;
  background: conic-gradient(from 200deg, #8b5cf6, #4f6bff, #22c3f5, #4f6bff, #8b5cf6);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, .9)); }
.ring3d--a { animation: ringA 14s linear infinite; }
.ring3d--b { inset: -9%; opacity: .45; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: ringB 18s linear infinite; }
.ring3d--c { inset: -18%; opacity: .3; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: ringC 24s linear infinite; }
@keyframes ringA { to { transform: rotateZ(360deg); } }
@keyframes ringB { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ringC { from { transform: rotateY(68deg) rotateZ(0); } to { transform: rotateY(68deg) rotateZ(-360deg); } }
.orbit { position: absolute; inset: -9%; transform-style: preserve-3d; }
.orbit i { position: absolute; top: 50%; left: 100%; width: 16px; height: 16px; margin: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #a78bfa 35%, #6d28d9 75%); box-shadow: 0 0 22px 4px rgba(139, 92, 246, .8); }
.orbit--1 { animation: orb1 9s linear infinite; }
.orbit--2 { inset: -18%; animation: orb2 13s linear infinite; }
.orbit--2 i { width: 11px; height: 11px; margin: -5.5px; background: radial-gradient(circle at 35% 35%, #fff, #67e8f9 35%, #0284c7 75%); box-shadow: 0 0 20px 4px rgba(34, 195, 245, .8); }
.orbit--3 { inset: 4%; animation: orb3 7s linear infinite; }
.orbit--3 i { width: 9px; height: 9px; margin: -4.5px; background: radial-gradient(circle at 35% 35%, #fff, #818cf8 40%, #3730a3 80%); }
@keyframes orb1 { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orb2 { from { transform: rotateY(68deg) rotateZ(0); } to { transform: rotateY(68deg) rotateZ(-360deg); } }
@keyframes orb3 { from { transform: rotateX(-60deg) rotateY(20deg) rotateZ(0); } to { transform: rotateX(-60deg) rotateY(20deg) rotateZ(360deg); } }
.n3d { position: absolute; left: 50%; top: 50%; width: 50%; aspect-ratio: 355 / 326; transform: translate(-50%, -50%); transform-style: preserve-3d; }
.n3d img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; pointer-events: none; user-select: none; }
.n3d-glow { position: absolute; left: 50%; top: 50%; width: 70%; height: 70%; transform: translate(-50%, -50%) translateZ(-60px); border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), rgba(34, 195, 245, .15) 45%, transparent 70%); filter: blur(30px); }
.fc-1 { top: 8%; right: 2%; }
.fc-2 { bottom: 18%; left: -4%; animation-delay: -2.5s; }
.fc-3 { bottom: 2%; right: 10%; animation-delay: -5s; }
@keyframes float { 50% { transform: translate3d(0, -16px, 0); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.25); z-index: 2; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--border); background: rgba(255,255,255,.015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: clamp(1.1rem, 1.4vw + .5rem, 1.8rem); font-weight: 600; color: rgba(255,255,255,.35); display: inline-flex; align-items: center; gap: 64px; }
.marquee__track span::after { content: "✦"; font-size: .7em; color: var(--purple); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section__lead { max-width: 360px; margin: 0; font-size: .95rem; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__visual { perspective: 1200px; }
.about__card { position: relative; aspect-ratio: 1; padding: 8%; display: grid; place-items: center; transform-style: preserve-3d; box-shadow: var(--shadow); overflow: visible; }
.about__card img { width: 100%; height: auto; border-radius: 50%; transform: translateZ(60px); filter: drop-shadow(0 30px 60px rgba(59,130,246,.35)); }
.about__ring { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg, #8b5cf6, #3b82f6, #22c3f5, #8b5cf6); filter: blur(40px); opacity: .35; animation: spin 14s linear infinite; transform: translateZ(0); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__badge { position: absolute; bottom: 6%; right: -4%; padding: 16px 22px; display: grid; transform: translateZ(100px); box-shadow: var(--shadow); }
.about__badge b { font-family: var(--display); font-size: 2rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__badge span { font-size: .82rem; color: var(--muted); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.value { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); transition: border-color .3s, transform .3s var(--ease); }
.value:hover { border-color: var(--border-2); transform: translateY(-3px); }
.value__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-soft); color: #c4b5fd; box-shadow: inset 0 0 0 1px rgba(139,92,246,.3); }
.value b { display: block; font-size: .95rem; }
.value small { color: var(--dim); font-size: .82rem; line-height: 1.4; display: block; }

/* ---------- Tilt ---------- */
.tilt { transform-style: preserve-3d; transition: transform .6s var(--ease), border-color .3s, box-shadow .4s; will-change: transform; }
.tilt .shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,.18), transparent 40%); }
.tilt:hover .shine { opacity: 1; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.service { position: relative; padding: 32px 28px; overflow: hidden; }
.service::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.service:hover::before { opacity: 1; }
.service:hover { box-shadow: 0 30px 70px -30px rgba(124,58,237,.7); }
.service__ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 26px; transform: translateZ(40px); box-shadow: var(--glow); }
.service__ic svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.3rem; margin-bottom: 12px; transform: translateZ(30px); }
.service p { font-size: .93rem; transform: translateZ(20px); }
.service ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .88rem; color: var(--muted); }
.service li::before { content: "→"; margin-right: 10px; color: var(--purple); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; counter-reset: step; }
.step { padding: 28px; position: relative; }
.step__n { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; display: block; margin-bottom: 14px;
  -webkit-text-stroke: 1px rgba(139,92,246,.6); color: transparent; }
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .9rem; margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -20px; width: 20px; height: 1px; background: var(--grad); }

/* ---------- Projects ---------- */
.filters { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.filter { white-space: nowrap; padding: 9px 18px; border-radius: 999px; font-size: .9rem; color: var(--muted); transition: all .3s var(--ease); }
.filter:hover { color: #fff; }
.filter.active { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.projects__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 36px); perspective: 1400px; }
.project { grid-column: span 6; position: relative; overflow: hidden; cursor: pointer; padding: 0; text-align: left; transition: transform .6s var(--ease), opacity .45s, border-color .3s; }
.project.hide { display: none; }
.project:hover { border-color: var(--border-2); }
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.project__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; }
.project__body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.project__body small { color: var(--dim); }
.project__go { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); transition: all .4s var(--ease); }
.project:hover .project__go { background: var(--grad); border-color: transparent; transform: rotate(-45deg); }

/* mockup rendered with CSS */
.mock { position: absolute; inset: 0; background: var(--m-bg); transition: transform .9s var(--ease); }
.project:hover .mock { transform: scale(1.05); }
.mock::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, var(--m-a), transparent 55%), radial-gradient(circle at 10% 90%, var(--m-b), transparent 50%); opacity: .8; }
.mock__win { position: absolute; left: 7%; right: 7%; top: 12%; bottom: -8%; border-radius: 14px 14px 0 0; background: rgba(8,10,20,.78); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); overflow: hidden; backdrop-filter: blur(8px); }
.mock__bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mock__bar i:first-child { background: #ff5f57; } .mock__bar i:nth-child(2) { background: #febc2e; } .mock__bar i:nth-child(3) { background: #28c840; }
.mock__content { padding: 5% 6%; display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; height: calc(100% - 26px); }
.mock__h { height: 12%; width: 85%; border-radius: 6px; background: linear-gradient(90deg, #fff, rgba(255,255,255,.6)); margin-bottom: 4%; }
.mock__h.s { width: 60%; }
.mock__l { height: 4%; border-radius: 4px; background: rgba(255,255,255,.18); margin-bottom: 3%; }
.mock__l.s { width: 70%; }
.mock__btn { width: 38%; height: 10%; border-radius: 99px; background: linear-gradient(90deg, var(--m-a), var(--m-b)); margin-top: 6%; }
.mock__img { border-radius: 12px; background: linear-gradient(140deg, var(--m-a), var(--m-b)); position: relative; overflow: hidden; }
.mock__img::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -15%; bottom: -15%; background: rgba(255,255,255,.18); }
.mock__phone { position: absolute; width: 22%; aspect-ratio: 9/19; right: 9%; bottom: -6%; border-radius: 22px; background: #0b0d18; border: 3px solid rgba(255,255,255,.15); box-shadow: 0 30px 60px -10px rgba(0,0,0,.8); padding: 10% 3% 3%; overflow: hidden; }
.mock__phone::before { content: ""; display: block; height: 35%; border-radius: 12px; background: linear-gradient(140deg, var(--m-a), var(--m-b)); margin-bottom: 8%; }
.mock__phone::after { content: ""; display: block; height: 6%; width: 80%; border-radius: 4px; background: rgba(255,255,255,.3); box-shadow: 0 14px 0 rgba(255,255,255,.15), 0 28px 0 rgba(255,255,255,.15); }

/* featured project */
.project--featured { grid-column: span 12; display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; }
.project--featured .project__media { aspect-ratio: auto; min-height: 380px; height: 100%; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
.project--featured .project__body { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: clamp(24px, 3vw, 44px); gap: 24px; }
.project--featured h3 { font-size: clamp(1.5rem, 1.4vw + .9rem, 2.2rem); margin-bottom: 14px; }
.project--featured p { font-size: .95rem; }
.project--featured .eyebrow { margin-bottom: 14px; }
.project--featured:hover { box-shadow: 0 30px 80px -30px rgba(212, 169, 74, .45); }
.project--reverse { grid-template-columns: 1fr 1.35fr; }
.project--reverse .project__media { order: 2; border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; }
a.project { color: inherit; display: grid; }
.project__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mock--img { background: #07070b; }
.mock--img::before { display: none; }
.mock--img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project--featured .mock--img img { object-fit: contain; object-position: center; }
.live-badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(5, 6, 13, .7); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: ping 2s infinite; }
.modal__iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; transform: scale(.5); transform-origin: 0 0; background: transparent; opacity: 0; transition: opacity .6s; z-index: 1; }
.modal__iframe.ready { opacity: 1; }
.modal__visit { margin-left: auto; padding: .6em 1.2em; font-size: .88rem; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: var(--grad-soft); border: 1px solid rgba(139,92,246,.3); color: #d7ccff; }

/* ---------- Reviews ---------- */
.rating { display: flex; align-items: center; gap: 16px; padding: 16px 24px; }
.rating > b { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.rating small { color: var(--dim); font-size: .82rem; }
.stars { color: #fbbf24; letter-spacing: 3px; font-size: 1rem; }
.slider { overflow: hidden; margin: 0 calc(-1 * clamp(8px, 1vw, 12px)); padding: 20px 0; touch-action: pan-y; cursor: grab; }
.slider:active { cursor: grabbing; }
.slider__track { display: flex; transition: transform .8s var(--ease); will-change: transform; }
.review { flex: 0 0 calc(100% / 3); padding: 0 clamp(8px, 1vw, 12px); user-select: none; }
.review__card { height: 100%; padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: transform .5s var(--ease), border-color .3s, opacity .5s; position: relative; }
.review__card::before { content: "“"; position: absolute; top: 6px; right: 26px; font-family: Georgia, serif; font-size: 6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5; }
.review__card:hover { border-color: var(--border-2); transform: translateY(-6px); }
.review__card p { color: #d4d7ea; font-size: 1rem; margin: 0; flex: 1; }
.review__who { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--grad); color: #fff; flex: none; }
.review__who b { display: block; font-size: .95rem; }
.review__who small { color: var(--dim); font-size: .82rem; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.2); transition: all .4s var(--ease); padding: 0; }
.dots button.active { width: 28px; background: var(--grad); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 80px); display: grid; justify-items: center; }
.cta > *:not(canvas) { position: relative; z-index: 1; }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,6,13,.2), rgba(5,6,13,.75)); z-index: 0; pointer-events: none; }
.cta .h2 { max-width: 820px; }
.cta p { margin-bottom: 32px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); transition: border-color .3s, transform .3s var(--ease); }
.contact__list li:hover { border-color: var(--border-2); transform: translateX(4px); }
.ci { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 1.1rem; flex: none; }
.contact__list small { display: block; color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.contact__list a:hover { color: #c4b5fd; }
.socials { display: flex; gap: 12px; }
.form { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1a6c0' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #0a0c18; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(139,92,246,.7); background: rgba(139,92,246,.06); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }
.field.invalid input, .field.invalid textarea { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: .88rem; color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.chip input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn:disabled { cursor: wait; }
.nf { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; }
.nf img { width: 110px; height: auto; margin-bottom: 12px; filter: drop-shadow(0 10px 40px rgba(124,58,237,.6)); }
.form__note { font-size: .8rem; color: var(--dim); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: .9rem; transition: color .3s; }
.footer__links a:hover { color: #fff; }
.footer small { color: var(--dim); }

/* ---------- Misc UI ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; background: rgba(10,12,24,.8); backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; padding: 14px 22px; transform: translate(-50%, 140%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility .4s; font-size: .92rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .4s, visibility .4s; }
.modal.open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,4,10,.75); backdrop-filter: blur(8px); }
.modal__box { position: relative; width: min(880px, 100%); max-height: 92svh; overflow: auto; background: rgba(12,14,28,.92); transform: translateY(30px) scale(.96); transition: transform .5s var(--ease); }
.modal.open .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(5,6,13,.7); }
.modal__media { position: relative; aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.modal__body { padding: clamp(22px, 3vw, 36px); }
.modal__body h3 { font-size: clamp(1.5rem, 2vw + .8rem, 2.2rem); margin-bottom: 12px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 4K / large screens ---------- */
@media (min-width: 1920px) {
  :root { --container: min(1560px, 100% - 160px); }
  body { font-size: 19px; }
}
@media (min-width: 2560px) {
  :root { --container: min(2080px, 100% - 240px); }
  body { font-size: 24px; }
  .round-btn { width: 60px; height: 60px; }
  .brand img { width: 50px; }
  .hero__visual { height: 760px; }
  .bg-grid { background-size: 96px 96px; }
}
@media (min-width: 3400px) {
  :root { --container: min(2800px, 100% - 320px); }
  body { font-size: 30px; }
  .hero__visual { height: 980px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .services__grid, .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .review { flex-basis: 50%; }
  .project--featured { grid-template-columns: 1fr; }
  .project--reverse .project__media { order: 0; }
  .project--featured .project__media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .project--featured .project__media { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
}
@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    border-radius: 0; border: 0; background: rgba(5,6,13,.96); backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__links a { font-family: var(--display); font-size: 1.7rem; padding: 10px 24px; opacity: 0; transform: translateY(20px); transition: all .5s var(--ease); }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__links.open a { opacity: 1; transform: none; }
  .nav__links.open a:nth-child(2) { transition-delay: .05s; } .nav__links.open a:nth-child(3) { transition-delay: .1s; }
  .nav__links.open a:nth-child(4) { transition-delay: .15s; } .nav__links.open a:nth-child(5) { transition-delay: .2s; }
  .nav__links.open a:nth-child(6) { transition-delay: .25s; } .nav__links.open a:nth-child(7) { transition-delay: .3s; }
  .nav__links a.active { background: none; box-shadow: none; color: #c4b5fd; }
  .nav__mobile-cta { display: inline-flex; margin-top: 20px; font-size: 1rem !important; font-family: var(--font) !important; color: #fff !important; }
  .nav__cta { display: none; }
  .burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: min(420px, 90vw); order: -1; margin-top: -10px; }
  .float-card { display: none; }
  .hero { padding-top: 96px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 680px) {
  .services__grid, .process { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .values { grid-template-columns: 1fr; }
  .project { grid-column: span 12; }
  .review { flex-basis: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { gap: 20px; justify-content: space-between; }
  .hero__meta span { font-size: .75rem; }
  .about__badge { right: 0; }
  .section__head--row { align-items: flex-start; }
  .filters { width: 100%; justify-content: space-between; }
  .filter { padding: 9px 8px; flex: 1; font-size: .85rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .scroll-hint { display: none; }
  .hero__visual { height: min(300px, 78vw); }
  .hero__title { margin-bottom: 20px; }
  .hero__lead { margin-bottom: 28px; }
  .hero__actions { margin-bottom: 36px; }
  .glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .bg-orbs span { animation: none; }
  .project--featured .project__body { padding: 22px 20px 24px; gap: 18px; }
  .project--featured p { font-size: .92rem; }
  .project__actions, .project__actions .btn { width: 100%; }
  .live-badge { top: 10px; left: 10px; }
  .modal { padding: 10px; align-items: end; }
  .modal__box { max-height: 94svh; }
  .section__lead { max-width: none; }
  .bg-orbs span { filter: blur(60px); }
}

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