/* ============================================
   Samyam & Dipesh — Portfolio
   ============================================ */

:root {
  --bg: #07070b;
  --bg-2: #0c0c14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #a8a8b3;
  --text-mute: #6b6b78;
  --accent: #a78bfa;       /* violet */
  --accent-2: #38bdf8;     /* sky */
  --accent-3: #f472b6;     /* pink */
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --gradient-3: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1240px;
  --ease: cubic-bezier(0.6, 0.05, 0.1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
body.loading { overflow: hidden; }

::selection {
  background: rgba(167, 139, 250, 0.32);
  color: #fff;
  -webkit-text-fill-color: #fff;
}
em::selection {
  background: rgba(244, 114, 182, 0.32);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; border: none; background: none; color: inherit; }
em {
  font-style: normal;
  color: var(--accent-2);
  -webkit-text-fill-color: var(--accent-2);
  background: none;
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.35);
}

/* ============================================
   Background layers
   ============================================ */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
  z-index: -4;
  pointer-events: none;
}

.bg-orbs { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: orbFloat 22s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { background: var(--accent); top: -200px; left: -200px; }
.orb-2 { background: var(--accent-2); bottom: -200px; right: -200px; animation-delay: -7s; }
.orb-3 { background: var(--accent-3); top: 40%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; opacity: 0.18; animation-delay: -14s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 60px) scale(0.95); }
}
.orb-3 {
  animation-name: orbFloatCenter;
}
@keyframes orbFloatCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -60%) scale(1.15); }
}

.three-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================
   Custom cursor — dot + trailing ring
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: #fff;
  z-index: 10000;
  margin: -3.5px 0 0 -3.5px;
  transition: width 0.3s var(--spring), height 0.3s var(--spring), margin 0.3s var(--spring), opacity 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #fff;
  z-index: 9999;
  margin: -18px 0 0 -18px;
  transition: width 0.45s var(--spring), height 0.45s var(--spring), margin 0.45s var(--spring), background 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-dot.hover { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.cursor-ring.hover {
  width: 70px; height: 70px;
  margin: -35px 0 0 -35px;
  background: rgba(255,255,255,0.12);
}
.cursor-dot.click { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.cursor-ring.click { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

.cursor-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a14;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  height: 0;
  display: grid; place-items: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s, transform 0.35s var(--spring), height 0.35s var(--spring);
  pointer-events: none;
  mix-blend-mode: normal;
}
.cursor-dot.has-label .cursor-label {
  opacity: 1;
  height: 22px;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body, button, a { cursor: auto; }
}

/* ============================================
   Scroll progress bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient);
  z-index: 200;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--accent);
}

/* ============================================
   Loader
   ============================================ */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  pointer-events: all;
}
.loader-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #0c0c14 0%, #050507 100%);
}
.loader-content { position: relative; text-align: center; width: min(460px, 86vw); }

/* Drawn peak icon */
.loader-icon {
  width: clamp(72px, 12vw, 110px);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 8px 28px rgba(167, 139, 250, 0.35));
}
.peak-stroke {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: peakDraw 0.55s cubic-bezier(0.2, 1, 0.3, 1) 0s forwards;
}
@keyframes peakDraw {
  to { stroke-dashoffset: 0; }
}

.loader-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 700;
  letter-spacing: -0.05em;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.02em;
  margin-bottom: 10px;
  line-height: 1;
}
.mark-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  animation: markIn 0.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mark-letter:nth-child(1) { animation-delay: 0.20s; }
.mark-letter:nth-child(2) { animation-delay: 0.28s; }
.mark-letter:nth-child(3) { animation-delay: 0.36s; }
.mark-letter:nth-child(4) { animation-delay: 0.44s; }
@keyframes markIn {
  to { opacity: 1; transform: translateY(0); }
}

.loader-sub {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 40px;
  opacity: 0;
  animation: subIn 0.5s cubic-bezier(0.2, 1, 0.3, 1) 0.6s forwards;
}
@keyframes subIn {
  to { opacity: 1; }
}
.loader-sub-line {
  display: inline-block;
  width: 36px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.loader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.15s cubic-bezier(0.4, 0, 0.6, 1);
}
.loader-meta {
  display: flex; justify-content: space-between;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.loader-tagline {
  opacity: 0;
  animation: subIn 0.5s cubic-bezier(0.2, 1, 0.3, 1) 0.65s forwards;
}
.loader.done { animation: loaderOut 0.45s var(--ease) forwards; }
@keyframes loaderOut {
  to { opacity: 0; transform: scale(1.04); pointer-events: none; visibility: hidden; }
}

/* ============================================
   Founder intro card — plays once after the loader
   ============================================ */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease), visibility 0.6s linear;
}
.intro.show {
  opacity: 1;
  visibility: visible;
}
.intro.hide {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
}
.intro-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #0c0c14 0%, #050507 100%);
}
.intro-content {
  position: relative;
  width: min(720px, 92vw);
  text-align: center;
}

