/* ============================================================
   DIGIT GLOBAL — Portfolio
   ============================================================ */

:root{
  --sky-top: #B8D8F2;
  --sky-mid: #DCEBFA;
  --sky-bottom: #F4F9FF;
  --ink: #102136;
  --ink-soft: #3B5275;
  --muted: #6B85A6;
  --line: rgba(20, 60, 120, 0.10);
  --cyan: #1A8CD8;
  --cyan-glow: #5FE2FF;
  --gold-1: #C9A24B;
  --gold-2: #8E6E2A;
}

*{ box-sizing: border-box }
html, body { margin: 0; padding: 0 }
html{ scroll-behavior: smooth }
body{
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #F8FCFF;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none }
img{ display: block; max-width: 100% }

/* ============ NAV ============ */
.nav{
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
}
.nav-brand{
  display: flex; align-items: center; gap: 10px;
}
.nav-avatar{ width: 36px; height: 44px }
.nav-name{
  font-weight: 700; font-size: 13px; letter-spacing: 2.5px;
  color: var(--ink);
}
.nav-name b{ font-weight: 800; margin-left: 2px; color: var(--cyan) }
.nav-links{
  display: flex; gap: 28px; align-items: center;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.nav-links a{ transition: color 0.2s }
.nav-links a:hover{ color: var(--cyan) }
.nav-cta{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #2C9FE8, #0F6BC0);
  color: white; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 24px rgba(46, 159, 232, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(46, 159, 232, 0.45);
}

/* ============ HERO ============ */
.hero{
  position: relative;
  width: 100%;
  min-height: 1240px;
  overflow: hidden;
  isolation: isolate;
}

/* Sky gradient backdrop */
.sky{
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 50% 60%, #FFFFFF 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-bottom) 80%, #FFFFFF 100%);
  z-index: 0;
}

/* Cloud layers — each is a div using radial-gradient white blobs */
.clouds{
  position: absolute; inset: 0; pointer-events: none;
}
.clouds-back{
  z-index: 1; opacity: 0.85;
  filter: blur(24px);
  background:
    radial-gradient(420px 220px at 10% 22%, rgba(255,255,255,0.95), transparent 60%),
    radial-gradient(360px 180px at 92% 16%, rgba(255,255,255,0.95), transparent 60%),
    radial-gradient(520px 240px at 78% 80%, rgba(255,255,255,0.85), transparent 65%),
    radial-gradient(420px 220px at 14% 78%, rgba(255,255,255,0.85), transparent 65%),
    radial-gradient(380px 200px at 50% 95%, rgba(255,255,255,0.95), transparent 60%);
  animation: drift-back 60s linear infinite;
}
.clouds-mid{
  z-index: 2; opacity: 0.85;
  filter: blur(16px);
  background:
    radial-gradient(280px 140px at 0% 35%, rgba(255,255,255,0.95), transparent 70%),
    radial-gradient(320px 160px at 100% 55%, rgba(255,255,255,0.95), transparent 70%),
    radial-gradient(260px 130px at 18% 12%, rgba(255,255,255,0.85), transparent 70%),
    radial-gradient(240px 120px at 82% 88%, rgba(255,255,255,0.95), transparent 70%),
    radial-gradient(320px 160px at 42% 68%, rgba(255,255,255,0.7), transparent 70%);
  animation: drift-mid 45s linear infinite;
}
.clouds-front{
  z-index: 3; opacity: 0.95;
  filter: blur(8px);
  background:
    radial-gradient(220px 110px at 5% 88%, rgba(255,255,255,0.98), transparent 70%),
    radial-gradient(180px 90px at 96% 92%, rgba(255,255,255,0.98), transparent 70%),
    radial-gradient(200px 100px at 26% 96%, rgba(255,255,255,0.98), transparent 65%),
    radial-gradient(220px 110px at 72% 96%, rgba(255,255,255,0.98), transparent 65%);
  animation: drift-front 30s linear infinite;
}

@keyframes drift-back {
  0%, 100% { transform: translateX(0) }
  50% { transform: translateX(-30px) }
}
@keyframes drift-mid {
  0%, 100% { transform: translateX(0) }
  50% { transform: translateX(20px) }
}
@keyframes drift-front {
  0%, 100% { transform: translateX(0) }
  50% { transform: translateX(-15px) }
}

/* Hero headline overlay */
.hero-headline{
  position: absolute; top: 110px; left: 50%; transform: translateX(-50%);
  z-index: 10; text-align: center; pointer-events: none;
}
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.65); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 16px rgba(20,60,120,0.06);
}
.hero-eyebrow .dot{ width: 6px; height: 6px; background: var(--cyan-glow); border-radius: 50%; box-shadow: 0 0 8px var(--cyan-glow)}
.hero-headline h1{
  font-family: 'Fraunces', serif;
  font-size: 64px; line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 600; margin: 14px 0 0; color: var(--ink);
}
.hero-headline h1 i{ font-style: italic; font-weight: 400; color: var(--cyan) }

/* ============ 3D STAGE ============ */
.stage{
  position: absolute; inset: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
}

.wires{
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 4; pointer-events: none;
  opacity: 0.85;
}

/* Screen base styles */
.screen{
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}
.screen:hover{ transform: translateY(-6px) scale(1.02) }

.screen-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px;
  background: white;
  border-radius: 999px;
  box-shadow:
    0 6px 20px rgba(20, 60, 120, 0.12),
    0 0 0 1px rgba(20,60,120,0.04);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--ink);
  z-index: 5;
  position: relative;
}
.pill-icon{
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(180deg, #2C9FE8, #0F6BC0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(46, 159, 232, 0.35);
}

.screen-frame{
  position: relative;
  filter: drop-shadow(0 20px 40px rgba(46, 159, 232, 0.30)) drop-shadow(0 0 12px rgba(95,226,255, 0.4));
  transition: filter 0.4s;
}
.screen-frame img{
  width: 100%; height: auto; object-fit: contain; display: block;
}
.screen:hover .screen-frame{
  filter: drop-shadow(0 30px 60px rgba(46, 159, 232, 0.45)) drop-shadow(0 0 24px rgba(95,226,255, 0.6));
}

/* Positioning */
.screen-left{
  top: 220px; left: 80px;
  transform: rotateY(14deg) rotateX(4deg);
  transform-origin: right center;
  animation: float-left 6s ease-in-out infinite;
}
.screen-left .screen-pill{ align-self: flex-start; margin-left: 30px; margin-bottom: -16px; z-index: 6 }
.screen-left .screen-frame{ width: 460px }

.screen-right{
  top: 220px; right: 80px;
  transform: rotateY(-14deg) rotateX(4deg);
  transform-origin: left center;
  animation: float-right 6.5s ease-in-out infinite;
}
.screen-right .screen-pill{ align-self: flex-end; margin-right: 30px; margin-bottom: -16px; z-index: 6 }
.screen-right .screen-frame{ width: 460px }

.screen-bottom{
  bottom: 340px; left: 50%; transform: translateX(-50%) rotateX(8deg);
  transform-origin: center top;
  animation: float-bottom 5.5s ease-in-out infinite;
  z-index: 4;
}
.screen-bottom .screen-pill{ align-self: flex-start; margin-left: 40px; margin-bottom: -18px; z-index: 6; position: relative}
.screen-bottom .screen-frame{ width: 540px }

@keyframes float-left{
  0%, 100% { transform: rotateY(14deg) rotateX(4deg) translateY(0) }
  50%      { transform: rotateY(14deg) rotateX(4deg) translateY(-12px) }
}
@keyframes float-right{
  0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0) }
  50%      { transform: rotateY(-14deg) rotateX(4deg) translateY(-14px) }
}
@keyframes float-bottom{
  0%, 100% { transform: translateX(-50%) rotateX(8deg) translateY(0) }
  50%      { transform: translateX(-50%) rotateX(8deg) translateY(-8px) }
}

