/* ==========================================================================
   PIXELFORGE — Mobile App Studio
   Design system: dark canvas, glass surfaces, green→cyan gradient accent
   ========================================================================== */

:root{
  --bg: #08080c;
  --bg-alt: #0f0f16;
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.09);
  --text: #f4f4f7;
  --text-dim: #9a9aa8;
  --text-faint: #6b6b78;
  --accent-1: #22c55e;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --grad-soft: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(34,211,238,0.18));
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.16,.84,.44,1);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
p{ margin: 0 0 1em; color: var(--text-dim); }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
section{ position: relative; }
::selection{ background: var(--accent-1); color:#fff; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.eyebrow::before{
  content:'';
  width:8px; height:8px;
  border-radius:50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--accent-2);
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  white-space:nowrap;
}
.btn-primary{
  background: var(--grad);
  color:#08080c;
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34,197,94,0.4);
}
.btn-ghost{
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover{
  background: var(--surface-strong);
  transform: translateY(-3px);
}
.btn-sm{ padding: 10px 20px; font-size: 13px; }
.btn-block{ width:100%; }

/* ---------------- Header ---------------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  padding: 22px 0;
  transition: background .4s, padding .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  padding: 14px 0;
  background: rgba(8,8,12,0.75);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo-img{
  height: 46px;
  width: auto;
  flex-shrink:0;
}
.logo-mark{
  width: 30px; height:30px;
  border-radius: 9px;
  background: var(--grad);
  position:relative;
  flex-shrink:0;
}
.logo-mark::after{
  content:'';
  position:absolute; inset:6px;
  border-radius:5px;
  background: var(--bg);
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 8px;
}
.nav-links a{
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active{
  color: var(--text);
  background: var(--surface);
}
.header-actions{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  width: 42px; height:42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:'';
  display:block;
  width:18px; height:2px;
  background: var(--text);
  position:relative;
  transition: transform .3s, opacity .3s;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.nav-toggle.open span{ background: transparent; }
.nav-toggle.open span::before{ transform: rotate(45deg); top:0; }
.nav-toggle.open span::after{ transform: rotate(-45deg); top:0; }

/* ---------------- Background FX ---------------- */
.blob{
  position:absolute;
  border-radius:50%;
  filter: blur(90px);
  opacity:.35;
  pointer-events:none;
  z-index:0;
}
.blob-1{ width:480px; height:480px; background:var(--accent-1); top:-140px; left:-120px; animation: drift1 18s ease-in-out infinite; }
.blob-2{ width:420px; height:420px; background:var(--accent-2); bottom:-160px; right:-100px; animation: drift2 22s ease-in-out infinite; }
.blob-3{ width:340px; height:340px; background:var(--accent-3); top:40%; left:50%; animation: drift1 26s ease-in-out infinite reverse; opacity:.18; }

@keyframes drift1{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(60px,40px) scale(1.1); }
}
@keyframes drift2{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-50px,-30px) scale(1.15); }
}

.grid-overlay{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 75%);
  pointer-events:none;
}

/* ---------------- Door-open intro ---------------- */
.door-intro{
  position:fixed; inset:0;
  z-index:3000;
  display:flex;
  pointer-events:none;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
.door-panel{
  width:50%; height:100%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(34,197,94,0.12), transparent 60%),
    var(--bg);
  transform-style: preserve-3d;
}
.door-left{
  border-right:1px solid var(--border);
  box-shadow: 10px 0 60px rgba(0,0,0,0.55);
  transform-origin: left center;
  animation: door-open-left 1.3s .5s cubic-bezier(.6,0,.35,1) forwards;
}
.door-right{
  border-left:1px solid var(--border);
  box-shadow: -10px 0 60px rgba(0,0,0,0.55);
  transform-origin: right center;
  animation: door-open-right 1.3s .5s cubic-bezier(.6,0,.35,1) forwards;
}
.door-logo{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  animation: door-logo-fade .5s .25s var(--ease) forwards;
}
.door-logo .logo-mark{ width:46px; height:46px; border-radius:14px; }
/* Doors swing open on their outer-edge hinge, free edge sweeping toward the viewer */
@keyframes door-open-left{
  0%{ transform: rotateY(0deg); }
  100%{ transform: rotateY(-115deg); opacity:0; }
}
@keyframes door-open-right{
  0%{ transform: rotateY(0deg); }
  100%{ transform: rotateY(115deg); opacity:0; }
}
@keyframes door-logo-fade{
  0%{ opacity:1; transform: translate(-50%,-50%) scale(1); }
  100%{ opacity:0; transform: translate(-50%,-50%) scale(1.4); }
}

