/* =========================================================
   VARUN — Premium Portfolio  (Revamped)
   Dark theme · Pink / Teal / Purple
   ========================================================= */

:root {
  --bg:        #060609;
  --bg-2:      #0a0a11;
  --bg-3:      #101019;
  --surface:   rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.16);

  --text:      #f5f4f8;
  --muted:     #9c9aab;
  --faint:     #5e5c6e;

  --purple:    #a855f7;
  --purple-2:  #7c3aed;
  --teal:      #2dd4bf;
  --teal-2:    #14b8a6;
  --pink:      #ff9ec4;
  --pink-2:    #f472b6;

  --grad-main: linear-gradient(115deg, var(--pink) 0%, var(--purple) 48%, var(--teal) 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,.16), rgba(45,212,191,.10));

  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Satoshi', sans-serif;

  --container: 1280px;
  --radius:    24px;
  --ease:      cubic-bezier(0.19, 1, 0.22, 1);
}

*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.5;
  overflow-x: hidden; cursor: none;
}
.lenis.lenis-smooth { scroll-behavior: auto !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--purple); color: #fff; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

/* gradient-border utility (premium rim) */
.grad-border { position: relative; }
.grad-border::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.02) 40%, rgba(168,85,247,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; transition: opacity .5s var(--ease);
}

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; }
.preloader__inner { text-align: center; }
.preloader__logo { margin-bottom: 20px; display: flex; justify-content: center; }
.preloader__mark-img { width: 260px; height: auto; display: block; animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.05); opacity: 1; } }
.preloader__text { height: 26px; overflow: hidden; margin-bottom: 36px; font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; color: var(--muted); }
.preloader__word { display: block; height: 26px; line-height: 26px; transition: transform .5s var(--ease); }
.preloader__counter { font-family: var(--font-display); font-size: 78px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.preloader__percent { color: var(--purple); font-size: 38px; vertical-align: super; }
.preloader__bar { width: 240px; height: 2px; background: var(--border); margin: 26px auto 0; border-radius: 2px; overflow: hidden; }
.preloader__progress { width: 0%; height: 100%; background: var(--grad-main); }

/* =========================================================
   CURSOR / GRAIN
   ========================================================= */
.cursor, .cursor-follow { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor { width: 7px; height: 7px; background: var(--text); }
.cursor-follow { width: 38px; height: 38px; border: 1px solid var(--border-2); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.cursor-follow.is-hover { width: 62px; height: 62px; background: rgba(168,85,247,.12); border-color: var(--purple); }
@media (hover: none) { .cursor, .cursor-follow { display: none; } body { cursor: auto; } }

.grain { position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; display: flex; justify-content: center; transition: padding .4s var(--ease); }
.nav__inner {
  position: relative; width: min(100% - 40px, 980px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 9px 9px 26px; border-radius: 100px;
  background: rgba(14,14,22,.55); backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  transition: width .5s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
/* subtle gradient rim */
.nav__inner::before {
  content: ''; position: absolute; inset: 0; border-radius: 100px; padding: 1px;
  background: linear-gradient(120deg, rgba(255,158,196,.4), rgba(168,85,247,.15) 40%, rgba(45,212,191,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5; pointer-events: none; transition: opacity .4s var(--ease);
}
.nav.scrolled .nav__inner { width: min(100% - 40px, 860px); background: rgba(10,10,17,.78); box-shadow: 0 16px 46px -14px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.1); }
.nav.scrolled .nav__inner::before { opacity: .8; }
.nav__logo { display: flex; align-items: center; position: relative; z-index: 1; }
.nav__logo-img { height: 46px; width: auto; display: block; transition: filter .4s var(--ease); }
.nav__logo:hover .nav__logo-img { filter: brightness(1.15) drop-shadow(0 0 10px rgba(168,85,247,.5)); }
.nav__dot { color: var(--purple); }
.nav__links { display: flex; gap: 30px; position: relative; z-index: 1; }
.nav__link { font-size: 14.5px; color: var(--muted); font-weight: 500; position: relative; transition: color .3s var(--ease); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--grad-main); transition: width .4s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__cta.btn--pill { position: relative; z-index: 1; background: var(--text); color: #0a0a0f; border: none; font-weight: 600; box-shadow: 0 6px 20px -6px rgba(168,85,247,.5); }
.nav__cta.btn--pill:hover { box-shadow: 0 8px 26px -6px rgba(168,85,247,.75); transform: translateY(-1px); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 1; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: .3s var(--ease); }
.nav__burger span:first-child { top: 6px; } .nav__burger span:last-child { bottom: 6px; }
.nav__burger.open span:first-child { top: 11px; transform: rotate(45deg); }
.nav__burger.open span:last-child { bottom: 11px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 999; background: var(--bg-2); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; transform: translateY(-100%); transition: transform .6s var(--ease); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__link { font-family: var(--font-display); font-size: 36px; font-weight: 500; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding: 16px 28px; border-radius: 100px; border: 1px solid transparent; transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); will-change: transform; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--primary { background: var(--text); color: #0a0a0f; }
.btn--primary:hover { box-shadow: 0 12px 44px rgba(168,85,247,.4); }
.btn--ghost { border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--pill { padding: 11px 22px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.btn--pill:hover { border-color: var(--purple); }

/* =========================================================
   SECTION HELPERS
   ========================================================= */
section { position: relative; padding: 140px 0; }
.section__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 22px; }
.section__eyebrow i { width: 26px; height: 1px; background: var(--teal); display: inline-block; }
.section__head { max-width: 700px; margin-bottom: 74px; }
.section__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5vw, 62px); line-height: 1.04; letter-spacing: -.02em; }
[data-reveal] { will-change: transform, opacity; }

/* =========================================================
   HERO  — the showpiece
   ========================================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 128px; padding-bottom: 60px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 30% 32%, rgba(168,85,247,.14), transparent 70%); }
.hero__grid { position: absolute; inset: -1px; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 66px 66px; -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%); mask: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%); opacity: .55; }
.hero__aurora { position: absolute; border-radius: 50%; filter: blur(130px); }
.hero__aurora--purple { width: 560px; height: 560px; background: var(--purple); opacity: .42; top: -12%; right: 4%; animation: float1 14s ease-in-out infinite; }
.hero__aurora--teal { width: 480px; height: 480px; background: var(--teal); opacity: .28; bottom: -18%; left: -6%; animation: float2 18s ease-in-out infinite; }
.hero__aurora--pink { width: 400px; height: 400px; background: var(--pink); opacity: .22; top: 36%; left: 28%; animation: float1 16s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-30px, 40px);} }
@keyframes float2 { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(40px,-30px);} }

.hero__content { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 20px; }
.hero__status { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,212,191,.6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(45,212,191,.5);} 70%{box-shadow:0 0 0 12px rgba(45,212,191,0);} 100%{box-shadow:0 0 0 0 rgba(45,212,191,0);} }

.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 54px); line-height: 1.03; letter-spacing: -.035em; margin-bottom: 20px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line__inner { display: block; transform: translateY(110%); }

.hero__sub { font-size: clamp(14.5px, 1.1vw, 16.5px); color: var(--muted); max-width: 440px; line-height: 1.6; }
.hero__sub strong { color: var(--text); font-weight: 700; }

/* ---- BENTO hero grid ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  grid-template-areas:
    "head  head  photo photo"
    "head  head  photo photo"
    "stats tech  photo photo"
    "cta   cta   live  live"; }
.bento__tile { position: relative; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 26px; overflow: hidden; transition: border-color .4s var(--ease), background .4s var(--ease); }
.bento__tile:hover { border-color: var(--border-2); }

.bento__head { grid-area: head; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3vw, 46px); background: linear-gradient(150deg, rgba(168,85,247,.12), rgba(45,212,191,.04) 58%, transparent); }

.bento__photo { grid-area: photo; padding: 0; min-height: 300px; border-color: var(--border-2); transform-style: preserve-3d; box-shadow: 0 44px 120px -46px rgba(124,58,237,.6); }
.bento__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 28% center; display: block; transition: transform .9s var(--ease); }
.bento__photo:hover img { transform: scale(1.05); }
.bento__photo-gloss { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 30%), linear-gradient(0deg, rgba(6,6,9,.5), transparent 42%); }
.bento__badge { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--text); padding: 9px 15px; border-radius: 100px; background: rgba(9,9,14,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--border-2); }

.bento__stats { grid-area: stats; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.bento__stat { display: flex; flex-direction: column; }
.bento__stat strong { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento__stat span { font-size: 12px; color: var(--faint); margin-top: 5px; }

.bento__tech { grid-area: tech; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bento__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

.bento__cta { grid-area: cta; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: transparent; border: 0; padding: 2px 0; }
.bento__cta .btn { flex: 1; justify-content: center; min-width: 150px; }

.bento__live { grid-area: live; display: flex; align-items: center; gap: 13px; }
.bento__live strong { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.25; }
.bento__live span { font-size: 12px; color: var(--faint); }
.hero__chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,212,191,.6); animation: pulse 2s infinite; flex-shrink: 0; }

.rotator { position: relative; height: 30px; overflow: hidden; }
.rotator__word { display: block; height: 30px; line-height: 30px; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--teal), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0%{transform: scaleY(0);} 50%{transform: scaleY(1);} 100%{transform: scaleY(0); transform-origin: bottom;} }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee-section { padding: 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.marquee { display: flex; overflow: hidden; user-select: none; padding: 28px 0; }
.marquee__track { display: flex; align-items: center; gap: 44px; padding-right: 44px; white-space: nowrap; flex-shrink: 0; animation: scrollX 34s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--muted); }
.marquee__dot { color: var(--purple) !important; font-size: 16px !important; }
@keyframes scrollX { to { transform: translateX(-100%); } }

/* =========================================================
   TRUSTED BY (CLIENT LOGOS)
   ========================================================= */
.clients { padding: 70px 0; overflow: hidden; }
.clients__label { text-align: center; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 40px; }
.clients__marquee { position: relative; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clients__track { display: flex; align-items: center; width: max-content; animation: clientScroll 42s linear infinite; }
.clients__marquee:hover .clients__track { animation-play-state: paused; }
@keyframes clientScroll { to { transform: translateX(-50%); } }
.clients__logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin: 0 30px; }
.clients__logo img { max-height: 36px; max-width: 150px; width: auto; height: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .5; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.clients__logo:hover img { opacity: .95; transform: translateY(-3px); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 80px; align-items: center; }
.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-3); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 0; }
.about__photo-badge { position: absolute; z-index: 2; bottom: 18px; left: 18px; background: rgba(6,6,9,.6); backdrop-filter: blur(10px); border: 1px solid var(--border-2); border-radius: 100px; padding: 8px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.about__photo-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.about__media-stats { display: flex; gap: 14px; margin-top: 16px; }
.about__media-stats div { flex: 1; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.about__media-stats strong { font-family: var(--font-display); font-size: 24px; display: block; }
.about__media-stats span { font-size: 13px; color: var(--faint); }
.about__heading { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 42px); line-height: 1.16; letter-spacing: -.02em; margin-bottom: 30px; }
.about__para { color: var(--muted); font-size: 17px; margin-bottom: 18px; max-width: 560px; }
.about__signature { margin-top: 34px; display: flex; flex-direction: column; }
.about__sign-name { font-family: var(--font-display); font-size: 26px; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__sign-role { font-size: 13px; color: var(--faint); letter-spacing: .05em; }

/* =========================================================
   SERVICES (gradient-border cards)
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { position: relative; padding: 40px 38px; border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .5s var(--ease), background .5s var(--ease); }
.service-card::before { content: ''; position: absolute; inset: 0; opacity: 0; background: var(--grad-soft); transition: opacity .5s var(--ease); z-index: 0; }
.service-card:hover { transform: translateY(-6px); background: var(--surface-2); }
.service-card:hover::before { opacity: 1; }
.service-card:hover.grad-border::after { opacity: 1; background: linear-gradient(140deg, var(--pink), var(--purple) 50%, var(--teal)); }
.service-card > * { position: relative; z-index: 1; }
.service-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.service-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 18px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--teal); }
.service-card__num { font-family: var(--font-display); font-size: 14px; color: var(--purple); font-weight: 600; letter-spacing: .1em; }
.service-card__title { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.service-card__desc { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card__tags li { font-size: 13px; color: var(--muted); padding: 6px 13px; border: 1px solid var(--border); border-radius: 100px; }

/* =========================================================
   WORK / PROJECTS — large showcase
   ========================================================= */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; max-width: 100%; }
.work__intro { color: var(--muted); max-width: 340px; font-size: 16px; }

/* filter tabs */
.work__filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 56px; }
.filter { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 11px 22px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--border-2); }
.filter.is-active { color: #0a0a0f; background: var(--text); border-color: transparent; box-shadow: 0 8px 26px -8px rgba(168,85,247,.5); }

/* card grid */
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
.pcard { display: flex; flex-direction: column; }
.pcard.is-hidden { display: none; }

/* browser-window frame */
.pcard__frame { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--bg-3); transform-style: preserve-3d; will-change: transform; }
.pcard__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; background: rgba(18,18,28,.92); border-bottom: 1px solid var(--border); }
.pcard__dots { display: inline-flex; gap: 7px; }
.pcard__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a48; }
.pcard__dots i:nth-child(1){ background:#ff5f57; } .pcard__dots i:nth-child(2){ background:#febc2e; } .pcard__dots i:nth-child(3){ background:#28c840; }
.pcard__bar em { font-style: normal; font-size: 12.5px; font-family: var(--font-body); font-weight: 500; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; background-image: none; color: var(--faint); -webkit-text-fill-color: var(--faint); }
.pcard__shot { position: relative; overflow: hidden; aspect-ratio: 16/10.5; }
.pcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: object-position 3.2s var(--ease); }
/* on hover, slowly pan down the screenshot to reveal the full page */
.pcard:hover .pcard__shot img { object-position: bottom center; }
.pcard__visit { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translate(-50%, 14px); opacity: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 500; padding: 12px 22px; border-radius: 100px; background: rgba(6,6,9,.6); backdrop-filter: blur(10px); border: 1px solid var(--border-2); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pcard:hover .pcard__visit { opacity: 1; transform: translate(-50%, 0); }

.pcard__info { padding: 22px 4px 0; }
.pcard__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.pcard__name { font-family: var(--font-display); font-size: clamp(20px, 2.1vw, 25px); font-weight: 500; line-height: 1.1; }
.pcard__badge { flex-shrink: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); padding: 6px 12px; border: 1px solid rgba(45,212,191,.28); border-radius: 100px; }
.pcard__desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.pcard__metrics { display: flex; gap: 30px; margin-bottom: 20px; }
.pcard__metrics div { display: flex; flex-direction: column; }
.pcard__metrics strong { font-family: var(--font-display); font-size: 23px; font-weight: 600; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard__metrics span { font-size: 12.5px; color: var(--faint); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__tags li { font-size: 12px; color: var(--muted); padding: 6px 13px; border: 1px solid var(--border); border-radius: 100px; }
.work__more { text-align: center; margin-top: 80px; }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--bg-2); border-block: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat__num, .stat__plus { font-family: var(--font-display); font-size: clamp(46px, 6vw, 78px); font-weight: 600; letter-spacing: -.03em; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__plus { font-size: clamp(30px, 4vw, 46px); }
.stat__label { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* =========================================================
   PROCESS — timeline with drawn line
   ========================================================= */
.process__list { position: relative; padding-left: 42px; }
.process__line { position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.process__line span { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--grad-main); }
.process__step { position: relative; display: flex; gap: 36px; align-items: flex-start; padding: 36px 0; border-top: 1px solid var(--border); transition: transform .5s var(--ease); }
.process__step:first-child { border-top: none; padding-top: 10px; }
.process__step:hover { transform: translateX(10px); }
.process__dot { position: absolute; left: -42px; top: 44px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-2); transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.process__step:first-child .process__dot { top: 18px; }
.process__step:hover .process__dot { border-color: var(--purple); box-shadow: 0 0 0 5px rgba(168,85,247,.16); }
.process__num { font-family: var(--font-display); font-size: 20px; color: var(--purple); font-weight: 600; min-width: 48px; }
.process__body h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 500; margin-bottom: 10px; }
.process__body p { color: var(--muted); font-size: 16px; max-width: 560px; }

/* =========================================================
   STACK — pills
   ========================================================= */
.stack__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pill { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 20px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--muted); transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-main); transition: box-shadow .4s var(--ease); }
.pill:hover { transform: translateY(-5px); border-color: var(--purple); background: var(--surface-2); color: var(--text); }
.pill:hover i { box-shadow: 0 0 12px var(--purple); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial { position: relative; padding: 38px 34px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; transition: transform .5s var(--ease), background .5s var(--ease); overflow: hidden; }
.testimonial:hover { transform: translateY(-6px); background: var(--surface-2); }
.testimonial__quote { position: absolute; top: 6px; right: 24px; font-family: var(--font-display); font-size: 120px; line-height: 1; color: rgba(255,255,255,.05); }
.testimonial__stars { color: var(--pink); font-size: 15px; letter-spacing: 2px; margin-bottom: 18px; position: relative; z-index: 1; }
.testimonial p { font-size: 17px; line-height: 1.55; margin-bottom: 30px; position: relative; z-index: 1; flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.testimonial footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); background: var(--bg-3); }
.testimonial footer strong { display: block; font-size: 15px; font-weight: 600; }
.testimonial footer span { font-size: 13px; color: var(--faint); }

/* testimonials — smooth auto-scroll carousel */
.testimonials { overflow: hidden; }
.tcarousel { position: relative; margin-top: 56px; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.tcarousel__track { display: flex; width: max-content; animation: tscroll 60s linear infinite; }
.tcarousel:hover .tcarousel__track { animation-play-state: paused; }
@keyframes tscroll { to { transform: translateX(-50%); } }
.tcarousel .testimonial { width: min(400px, 84vw); flex-shrink: 0; margin-right: 20px; }
.tavatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; background: var(--grad-main); flex-shrink: 0; box-shadow: 0 6px 18px -6px rgba(168,85,247,.6); }
.tcarousel .testimonial:nth-child(3n+2) .tavatar { background: linear-gradient(135deg, var(--pink-2), var(--purple-2)); }
.tcarousel .testimonial:nth-child(3n) .tavatar { background: linear-gradient(135deg, var(--teal-2), var(--purple)); }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__note { color: var(--muted); margin-top: 20px; font-size: 16px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; padding: 26px 0; font-family: var(--font-display); font-size: clamp(18px, 2vw, 23px); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color .3s var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--text); }
.faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: var(--purple); transition: transform .4s var(--ease); }
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__item p { color: var(--muted); font-size: 16px; padding-bottom: 26px; max-width: 540px; line-height: 1.6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { overflow: hidden; }
.contact__glow { position: absolute; top: 12%; left: 30%; transform: translateX(-50%); width: 720px; height: 420px; background: var(--purple); filter: blur(190px); opacity: .24; pointer-events: none; }
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.contact__info { min-width: 0; }
.contact__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 3.8vw, 58px); line-height: 1.04; letter-spacing: -.03em; margin: 10px 0 22px; }
.contact__sub { color: var(--muted); font-size: 17px; max-width: 420px; line-height: 1.6; margin-bottom: 34px; }
.contact__email { display: inline-block; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; padding-bottom: 8px; }
.contact__email::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--grad-main); transition: width .5s var(--ease); }
.contact__email:hover::after { width: 100%; }
.contact__socials { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.contact__social { font-size: 15px; color: var(--muted); font-weight: 500; padding: 11px 22px; border: 1px solid var(--border); border-radius: 100px; transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.contact__social:hover { color: var(--text); border-color: var(--purple); background: var(--surface); }

/* contact form */
.cform { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 15px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.cform__field { display: flex; flex-direction: column; gap: 7px; }
.cform__field > span { font-size: 12.5px; color: var(--muted); letter-spacing: .01em; font-weight: 500; }
.cform__field > span em { color: var(--faint); font-style: normal; }
.cform__field input, .cform__field select, .cform__field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color .3s var(--ease), background .3s var(--ease); }
.cform__field input::placeholder, .cform__field textarea::placeholder { color: var(--faint); }
.cform__field input:focus, .cform__field select:focus, .cform__field textarea:focus { outline: none; border-color: var(--purple); background: var(--bg-3); }
.cform__field textarea { resize: vertical; min-height: 108px; }
.cform__field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e5c6e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cform__field select option { background: var(--bg-2); color: var(--text); }
.cform__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.cform__submit { width: 100%; justify-content: center; margin-top: 6px; }
.cform__status { font-size: 14px; line-height: 1.4; min-height: 1em; margin-top: 2px; }
.cform__status.is-ok { color: var(--teal); }
.cform__status.is-error { color: var(--pink-2); }
.cform.is-sending { opacity: .8; pointer-events: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 42px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; }
.footer__brand img { height: 34px; width: auto; }
.footer__copy { color: var(--faint); font-size: 14px; }
.footer__top { font-size: 14px; color: var(--muted); }

/* =========================================================
   LMS / DIGITAL PRODUCTS
   ========================================================= */
.lms__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 5vw, 84px); align-items: center; }
.lms__intro { color: var(--muted); font-size: 17px; line-height: 1.62; max-width: 540px; margin-top: 18px; }
.lms__intro strong { color: var(--text); font-weight: 700; }
.lms__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 34px; }
.lms__list li { display: flex; align-items: flex-start; gap: 13px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .4s var(--ease), background .4s var(--ease); }
.lms__list li:hover { border-color: var(--border-2); background: var(--surface-2); }
.lms__ic { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--grad-soft); color: var(--teal); font-size: 15px; }
.lms__list strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.lms__list span { font-size: 13px; color: var(--faint); }

