/* ═══════════════════════════════════════════════════════════════
   STOPHER MALIK — Premium Rebuild
   Design System: Dark Luxury · Neon Precision · Space Depth
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
img { max-width: 100%; height: auto; display: block; }
a, button { -webkit-tap-highlight-color: transparent; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ── DESIGN TOKENS ── */
:root {
  /* Palette */
  --ink:        #03070f;
  --ink2:       #050d1a;
  --ink3:       #071525;
  --navy:       #0b2240;
  --navy2:      #0d2e58;
  --cyan:       #00e5ff;
  --cyan-dim:   #00b8cc;
  --cyan-glow:  rgba(0, 229, 255, 0.18);
  --cyan-soft:  rgba(0, 229, 255, 0.07);
  --white:      #f0f7ff;
  --white-dim:  #8ba8c4;
  --white-mute: #3d5a73;
  --success:    #00e5a0;
  --error:      #ff4d6d;

  /* Glass */
  --glass-bg:     rgba(11, 34, 64, 0.45);
  --glass-border: rgba(0, 229, 255, 0.12);
  --glass-hover:  rgba(11, 34, 64, 0.7);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', 'Space Mono', monospace;

  /* Spacing scale */
  --s1: 0.5rem;   --s2: 1rem;    --s3: 1.5rem;
  --s4: 2rem;     --s5: 3rem;    --s6: 5rem;
  --s7: 7rem;     --s8: 10rem;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 1, 1);
  --t1: 0.15s;  --t2: 0.3s;  --t3: 0.55s;

  /* Borders */
  --b1: 1px solid rgba(0,229,255,0.1);
  --b2: 1px solid rgba(0,229,255,0.22);
  --radius: 12px;
  --radius-sm: 6px;
}

/* ── BASE ── */
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

/* ── CUSTOM CURSOR — dot only, zero-lag ── */
/* The ring was removed: its JS lerp loop competed with 7 other rAF loops causing lag */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.12s ease, height 0.12s ease, opacity 0.2s ease;
  mix-blend-mode: screen;
  will-change: left, top;
}
#cursor-ring {
  /* Ring hidden — removed for performance. dot-only cursor. */
  display: none;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 20px; height: 20px; opacity: 0.8; }

/* ── CANVAS ── */
#starfield {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
#noise-overlay {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none; z-index: 1;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.4rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--t2) var(--ease-out);
}
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(3,7,15,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all var(--t2);
  z-index: -1;
}
.nav.scrolled::before {
  background: rgba(3,7,15,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--glass-border);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  /* filter keeps the logo sharp and slightly brightened on dark bg */
  filter: brightness(1.08) drop-shadow(0 0 8px rgba(0,180,255,0.25));
  transition: filter var(--t2) var(--ease-out), transform var(--t2) var(--ease-out);
}
.nav-logo:hover .nav-logo-img {
  filter: brightness(1.18) drop-shadow(0 0 14px rgba(0,220,255,0.45));
  transform: scale(1.03);
}
/* Remove the old underline pseudo-element - image logos don't need it */
.nav-logo::after { display: none; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  position: relative;
  transition: color var(--t1);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width var(--t2) var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
  position: relative;
  padding: 0.55rem 1.5rem;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: none;
  overflow: hidden;
  transition: color var(--t2);
}
.nav-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform var(--t2) var(--ease-out);
  z-index: -1;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn:hover::before { transform: translateX(0); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--white); transition: all var(--t2);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: min(320px, 85vw);
  background: rgba(3,7,15,0.97);
  backdrop-filter: blur(24px);
  border-left: var(--b1);
  z-index: 490;
  padding: 5rem 2.5rem 3rem;
  display: flex; flex-direction: column; gap: 0;
  transition: right var(--t3) var(--ease-out);
}
.nav-drawer.open { right: 0; }
.nav-drawer a {
  display: block;
  padding: 1rem 0;
  border-bottom: var(--b1);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--t1), padding-left var(--t2);
}
.nav-drawer a:hover { color: var(--cyan); padding-left: 0.8rem; }
.nav-drawer .nav-btn { margin-top: 2rem; align-self: flex-start; }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 480; opacity: 0; pointer-events: none;
  transition: opacity var(--t2);
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 10;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 10rem 3rem 5rem;
  text-align: center;
  overflow: hidden;
}

/* Radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(0,229,255,0.09) 0%,
    rgba(0,229,255,0.03) 45%,
    transparent 70%);
  pointer-events: none;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%,-55%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-55%) scale(1.08); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 1rem;
  background: var(--cyan-soft);
  border: var(--b1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease-out) forwards;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.2; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s var(--ease-out) forwards;
}
#name-sparks {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none; z-index: 2;
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s var(--ease-out) forwards;
}

.hero-sub {
  max-width: 560px;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.75s var(--ease-out) forwards;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease-out) forwards;
}

/* Trust bar */
.hero-trust {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
  justify-content: center;
  padding-top: 2.5rem;
  border-top: var(--b1);
  opacity: 0;
  animation: fadeUp 0.9s 1.05s var(--ease-out) forwards;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.trust-item .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cyan-soft);
  border: var(--b1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTION PRIMITIVES ── */
.section {
  position: relative; z-index: 10;
  padding: 7rem 3rem;
}
.section-inner { max-width: 1200px; margin: 0 auto; }

.label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}
.label::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan));
}
.label::after {
  content: '';
  display: block; width: 28px; height: 1px;
  background: linear-gradient(to left, transparent, var(--cyan));
}

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.display-heading .accent { color: var(--cyan); }
.display-heading .outline {
  -webkit-text-stroke: 1px rgba(0,229,255,0.4);
  color: transparent;
}

.section-intro {
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
  max-width: 500px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: none;
  transition: all var(--t2) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--cyan);
  color: var(--ink);
  border: none;
  font-weight: 700;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  opacity: 0;
  transition: opacity var(--t2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,255,0.4); }