.hero-text{
  animation: slide-in-left 1s 1.15s var(--ease) both;
}
.hero .phone-stage{
  animation: slide-in-right 1s 1.15s var(--ease) both;
}
@keyframes slide-in-left{
  from{ opacity:0; transform: translateX(-90px); }
  to{ opacity:1; transform: translateX(0); }
}
@keyframes slide-in-right{
  from{ opacity:0; transform: translateX(90px); }
  to{ opacity:1; transform: translateX(0); }
}

@media (max-width: 980px){
  .door-logo .logo-mark{ width:36px; height:36px; }
}

/* ---------------- Hero ---------------- */
.hero{
  padding: 190px 0 120px;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items:center;
  position:relative;
  z-index:2;
}
.hero h1{
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin-bottom: 24px;
}
.hero h1 .grad-text{
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-sub{
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 44px; }
.hero-meta{
  display:flex;
  gap: 36px;
  flex-wrap:wrap;
}
.hero-meta div strong{ display:block; font-size: 26px; font-family:'Space Grotesk',sans-serif; }
.hero-meta div span{ font-size: 13px; color: var(--text-faint); }

/* Phone mockups */
.phone-stage{
  position:relative;
  height: 560px;
}
.phone{
  position:absolute;
  width: 230px;
  height: 470px;
  border-radius: 38px;
  background: #111017;
  border: 6px solid #1c1b24;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 80px rgba(34,197,94,0.28);
  overflow:hidden;
  animation: float 6s ease-in-out infinite;
}
.phone::before{
  content:'';
  position:absolute;
  top:14px; left:50%;
  transform: translateX(-50%);
  width: 70px; height:16px;
  border-radius: 20px;
  background: #05050a;
  z-index:3;
}
.phone-a{ top:10px; left:30px; z-index:3; }
.phone-b{ top:90px; right:0; width:200px; height:410px; opacity:.75; animation-delay: -3s; z-index:2; filter: saturate(.8); }
.phone-c{ bottom:-20px; left:110px; width:180px; height:370px; opacity:.5; animation-delay: -1.5s; z-index:1; filter: saturate(.6); }

@keyframes float{
  0%,100%{ transform: translateY(0) rotate(-2deg); }
  50%{ transform: translateY(-18px) rotate(1deg); }
}

.phone-screen{
  position:absolute; inset:0;
  background: linear-gradient(160deg, #17151f, #0b0a10);
  padding: 30px 14px 14px;
}
.mock-status{ display:flex; justify-content:space-between; font-size:9px; color:var(--text-faint); margin-bottom:14px; }
.mock-card{
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.mock-line{ height:8px; border-radius:4px; background: rgba(255,255,255,0.09); margin-bottom:6px; }
.mock-line.short{ width:40%; }
.mock-line.grad{ background: var(--grad); height:6px; }
.mock-avatar{ width:26px; height:26px; border-radius:50%; background: var(--grad); margin-bottom:8px; }
.mock-bars{ display:flex; align-items:flex-end; gap:6px; height:60px; margin-top:10px; }
.mock-bars span{ flex:1; border-radius:4px 4px 0 0; background: var(--grad); opacity:.8; }
.mock-fab{
  position:absolute; bottom:20px; right:20px;
  width:40px; height:40px; border-radius:50%;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(34,197,94,0.5);
}

/* ---------------- Marquee ---------------- */
.marquee-section{ padding: 50px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.marquee-label{ text-align:center; font-size:13px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.1em; margin-bottom:26px; }
.marquee{ overflow:hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track{ display:flex; gap: 70px; width: max-content; animation: scroll-left 26s linear infinite; }
.marquee-track span{ font-family:'Space Grotesk',sans-serif; font-size:22px; font-weight:600; color: var(--text-faint); white-space:nowrap; }
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------------- Tech stack ---------------- */
.tech-stack-section{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--bg-alt); overflow:hidden; }
.tech-marquee{
  overflow:hidden;
  padding: 30px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.tech-track{
  display:flex;
  align-items:center;
  gap: 36px;
  width: max-content;
  animation: tech-scroll-left 26s linear infinite;
}
.tech-marquee:hover .tech-track{ animation-play-state: paused; }
.tech-tag{
  flex-shrink:0;
  padding: 14px 30px;
  border-radius: 100px;
  border:1px solid var(--border);
  background: var(--surface);
  font-family:'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  white-space:nowrap;
  transition: color .3s, border-color .3s, background .3s;
}
.tech-tag:hover{ color:var(--text); border-color: rgba(34,197,94,0.45); background: var(--surface-strong); }

@keyframes tech-scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------------- Section heading ---------------- */
.section{ padding: 120px 0; }
.section-head{ max-width: 640px; margin-bottom: 64px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(2rem, 3.4vw, 2.8rem); }

/* ---------------- Services grid ---------------- */
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:26px; }

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:'';
  position:absolute; inset:0;
  background: var(--grad-soft);
  opacity:0;
  transition: opacity .4s;
}
.card:hover{ transform: translateY(-8px); border-color: rgba(34,197,94,0.4); }
.card:hover::before{ opacity:1; }
.card > *{ position:relative; z-index:1; }
.card-icon{
  width:46px; height:46px;
  border-radius:12px;
  background: var(--grad);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.card-icon svg{ width:22px; height:22px; stroke: #08080c; }
.card h3{ font-size: 19px; margin-bottom:10px; }
.card p{ font-size: 14.5px; margin-bottom:0; }

/* ---------------- Work / Portfolio ---------------- */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:44px; }
.filter-btn{
  padding: 9px 20px;
  border-radius: 100px;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size:14px; font-weight:500;
  cursor:pointer;
  transition: all .25s;
}
.filter-btn:hover{ color:var(--text); }
.filter-btn.active{ background: var(--grad); color:#08080c; border-color:transparent; font-weight:600; }

.work-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.work-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  overflow:hidden;
  cursor:pointer;
  transition: transform .4s var(--ease), border-color .4s;
}
.work-card:hover{ transform: translateY(-8px); border-color: rgba(34,211,238,0.4); }
.work-thumb{
  height: 220px;
  background: var(--grad-soft);
  position:relative;
  display:flex; align-items:center; justify-content:center;
  border-bottom:1px solid var(--border);
}
.work-thumb .phone{ position:static; width:110px; height:220px; border-width:4px; animation:none; }
.work-info{ padding:22px 24px; }
.work-tag{ font-size:12px; color:var(--accent-2); text-transform:uppercase; letter-spacing:.06em; font-weight:600; margin-bottom:8px; display:block;}
.work-info h3{ font-size:19px; margin-bottom:6px; }
.work-info p{ font-size:14px; margin-bottom:0; }
.work-card[data-cat]{ display: var(--display, block); }

/* ---------------- Process timeline ---------------- */
.timeline{ display:grid; grid-template-columns: repeat(5,1fr); gap:20px; counter-reset: step; }
.timeline-step{ position:relative; padding-top: 50px; }
.timeline-step::before{
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family:'Space Grotesk',sans-serif;
  font-size: 34px;
  font-weight:700;
  background: var(--grad);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  position:absolute; top:0; left:0;
}
.timeline-step::after{
  content:'';
  position:absolute; top:22px; left:52px; right:-20px;
  height:1px;
  background: var(--border);
}
.timeline-step:last-child::after{ display:none; }
.timeline-step h4{ font-size:16.5px; margin-bottom:8px; }
.timeline-step p{ font-size:13.5px; }

/* ---------------- Stats ---------------- */
.stats-bar{
  display:grid; grid-template-columns:repeat(4,1fr);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow:hidden;
}
.stat{ padding: 40px 20px; text-align:center; border-right:1px solid var(--border); }
.stat:last-child{ border-right:none; }
.stat strong{ display:block; font-family:'Space Grotesk',sans-serif; font-size: 42px; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat span{ font-size:13.5px; color:var(--text-faint); }

/* ---------------- Testimonials ---------------- */
.testi-wrap{ position:relative; max-width:760px; margin:0 auto; text-align:center; }
.testi-slide{ display:none; }
.testi-slide.active{ display:block; animation: fade-in .6s var(--ease); }
@keyframes fade-in{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }
.testi-quote{ font-size: 24px; font-family:'Space Grotesk',sans-serif; margin-bottom:26px; color:var(--text); }
.testi-person{ display:flex; align-items:center; justify-content:center; gap:12px; }
.testi-avatar{ width:44px; height:44px; border-radius:50%; background:var(--grad); display:flex;align-items:center;justify-content:center; font-weight:700; color:#08080c; font-family:'Space Grotesk',sans-serif;}
.testi-name{ font-weight:600; font-size:14.5px; }
.testi-role{ font-size:13px; color:var(--text-faint); }
.testi-dots{ display:flex; justify-content:center; gap:8px; margin-top:30px; }
.testi-dots button{ width:8px; height:8px; border-radius:50%; background: var(--border); border:none; cursor:pointer; padding:0; transition: background .3s, transform .3s; }
.testi-dots button.active{ background: var(--grad); transform: scale(1.3); }

/* ---------------- CTA banner ---------------- */
.cta-banner{
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(34,211,238,0.15));
  border: 1px solid var(--border);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-banner h2{ font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom:18px; }
.cta-banner p{ max-width:480px; margin:0 auto 30px; }
.cta-banner .btn-group{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------------- Footer ---------------- */
.site-footer{ border-top:1px solid var(--border); padding: 70px 0 30px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:60px; }
.footer-brand p{ max-width:280px; font-size:14px; }
.footer-col h5{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); margin-bottom:18px; }
.footer-col a{ display:block; font-size:14.5px; color:var(--text-dim); margin-bottom:12px; transition:color .2s; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:30px; border-top:1px solid var(--border); font-size:13px; color:var(--text-faint); flex-wrap:wrap; gap:14px; }
.socials{ display:flex; gap:14px; }
.socials a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition: border-color .25s, transform .25s; }
.socials a:hover{ border-color: var(--accent-2); transform: translateY(-3px); }
.socials svg{ width:16px; height:16px; stroke:var(--text-dim); }

/* ---------------- Reveal animation ---------------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-delay-1{ transition-delay: .1s; animation-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; animation-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; animation-delay: .3s; }

/* Cards drop in from above (as if sliding out from under the tech stack
   section) and bounce 3 times with decreasing height. Heights are in vh so
   they scale with the screen: ~19vh matches a ~4in bounce on a 42in display. */
.card-drop{ opacity:0; transform: translateY(-26vh); transition:none; }
.card-drop.in-view{
  transition:none;
  animation: card-fall-bounce 1.8s cubic-bezier(.22,.68,.35,1) both;
}
.card-drop:hover{ transition: transform .4s var(--ease), border-color .4s, background .4s; }
@keyframes card-fall-bounce{
  0%{ transform: translateY(-26vh); opacity:0; }
  45%{ transform: translateY(0); opacity:1; }
  58%{ transform: translateY(-19vh); }
  72%{ transform: translateY(0); }
  83%{ transform: translateY(-9vh); }
  91%{ transform: translateY(0); }
  96%{ transform: translateY(-4vh); }
  100%{ transform: translateY(0); }
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero{ padding: 170px 0 90px; text-align:center; }
.page-hero h1{ font-size: clamp(2.2rem,4.4vw,3.6rem); }
.page-hero p{ max-width: 560px; margin: 0 auto; font-size:17px; }

/* ---------------- Values / About ---------------- */
.value-card{ text-align:left; }
.team-card{ text-align:center; }
.team-avatar{ width:72px; height:72px; border-radius:50%; background:var(--grad); margin:0 auto 16px; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:22px; color:#08080c; }
.team-card h4{ font-size:16px; margin-bottom:2px; }
.team-card span{ font-size:13px; color:var(--text-faint); }

/* ---------------- Contact ---------------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:50px; align-items:start; }
.form-group{ margin-bottom:20px; }
.form-group label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:8px; color: var(--text-dim); }
.form-group input, .form-group textarea, .form-group select{
  width:100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family:inherit;
  font-size:14.5px;
  transition: border-color .25s, background .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{
  outline:none;
  border-color: var(--accent-2);
  background: var(--surface-strong);
}
.form-group textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:13px; color:var(--text-faint); margin-top:14px; }
.form-success{ display:none; padding:16px 18px; border-radius:var(--radius-sm); background: rgba(34,211,238,0.12); border:1px solid rgba(34,211,238,0.3); color:var(--accent-2); font-size:14px; margin-bottom:20px; }
.form-success.show{ display:block; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom:28px; }
.contact-info-icon{ width:42px; height:42px; border-radius:11px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info-icon svg{ width:19px; height:19px; stroke: var(--accent-2); }
.contact-info-item h4{ font-size:15px; margin-bottom:4px; }
.contact-info-item p{ font-size:14px; margin-bottom:0; }

/* ---------------- Modal (case study) ---------------- */
.modal-overlay{
  position:fixed; inset:0; z-index:1000;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  padding: 30px;
  opacity:0; visibility:hidden;
  transition: opacity .35s, visibility .35s;
}
.modal-overlay.open{ opacity:1; visibility:visible; }
.modal{
  background: var(--bg-alt);
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 720px; width:100%;
  max-height: 84vh;
  overflow-y:auto;
  padding: 44px;
  position:relative;
  transform: translateY(30px) scale(.97);
  transition: transform .35s var(--ease);
}
.modal-overlay.open .modal{ transform: translateY(0) scale(1); }
.modal-close{
  position:absolute; top:20px; right:20px;
  width:38px; height:38px; border-radius:50%;
  background: var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:18px; color:var(--text-dim);
}
.modal-tag{ font-size:12px; color:var(--accent-2); text-transform:uppercase; letter-spacing:.06em; font-weight:600; }
.modal h3{ font-size:28px; margin: 10px 0 18px; }
.modal-meta{ display:flex; gap:26px; flex-wrap:wrap; margin: 22px 0; padding:20px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.modal-meta div span{ display:block; font-size:12px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.modal-meta div strong{ font-size:14.5px; font-weight:600; }

/* ---------------- Cursor glow ---------------- */
.cursor-glow{
  position:fixed;
  width: 380px; height:380px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(34,197,94,0.14), transparent 70%);
  pointer-events:none;
  z-index:1;
  transform: translate(-50%,-50%);
  transition: opacity .3s;
  opacity:0;
}
@media(hover:hover){ .cursor-glow{ opacity:1; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .work-grid{ grid-template-columns:repeat(2,1fr); }
  .timeline{ grid-template-columns:repeat(2,1fr); row-gap:40px; }
  .timeline-step::after{ display:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .phone-stage{ height:420px; margin-top:20px; }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-links.mobile-open{
    display:flex; flex-direction:column;
    position:fixed; top:74px; left:20px; right:20px;
    background: var(--bg-alt); border:1px solid var(--border);
    border-radius: var(--radius-md); padding:16px; gap:4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }
  .grid-4{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .work-grid{ grid-template-columns:1fr; }
  .timeline{ grid-template-columns:1fr; }
  .stats-bar{ grid-template-columns:repeat(2,1fr); }
  .stat{ border-bottom:1px solid var(--border); }
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
  .section{ padding:80px 0; }
  .hero{ padding:150px 0 80px; }
  .cta-banner{ padding:50px 24px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001s !important; animation-iteration-count:1 !important; transition-duration: .001s !important; }
  html{ scroll-behavior:auto; }
}