/* Podium / pedestal under each screen + avatar */
.podium{
  position: relative;
  margin-top: -2px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(95,226,255,0.5), transparent 70%),
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.9), rgba(255,255,255,0.2) 60%, transparent 100%);
  border-radius: 50%;
  filter: blur(0.6px);
  box-shadow: 0 0 28px rgba(95,226,255,0.35);
}
.podium-small{
  width: 100px; height: 22px;
}
.podium-big{
  width: 360px; height: 56px;
  position: absolute; left: 50%; bottom: -18px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(95,226,255,0.65), transparent 65%),
    radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.92), rgba(255,255,255,0.3) 60%, transparent 100%);
}

/* ============ AVATAR STAGE ============ */
.avatar-stage{
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 380px;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.avatar{
  width: 260px; height: auto;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 30px 50px rgba(20, 60, 120, 0.22));
  animation: avatar-bob 6s ease-in-out infinite;
}
@keyframes avatar-bob{
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-8px) }
}

.avatar-ring{
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ring-outer{
  width: 360px; height: 360px;
  top: 40px;
  border: 1.5px solid rgba(95,226,255, 0.45);
  box-shadow:
    0 0 60px rgba(95,226,255,0.4),
    inset 0 0 60px rgba(95,226,255,0.2);
  background: radial-gradient(circle, rgba(95,226,255,0.06), transparent 70%);
  z-index: 1;
  animation: ring-pulse 4s ease-in-out infinite;
}
.ring-mid{
  width: 300px; height: 300px;
  top: 70px;
  border: 1px dashed rgba(95,226,255, 0.35);
  z-index: 2;
  animation: ring-spin 24s linear infinite;
}
@keyframes ring-pulse{
  0%, 100% { transform: scale(1); opacity: 1 }
  50% { transform: scale(1.04); opacity: 0.85 }
}
@keyframes ring-spin{
  to { transform: rotate(360deg) }
}
.avatar-glow{
  position: absolute;
  width: 320px; height: 320px;
  top: 60px;
  background: radial-gradient(circle, rgba(95,226,255,0.4) 0%, rgba(95,226,255,0.1) 40%, transparent 70%);
  border-radius: 50%; filter: blur(20px);
  z-index: 0;
}

.avatar-sparkle{
  position: absolute; width: 6px; height: 6px;
  background: white; border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(95,226,255,0.8);
  animation: sparkle 2.4s ease-in-out infinite;
}
.avatar-sparkle.s1{ top: 80px; left: 30px; animation-delay: 0s }
.avatar-sparkle.s2{ top: 140px; right: 40px; animation-delay: 0.8s }
.avatar-sparkle.s3{ top: 240px; left: 60px; animation-delay: 1.6s }
@keyframes sparkle{
  0%, 100% { transform: scale(0); opacity: 0 }
  50% { transform: scale(1); opacity: 1 }
}

/* ============ FEATURE PILLS ============ */
.features{
  position: absolute;
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  z-index: 6;
}
.features-left{ left: 40px; top: 500px }
.features-right{ right: 40px; top: 500px }

.features li{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 14px;
  background: white;
  border-radius: 999px;
  box-shadow:
    0 6px 18px rgba(20, 60, 120, 0.10),
    0 0 0 1px rgba(20,60,120,0.04);
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
  animation: pill-float 5s ease-in-out infinite;
}
.features li:nth-child(2){ animation-delay: 1s }
.features li:nth-child(3){ animation-delay: 2s }

.ft-icon{
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(95,226,255, 0.18);
  display: flex; align-items: center; justify-content: center;
}

@keyframes pill-float{
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-6px) }
}