.lms__media { position: relative; isolation: isolate; }
.lms__glow { position: absolute; inset: -16% -10%; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .8;
  background: radial-gradient(circle at 40% 36%, rgba(168,85,247,.5), transparent 60%), radial-gradient(circle at 74% 82%, rgba(45,212,191,.32), transparent 62%); }
.lms__frame { display: block; position: relative; border-radius: 20px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--border-2);
  box-shadow: 0 44px 120px -36px rgba(124,58,237,.6), 0 24px 70px -30px rgba(0,0,0,.85); transform-style: preserve-3d; }
.lms__frame-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(10,10,17,.82); border-bottom: 1px solid var(--border); }
.lms__frame-bar em { font-style: normal; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lms__shot { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.lms__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .8s var(--ease); }
.lms__frame:hover .lms__shot img { transform: scale(1.04); }
.lms__visit { position: absolute; z-index: 2; bottom: 16px; right: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 9px 16px; border-radius: 100px; background: rgba(9,9,14,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-2);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.lms__visit b { color: var(--teal); }
.lms__frame:hover .lms__visit { opacity: 1; transform: translateY(0); }
.lms__plate { position: absolute; z-index: 3; bottom: -22px; left: -20px; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 16px;
  background: rgba(9,9,14,.66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-2); box-shadow: 0 24px 56px -22px rgba(0,0,0,.78); }
.lms__plate-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; background: var(--grad-main); flex-shrink: 0; }
.lms__plate strong { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.2; }
.lms__plate span { font-size: 12px; color: var(--faint); }

/* =========================================================
   AUTOMATION & INTEGRATIONS
   ========================================================= */
.auto__intro { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; margin-top: 18px; }
.auto__intro strong { color: var(--text); font-weight: 700; }
.auto__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 54px; }
.auto__card { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform .5s var(--ease); }
.auto__card:hover { transform: translateY(-6px); }
.auto__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--grad-soft); color: var(--teal); font-size: 20px; margin-bottom: 20px; }
.auto__card h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 10px; }
.auto__card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.auto__tools { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--border); }
.auto__tools-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.auto__chips { display: flex; gap: 12px; flex-wrap: wrap; }
.auto__chip { font-size: 14px; font-weight: 500; color: var(--muted); padding: 9px 18px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); transition: color .3s var(--ease), border-color .3s var(--ease); }
.auto__chip:hover { color: var(--text); border-color: var(--purple); }

