/* ============================================================
   SAURABH MAURYA — AI · Web · App Consulting
   Clean, professional consultancy system — subtle glass & color accents
============================================================ */
:root {
  --bg:          #f6f7f9;
  --bg-tint:     #eef1f8;
  --surface:     #ffffff;
  --surface-2:   #f2f4f8;
  --border:      #e5e8ef;
  --border-2:    #d7dbe6;

  --primary:     #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;
  --primary-soft:#eef0fe;
  --violet:      #7c3aed;
  --teal:        #0d9488;
  --amber:       #d97706;
  --grad:        linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft:   linear-gradient(135deg, #eef0fe 0%, #f3eefe 100%);

  --ink:         #0f1629;
  --text:        #3c4557;
  --text-muted:  #667085;
  --text-faint:  #98a1b3;

  --sh-sm:  0 1px 2px rgba(16,22,41,.06), 0 1px 3px rgba(16,22,41,.05);
  --sh:     0 4px 14px rgba(16,22,41,.07), 0 2px 5px rgba(16,22,41,.05);
  --sh-md:  0 10px 28px rgba(16,22,41,.09), 0 4px 10px rgba(16,22,41,.05);
  --sh-lg:  0 20px 48px rgba(16,22,41,.12);
  --sh-primary: 0 10px 26px rgba(79,70,229,.30);

  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body:    'Inter', sans-serif;
  --ff-mono:    'IBM Plex Mono', monospace;

  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-pill:100px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --maxw:       1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px; font-weight: 400; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--primary-soft); color: var(--primary-700); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 92px 0; position: relative; }

h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--ink); line-height: 1.14; letter-spacing: -0.02em; font-weight: 600; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Section headers ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); padding: 7px 15px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.section-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.85rem); margin-bottom: 15px; letter-spacing: -0.03em; }
.section-subtitle { color: var(--text-muted); max-width: 600px; font-size: 1.06rem; }
.section-header { margin-bottom: 54px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-display); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; border-color: transparent; box-shadow: var(--sh-primary); }
.btn-primary:hover { background: var(--primary-600); color: #fff; box-shadow: 0 14px 32px rgba(79,70,229,.4); }
.btn-ghost { background: var(--surface); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   NAV (subtle glass)
============================================================ */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; transition: padding .3s var(--ease); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; padding: 11px 14px 11px 20px;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-pill); box-shadow: var(--sh-sm); transition: box-shadow .3s, border-color .3s;
}
#navbar.scrolled .nav-inner { box-shadow: var(--sh-md); border-color: var(--border); }
.nav-logo { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius-pill); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--primary); }
.nav-cta { color: #fff !important; background: var(--primary); box-shadow: var(--sh-primary); }
.nav-cta:hover { background: var(--primary-600); color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
#hero { padding: 150px 0 70px; overflow: hidden; }
#hero::before {
  content: ''; position: absolute; top: -18%; right: -8%; width: 620px; height: 620px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(124,58,237,.14), transparent 62%);
}
#hero::after {
  content: ''; position: absolute; bottom: -22%; left: -10%; width: 560px; height: 560px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(79,70,229,.12), transparent 62%);
}
.hero-blob, .glass-orb { display: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--radius-pill); box-shadow: var(--sh-sm); margin-bottom: 26px;
}
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(13,148,136,.2); } 50% { box-shadow: 0 0 0 6px rgba(13,148,136,0); } }

