/* =====================
   TOKENS
   ===================== */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eeea;
  --border: #e5e2dc;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #a8a29e;
  --accent: #6c3fe8;
  --accent-2: #9d6ef8;
  --accent-soft: #ede9fe;
  --accent-mid: rgba(108, 63, 232, 0.12);
  --green: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.07);
  --shadow-lg: 0 16px 48px rgba(28, 25, 23, 0.12);
  --font: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-2); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 63, 232, 0.3);
}
.btn--primary:hover {
  background: #5830d0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 63, 232, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-mid);
}
.btn--nav {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(108, 63, 232, 0.25);
}
.btn--nav:hover { background: #5830d0; }
.btn--full { width: 100%; justify-content: center; }

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.logo-accent { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 8px;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.18s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  background: rgba(246, 245, 242, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.nav__mobile a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile.open { display: flex; }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c4b5fd, #a78bfa);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #fbb6ce, #f472b6);
  top: 200px; right: -100px;
  animation-delay: -3s;
}
.blob--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #bae6fd, #60a5fa);
  bottom: 0; left: 30%;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.97); }
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,63,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,63,232,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
.hero__title { margin-bottom: 20px; }
.hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  gap: 32px;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat__num::after { content: '+'; }
.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Browser mockup */
.hero__mockup { perspective: 1200px; }
.mockup-browser {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s var(--ease);
  animation: mockup-float 6s ease-in-out infinite;
}
@keyframes mockup-float {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50%       { transform: rotateY(-8deg) rotateX(4deg) translateY(-10px); }
}
.mockup-bar {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.mockup-url {
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-3);
  flex: 1;
  text-align: center;
}
.mockup-screen { padding: 20px; }
.ms-nav {
  height: 12px;
  background: linear-gradient(90deg, var(--accent-soft) 30%, transparent);
  border-radius: 4px;
  margin-bottom: 16px;
}
.ms-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #c084fc 100%);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
}
.ms-line { height: 12px; border-radius: 4px; margin-bottom: 8px; }
.ms-line--big { background: rgba(255,255,255,0.9); width: 70%; }
.ms-line--med { background: rgba(255,255,255,0.5); width: 50%; }
.ms-btn {
  width: 80px; height: 24px;
  background: #fff;
  border-radius: 20px;
  margin-top: 12px;
}
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ms-card {
  height: 60px;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* =====================
   SECTIONS
   ===================== */
.section { padding: 100px 0; }
.section--alt { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 60px;
}
.section-head p { margin-top: 12px; font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* =====================
   SERVICES
   ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; margin-bottom: 16px; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.service-tags li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
}

/* =====================
   PROJECTS
   ===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s var(--ease);
  box-shadow: var(--shadow);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-color, var(--accent));
}
.project-card--wide { grid-column: span 2; flex-direction: row; }

.project-card--featured {
  grid-column: span 3;
  flex-direction: column;
}
.project-card--featured .project-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.project-card--featured .project-card__info h3 { font-size: 1.4rem; }
.project-card--featured .project-meta { width: 100%; }
.project-card--featured .project-card__info p { flex: 1; min-width: 260px; }
.project-card--featured .project-tech { align-self: flex-end; }

.project-card__photo {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d0a3e 100%);
  overflow: hidden;
}
.project-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  border: 2px dashed var(--border);
  border-radius: 8px;
}
.photo-placeholder svg { width: 32px; height: 32px; }
.photo-placeholder span { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em; }

.project-card__photo .photo-placeholder {
  position: absolute;
  inset: 16px;
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.2);
  min-height: unset;
}
.project-card__photo img,
.project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.project-card__info { padding: 28px; flex: 1; }
.project-card__info h3 { margin: 8px 0 10px; font-size: 1.2rem; }
.project-card__info p { font-size: 0.875rem; line-height: 1.65; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.project-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.project-tech span {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}
.project-card__visual {
  min-height: 200px;
  flex-shrink: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-left: 1px solid var(--border);
}
.project-card:not(.project-card--wide) .project-card__visual {
  border-left: none;
  border-top: 1px solid var(--border);
}

/* PV = project visual */
.pv-window {
  width: 100%;
  max-width: 240px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1px solid #e5e2dc;
}
.pv-bar {
  background: #f5f5f5;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e2dc;
}
.pv-dots { display: flex; gap: 5px; }
.pv-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}
.pv-dots span:nth-child(1) { background: #ff5f57; }
.pv-dots span:nth-child(2) { background: #ffbd2e; }
.pv-dots span:nth-child(3) { background: #28ca41; }
.pv-body { padding: 0; }
.pv-hero-strip {
  padding: 16px 12px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.pv-line { height: 8px; border-radius: 4px; }
.pv-line.lg { width: 70%; }
.pv-line.sm { width: 50%; }
.pv-pill {
  height: 20px; width: 60px;
  border-radius: 20px;
  margin-top: 4px;
}
.pv-cards-row {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
}
.pv-mini-card {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  border: 2px solid;
}
.pv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  align-items: start;
}
.pv-img-ph { border-radius: 6px; min-height: 60px; }
.pv-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 50px 50px;
  gap: 4px;
  padding: 8px;
}
.pv-gimg { border-radius: 4px; }
.pv-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.pv-list-item {
  height: 24px;
  background: #f5f5f5;
  border-radius: 4px;
  border-left: 3px solid #1565c0;
}
.pv-calendar-mock { padding: 8px 12px; }
.pcm-row { display: flex; gap: 4px; margin-bottom: 4px; }
.pcm-day {
  flex: 1;
  height: 20px;
  background: #f5f5f5;
  border-radius: 4px;
  transition: background 0.2s;
}
.pcm-day.active { background: #e65100; opacity: 0.7; }
.pv-corp-logo {
  width: 40px; height: 20px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin: 0 auto 8px;
}
.pv-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
}
.pv-big-btn { height: 44px; border-radius: 8px; }
.pv-cal-header {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px;
}
.pcg-cell {
  height: 18px;
  background: #f5f5f5;
  border-radius: 3px;
}
.pcg-event { position: relative; }

/* =====================
   PROCESS
   ===================== */
.process-steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
  flex-wrap: wrap;
}
.process-step {
  flex: 1;
  min-width: 180px;
  padding: 24px;
}
.process-arrow {
  align-self: center;
  font-size: 1.5rem;
  color: var(--accent);
  padding-top: 4px;
  flex-shrink: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-soft);
  -webkit-text-stroke: 2px var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h4 { margin-bottom: 8px; font-size: 1rem; }
.process-step p { font-size: 0.875rem; }

/* =====================
   CONTACT
   ===================== */
.section--contact { background: var(--surface); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-left h2 { margin: 12px 0 16px; }
.contact-left p { font-size: 1rem; }
.contact-info { margin-top: 28px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s;
}
.contact-link:hover { gap: 14px; }
.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.925rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-mid); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-note { text-align: center; font-size: 0.8rem; color: var(--text-3); margin-top: 12px; }

/* =====================
   FOOTER
   ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.85rem; color: var(--text-3); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 0.85rem; color: var(--text-3); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }

/* =====================
   REVEAL ANIMATIONS
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* =====================
   PHOTO COUNT BADGE
   ===================== */
.card-photo-count {
  position: absolute; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 50px; backdrop-filter: blur(6px);
  pointer-events: none; letter-spacing: 0.02em;
}
.card-photo-count--dark {
  background: rgba(0,0,0,0.5);
}

/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10, 8, 16, 0.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  backdrop-filter: blur(12px);
  animation: lbIn 0.2s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 10;
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.06);
}