/* =========================================================
   IMG PLACEHOLDERS
   ========================================================= */
.img-missing img { opacity: 0; }
.img-missing::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(168,85,247,.35), transparent 60%), radial-gradient(circle at 70% 70%, rgba(45,212,191,.28), transparent 60%), radial-gradient(circle at 50% 50%, rgba(255,158,196,.22), transparent 65%), var(--bg-3); }
.img-missing::after { content: 'GRAPHIC HERE'; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.4); font-weight: 600; }
.hero__bg.img-missing::after, .hero__bg.img-missing::before { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  section { padding: 96px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__photo { max-width: 420px; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .stack__grid { grid-template-columns: repeat(3, 1fr); }
  .faq__grid { grid-template-columns: 1fr; gap: 30px; }
  .faq__head { position: static; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .work__grid { grid-template-columns: 1fr; gap: 44px; }
  .lms__grid { grid-template-columns: 1fr; gap: 60px; }
  .lms__media { max-width: 560px; }
  .auto__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 116px; padding-bottom: 64px; }
  .bento { grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head  head"
      "photo photo"
      "stats tech"
      "cta   cta"
      "live  live"; }
  .bento__photo { min-height: 340px; }
}
@media (max-width: 560px) {
  .stack__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: clamp(30px, 8vw, 42px); }
  .bento { grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "photo"
      "stats"
      "tech"
      "cta"
      "live"; }
  .bento__tile { padding: 22px; }
  .bento__photo { min-height: 300px; }
  .bento__stats { flex-direction: row; justify-content: space-between; gap: 10px; }
  .lms__list { grid-template-columns: 1fr; }
  .lms__plate { left: 0; bottom: -18px; }
  .auto__grid { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .cform { padding: 22px; }
  .rotator, .rotator__word { height: 26px; }
  .rotator__word { line-height: 26px; font-size: 19px; }
  .marquee__track span { font-size: 22px; }
  .pcard__metrics { gap: 22px; }
  .btn { padding: 14px 24px; }
}

/* Reduced-motion: calm the infinite loops, but keep GSAP-driven reveals
   (this is a showcase portfolio). GSAP uses rAF, not CSS, so it still runs. */
@media (prefers-reduced-motion: reduce) {
  .hero__aurora, .hero__status, .hero__chip-dot, .hero__scroll-line { animation: none !important; }
}