.hero-name { font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 12px; }
.hero-role { font-family: var(--ff-mono); font-size: clamp(.98rem, 2vw, 1.25rem); color: var(--primary); margin-bottom: 22px; min-height: 1.6em; font-weight: 500; }
.hero-role .typed-text { font-weight: 500; }
.cursor-blink { display: inline-block; width: 2px; height: 1.05em; background: var(--primary); margin-left: 3px; vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-summary { font-size: 1.1rem; color: var(--text); max-width: 540px; margin-bottom: 32px; }
.hero-summary strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust-item .trust-num { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.trust-item .trust-num span { color: var(--primary); }
.trust-lbl { font-size: .76rem; color: var(--text-muted); }
.trust-sep { width: 1px; height: 30px; background: var(--border-2); }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.avatar-stage {
  position: relative; width: 320px; height: 380px; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--grad-soft); border: 1px solid var(--border); box-shadow: var(--sh-lg);
  display: flex; align-items: flex-end; justify-content: center;
}
.avatar-img, .avatar-initials { width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar-initials { display: none; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 5rem; font-weight: 700; color: var(--primary); }
.orbit-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); padding: 9px 14px; border-radius: var(--radius-pill); box-shadow: var(--sh-md); white-space: nowrap; animation: floaty 5s ease-in-out infinite;
}
.orbit-chip i { color: var(--primary); }
.oc1 { top: 8%; left: -7%; animation-delay: 0s; }
.oc2 { top: 34%; right: -12%; animation-delay: .8s; }
.oc2 i { color: var(--violet); }
.oc3 { bottom: 22%; left: -12%; animation-delay: 1.6s; }
.oc3 i { color: var(--teal); }
.oc4 { bottom: 6%; right: -6%; animation-delay: 2.4s; }
.oc4 i { color: var(--amber); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.scroll-hint { display: none; }

/* ============================================================
   TRUST BAND (logos + stats)
============================================================ */
.trust-band { padding: 46px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-eyebrow { text-align: center; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 26px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.logo-item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; color: var(--text-muted); opacity: .72; transition: opacity .2s, color .2s; }
.logo-item i { font-size: 1.15rem; }
.logo-item:hover { opacity: 1; color: var(--ink); }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.stat-box { text-align: center; padding: 26px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-num { font-family: var(--ff-display); font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { font-size: .84rem; color: var(--text-muted); margin-top: 8px; }

/* ============================================================
   SERVICES
============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { padding: 34px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; position: relative; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--border-2); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: var(--sc-color, var(--primary)); box-shadow: var(--sh-sm); margin-bottom: 22px; }
.service-card h3 { font-size: 1.32rem; margin-bottom: 11px; }
.service-card p { color: var(--text-muted); font-size: .96rem; margin-bottom: 20px; }
.service-list { display: flex; flex-direction: column; gap: 9px; }
.service-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text); }
.service-list li i { color: var(--sc-color, var(--primary)); font-size: .78rem; }

/* ============================================================
   ENGAGEMENT MODELS
============================================================ */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.engage-card { display: flex; flex-direction: column; padding: 34px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); position: relative; }
.engage-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.engage-card.featured { border: 1.5px solid var(--primary); box-shadow: var(--sh-md); background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 26%); }
.engage-badge { position: absolute; top: -13px; left: 30px; font-family: var(--ff-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--primary); padding: 5px 13px; border-radius: var(--radius-pill); box-shadow: var(--sh-sm); }
.engage-icon { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--primary); background: var(--primary-soft); margin-bottom: 20px; }
.engage-name { font-size: 1.3rem; margin-bottom: 6px; }
.engage-meta { font-family: var(--ff-mono); font-size: .82rem; color: var(--primary); margin-bottom: 16px; }
.engage-desc { font-size: .93rem; color: var(--text-muted); margin-bottom: 20px; }
.engage-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.engage-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text); }
.engage-list li i { color: var(--teal); margin-top: 4px; font-size: .78rem; }
.engage-card .btn { margin-top: auto; }

