/* ═══════════════════════════════════════════════════
   UCLEUS.CO — STYLESHEET
   style.css
   ═══════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg:           #06060a;
  --bg2:          #0d0d14;
  --bg3:          #12121c;
  --purple:       #9b3dff;
  --pink:         #e040fb;
  --cyan:         #00d4ff;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text:         #f0f0f8;
  --muted:        #7a7a9a;
  --grad:         linear-gradient(135deg, #9b3dff, #e040fb 50%, #00d4ff);
  --grad2:        linear-gradient(90deg, #9b3dff, #00d4ff);
  --nav-h:        72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ─── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* ─── GRID BACKGROUND ─── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(155, 61, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 61, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── TYPOGRAPHY UTILS ─── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--purple);
  flex-shrink: 0;
}

.section-label--center {
  justify-content: center;
}

.section-label--center::before {
  display: none;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 20px;
}

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--grad);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(155, 61, 255, 0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

/* ─── TAG CHIPS ─── */
.tag {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--glass-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 6, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: none;
}

.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--purple);
  color: var(--purple);
  padding: 9px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 24px rgba(155, 61, 255, 0.4);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 60px) 48px 80px;
  overflow: hidden;

  /* Hero background image */
  background-image: url('/assets/img/hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Dark overlay so text stays readable over the image */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(6, 6, 10, 0.92) 0%,
      rgba(6, 6, 10, 0.75) 45%,
      rgba(6, 6, 10, 0.25) 75%,
      rgba(6, 6, 10, 0.10) 100%
    ),
    linear-gradient(180deg,
      rgba(6, 6, 10, 0.4) 0%,
      transparent 30%,
      transparent 70%,
      rgba(6, 6, 10, 0.7) 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* Content must sit above the overlay */
.hero-content {
  position: relative;
  z-index: 3;
}

/* Ambient orbs — sit between image and overlay for extra depth */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite;
  z-index: 2;
}

.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(155, 61, 255, 0.18), transparent 70%);
  top: -100px; left: -60px;
}

.orb2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12), transparent 70%);
  bottom: -40px; right: 8%;
  animation-delay: -4.5s;
}

.orb3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.10), transparent 70%);
  top: 55%; right: 32%;
  animation-delay: -2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-38px) scale(1.04); }
}

.hero-content {
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.4s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(68px, 10vw, 136px);
  line-height: 0.93;
  letter-spacing: 2px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.12s ease both;
}

.line-plain { display: block; color: var(--text); }

.line-grad {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 0.8s 0.22s ease both;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.32s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════ */
.stats-bar {
  position: relative;
  z-index: 1;
  padding: 0 48px;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(20px);
}

.stat-item {
  padding: 30px 36px;
  border-right: 1px solid var(--glass-border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 46px;
  line-height: 1;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════ */
.section-services {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  margin-top: 64px;
}

.service-card {
  background: var(--bg2);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card:hover { background: var(--bg3); }

/* gradient top-border reveal on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 68px;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 20px;
  transition: opacity 0.3s;
}

.service-card:hover .service-num { opacity: 0.35; }

.service-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text);
}

.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════ */
.section-process {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}

.how-step {
  padding: 40px;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  position: relative;
}

/* arrow connector — shown between steps */
.step-connector {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--purple);
  background: var(--bg2);
  padding: 4px;
  line-height: 0;
}

/* hide connector from last step */
.how-step:last-child .step-connector {
  display: none;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text);
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   WORK / PORTFOLIO
   ═══════════════════════════════════════════════════ */
.section-work {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.portfolio-card {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.portfolio-card:hover {
  border-color: rgba(155, 61, 255, 0.5);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(155, 61, 255, 0.07), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .card-glow { opacity: 1; }

.portfolio-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.portfolio-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text);
}

.portfolio-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════ */
.section-cta {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(155, 61, 255, 0.07), rgba(0, 212, 255, 0.04));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.cta-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text,
.footer-location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.footer-location { color: var(--purple); }

/* ═══════════════════════════════════════════════════
   CHAT — FAB BUTTON
   ═══════════════════════════════════════════════════ */
#chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 400;
  width: 58px;
  height: 58px;
  background: var(--grad);
  border: none;
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(155, 61, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 46px rgba(155, 61, 255, 0.65);
}

.fab-icon { display: block; }
.fab-icon--hidden { display: none; }

/* ═══════════════════════════════════════════════════
   CHAT — WINDOW
   ═══════════════════════════════════════════════════ */
#chat-window {
  position: fixed;
  bottom: 102px;
  right: 28px;
  width: 375px;
  max-height: 560px;
  background: #0d0d18;
  border: 1px solid rgba(155, 61, 255, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  z-index: 400;

  /* Hidden state — using visibility + opacity instead of display:none
     so the transition animates correctly */
  display: flex;
  flex-direction: column;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* OPEN state — toggled by JS adding .is-open */
#chat-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Chat Header ─── */
.chat-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(155, 61, 255, 0.18), rgba(0, 212, 255, 0.08));
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--text);
  line-height: 1.2;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00e676;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: #00e676;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.4s ease infinite;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: none;
  padding: 4px;
  line-height: 0;
  transition: color 0.2s;
}

.chat-close-btn:hover { color: var(--text); }

/* ─── Chat Messages ─── */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0; /* fixes flex overflow bug */
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 61, 255, 0.3) transparent;
}