.intro-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  opacity: 0;
}
.intro-line {
  display: inline-block;
  width: 28px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.intro.show .intro-eyebrow {
  animation: introFadeUp 0.6s var(--ease) 0.05s forwards;
}

.intro-people {
  display: flex; align-items: center; justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}
.intro-person {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0;
}
.intro-left  { transform: translateX(-30px); }
.intro-right { transform: translateX(30px); }
.intro.show .intro-person {
  animation: introSlide 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}
.intro.show .intro-left  { animation-delay: 0.30s; }
.intro.show .intro-right { animation-delay: 0.45s; }
@keyframes introSlide {
  to { opacity: 1; transform: translateX(0); }
}

.intro-photo {
  width: 138px; height: 138px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 2.5px;
  box-shadow: 0 14px 44px -14px rgba(167, 139, 250, 0.55);
}
.intro-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.intro-person figcaption {
  display: flex; flex-direction: column; gap: 4px;
  line-height: 1.2;
}
.intro-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.intro-role {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.intro-amp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(8px);
  margin-bottom: 38px;
}
.intro.show .intro-amp {
  animation: introFadeUp 0.6s var(--ease) 0.85s forwards;
}

.intro-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}
.intro.show .intro-tagline {
  animation: introFadeUp 0.7s var(--ease) 2.85s forwards;
}

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

/* Mission line — word-by-word reveal */
.intro-mission {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto 30px;
  max-width: 560px;
  padding: 0 16px;
}
.intro-mission .word {
  display: inline-block;
  margin: 0 0.12em 0 0;
  opacity: 0;
  transform: translateY(14px);
}
.intro-mission .word-accent {
  color: var(--accent-2);
  -webkit-text-fill-color: var(--accent-2);
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
}
.intro.show .intro-mission .word {
  animation: introFadeUp 0.55s cubic-bezier(0.2, 1, 0.3, 1) forwards;
  animation-delay: calc(1.20s + var(--i, 0) * 0.07s);
}

/* Service chips */
.intro-services {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  padding: 0 16px;
}
.intro-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(10px);
}
.intro.show .intro-chip {
  animation: introFadeUp 0.55s var(--ease) forwards;
  animation-delay: calc(2.20s + var(--i, 0) * 0.10s);
}

@media (max-width: 640px) {
  .intro-people { gap: 28px; }
  .intro-photo  { width: 104px; height: 104px; }
  .intro-amp    { font-size: 34px; margin-bottom: 30px; }
  .intro-role   { font-size: 10px; letter-spacing: 0.14em; }
}

/* ============================================
   Glass / shared
   ============================================ */
.glass {
  background: var(--surface);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, #fff, #e8e6f5);
  color: #0a0a14;
  box-shadow: 0 10px 40px -10px rgba(167, 139, 250, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px rgba(167, 139, 250, 0.7); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed; top: 18px; left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 36px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  z-index: 100;
  transition: padding 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(7, 7, 11, 0.7);
  border-color: var(--border-strong);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--gradient);
  display: grid; place-items: center;
  color: #0a0a14;
  box-shadow: 0 0 18px -2px var(--accent);
  transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.45s;
}
.logo-mark svg { width: 16px; height: 16px; }
.nav-logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); box-shadow: 0 0 28px -2px var(--accent-2); }
.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--accent);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 12px var(--accent); }
  50% { box-shadow: 0 0 22px var(--accent-2); }
}
.nav-links {
  display: flex; gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 16px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 24px 80px;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-inner { width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.line-inner { display: block; transform: translateY(110%); }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 80px; }

.hero-stats {
  display: flex; gap: 56px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 700px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 8px;
}

.hero-scroll {
  position: absolute; bottom: 32px; right: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: -30px; left: 0;
  width: 100%; height: 30px;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -30px; }
  100% { top: 60px; }
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  overflow: hidden;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
  background: rgba(255,255,255,0.015);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.02em;
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   Section common
   ============================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px;
}
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.eyebrow span {
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-head p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 560px;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.service {
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.service::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(167, 139, 250, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.service:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }
.service ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service li {
  font-size: 13px;
  color: var(--text-mute);
  padding-left: 18px;
  position: relative;
}
.service li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ============================================
   Work
   ============================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work-card-wide { grid-column: span 2; }
.work-card-wide .work-media { aspect-ratio: 21 / 9; }

.work-card {
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
  display: block;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.work-media {
  aspect-ratio: 16 / 11;
  position: relative;
  overflow: hidden;
  background: #0a0a14;
}

/* Live iframe preview */
.work-preview {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #14141f, #0a0a14);
  transition: transform 0.7s var(--ease);
}
.work-preview.fallback-1 {
  background:
    radial-gradient(circle at 30% 20%, rgba(244, 114, 182, 0.55), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.55), transparent 50%),
    linear-gradient(135deg, #1a0a2e, #0a0a14);
}
.work-preview.fallback-2 {
  background:
    radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.55), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(167, 139, 250, 0.45), transparent 55%),
    linear-gradient(135deg, #0a1a2e, #0a0a14);
}
.work-preview.fallback-3 {
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.45), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(244, 114, 182, 0.5), transparent 55%),
    linear-gradient(135deg, #2a1a0a, #0a0a14);
}
.work-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  display: block;
  transition: transform 0.7s var(--ease);
}
.work-card:hover .work-preview img { transform: scale(1.04); }