.btn-primary:hover::before { opacity: 0.15; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: var(--b1);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-full { width: 100%; justify-content: center; }

/* ── MARQUEE ── */
.marquee-section {
  position: relative; z-index: 10;
  border-top: var(--b1); border-bottom: var(--b1);
  background: rgba(5,13,26,0.5);
  padding: 1.1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
  padding: 0 2.2rem;
  white-space: nowrap;
  transition: color var(--t1);
}
.marquee-item:hover { color: var(--cyan); }
.marquee-sep { color: var(--cyan); opacity: 0.4; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-code-card {
  background: var(--glass-bg);
  border: var(--b1);
  border-radius: var(--radius);
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.about-code-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.04) 0%, transparent 60%);
}
.about-code-card .dot-row {
  display: flex; gap: 6px; margin-bottom: 1.2rem;
}
.about-code-card .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }
.cm  { color: #4a7c8a; }
.kw  { color: #81d4fa; }
.fn  { color: var(--cyan); }
.str { color: #a5d6a7; }
.num { color: #ffcc80; }
.prop { color: #b39ddb; }

.about-float-badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  padding: 1rem 1.4rem;
  background: var(--ink);
  border: var(--b2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  text-align: center;
  z-index: 2;
}
.badge-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cyan);
  line-height: 1;
}
.badge-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.2rem;
}

.about-content { }
.about-name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.about-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.8rem;
}
.about-bio {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--b1);
  border: var(--b1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 2rem 0;
}
.about-stat {
  background: var(--ink2);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: background var(--t1);
}
.about-stat:hover { background: var(--navy); }
.stat-n {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cyan);
  line-height: 1;
}
.stat-l {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-top: 0.25rem;
}
.pills {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 1.5rem 0 2rem;
}
.pill {
  padding: 0.3rem 0.85rem;
  background: var(--cyan-soft);
  border: var(--b1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  transition: background var(--t1), border-color var(--t1);
}
.pill:hover { background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.3); }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.svc-card {
  background: var(--glass-bg);
  border: var(--b1);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--t2) var(--ease-out), border-color var(--t2), box-shadow var(--t2);
  cursor: none;
  group: '';
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t2);
}
.svc-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform var(--t3) var(--ease-out);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 20px 60px rgba(0,229,255,0.1), 0 0 0 1px rgba(0,229,255,0.05);
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 48px; height: 48px;
  background: var(--cyan-soft);
  border: var(--b1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  transition: background var(--t2), transform var(--t2);
}
.svc-card:hover .svc-icon {
  background: rgba(0,229,255,0.12);
  transform: scale(1.1) rotate(-3deg);
}
.svc-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--white-mute);
  margin-bottom: 0.6rem;
}
.svc-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.svc-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.svc-expand-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0;
  transition: gap var(--t1);
}
.svc-expand-btn:hover { gap: 0.7rem; }
.svc-expand-btn svg { width: 14px; height: 14px; transition: transform var(--t2); }
.svc-expand-btn.open svg { transform: rotate(45deg); }
.svc-panel {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t3) var(--ease-out), padding var(--t2);
}
.svc-panel.open { max-height: 300px; }
.svc-panel-inner {
  padding-top: 1.2rem;
  border-top: var(--b1);
  margin-top: 1rem;
}
.svc-panel-inner ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.svc-panel-inner li {
  font-size: 0.83rem;
  color: var(--white-dim);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.svc-panel-inner li::before {
  content: '→';
  color: var(--cyan); font-size: 0.7rem;
  flex-shrink: 0; margin-top: 0.05rem;
}

/* ── PORTFOLIO ── */
.portfolio-section { background: var(--ink2); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.proj-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--ink3);
  border: var(--b1);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--t2) var(--ease-out), border-color var(--t2), box-shadow var(--t2);
  cursor: none;
}
.proj-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,255,0.06);
}
.proj-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
  position: relative;
}
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
  filter: saturate(0.85);
}
.proj-card:hover .proj-thumb img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.proj-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(3,7,15,0.8));
}
.proj-tag {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0,229,255,0.15);
  border: var(--b1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  backdrop-filter: blur(8px);
}
.proj-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,229,255,0.06);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--t2);
}
.proj-card:hover .proj-hover-overlay { opacity: 1; }
.proj-hover-overlay span {
  padding: 0.6rem 1.4rem;
  background: var(--cyan);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.proj-body { padding: 1.6rem; }
.proj-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.4rem;
  transition: color var(--t1);
}
.proj-card:hover .proj-title { color: var(--cyan); }
.proj-desc {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.proj-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.proj-stack {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.proj-stack span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--white-mute);
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}
.proj-arrow {
  width: 28px; height: 28px;
  border: var(--b1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white-mute);
  transition: all var(--t1);
}
.proj-card:hover .proj-arrow {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  transform: rotate(45deg);
}

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.testi-card {
  background: var(--glass-bg);
  border: var(--b1);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--t2) var(--ease-out), border-color var(--t2);
}
.testi-card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.25); }
.testi-card::before {
  content: '"';
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(0,229,255,0.06);
  line-height: 1;
}
.testi-stars { color: var(--cyan); font-size: 0.75rem; letter-spacing: 0.15em; margin-bottom: 1.2rem; }
.testi-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 1.6rem;
}
.testi-author { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--white); }
.testi-role { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--white-mute); margin-top: 0.2rem; }

/* ── PRICING ── */
.pricing-section { background: var(--ink2); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  align-items: start;
}
.price-card {
  background: var(--glass-bg);
  border: var(--b1);
  border-radius: var(--radius);
  padding: 2.5rem 2.2rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--t2) var(--ease-out), border-color var(--t2), box-shadow var(--t2);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.price-card.featured {
  border-color: var(--cyan);
  background: rgba(11,34,64,0.7);
  box-shadow: 0 0 0 1px rgba(0,229,255,0.08), 0 20px 60px rgba(0,229,255,0.12);
  transform: scale(1.02);
}
.price-card.featured:hover { transform: scale(1.02) translateY(-6px); }
.price-badge {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1.4rem;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.price-glow {
  position: absolute; top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 100px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.15), transparent 70%);
  pointer-events: none;
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.price-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.price-amount .currency { font-size: 1.4rem; vertical-align: top; margin-top: 0.4rem; display: inline-block; }
.price-range-note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--white-mute);
  margin-bottom: 2rem;
}
.price-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.2), transparent);
  margin-bottom: 1.8rem;
}
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.87rem;
  font-weight: 300;
  color: var(--white-dim);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.4;
}
.price-features li:last-child { border-bottom: none; }
.feature-icon { color: var(--cyan); font-size: 0.72rem; margin-top: 0.1rem; flex-shrink: 0; }
.price-note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--white-mute);
  margin-bottom: 1.6rem;
  line-height: 1.5;
}
.price-note .hl { color: var(--cyan); }