#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-track { background: transparent; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(155, 61, 255, 0.3); border-radius: 2px; }

.msg {
  max-width: 90%;
  padding: 11px 15px;
  font-size: 13.5px;
  line-height: 1.6;
  animation: fadeUp 0.3s ease both;
  word-break: break-word;
}

.msg.bot {
  background: rgba(155, 61, 255, 0.1);
  border: 1px solid rgba(155, 61, 255, 0.2);
  border-radius: 2px 12px 12px 12px;
  align-self: flex-start;
  color: var(--text);
}

.msg.user {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 12px 2px 12px 12px;
  align-self: flex-end;
  color: var(--text);
}

/* Typing indicator */
.msg.typing {
  background: rgba(155, 61, 255, 0.07);
  border: 1px solid rgba(155, 61, 255, 0.14);
  border-radius: 2px 12px 12px 12px;
  align-self: flex-start;
  padding: 14px 18px;
}

.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--purple);
  border-radius: 50%;
  animation: typingBounce 1.1s ease infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-7px); }
}

/* ─── Chat Input Area ─── */
.chat-input-area {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 10px 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  max-height: 96px;
  overflow-y: auto;
}

#chat-input:focus { border-color: var(--purple); }
#chat-input::placeholder { color: var(--muted); }

#chat-send {
  width: 40px;
  height: 40px;
  background: var(--grad);
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}

#chat-send:hover { opacity: 0.88; transform: scale(0.96); }
#chat-send:disabled { opacity: 0.35; pointer-events: none; }

.chat-footer-note {
  text-align: center;
  padding: 7px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }

  .hero {
    padding: calc(var(--nav-h) + 40px) 24px 60px;
    background-position: 65% center;
  }

  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(6,6,10,0.85) 0%,
        rgba(6,6,10,0.65) 50%,
        rgba(6,6,10,0.88) 100%
      );
  }

  .stats-bar { padding: 0 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  .section-services,
  .section-process,
  .section-work,
  .section-cta { padding: 80px 24px; }

  .services-grid { grid-template-columns: 1fr; }

  .how-grid { grid-template-columns: 1fr; gap: 2px; }
  .step-connector { display: none; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 24px; }

  #chat-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 92px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(54px, 14vw, 80px); }
  .section-title { font-size: clamp(40px, 10vw, 60px); }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

/* Hide cursor on touch devices */
@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  .btn-primary, .btn-ghost, .nav-cta, .nav-links a,
  .nav-cta, #chat-fab, #chat-send, .chat-close-btn { cursor: pointer; }
}