/* ============ HERO CTA ============ */
.hero-cta{
  position: absolute;
  bottom: 100px; left: 50%; transform: translateX(-50%);
  z-index: 15;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero-cta p{
  font-family: 'Fraunces', serif;
  font-size: 22px; line-height: 1.45; margin: 0;
  color: var(--ink); font-weight: 400;
  max-width: 560px;
}
.hero-cta p i{ font-style: italic; color: var(--cyan) }
.hero-cta p b{ font-weight: 700; font-style: italic }
.grad-text{
  background: linear-gradient(90deg, #1A8CD8, #5FE2FF);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.cta-button{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 32px 14px 14px;
  background: linear-gradient(180deg, #2C9FE8 0%, #0E66B8 100%);
  border-radius: 999px;
  color: white; font-weight: 600; font-size: 16px;
  box-shadow:
    0 14px 32px rgba(46, 159, 232, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta-button:hover{
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px rgba(46, 159, 232, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.cta-icon{
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
}

/* ============ HERO FOOTER NOTES ============ */
.hero-foot{
  position: absolute; bottom: 28px; z-index: 14;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-soft); font-weight: 500;
  box-shadow: 0 4px 16px rgba(20,60,120,0.06), 0 0 0 1px rgba(255,255,255,0.9);
}
.foot-left{ left: 40px }
.foot-right{ right: 40px }

/* ============ SECTIONS (below hero) ============ */
.section{
  position: relative;
  padding: 120px 60px;
  max-width: 1440px; margin: 0 auto;
}
.section-head{
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 16px;
}
.section-eyebrow .dot{
  width: 6px; height: 6px; background: var(--cyan-glow); border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-glow);
}
.section-head h2{
  font-family: 'Fraunces', serif;
  font-size: 56px; line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 600; margin: 0; color: var(--ink);
}
.section-head h2 i{ font-style: italic; font-weight: 400; color: var(--cyan)}
.section-head p{
  font-size: 16px; color: var(--muted); max-width: 560px;
  margin: 18px auto 0; line-height: 1.55;
}

/* ============ WORK GRID ============ */
.work-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.work-card{
  display: flex; flex-direction: column; gap: 0;
  border-radius: 22px; overflow: hidden;
  background: white;
  box-shadow: 0 10px 32px rgba(20,60,120, 0.08), 0 0 0 1px rgba(20,60,120,0.04);
  transition: transform 0.35s, box-shadow 0.35s;
}
.work-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(20,60,120, 0.14), 0 0 0 1px rgba(95,226,255,0.35);
}
.work-thumb{
  display: block; aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(180deg, #DCEBFA, #F4F9FF);
}
.work-thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.work-card:hover .work-thumb img{ transform: scale(1.04) }

.work-meta{ padding: 28px 28px 32px}
.work-tag{
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 10px;
}
.work-card h3{
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 600; line-height: 1.2; margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.work-card p{
  font-size: 14px; color: var(--muted); line-height: 1.55;
  margin: 0 0 20px;
}
.work-stats{
  display: flex; gap: 24px; padding: 0; margin: 0;
  list-style: none; border-top: 1px solid var(--line); padding-top: 16px;
}
.work-stats li{ display: flex; flex-direction: column; gap: 2px}
.work-stats b{ font-size: 18px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums}
.work-stats span{ font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase}

/* ============ SERVICES ============ */
.section-services{
  background:
    radial-gradient(1200px 600px at 50% 10%, rgba(95,226,255, 0.10), transparent 60%);
}
.services-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.srv-card{
  padding: 32px 28px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 28px rgba(20,60,120, 0.08), 0 0 0 1px rgba(20,60,120,0.04);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s;
}
.srv-card:hover{ transform: translateY(-4px) }
.srv-num{
  font-family: 'Fraunces', serif;
  font-size: 38px; font-weight: 600; font-style: italic;
  color: var(--cyan); line-height: 1;
}
.srv-card h3{ font-size: 18px; font-weight: 700; margin: 0 0 4px}
.srv-card p{ font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0}

/* ============ PROCESS ============ */
.process-list{
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.process-list li{
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.5));
  border: 1px solid var(--line);
}
.process-list .step{
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: var(--cyan); margin-bottom: 14px;
}
.process-list h3{
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 600; margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.process-list p{ font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0}

/* ============ CONTACT ============ */
.section-contact{ padding-bottom: 60px}
.contact-card{
  display: grid; grid-template-columns: 280px 1fr;
  gap: 60px; align-items: center;
  padding: 56px 56px 56px 40px;
  border-radius: 28px;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(95,226,255, 0.18), transparent 60%),
    linear-gradient(180deg, #F4F9FF, #DCEBFA);
  box-shadow: 0 20px 60px rgba(20,60,120, 0.08), 0 0 0 1px rgba(20,60,120,0.04);
  overflow: hidden;
}
.contact-bot{
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(95,226,255, 0.45), transparent 60%),
    linear-gradient(180deg, #FFFFFF, #DCEBFA);
  border-radius: 22px;
  padding: 24px;
  height: 320px;
  box-shadow: inset 0 0 0 1px rgba(95,226,255,0.18);
}
.contact-bot img{ width: 220px; filter: drop-shadow(0 12px 24px rgba(20,60,120,0.15))}
.contact-body h2{
  font-family: 'Fraunces', serif;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 600; margin: 8px 0 14px; color: var(--ink);
}
.contact-body h2 i{ font-style: italic; font-weight: 400; color: var(--cyan)}
.contact-body p{ font-size: 16px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 24px; max-width: 480px}
.contact-actions{ display: flex; gap: 14px; align-items: center; flex-wrap: wrap}
.cta-ghost{
  font-size: 14px; font-weight: 600; color: var(--cyan);
}

/* ============ FOOTER ============ */
.footer{
  padding: 56px 60px 32px;
  border-top: 1px solid var(--line);
  background: white;
}
.foot-brand{
  display: flex; align-items: center; gap: 14px; margin-bottom: 36px;
}
.foot-brand img{ width: 40px; height: 48px}
.foot-brand b{ display: block; font-size: 13px; font-weight: 800; letter-spacing: 2.5px}
.foot-brand span{ display: block; font-size: 12px; color: var(--muted); margin-top: 2px}
.foot-cols{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-bottom: 32px;
}
.foot-cols > div{ display: flex; flex-direction: column; gap: 8px}
.foot-cols b{
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--ink-soft); text-transform: uppercase; margin-bottom: 4px;
}
.foot-cols a{ font-size: 13px; color: var(--ink); transition: color 0.2s}
.foot-cols a:hover{ color: var(--cyan)}
.foot-bot{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}

/* ============ MOBILE BURGER + DRAWER (hidden on desktop) ============ */
.nav-burger{
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(20,60,120,0.10);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-burger span{
  position: absolute;
  left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.nav-burger span:nth-child(1){ top: 14px }
.nav-burger span:nth-child(2){ top: 20px }
.nav-burger span:nth-child(3){ top: 26px }
.nav-open .nav-burger span:nth-child(1){ top: 20px; transform: rotate(45deg) }
.nav-open .nav-burger span:nth-child(2){ opacity: 0 }
.nav-open .nav-burger span:nth-child(3){ top: 20px; transform: rotate(-45deg) }

.nav-drawer{
  display: none;
  position: fixed; inset: 0;
  z-index: 40;
  background: rgba(20, 40, 80, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.nav-open .nav-drawer{ opacity: 1; pointer-events: auto }
.nav-drawer-panel{
  position: absolute; top: 0; right: 0;
  width: min(86vw, 340px); height: 100%;
  background: linear-gradient(180deg, #F4F9FF 0%, #DCEBFA 100%);
  box-shadow: -20px 0 60px rgba(20,60,120,0.18);
  padding: 92px 28px 28px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-open .nav-drawer-panel{ transform: translateX(0) }
.nav-drawer-panel a{
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 600; color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid rgba(20,60,120,0.08);
  letter-spacing: -0.01em;
}
.nav-drawer-cta{
  margin-top: 20px;
  align-self: flex-start;
  padding: 14px 22px !important;
  background: linear-gradient(180deg, #2C9FE8, #0F6BC0);
  color: white !important;
  border-radius: 999px;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  border-bottom: none !important;
  box-shadow: 0 10px 28px rgba(46, 159, 232, 0.4);
}

/* prevent body scroll when drawer is open */
body.nav-open{ overflow: hidden }

/* ============ TABLET (≤1200px) ============ */
@media (max-width: 1200px) {
  .screen-left .screen-frame, .screen-right .screen-frame { width: 360px }
  .screen-bottom .screen-frame { width: 420px }
  .section { padding: 100px 40px }
  .section-head h2 { font-size: 48px }
  .features-left{ left: 20px }
  .features-right{ right: 20px }
}

/* ============ SMALL TABLET (≤960px) ============ */
@media (max-width: 960px) {
  .nav { padding: 16px 24px }
  .nav-links, .nav-cta { display: none }
  .nav-burger { display: block }
  .nav-drawer { display: block }

  .work-grid { grid-template-columns: repeat(2, 1fr) }
  .services-grid { grid-template-columns: repeat(2, 1fr) }
  .process-list { grid-template-columns: repeat(2, 1fr) }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
    text-align: center;
  }
  .contact-bot { height: 240px }
  .contact-bot img { width: 160px }
  .contact-body p { margin-left: auto; margin-right: auto }
  .contact-actions { justify-content: center }

  /* Slim down hero on tablet but keep stage layout */
  .hero { min-height: 1080px }
  .screen-left { left: 20px; top: 200px }
  .screen-right { right: 20px; top: 200px }
  .screen-left .screen-frame, .screen-right .screen-frame { width: 280px }
  .screen-bottom .screen-frame { width: 360px }
  .features-left, .features-right { top: 460px }
  .features li { font-size: 12px; padding: 10px 18px 10px 12px }
}

/* ============ MOBILE (≤720px) — full vertical re-layout ============ */
@media (max-width: 720px) {
  .nav { padding: 14px 18px }
  .nav-avatar { width: 30px; height: 36px }
  .nav-name { font-size: 12px; letter-spacing: 2px }

  /* HERO — switch from absolute 3D stage to vertical flow */
  .hero {
    min-height: 0;
    height: auto;
    padding: 100px 0 60px;
  }
  .wires { display: none }
  .hero-foot { display: none }

  /* Stage becomes a normal-flow column */
  .stage {
    position: relative; inset: auto;
    display: flex; flex-direction: column;
    align-items: center;
    perspective: none;
    padding: 0 18px;
    gap: 28px;
  }

  /* Avatar — first, sized for phone */
  .avatar-stage {
    position: relative; top: auto; left: auto;
    transform: none;
    width: 260px; height: 280px;
    margin: 0 auto;
    order: 1;
  }
  .avatar { width: 190px }
  .ring-outer { width: 250px; height: 250px; top: 20px }
  .ring-mid { width: 210px; height: 210px; top: 40px }
  .avatar-glow { width: 220px; height: 220px; top: 30px }
  .avatar-sparkle.s1 { top: 50px; left: 20px }
  .avatar-sparkle.s2 { top: 100px; right: 30px }
  .avatar-sparkle.s3 { top: 180px; left: 40px }
  .podium-big { width: 240px; height: 40px; bottom: -8px }

  /* Hero CTA — moves above the screens (the headline-equivalent) */
  .hero-cta {
    position: relative; bottom: auto; left: auto; transform: none;
    order: 2;
    padding: 0 24px;
    gap: 22px;
  }
  .hero-cta p { font-size: 19px; line-height: 1.45 }

  /* Feature pills — flatten to a wrapping row, both sets become one */
  .features {
    position: relative; inset: auto;
    flex-direction: row; flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    order: 3;
  }
  .features-left, .features-right { top: auto; left: auto; right: auto }
  .features li {
    animation: none;
    font-size: 12px;
    padding: 8px 14px 8px 8px;
    gap: 8px;
  }
  .ft-icon { width: 26px; height: 26px }
  .ft-icon svg { width: 13px; height: 13px }

  /* Screens — stack vertically as cards, lose the 3D rotation */
  .screen {
    position: relative; inset: auto;
    transform: none !important;
    animation: none !important;
    width: 100%;
    max-width: 420px;
    order: 4;
    margin: 0 auto;
  }
  .screen-pill {
    align-self: flex-start !important;
    margin: 0 0 -14px 20px !important;
    font-size: 11px;
    letter-spacing: 1.6px;
    padding: 6px 14px 6px 6px;
  }
  .pill-icon { width: 24px; height: 24px }
  .pill-icon svg { width: 12px; height: 12px }
  .screen-frame,
  .screen-left .screen-frame,
  .screen-right .screen-frame,
  .screen-bottom .screen-frame {
    width: 100% !important;
  }
  .screen:hover { transform: none }
  .podium-small { width: 80px; height: 16px }

  /* SECTIONS */
  .section { padding: 72px 20px }
  .section-head { margin-bottom: 40px }
  .section-head h2 { font-size: 34px; line-height: 1.08 }
  .section-head p { font-size: 15px }

  .work-grid,
  .services-grid,
  .process-list { grid-template-columns: 1fr; gap: 20px }

  .work-meta { padding: 22px 22px 26px }
  .work-card h3 { font-size: 22px }
  .work-stats { gap: 18px }
  .work-stats b { font-size: 16px }

  .srv-card { padding: 26px 22px }
  .srv-num { font-size: 32px }
  .process-list li { padding: 26px 22px }

  /* CONTACT */
  .contact-card {
    padding: 32px 24px;
    border-radius: 22px;
  }
  .contact-bot { height: 200px; padding: 16px }
  .contact-bot img { width: 140px }
  .contact-body h2 { font-size: 32px }
  .contact-body p { font-size: 15px }

  /* FOOTER */
  .footer { padding: 40px 24px 24px }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px }
  .foot-bot {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }
}

/* ============ SMALL MOBILE (≤420px) ============ */
@media (max-width: 420px) {
  .nav-name { display: none }
  .hero { padding-top: 88px }
  .hero-cta p { font-size: 17px }
  .cta-button { font-size: 14px; padding: 12px 24px 12px 12px }
  .cta-icon { width: 28px; height: 28px }
  .section-head h2 { font-size: 28px }
  .contact-body h2 { font-size: 26px }
  .foot-cols { grid-template-columns: 1fr }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