/* ── STARTUP ── */
.startup-section { }
.startup-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}
.startup-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: var(--b1);
  border-radius: var(--radius);
  overflow: hidden;
}
.startup-item {
  padding: 1.6rem;
  background: var(--glass-bg);
  transition: background var(--t1);
  position: relative;
}
.startup-item:hover { background: rgba(11,34,64,0.6); }
.startup-item::after {
  content: '';
  position: absolute; bottom: 0; left: 1.6rem; right: 1.6rem;
  height: 1px;
  background: rgba(0,229,255,0.08);
}
.si-icon { font-size: 1.4rem; margin-bottom: 0.7rem; }
.si-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.si-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ── CTA BANNER ── */
.cta-banner {
  position: relative; z-index: 10;
  padding: 7rem 3rem;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(0,229,255,0.08) 0%,
    rgba(0,229,255,0.02) 50%,
    transparent 70%);
}
.cta-banner .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
}
.cta-heading .out {
  -webkit-text-stroke: 1px rgba(0,229,255,0.35);
  color: transparent;
}
.cta-heading .solid { color: var(--white); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── PAYMENT ── */
.payment-section { background: var(--ink2); }
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.pay-card {
  background: var(--glass-bg);
  border: var(--b1);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  backdrop-filter: blur(12px);
  position: relative;
  transition: border-color var(--t2), transform var(--t2);
}
.pay-card:hover { border-color: rgba(0,229,255,0.25); transform: translateY(-3px); }
.pay-card.featured-pay { border-color: var(--cyan); }
.pay-badge-top {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--cyan); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.pay-icon-wrap { font-size: 2rem; margin-bottom: 1rem; }
.pay-title {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.15rem;
  color: var(--white); margin-bottom: 0.5rem;
}
.pay-desc { font-size: 0.85rem; font-weight: 300; color: var(--white-dim); line-height: 1.7; margin-bottom: 1.4rem; }
.pay-table { margin-bottom: 1.2rem; }
.pay-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 1rem;
}
.pay-row:last-child { border-bottom: none; }
.pay-key { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-mute); flex-shrink: 0; }
.pay-val { font-family: var(--font-mono); font-size: 0.68rem; color: var(--white); text-align: right; word-break: break-all; }
.pay-note { font-size: 0.75rem; color: var(--white-mute); line-height: 1.5; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  max-width: 1100px;
  align-items: start;
}
.contact-info-block { }
.contact-audit {
  padding: 1.3rem 1.5rem;
  background: var(--cyan-soft);
  border: var(--b2);
  border-radius: var(--radius-sm);
  margin-bottom: 2.5rem;
  display: flex; gap: 0.9rem; align-items: flex-start;
}
.audit-icon { font-size: 1.2rem; flex-shrink: 0; }
.audit-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  line-height: 1.6;
}
.contact-list { list-style: none; margin-bottom: 2.5rem; }
.contact-list li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.9rem 0;
  border-bottom: var(--b1);
}
.c-key { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-mute); }
.c-val { font-size: 0.9rem; color: var(--white); }
.c-val a { color: var(--cyan); text-decoration: none; transition: opacity var(--t1); }
.c-val a:hover { opacity: 0.75; }

/* Contact Form */
.contact-form-wrap {
  background: var(--glass-bg);
  border: var(--b1);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.f-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
}
.f-input,
.f-textarea,
.f-select {
  background: rgba(3,7,15,0.7);
  border: var(--b1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--t1), box-shadow var(--t1);
  -webkit-appearance: none;
}
.f-input:focus,
.f-textarea:focus,
.f-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.f-input::placeholder, .f-textarea::placeholder { color: var(--white-mute); }
.f-textarea { resize: vertical; min-height: 120px; }
.f-select { cursor: none; }
.f-select option { background: var(--ink2); }