.lb-main {
  display: flex; flex-direction: column; align-items: center;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 160px);
  padding: 0 16px;
}
.lb-title {
  color: rgba(255,255,255,0.85); font-size: 1rem; font-weight: 600;
  font-family: var(--font-display); margin-bottom: 16px; text-align: center;
}
.lb-img-wrap {
  display: flex; align-items: center; justify-content: center;
  max-height: calc(100vh - 220px); overflow: hidden;
}
#lbImg {
  max-width: 100%; max-height: calc(100vh - 220px);
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transition: opacity 0.18s ease;
  display: block;
}
#lbImg.fading { opacity: 0; }
.lb-counter {
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
  margin-top: 14px; letter-spacing: 0.06em;
}

/* thumbnail strip */
.lb-thumbs {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 10px 14px;
  background: rgba(0,0,0,0.45); border-radius: 14px;
  backdrop-filter: blur(8px); max-width: 90vw; overflow-x: auto;
}
.lb-thumbs::-webkit-scrollbar { height: 4px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.lb-thumb {
  width: 58px; height: 44px; border-radius: 7px; overflow: hidden;
  cursor: pointer; opacity: 0.45; transition: all 0.18s;
  border: 2px solid transparent; flex-shrink: 0;
}
.lb-thumb:hover { opacity: 0.75; }
.lb-thumb.active { opacity: 1; border-color: #fff; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__mockup { display: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--wide { grid-column: span 2; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 70px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: span 1; flex-direction: column; }
  .project-card--featured { grid-column: span 1; }
  .project-card__visual { border-left: none !important; border-top: 1px solid var(--border); }
  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); padding: 0; align-self: flex-start; margin-left: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
}