/* ============================================================
   PROCESS
============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-sm); position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.process-step:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.process-num { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; color: #fff; background: var(--grad); width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.process-step h4 { font-size: 1.12rem; margin-bottom: 8px; }
.process-step p { font-size: .89rem; color: var(--text-muted); }

/* ============================================================
   WORKS
============================================================ */
.works-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 42px; }
.filter-btn { font-family: var(--ff-display); font-weight: 600; font-size: .88rem; color: var(--text-muted); padding: 9px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--sh-sm); transition: color .2s, background .2s, border-color .2s; }
.filter-btn:hover { color: var(--ink); border-color: var(--border-2); }
.filter-btn.active { color: #fff; background: var(--primary); border-color: transparent; box-shadow: var(--sh-primary); }

.works-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-lg); box-shadow: var(--sh-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.work-card.hide { display: none; }
.work-thumb { height: 195px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.work-thumb .wt-badge { position: absolute; top: 13px; left: 13px; z-index: 4; font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); color: #fff; font-weight: 600; }
.work-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.work-cat { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.work-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.work-body p { font-size: .92rem; color: var(--text-muted); margin-bottom: 18px; flex: 1; }
.work-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.work-tags span { font-size: .72rem; color: var(--text-muted); padding: 4px 11px; background: var(--surface-2); border-radius: var(--radius-pill); }
.work-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--ff-display); font-weight: 600; font-size: .9rem; color: var(--primary); transition: gap .2s; }
.work-link:hover { gap: 12px; }

/* ============================================================
   TESTIMONIALS
============================================================ */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tst-card { padding: 30px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 16px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tst-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.tst-quote-mark { display: none; }
.tst-stars { color: var(--amber); font-size: .9rem; letter-spacing: 2px; }
.tst-text { font-size: 1rem; color: var(--text); flex: 1; }
.tst-person { display: flex; align-items: center; gap: 13px; }
.tst-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 700; color: #fff; font-size: 1rem; }
.tst-name { font-family: var(--ff-display); font-weight: 600; color: var(--ink); font-size: .96rem; }
.tst-role { font-size: .8rem; color: var(--text-muted); }

/* ============================================================
   CONTACT + FORM
============================================================ */
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-intro { color: var(--text-muted); margin-bottom: 30px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.contact-link:hover { transform: translateX(3px); box-shadow: var(--sh); border-color: var(--border-2); }
.cl-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); flex-shrink: 0; }
.cl-label { display: block; font-size: .7rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.cl-value { font-size: .92rem; color: var(--ink); font-weight: 500; }

.form-card { padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--sh-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-group label .req { color: var(--primary); }
.form-control { width: 100%; padding: 13px 15px; border-radius: 11px; background: var(--bg); color: var(--ink); font-size: .95rem; border: 1px solid var(--border-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus { outline: none; background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.form-control { resize: vertical; min-height: 118px; }
select.form-control { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }
.form-group.error .form-control { border-color: #e05252; box-shadow: 0 0 0 3px rgba(224,82,82,.12); }
.field-error { display: none; font-size: .77rem; color: #d84343; margin-top: 6px; font-weight: 500; }
.form-group.error .field-error { display: block; }
.form-note { font-size: .78rem; color: var(--text-faint); margin-top: 14px; text-align: center; }

.form-success { display: none; text-align: center; padding: 28px 10px; }
.form-success.show { display: block; animation: popIn .4s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.success-ring { width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; background: var(--grad); box-shadow: var(--sh-primary); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--text-muted); margin-bottom: 20px; max-width: 380px; margin-inline: auto; }

/* ============================================================
   BOOKING MODAL
============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15,22,41,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--sh-lg); padding: 34px; transform: translateY(20px) scale(.97); transition: transform .3s var(--ease); }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-head h3 { font-size: 1.5rem; margin-bottom: 5px; }
.modal-head p { font-size: .88rem; color: var(--text-muted); }
.modal-close { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--surface-2); flex-shrink: 0; transition: color .2s, background .2s; }
.modal-close:hover { color: #fff; background: var(--primary); }

.booking-steps { display: flex; gap: 7px; margin-bottom: 26px; }
.bstep { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; position: relative; }
.bstep::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.bstep.done::after, .bstep.current::after { transform: scaleX(1); }

.booking-panel { display: none; }
.booking-panel.active { display: block; animation: slideInRight .35s var(--ease); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.panel-title { font-family: var(--ff-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.panel-sub { font-size: .84rem; color: var(--text-muted); margin-bottom: 18px; }

.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 6px; }
.topic-opt { padding: 15px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; text-align: left; display: flex; flex-direction: column; gap: 3px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.topic-opt:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.topic-opt .to-icon { font-size: 1.2rem; }
.topic-opt .to-name { font-family: var(--ff-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
.topic-opt .to-desc { font-size: .74rem; color: var(--text-muted); }
.topic-opt.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.topic-opt.selected .to-name { color: var(--primary); }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.slot { padding: 12px 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; text-align: center; font-size: .88rem; font-weight: 600; color: var(--text); transition: border-color .2s, box-shadow .2s, color .2s; }
.slot:hover { border-color: var(--primary); }
.slot.selected { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.slot-label { display: block; font-size: .66rem; color: var(--text-faint); margin-top: 2px; font-weight: 500; }

.booking-nav { display: flex; gap: 11px; margin-top: 24px; }
.booking-review { padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 6px; }
.review-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.review-row:last-child { border-bottom: none; }
.review-row .rk { color: var(--text-muted); }
.review-row .rv { color: var(--ink); font-weight: 600; text-align: right; }

/* ============================================================
   FINAL CTA + FOOTER
============================================================ */
.cta-band { padding: 64px 48px; background: var(--grad); border-radius: var(--radius-xl); text-align: center; box-shadow: var(--sh-lg); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 40%); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-band .btn { position: relative; background: #fff; color: var(--primary-700); border-color: transparent; }
.cta-band .btn:hover { background: #fff; color: var(--primary-700); transform: translateY(-2px); box-shadow: var(--sh-lg); }

footer { padding: 56px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-logo { font-family: var(--ff-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.footer-logo span { color: var(--primary); }
.footer-text { color: var(--text-muted); font-size: .9rem; max-width: 460px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); transition: color .2s, transform .2s, border-color .2s; }
.footer-socials a:hover { color: var(--primary); transform: translateY(-3px); border-color: var(--primary); }
.footer-copy { font-size: .78rem; color: var(--text-faint); font-family: var(--ff-mono); }

/* ============================================================
   REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.slide-left { transform: translateX(-40px); }
.reveal.slide-right { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: none; }
.marquee { display: none; }

/* ============================================================
   CASE STUDY PAGE
============================================================ */
.cs-hero { padding: 148px 0 46px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-display); font-weight: 600; font-size: .88rem; color: var(--primary); margin-bottom: 28px; padding: 9px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--sh-sm); transition: gap .2s, box-shadow .2s; }
.back-link:hover { gap: 12px; box-shadow: var(--sh); }
.cs-cat { display: inline-block; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.cs-title { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 15px; letter-spacing: -0.03em; }
.cs-lede { font-size: 1.14rem; color: var(--text-muted); max-width: 640px; margin-bottom: 28px; }
.cs-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-meta-item { padding: 12px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--sh-sm); }
.cs-meta-item .k { font-size: .7rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.cs-meta-item .v { font-family: var(--ff-display); font-weight: 600; color: var(--ink); }

.cs-banner { height: 320px; border: 1px solid var(--border); box-shadow: var(--sh-md); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 58px; position: relative; }

.cs-body { display: grid; grid-template-columns: 1fr 300px; gap: 46px; align-items: start; }
.cs-content h2 { font-size: 1.6rem; margin: 40px 0 15px; }
.cs-content h2:first-child { margin-top: 0; }
.cs-content p { color: var(--text); margin-bottom: 15px; }
.cs-content ul { margin: 0 0 15px; display: flex; flex-direction: column; gap: 10px; }
.cs-content ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.cs-content ul li i { color: var(--teal); margin-top: 5px; font-size: .8rem; }
.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 20px; }
.outcome-card { padding: 22px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-sm); text-align: center; }
.outcome-num { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; }
.outcome-lbl { font-size: .82rem; color: var(--text-muted); }
.cs-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.side-card { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-sm); }
.side-card h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 15px; }
.stack-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.stack-tags span { font-size: .8rem; color: var(--text-muted); padding: 6px 13px; background: var(--surface-2); border-radius: var(--radius-pill); }
.side-cta { background: var(--grad); }
.side-cta h4 { color: rgba(255,255,255,.85); }
.side-cta p { font-size: .9rem; color: rgba(255,255,255,.92); margin-bottom: 16px; }
.side-cta .btn { background: #fff; color: var(--primary-700); border-color: transparent; }
.cs-nav-foot { margin-top: 56px; display: flex; justify-content: space-between; gap: 18px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .avatar-stage { width: 280px; height: 330px; }
  .services-grid, .engage-grid, .works-grid, .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-side { position: static; }
  .reveal.slide-left, .reveal.slide-right { transform: translateY(28px); }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; top: 74px; right: 16px; left: 16px; flex-direction: column; align-items: stretch; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-lg); padding: 14px; transform: translateY(-14px); opacity: 0; visibility: hidden; transition: .28s; }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { text-align: center; }
  .nav-toggle { display: flex; }
  .services-grid, .engage-grid, .works-grid, .tst-grid, .process-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .form-row, .topic-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px; }
  .modal { padding: 26px 20px; }
  .form-card { padding: 24px; }
  .cta-band { padding: 44px 24px; }
  .cs-nav-foot { flex-direction: column; }
}

/* ============================================================
   INTRO LOAD REVEAL + PLAYFUL INTERACTIONS
============================================================ */
.intro-hidden { opacity: 0; transform: translateY(24px); }
.intro-reveal { animation: introUp .8s var(--ease) both; }
@keyframes introUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Skip intro control */
.intro-skip {
  position: fixed; right: 20px; bottom: 20px; z-index: 3000;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-weight: 600; font-size: .8rem; color: var(--text-muted);
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--sh); padding: 9px 16px; border-radius: var(--radius-pill);
  cursor: pointer; transition: opacity .35s, transform .25s var(--ease), color .2s;
}
.intro-skip:hover { color: var(--primary); transform: translateY(-2px); }
.intro-skip.gone { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* Confetti + emoji particles */
.confetti-piece { position: fixed; z-index: 4000; pointer-events: none; will-change: transform, opacity; }

/* Playful transforms */
.magnetic { will-change: transform; }
.tilt-3d { will-change: transform; transform-style: preserve-3d; }

/* Easter-egg toast */
.egg-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 4001;
  background: var(--ink); color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: .9rem;
  padding: 12px 22px; border-radius: var(--radius-pill); box-shadow: var(--sh-lg);
  opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.egg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Logo spin on click */
.nav-logo.spin { animation: logoSpin .7s var(--ease); }
@keyframes logoSpin { to { transform: rotate(360deg); } }

/* Playful button press bounce */
.btn:active { transform: translateY(1px) scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .intro-hidden { opacity: 1; transform: none; }
  .intro-reveal, .nav-logo.spin { animation: none; }
  .intro-skip { display: none; }
}

/* ============================================================
   MINI-GAME — Catch the Stack
============================================================ */
#play { position: relative; }
.game-wrap { max-width: 720px; margin: 0 auto; }
.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--sh-md); padding: 22px; }
.game-hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0 4px; }
.hud-item { display: flex; align-items: center; gap: 8px; font-family: var(--ff-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.hud-item .lbl { font-family: var(--ff-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 500; }
.game-hearts { color: #ec4899; letter-spacing: 3px; }
.game-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, #eef1fb, #f7f8fd); border: 1px solid var(--border); }
.game-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.game-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 26px;
  background: rgba(246,247,249,.78); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transition: opacity .3s, visibility .3s;
}
.game-overlay.hidden { opacity: 0; visibility: hidden; }
.game-overlay h3 { font-size: 1.55rem; }
.game-overlay p { color: var(--text-muted); max-width: 380px; }
.game-overlay p strong { color: var(--primary); font-weight: 700; }
.game-note { text-align: center; font-size: .82rem; color: var(--text-faint); margin-top: 14px; }
@media (max-width: 640px) { .game-overlay h3 { font-size: 1.3rem; } .hud-item { font-size: .95rem; } }

/* ============================================================
   FULL-PAGE SCROLL WEATHER OVERLAY
============================================================ */
#weather-canvas {
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none;
}
.weather-chip {
  position: fixed; left: 20px; bottom: 20px; z-index: 3000;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-weight: 600; font-size: .82rem; color: var(--ink);
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--sh); padding: 8px 15px; border-radius: var(--radius-pill);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, color .2s;
}
.weather-chip .wx-ico { font-size: 1.05rem; line-height: 1; animation: wxFloat 3s ease-in-out infinite; }
@keyframes wxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.weather-chip:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.weather-chip.off { color: var(--text-faint); }
.weather-chip.off .wx-ico { animation: none; filter: grayscale(1); opacity: .6; }
@media (max-width: 640px) { .weather-chip { font-size: .74rem; padding: 7px 12px; } }

/* ============================================================
   INTERACTIVE LIQUID-GLASS BUBBLES
============================================================ */
#bubble-canvas {
  position: fixed; inset: 0; z-index: 901;   /* above weather(900), below nav(1000) */
  pointer-events: none;
  opacity: 0;                                /* JS fades to .2 once past the hero */
  transition: opacity .45s var(--ease);
}