.form-submit {
  width: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--cyan);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: none;
  overflow: hidden;
  transition: all var(--t2) var(--ease-out);
}
.form-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--t2);
}
.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.4);
}
.form-submit:hover::before { opacity: 1; }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(3,7,15,0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form-submit.loading .spinner { display: block; }
.form-submit.loading .btn-label { opacity: 0.7; }
.form-status-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  line-height: 1.5;
  animation: fadeUp 0.3s var(--ease-out);
}
.form-status-msg.success {
  background: rgba(0,229,160,0.07);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--success);
}
.form-status-msg.error {
  background: rgba(255,77,109,0.07);
  border: 1px solid rgba(255,77,109,0.3);
  color: var(--error);
}

/* ── SOCIAL ICONS ── */
.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.8rem; }
.social-link {
  width: 38px; height: 38px;
  border: var(--b1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white-mute);
  text-decoration: none;
  transition: all var(--t1);
}
.social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-soft);
  transform: translateY(-2px);
}
.social-link svg { width: 15px; height: 15px; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 10;
  background: rgba(2,4,11,0.98);
  border-top: var(--b1);
  padding: 4rem 3rem 2.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: var(--b1);
}
.footer-brand-name {
  margin-bottom: 0.7rem;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(1.05) drop-shadow(0 0 10px rgba(0,180,255,0.20));
  opacity: 0.92;
}
.footer-brand-name em { color: var(--cyan); font-style: normal; }
.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.8;
  max-width: 240px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-bottom: 1.2rem;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a {
  font-size: 0.87rem;
  font-weight: 300;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--t1), padding-left var(--t2);
  display: block;
}
.footer-nav a:hover { color: var(--cyan); padding-left: 0.4rem; }
.footer-contact-items { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-contact-items a {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--t1);
}
.footer-contact-items a:hover { color: var(--cyan); }
.footer-contact-items .ico { font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--white-mute);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .startup-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nav { padding: 1.1rem 1.5rem; }
  .nav-links, .nav-btn { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 5rem 1.5rem; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .pay-grid { grid-template-columns: 1fr; }
  .startup-items { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-trust { gap: 1.4rem; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  .btn, .nav-btn, .nav-burger { cursor: pointer; }
  .svc-expand-btn { cursor: pointer; }
  .social-link, .proj-card { cursor: pointer; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTION AUDIT ADDITIONS
   Added: skip link, mobile refinements, CLS fixes, touch targets
   ═══════════════════════════════════════════════════════════════ */

/* ── Skip to content link (accessibility + SEO) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 0.6rem 1.4rem;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
  outline: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ── Portfolio image CLS prevention ── */
/* Explicit aspect ratio on thumb container matches 800×352 (≈16/7) */
.proj-thumb {
  aspect-ratio: 800 / 352;
}
.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Touch target sizing — min 44×44px per WCAG 2.5.5 ── */
.btn {
  min-height: 44px;
}
.nav-btn {
  min-height: 40px;
}
.social-link {
  min-width: 44px;
  min-height: 44px;
}
.svc-expand-btn {
  min-height: 44px;
  padding: 0.5rem 0;
}

/* ── Hero heading: prevent overflow on very small screens ── */
@media (max-width: 400px) {
  .hero-name {
    font-size: clamp(3.2rem, 18vw, 5rem);
    letter-spacing: 0.02em;
  }
  .hero-tagline {
    font-size: 0.78rem;
  }
  .hero-sub {
    font-size: 0.9rem;
  }
  .hero {
    padding: 7rem 1.2rem 3.5rem;
  }
}

/* ── 320px edge case ── */
@media (max-width: 340px) {
  .hero-name {
    font-size: 2.8rem;
  }
  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.65rem;
  }
  .price-amount {
    font-size: 2rem;
  }
  .pay-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* ── Mobile: hero trust bar wraps cleanly ── */
@media (max-width: 600px) {
  .hero-trust {
    gap: 1rem 1.8rem;
  }
  .trust-item {
    font-size: 0.6rem;
  }
}

/* ── Mobile: contact grid padding ── */
@media (max-width: 480px) {
  .contact-form-wrap {
    padding: 1.8rem 1.4rem;
  }
  .section-inner {
    padding: 0;
  }
}

/* ── Smooth image render ── */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* ── Focus visible for keyboard nav (WCAG 2.1 AA) ── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