/* Live iframe overlay — appears on hover */
.work-iframe {
  position: absolute;
  top: 0; left: 0;
  border: none;
  transform-origin: top left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: #0a0a14;
}
.work-preview.iframe-ready .work-iframe { opacity: 1; }
.work-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(7, 7, 11, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
  vertical-align: middle;
}
.work-url {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  font-family: 'Space Grotesk', sans-serif;
}

.work-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px;
  z-index: 2;
}
.work-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
}
.work-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #0a0a14;
  display: grid; place-items: center;
  transform: scale(0.8) rotate(-30deg);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.work-arrow svg { width: 16px; height: 16px; }
.work-card:hover .work-arrow { transform: scale(1) rotate(0); opacity: 1; }

.work-info { padding: 22px 26px 26px; }
.work-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.work-info p { color: var(--text-dim); font-size: 14.5px; }

/* ============================================
   Results
   ============================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.result-card {
  padding: 30px;
  text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.result-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.result-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.result-card p { color: var(--text-dim); font-size: 14.5px; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.testimonial {
  padding: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.testimonial .quote {
  width: 28px; height: 28px;
  color: var(--accent);
  opacity: 0.6;
}
.testimonial blockquote,
.testimonial p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  font-weight: 600;
  color: #0a0a14;
}
.author-name { font-weight: 500; }
.author-role { font-size: 13px; color: var(--text-mute); }

/* ============================================
   Process
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
.process-step {
  padding: 32px 24px;
  border-left: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s;
}
.process-step:hover { border-color: var(--accent); }
.process-step:first-child { border-left: 1px solid var(--accent); }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.process-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.process-step p { color: var(--text-dim); font-size: 14.5px; }

/* ============================================
   Team
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 880px;
}
.team-card {
  padding: 26px;
  display: flex;
  gap: 26px;
  align-items: center;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo {
  width: 130px; height: 130px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--gradient);
  padding: 2.5px;
  box-shadow: 0 12px 40px -12px rgba(167, 139, 250, 0.55);
}
.team-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.team-photo-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a26, #0a0a14);
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
}
.team-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}
.team-info p { color: var(--text-dim); font-size: 14px; }

/* ============================================
   Contact
   ============================================ */
.contact { padding-top: 80px; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 56px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 70%);
  pointer-events: none;
}
.contact-left h2 { margin-bottom: 18px; }
.contact-left p { color: var(--text-dim); margin-bottom: 32px; max-width: 380px; }
.contact-meta { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--text); }
.contact-link svg { width: 18px; height: 18px; color: var(--accent); }

.contact-form {
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.5);
}
.form-status {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  color: #4ade80;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 260px; margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-cols a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--text-mute);
}

/* ============================================
   Framer-style motion helpers
   ============================================ */
:root {
  --spring: cubic-bezier(0.2, 1, 0.3, 1);
  --spring-out: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnetic {
  transition: transform 0.45s var(--spring);
  will-change: transform;
}
.magnetic .btn-label,
.magnetic svg {
  display: inline-block;
  transition: transform 0.45s var(--spring);
  will-change: transform;
}

/* Character-by-character split reveal */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(6deg);
  transition: opacity 0.6s var(--spring), transform 0.7s var(--spring);
}
.char.in { opacity: 1; transform: translateY(0) rotate(0); }
.char-space { display: inline-block; width: 0.28em; }

/* Typewriter — characters appear one by one with a blinking cursor */
[data-typewriter] {
  white-space: pre;
}
.tw-cursor {
  display: inline-block;
  width: 0.05em;
  height: 0.82em;
  background: currentColor;
  vertical-align: -0.04em;
  margin-left: 0.05em;
  box-shadow: 0 0 10px currentColor;
  animation: tw-blink 0.65s steps(2, jump-none) infinite;
}
@keyframes tw-blink {
  50%, 100% { opacity: 0; }
}

/* Word-by-word mask reveal — used on section h2s */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
  padding: 0.06em 0.04em 0.18em;
  margin: -0.06em -0.04em -0.18em;
}
.word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.95s var(--spring);
  will-change: transform;
}
.word-mask.in .word-inner { transform: translateY(0); }

/* Card stagger reveal — used inside [data-stagger] groups */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s var(--spring), transform 0.9s var(--spring);
  will-change: transform, opacity;
}
[data-stagger] > .in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mask reveal for images */
.mask-reveal {
  position: relative;
  overflow: hidden;
  --mask-x: 0%;
}
.mask-reveal::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--bg-2) 0%, var(--bg) 100%);
  transform: translateX(var(--mask-x));
  transition: transform 1s var(--spring);
  z-index: 2;
  pointer-events: none;
}
.mask-reveal.revealed::after { transform: translateX(101%); }
.mask-reveal.revealed.from-left::after { transform: translateX(-101%); }

/* Floating idle motion */
.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Shine sweep on cards */
.shine {
  position: relative;
  overflow: hidden;
}
.shine::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--spring);
  pointer-events: none;
  z-index: 1;
}
.shine:hover::before { transform: translateX(100%); }

/* Team action row */
.team-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.icon-link {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: background 0.3s var(--spring), border-color 0.3s, color 0.3s, transform 0.45s var(--spring);
}
.icon-link svg { width: 16px; height: 16px; }
.icon-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a14;
  transform: translateY(-3px);
}

/* Resume button */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text);
  transition: background 0.3s var(--spring), border-color 0.3s, transform 0.45s var(--spring);
}
.resume-link svg { width: 14px; height: 14px; color: var(--accent); transition: transform 0.4s var(--spring); }
.resume-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}
.resume-link:hover svg { transform: translate(2px, -2px) rotate(-6deg); }

/* ============================================
   Reveal animations
   ============================================ */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible, .reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.line-inner {
  transition: transform 1s var(--ease);
}
.line-inner.visible {
  transform: translateY(0);
}
[data-split] .line { overflow: visible; }
[data-split] .line-inner { transform: none; opacity: 1; transition: none; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; width: 44px; height: 44px; }
  .nav.menu-open { border-radius: 24px; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    margin-top: 12px;
    padding: 16px;
    background: rgba(12, 12, 20, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 18px;
    gap: 4px;
  }
  .nav.menu-open .nav-links a {
    padding: 14px 16px;
    font-size: 15px;
  }
  .work-grid { grid-template-columns: 1fr; }
  .work-card-wide { grid-column: span 1; }
  .work-card-wide .work-media { aspect-ratio: 16 / 11; }
  .contact-card { grid-template-columns: 1fr; gap: 40px; padding: 36px 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .section { padding: 80px 20px; }
  .hero { padding: 120px 20px 60px; min-height: auto; }
  .testimonial { padding: 28px 24px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .hero-stats { gap: 28px; }
  .hero-cta { gap: 12px; margin-bottom: 56px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .team-card { flex-direction: column; text-align: center; }
  .team-actions { justify-content: center; }
  .icon-link { width: 44px; height: 44px; }
  .resume-link { padding: 12px 18px; }
  .field input, .field textarea { padding: 16px; font-size: 16px; }
}

/* Lighter, GPU-friendly treatment on phones */
@media (max-width: 760px) {
  .glass {
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
  }
  .nav { padding: 10px 10px 10px 18px; }
  .orb { filter: blur(50px); opacity: 0.22; width: 360px; height: 360px; }
  .marquee { padding: 22px 0; margin: 24px 0; }
  .marquee-track { animation-duration: 36s; }
  .bg-grid { background-size: 36px 36px; }
  .scroll-progress { height: 3px; }
  .section-head { margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  /* Disable per-card shine sweep + service mouse-glow on touch */
  .shine::before { display: none; }
  .service::before { display: none; }
}

/* On touch devices, kill the magnetic offset entirely so taps feel snappy */
@media (pointer: coarse) {
  .magnetic, .magnetic .btn-label, .magnetic svg { transform: none !important; }
}
