:root{
  --ink:#1B1E2B;
  --ink-soft:#454A60;
  --white:#FFFFFF;
  --surface:#F6F7FB;
  --surface-2:#EEF0F8;
  --border:#E3E5EF;
  --blue:#2E5FD9;
  --blue-deep:#1D3F9E;
  --orange:#E85526;
  --orange-deep:#C7431B;
  --magenta:#C2115F;
  --cyan:#2FB1D6;
  --gold:#F2A83C;
  --violet:#6B32C9;
  --gradient-brand: linear-gradient(100deg, var(--blue) 0%, var(--violet) 38%, var(--magenta) 66%, var(--orange) 100%);
  --container:1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
}
/* Opt-in per page: added to <body class="zoom-110"> on the homepage only. */
.zoom-110{zoom:1.1;}
h1,h2,h3{
  font-family:'Space Grotesk',sans-serif;
  margin:0;
  letter-spacing:-0.01em;
}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;}
img{display:block;max-width:100%;}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;}

/* ---------- BACKGROUND PATTERN ---------- */
.bg-pattern{
  position:fixed;
  top:0; right:0; bottom:0; left:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.bg-pattern::before{
  content:"";
  position:absolute;
  top:-10%;
  right:-6%;
  width:56%;
  height:70%;
  border-radius:50%;
  background:radial-gradient(circle, rgba(46,95,217,0.07) 0%, rgba(107,50,201,0.05) 45%, rgba(255,255,255,0) 72%);
}
.bg-pattern svg{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}
/* Homepage only: oversized with margin to drift within for the scroll parallax effect. */
#bgNetworkSvg{
  top:-6%;
  left:-6%;
  width:112%;
  height:112%;
  will-change:transform;
}
.bg-lines line{
  stroke:url(#networkGradient);
  stroke-width:1.25;
  stroke-opacity:0.24;
}
.bg-dots circle{
  fill:url(#networkGradient);
  fill-opacity:0.32;
}

/* Homepage only: slowly cycles the network gradient through the brand palette,
   each stop phase-shifted so the pattern flows rather than flashing in unison. */
@keyframes bgGradientCycle{
  0%{stop-color:var(--blue);}
  25%{stop-color:var(--violet);}
  50%{stop-color:var(--magenta);}
  75%{stop-color:var(--orange);}
  100%{stop-color:var(--blue);}
}
#gradStop1{animation:bgGradientCycle 9s linear infinite;}
#gradStop2{animation:bgGradientCycle 9s linear infinite;animation-delay:-2.25s;}
#gradStop3{animation:bgGradientCycle 9s linear infinite;animation-delay:-4.5s;}
#gradStop4{animation:bgGradientCycle 9s linear infinite;animation-delay:-6.75s;}
.navbar, main{
  position:relative;
  z-index:1;
}

/* Anchor targets: offset for the sticky nav so a scrolled-to section
   isn't tucked underneath it. Add the "id" used in a nav link to any
   new section and this applies automatically. */
section[id]{
  scroll-margin-top:96px;
}

/* ---------- NAV ---------- */
.navbar{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.92);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
}
.brand-logo{height:62px;width:auto;}

.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
}
.nav-links > li > a,
.nav-links > li > button{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  font-size:15px;
  font-weight:500;
  color:var(--ink);
  background:none;
  border:none;
  cursor:pointer;
  border-radius:8px;
  transition:background .15s ease, color .15s ease;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover{
  background:var(--surface);
  color:var(--blue-deep);
}
.nav-links .chevron{
  width:10px;height:10px;
  transition:transform .18s ease;
}
.has-dropdown{position:relative;}
.has-dropdown.open .chevron{transform:rotate(180deg);}
.dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  min-width:200px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 12px 28px rgba(27,30,43,0.09);
  padding:8px;
  opacity:0;
  visibility:hidden;
  translate:0 4px;
  transition:opacity .16s ease, translate .16s ease, visibility .16s;
}
.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown{
  opacity:1;
  visibility:visible;
  translate:0 0;
}
.dropdown a{
  display:block;
  padding:10px 14px;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink);
  border-radius:8px;
}
.dropdown a:hover{background:var(--surface);color:var(--blue-deep);}

.nav-cta{
  margin-left:6px;
  background:var(--gradient-brand) !important;
  color:var(--white) !important;
  padding:11px 22px !important;
  border-radius:999px !important;
}
.nav-cta:hover{filter:brightness(1.06);color:var(--white) !important;}

.nav-toggle{
  display:none;
  width:40px;height:40px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--white);
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  display:block;
  width:18px;height:2px;
  background:var(--ink);
  position:relative;
  transition:.2s ease;
}
.nav-toggle span::before{position:absolute;top:-6px;}
.nav-toggle span::after{position:absolute;top:6px;}

/* ---------- HERO ---------- */
.hero{
  padding:88px 0 110px;
  position:relative;
  overflow:hidden;
}
.hero-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
  pointer-events:none;
  z-index:0;
}
.hero-glow.g1{
  width:420px;height:420px;
  right:2%;
  top:6%;
  background:var(--blue);
  opacity:0.10;
}
.hero-glow.g2{
  width:320px;height:320px;
  right:22%;
  bottom:-6%;
  background:var(--orange);
  opacity:0.09;
}
.hero-glow.g3{
  width:260px;height:260px;
  left:-4%;
  bottom:4%;
  background:var(--cyan);
  opacity:0.08;
}
.hero-actions{
  margin-top:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px 24px;
}
.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--gradient-brand);
  color:var(--white);
  font-weight:600;
  font-size:15.5px;
  padding:15px 28px;
  border-radius:999px;
  box-shadow:0 14px 28px -10px rgba(107,50,201,0.45);
  transition:filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 18px 32px -10px rgba(107,50,201,0.55);}
/* Team page's join-card button: slightly different padding/transition than the shared default. */
.join-card .btn-primary{
  padding:15px 30px;
  transition:filter .15s ease, transform .15s ease;
  white-space:nowrap;
}
.join-card .btn-primary:hover{filter:brightness(1.06);transform:translateY(-1px);}

/* ---------- HERO BANNER ---------- */
.hero-banner{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  min-height:clamp(400px,42vw,520px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:clamp(56px,6vw,92px) clamp(24px,5vw,72px);
  background:linear-gradient(160deg,#FFFFFF 0%,#F6F7FD 52%,#FFFFFF 100%);
  box-shadow:0 34px 70px -44px rgba(27,30,43,0.45);
}
/* Brand-gradient hairline: a masked ring so only the 1.5px edge shows. */
.hero-banner::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1.5px;
  background:var(--gradient-brand);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:0.55;
  pointer-events:none;
  z-index:2;
}
.hero-banner::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-34%;
  width:34%;
  height:220%;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.5) 50%,rgba(255,255,255,0) 100%);
  filter:blur(26px);
  pointer-events:none;
  animation:heroSweep 12s ease-in-out infinite;
}
@keyframes heroSweep{
  0%{transform:translateX(0) rotate(14deg);opacity:0;}
  15%{opacity:1;}
  65%{opacity:1;}
  100%{transform:translateX(430%) rotate(14deg);opacity:0;}
}

.hero-aurora{
  position:absolute;
  border-radius:50%;
  filter:blur(78px);
  pointer-events:none;
}
.hero-aurora.a1{width:460px;height:460px;top:-150px;left:-100px;background:var(--blue);opacity:0.38;animation:heroDrift1 22s ease-in-out infinite alternate;}
.hero-aurora.a2{width:380px;height:380px;top:-100px;right:13%;background:var(--violet);opacity:0.32;animation:heroDrift2 26s ease-in-out infinite alternate;}
.hero-aurora.a3{width:430px;height:430px;bottom:-170px;right:-90px;background:var(--magenta);opacity:0.30;animation:heroDrift3 24s ease-in-out infinite alternate;}
.hero-aurora.a4{width:350px;height:350px;bottom:-140px;left:26%;background:var(--orange);opacity:0.26;animation:heroDrift4 28s ease-in-out infinite alternate;}
.hero-aurora.a5{width:320px;height:320px;top:38%;left:-130px;background:var(--cyan);opacity:0.28;animation:heroDrift2 30s ease-in-out infinite alternate;}
@keyframes heroDrift1{from{transform:translate(0,0) scale(1);}to{transform:translate(64px,44px) scale(1.12);}}
@keyframes heroDrift2{from{transform:translate(0,0) scale(1);}to{transform:translate(-52px,52px) scale(1.1);}}
@keyframes heroDrift3{from{transform:translate(0,0) scale(1);}to{transform:translate(-70px,-44px) scale(1.14);}}
@keyframes heroDrift4{from{transform:translate(0,0) scale(1);}to{transform:translate(72px,-50px) scale(1.08);}}

/* Sits at z-index 1 so the light sweep passes behind it rather than washing it out. */
.hero-net{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  pointer-events:none;
}
.hero-net-lines line{stroke:url(#heroNetGrad);stroke-width:1.35;stroke-opacity:0.42;}
.hero-net-dots circle{fill:url(#heroNetGrad);fill-opacity:0.62;}

.hero-banner-inner{
  position:relative;
  z-index:1;
  max-width:960px;
}
.nowrap{white-space:nowrap;}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 24px 11px 19px;
  border-radius:999px;
  background:rgba(255,255,255,0.75);
  border:1px solid var(--border);
  backdrop-filter:blur(8px);
  font-size:16px;
  font-weight:600;
  color:var(--ink-soft);
}
.hero-kicker-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--gradient-brand);
  animation:heroDotPulse 2.6s ease-in-out infinite;
}
@keyframes heroDotPulse{
  0%,100%{opacity:0.55;transform:scale(0.85);}
  50%{opacity:1;transform:scale(1.15);}
}
.hero-title{
  margin-top:26px;
  font-size:clamp(38px,5.6vw,68px);
  line-height:1.06;
  font-weight:600;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.hero-title-accent{
  background:var(--gradient-brand);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
}
.hero-lede{
  margin:22px auto 0;
  max-width:60ch;
  font-size:17.5px;
  line-height:1.65;
  color:var(--ink-soft);
}
.hero-btn{padding:17px 34px;font-size:16px;}


/* ---------- ABOUT ---------- */
.about{
  position:relative;
  z-index:1;
  padding:20px 0 130px;
}
.about-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 56px;
}
.about-title{
  font-size:clamp(30px,3.4vw,38px);
  font-weight:600;
  color:var(--ink);
}
.accent-bar{
  width:60px;
  height:4px;
  border-radius:2px;
  margin:16px auto 0;
  background:var(--gradient-brand);
}
.page-head .accent-bar{margin:20px auto 0;}
.about-lede{
  margin-top:22px;
  font-size:17px;
  line-height:1.6;
  color:var(--ink-soft);
}
.about-body{
  max-width:720px;
  margin:0 auto;
}
.about-body p{
  font-size:17px;
  line-height:1.75;
  color:var(--ink-soft);
  max-width:62ch;
  margin:0 0 20px;
}
.about-body p:last-of-type{margin-bottom:0;}
.about-body .about-quote{
  font-family:'Space Grotesk',sans-serif;
  font-size:clamp(24px,2.6vw,31px);
  font-weight:600;
  line-height:1.35;
  max-width:19ch;
  margin:36px 0 14px;
  background:var(--gradient-brand);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.about-quote-sub{
  font-size:16px;
  line-height:1.7;
  color:var(--ink-soft);
  max-width:52ch;
}

/* ---------- SERVICES ---------- */
.services{
  position:relative;
  z-index:1;
  padding:20px 0 130px;
}
.section-title{
  font-size:clamp(30px,3.4vw,38px);
  font-weight:600;
  color:var(--ink);
}
.section-lede{
  margin-top:22px;
  font-size:17px;
  line-height:1.6;
  color:var(--ink-soft);
}
.tone-blue{--tone:var(--blue);--tone-bg:rgba(46,95,217,0.10);}
.tone-violet{--tone:var(--violet);--tone-bg:rgba(107,50,201,0.10);}
.tone-magenta{--tone:var(--magenta);--tone-bg:rgba(194,17,95,0.10);}
.tone-orange{--tone:var(--orange);--tone-bg:rgba(232,85,38,0.10);}
.tone-cyan{--tone:var(--cyan);--tone-bg:rgba(47,177,214,0.12);}
.tone-gold{--tone:var(--gold);--tone-bg:rgba(242,168,60,0.15);}

/* ---------- SERVICES ORBIT (static ring of self-contained circles) ---------- */
.services-orbit{
  position:relative;
  width:940px;
  max-width:100%;
  height:940px;
  margin:20px auto 10px;
}
.orbit-hub{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:280px;
  text-align:center;
}
.orbit-hub .section-title{font-size:21px;}
.orbit-hub .accent-bar{margin:12px auto 0;}
.orbit-hub .section-lede{
  margin-top:14px;
  font-size:12.5px;
  line-height:1.5;
}
.orbit-circle{
  position:absolute;
  top:50%; left:50%;
  width:280px;
  height:280px;
  margin:-140px 0 0 -140px;
  transform:rotate(var(--angle)) translate(330px) rotate(calc(-1 * var(--angle)));
  border-radius:50%;
  background:var(--white);
  border:1px solid var(--border);
  box-shadow:0 20px 40px -24px rgba(27,30,43,0.18);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:26px;
  transition:box-shadow .25s ease;
}
.orbit-circle::before{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:50%;
  padding:4px;
  background:var(--gradient-brand);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}
.orbit-circle:hover{
  box-shadow:0 26px 50px -24px rgba(107,50,201,0.3);
}
.orbit-circle:hover::before{opacity:1;}
.orbit-badge{
  width:46px;
  height:46px;
  border-radius:13px;
  margin-bottom:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--tone-bg);
  color:var(--tone);
  flex-shrink:0;
}
.orbit-badge svg{width:22px;height:22px;}
.orbit-circle h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  max-width:19ch;
  color:var(--ink);
}
.orbit-circle p{
  margin-top:8px;
  font-size:12px;
  line-height:1.45;
  color:var(--ink-soft);
  max-width:21ch;
}
@media (max-width:1060px){
  .services-orbit{
    position:static;
    width:auto;
    height:auto;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:24px;
  }
  .orbit-circle{
    position:relative;
    top:0;
    left:0;
    margin:0;
    transform:none;
  }
  .orbit-hub{
    position:static;
    width:100%;
    flex-basis:100%;
    transform:none;
    margin-bottom:8px;
  }
}

/* ---------- PROJECTS ---------- */
.projects{
  position:relative;
  z-index:1;
  padding:20px 0 130px;
}
.projects-head{
  max-width:640px;
  margin:0 auto 64px;
  text-align:center;
}

/* Each tile reserves a fixed strip of space at the bottom for its button,
   so the button always sits the same distance down the card - regardless
   of how long the title/description text is - instead of being pushed
   around by flexbox depending on content length. */
.portfolio-tile{
  position:relative;
  padding-bottom:60px;
}

/* Clamp descriptions to a consistent number of lines so every tile's
   text block takes up the same visual space and never grows into the
   button's reserved area. */
.portfolio-tile p{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.project-btn{
  position:absolute;
  left:0;
  bottom:0;
  display:inline-block;
  padding:0.55rem 1.4rem;
  border-radius:999px;
  background:linear-gradient(135deg, #2E5FD9 0%, #6B32C9 38%, #C2115F 66%, #E85526 100%);
  background-size:160% 160%;
  background-position:0% 50%;
  color:#fff;
  font-weight:600;
  font-size:0.9rem;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:background-position .35s ease, transform .2s ease, box-shadow .2s ease;
}

.project-btn:hover,
.project-btn:focus-visible{
  background-position:100% 50%;
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(107,50,201,0.35);
}

/* ---------- BIKIRAN PORTFOLIO ---------- */
.portfolio-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:36px 28px;
  margin-top:60px;
  padding-top:48px;
  border-top:1px solid var(--border);
}
.projects-tile-row{
  margin-top:0;
  padding-top:0;
  border-top:none;
}
.portfolio-tile{
  flex:1 1 340px;
  max-width:374px;
}
.portfolio-thumb{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  padding-top:64%;
  margin-bottom:16px;
  background:var(--surface);
  box-shadow:0 10px 22px -14px rgba(27,30,43,0.22);
  transition:transform .2s ease, box-shadow .2s ease;
}
.portfolio-tile:hover .portfolio-thumb{
  transform:translateY(-3px);
  box-shadow:0 16px 28px -14px rgba(27,30,43,0.3);
}
.portfolio-thumb img{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top;
}
.portfolio-thumb img.thumb-contain{
  object-fit:contain;
  object-position:center;
  padding:20px;
  box-sizing:border-box;
}
.portfolio-tile h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
  line-height:1.3;
}
.portfolio-tile p{
  font-size:13.5px;
  line-height:1.55;
  color:var(--ink-soft);
  margin:0;
}
.portfolio-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.portfolio-links a{
  font-size:12px;
  font-weight:600;
  color:var(--blue-deep);
  background:var(--surface);
  padding:4px 9px;
  border-radius:999px;
  transition:background .15s ease;
}
.portfolio-links a:hover{background:var(--surface-2);}

.portfolio-thumb:has(img){cursor:zoom-in;}
.portfolio-thumb .thumb-expand{
  position:absolute;
  top:10px; right:10px;
  width:32px; height:32px;
  border-radius:50%;
  background:rgba(27,30,43,0.55);
  backdrop-filter:blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
.portfolio-thumb .thumb-expand svg{width:15px;height:15px;color:#fff;}
.portfolio-tile:hover .thumb-expand{opacity:1;transform:translateY(0);}

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5vh 5vw;
  background:rgba(15,17,28,0);
  opacity:0;
  visibility:hidden;
  transition:opacity .28s ease, background .28s ease, visibility 0s linear .28s;
}
.lightbox.is-open{
  background:rgba(15,17,28,0.86);
  opacity:1;
  visibility:visible;
  transition:opacity .28s ease, background .28s ease;
}
.lightbox-figure{
  position:relative;
  max-width:min(1100px,90vw);
  max-height:88vh;
  transform:scale(.9) translateY(10px);
  opacity:0;
  transition:transform .32s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
}
.lightbox.is-open .lightbox-figure{
  transform:scale(1) translateY(0);
  opacity:1;
}
.lightbox-figure img{
  display:block;
  max-width:100%;
  max-height:88vh;
  border-radius:12px;
  box-shadow:0 30px 70px -20px rgba(0,0,0,0.6);
}
.lightbox-caption{
  margin-top:14px;
  text-align:center;
  color:#fff;
  font-family:'Space Grotesk',sans-serif;
  font-size:15px;
  font-weight:600;
}
.lightbox-close{
  position:absolute;
  top:-18px; right:-18px;
  width:40px; height:40px;
  border-radius:50%;
  background:var(--white);
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 20px -6px rgba(0,0,0,0.4);
  transition:transform .15s ease;
}
.lightbox-close:hover{transform:scale(1.08);}
.lightbox-close svg{width:18px;height:18px;color:var(--ink);}
@media (max-width:640px){
  .lightbox-close{top:-14px;right:0;}
}
@media (prefers-reduced-motion: reduce){
  .lightbox,.lightbox-figure,.lightbox-close{transition:none !important;}
  .lightbox-figure{transform:none !important;}
  html{scroll-behavior:auto;}
  .js .reveal{opacity:1;transform:none;transition:none;}
  *{animation:none !important;}
  .member:hover .member-photo{transform:none;}
}

/* ---------- PARTNERS ---------- */
.partners{
  position:relative;
  z-index:1;
  padding:20px 0 100px;
}
.partners-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 56px;
}
.partners-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:64px;
}
.partner-logo{
  height:52px;
  width:auto;
  object-fit:contain;
}
.partner-logo--bikiran{height:64px;}

/* ---------- CTA BANNER ---------- */
.cta-banner{
  position:relative;
  z-index:1;
  padding:0 0 130px;
}
.cta-card{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:linear-gradient(150deg,#12142E 0%,#1B1B45 50%,#2B1642 100%);
  padding:96px 40px;
  text-align:center;
}
.cta-arc{
  position:absolute;
  top:-90px;
  right:-70px;
  width:320px;
  height:320px;
  border-radius:50%;
  background:radial-gradient(circle at 32% 32%, rgba(255,255,255,0.22), rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.cta-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(60px);
  pointer-events:none;
}
.cta-glow.g1{width:260px;height:260px;left:-60px;bottom:-80px;background:var(--blue);opacity:0.45;}
.cta-glow.g2{width:220px;height:220px;right:8%;bottom:-60px;background:var(--magenta);opacity:0.35;}
.cta-glow.g3{width:200px;height:200px;left:38%;top:-60px;background:var(--cyan);opacity:0.22;}
.cta-dotgrid{
  position:absolute;
  top:34px;
  left:44px;
  opacity:0.85;
  pointer-events:none;
}
.cta-dotgrid circle{fill:var(--cyan);}
.cta-content{
  position:relative;
  z-index:1;
  max-width:900px;
  margin:0 auto;
}
.cta-content h2{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:clamp(24px,4.2vw,50px);
  line-height:1.15;
  color:#fff;
  white-space:nowrap;
}
.cta-content p{
  margin-top:20px;
  font-size:17px;
  line-height:1.65;
  color:rgba(255,255,255,0.72);
  max-width:52ch;
  margin-left:auto;
  margin-right:auto;
}
.cta-btn{
  margin-top:38px;
  font-size:15.5px;
  padding:16px 32px;
  box-shadow:0 18px 36px -12px rgba(0,0,0,0.5);
}

/* ---------- FOOTER ---------- */
.site-footer{
  position:relative;
  z-index:1;
  background:#14162B;
  padding:72px 0 0;
}
.footer-top{
  display:flex;
  flex-wrap:wrap;
  gap:48px;
  padding-bottom:56px;
}
.footer-col{
  flex:1 1 240px;
}
.footer-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
}
.footer-icon svg{width:18px;height:18px;color:var(--cyan);}
.footer-col h4{
  font-family:'Space Grotesk',sans-serif;
  font-size:17px;
  font-weight:600;
  color:#fff;
  margin-bottom:12px;
}
.footer-col p{
  font-size:14.5px;
  line-height:1.65;
  color:rgba(255,255,255,0.6);
  margin:0 0 6px;
}
.footer-col a{color:rgba(255,255,255,0.85);transition:color .15s ease;}
.footer-col a:hover{color:var(--cyan);}
.footer-member{
  display:inline-block;
  margin-top:10px;
  font-size:14px;
  font-weight:600;
  color:var(--cyan);
}
.footer-member:hover{color:#fff;}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding:26px 0;
  border-top:1px solid rgba(255,255,255,0.08);
}
.footer-copy{
  font-size:13.5px;
  color:rgba(255,255,255,0.5);
}
.footer-social{
  display:flex;
  gap:12px;
}
.footer-social a{
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease, transform .15s ease;
}
.footer-social a:hover{
  background:var(--cyan);
  transform:translateY(-2px);
}
.footer-social svg{width:16px;height:16px;color:rgba(255,255,255,0.85);}
.footer-social a:hover svg{color:#14162B;}

/* ---------- TEAM PAGE ---------- */
.nav-links a.is-current{
  position:relative;
  color:var(--blue-deep);
}
.nav-links a.is-current::after{
  content:"";
  position:absolute;
  left:16px; right:16px; bottom:4px;
  height:2px;
  border-radius:2px;
  background:var(--gradient-brand);
}

.page-head{
  padding:84px 0 56px;
  text-align:center;
}
.page-head h1{
  font-size:clamp(34px,4.6vw,54px);
  font-weight:600;
  line-height:1.1;
  max-width:16ch;
  margin-left:auto;
  margin-right:auto;
}
.page-head p{
  margin-top:24px;
  font-size:18px;
  line-height:1.65;
  color:var(--ink-soft);
  max-width:56ch;
  margin-left:auto;
  margin-right:auto;
}

.lead{
  padding:24px 0 40px;
}
.lead-inner{
  display:flex;
  align-items:flex-start;
  gap:64px;
}
.lead-portrait{
  flex:0 0 240px;
  position:relative;
}
.portrait-frame{
  position:relative;
  border-radius:50%;
  padding:4px;
  background:var(--gradient-brand);
}
.portrait-inner{
  position:relative;
  padding-top:100%;
  border-radius:50%;
  overflow:hidden;
  background:linear-gradient(160deg,var(--surface) 0%,var(--surface-2) 100%);
}
.portrait-inner img{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.photo-ph{
  position:absolute;
  top:0; right:0; bottom:0; left:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.photo-ph svg{width:56px;height:56px;color:#C2C7D8;}
.lead-body{
  flex:1 1 auto;
  padding-top:8px;
}
.lead-role{
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--blue-deep);
  margin-bottom:10px;
}
.lead-body h2{
  font-size:clamp(26px,3vw,34px);
  font-weight:600;
  line-height:1.2;
}
.lead-body p{
  margin:18px 0 0;
  font-size:16.5px;
  line-height:1.75;
  color:var(--ink-soft);
  max-width:60ch;
}
.lead-quote{
  position:relative;
  margin:30px 0 0;
  padding-left:20px;
}
.lead-quote::before{
  content:"";
  position:absolute;
  top:2px; bottom:2px; left:0;
  width:3px;
  border-radius:2px;
  background:var(--gradient-brand);
}
.lead-quote span{
  font-family:'Space Grotesk',sans-serif;
  font-size:19px;
  font-weight:600;
  line-height:1.45;
  color:var(--ink);
}
.lead-links{
  display:flex;
  gap:10px;
  margin-top:28px;
}
.icon-link{
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.icon-link svg{width:17px;height:17px;color:var(--ink-soft);transition:color .18s ease;}
.icon-link:hover{
  background:var(--surface);
  border-color:#C9CEE4;
  transform:translateY(-2px);
}
.icon-link:hover svg{color:var(--blue-deep);}
.icon-link--sm{width:32px;height:32px;}
.icon-link--sm svg{width:14px;height:14px;}
.member-links{display:flex;gap:8px;margin-top:12px;}

.team{
  padding:70px 0 120px;
}
.ai-team{
  padding:0 0 120px;
}
.more-agents{
  margin-top:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  font-size:15.5px;
  text-align:center;
  background:var(--gradient-brand);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
}
.more-agents-icon{
  display:flex;
  flex-shrink:0;
  animation:moreAgentsPulse 2.4s ease-in-out infinite;
}
.more-agents-icon svg{width:20px;height:20px;color:var(--violet);}
@keyframes moreAgentsPulse{
  0%,100%{opacity:0.55;transform:scale(0.9);}
  50%{opacity:1;transform:scale(1.05);}
}
@media (prefers-reduced-motion: reduce){
  .more-agents-icon{animation:none;}
}
.team-head{
  display:flex;
  align-items:baseline;
  justify-content:center;
  flex-wrap:wrap;
  padding-bottom:28px;
  border-bottom:1px solid var(--border);
  margin-bottom:52px;
  text-align:center;
}
.team-head h2{
  font-size:clamp(24px,2.8vw,30px);
  font-weight:600;
}
.team-count{
  margin-left:18px;
  font-size:14.5px;
  color:var(--ink-soft);
}
.team-grid{
  display:flex;
  flex-wrap:wrap;
  gap:52px 40px;
}
.member{
  flex:1 1 240px;
  max-width:280px;
}
.member-photo{
  position:relative;
  width:80%;
  border-radius:50%;
  overflow:hidden;
  background:linear-gradient(160deg,var(--surface) 0%,var(--surface-2) 100%);
  padding-top:80%;
  margin:0 auto 20px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.member-photo img{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.member-photo::after{
  content:"";
  position:absolute;
  top:0; right:0; bottom:0; left:0;
  border-radius:50%;
  box-shadow:inset 0 0 0 0 transparent;
  transition:box-shadow .25s ease;
}
.member:hover .member-photo{
  transform:translateY(-6px);
  box-shadow:0 22px 40px -22px rgba(27,30,43,0.35);
}
.member:hover .member-photo::after{
  box-shadow:inset 0 0 0 3px var(--blue);
}
.member h3{
  font-size:18px;
  font-weight:600;
  line-height:1.3;
}
.member-role{
  margin-top:6px;
  font-size:14.5px;
  font-weight:500;
  color:var(--blue-deep);
}
.member p{
  margin:12px 0 0;
  font-size:14.5px;
  line-height:1.6;
  color:var(--ink-soft);
}

.join{
  padding:0 0 120px;
}
.join-card{
  border:1px solid var(--border);
  border-radius:22px;
  background:var(--surface);
  padding:52px 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:28px;
}
.join-card h2{
  font-size:clamp(22px,2.4vw,28px);
  font-weight:600;
  max-width:20ch;
}
.join-card p{
  margin:12px 0 0;
  font-size:16px;
  line-height:1.65;
  color:var(--ink-soft);
  max-width:48ch;
}

/* ---------- RESEARCH PAGE ---------- */
.focus-tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}
.focus-tag{
  display:inline-flex;
  align-items:center;
  padding:10px 20px;
  border-radius:999px;
  background:var(--tone-bg);
  color:var(--tone);
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  font-size:14.5px;
}

.research-feature{padding:0 0 24px;}
.research-feature .container{max-width:760px;}
.research-feature-image{
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--border);
}
.research-feature-image img{
  width:100%;
  height:auto;
  display:block;
}

.publications{padding:56px 0 24px;}
.publications .container{max-width:1400px;}
.page-subhead{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}
.page-subhead h2{
  font-family:'Space Grotesk',sans-serif;
  font-size:clamp(26px,3vw,32px);
  font-weight:600;
  color:var(--ink);
}
.page-subhead .accent-bar{margin:16px auto 0;}
.page-subhead p{
  margin-top:20px;
  font-size:16px;
  line-height:1.6;
  color:var(--ink-soft);
}
.pub-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.pub-card{
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:20px;
  padding:28px 26px;
  transition:transform .22s ease, box-shadow .22s ease;
}
.pub-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 44px -26px rgba(27,30,43,0.18);
}
.pub-card h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:16.5px;
  font-weight:600;
  line-height:1.4;
  margin-bottom:14px;
}
.pub-card h3 a{color:var(--ink);transition:color .15s ease;}
.pub-card h3 a:hover{color:var(--blue-deep);}
.pub-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}
.pub-stat{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  background:var(--surface);
  color:var(--ink-soft);
  padding:6px 12px;
  border-radius:999px;
}
.pub-stat svg{width:14px;height:14px;flex-shrink:0;color:var(--blue-deep);}
.pub-stat strong{color:var(--ink);font-weight:700;}
.pub-link{
  margin-top:auto;
  font-size:14px;
  font-weight:600;
  color:var(--blue-deep);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.pub-link svg{width:14px;height:14px;}

.research-cta{padding:24px 0 120px;}

/* ---------- CAREERS PAGE ---------- */
.perks{padding:24px 0;}
.perk-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:20px;
}
.perk-card{
  text-align:left;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:20px;
  padding:26px 24px;
  transition:transform .22s ease, box-shadow .22s ease;
}
.perk-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 44px -26px rgba(27,30,43,0.18);
}
.perk-icon{
  width:46px;
  height:46px;
  border-radius:13px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--tone-bg);
  color:var(--tone);
}
.perk-icon svg{width:22px;height:22px;}
.perk-card h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:16.5px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:8px;
}
.perk-card p{
  font-size:14px;
  line-height:1.6;
  color:var(--ink-soft);
}

.looking-for{padding:24px 0;}

.internship{padding:24px 0 40px;}
.internship-body{
  max-width:760px;
  margin:0 auto;
}
.internship-kicker{
  font-family:'Space Grotesk',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--orange-deep);
  margin-bottom:8px;
}
.internship-body h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:19px;
  font-weight:600;
  color:var(--ink);
  margin:32px 0 12px;
}
.internship-body p{
  font-size:16px;
  line-height:1.7;
  color:var(--ink-soft);
}
.internship-body ul{
  margin:14px 0 0;
  padding-left:22px;
  list-style:disc;
}
.internship-body li{
  font-size:16px;
  line-height:1.65;
  color:var(--ink-soft);
  margin-bottom:8px;
}
.internship-body strong{color:var(--ink);}
.internship-download{
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid var(--border);
}
.internship-download h4{
  font-family:'Space Grotesk',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:10px;
}
.internship-download a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight:600;
  color:var(--blue-deep);
  transition:color .15s ease;
}
.internship-download a:hover{color:var(--ink);}
.internship-download svg{width:18px;height:18px;flex-shrink:0;}

/* ---------- CONTACT PAGE ---------- */
.contact-section{padding:24px 0 110px;}
.contact-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:36px;
  align-items:start;
}
.contact-cards{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.contact-social{
  display:flex;
  gap:12px;
  margin-top:4px;
}
.contact-social a{
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease, transform .15s ease;
}
.contact-social svg{width:17px;height:17px;color:var(--ink-soft);transition:color .15s ease;}
.contact-social a:hover{background:var(--gradient-brand);transform:translateY(-2px);border-color:transparent;}
.contact-social a:hover svg{color:var(--white);}

.contact-form-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:20px;
  padding:36px;
}
.contact-form-card h2{
  font-size:clamp(20px,2.4vw,24px);
  font-weight:600;
}
.contact-form-card > p{
  margin-top:10px;
  color:var(--ink-soft);
  font-size:15px;
  line-height:1.6;
}
.contact-form{margin-top:28px;}
.form-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:20px;
}
.form-field label{
  font-size:14px;
  font-weight:600;
  color:var(--ink);
}
.form-field input,
.form-field textarea{
  font-family:inherit;
  font-size:15px;
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:13px 16px;
  transition:border-color .15s ease, background .15s ease;
}
.form-field input:focus,
.form-field textarea:focus{
  outline:none;
  border-color:var(--blue);
  background:var(--white);
}
.form-field textarea{min-height:140px;resize:vertical;}
.contact-form .btn-primary{border:none;cursor:pointer;width:100%;justify-content:center;}
.form-note{
  margin-top:14px;
  font-size:13px;
  color:var(--ink-soft);
  text-align:center;
}

.map-embed{
  margin-top:56px;
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  height:400px;
}
.map-embed iframe{display:block;width:100%;height:100%;}

/* ---------- CONTACT FORM CAPTCHA ---------- */
.captcha-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.captcha-row input{flex:1 1 auto;}
.captcha-refresh{
  flex-shrink:0;
  width:46px;
  height:46px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s ease, transform .3s ease;
}
.captcha-refresh:hover{background:var(--surface-2);transform:rotate(90deg);}
.captcha-refresh svg{width:18px;height:18px;color:var(--ink-soft);}
.captcha-error{
  margin-top:8px;
  font-size:13px;
  color:var(--magenta);
  display:none;
}
.captcha-error.is-visible{display:block;}

/* ---------- SUCCESS MODAL ---------- */
.success-modal{
  position:fixed;
  inset:0;
  z-index:300;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5vh 5vw;
  background:rgba(15,17,28,0);
  opacity:0;
  visibility:hidden;
  transition:opacity .28s ease, background .28s ease, visibility 0s linear .28s;
}
.success-modal.is-open{
  background:rgba(15,17,28,0.55);
  opacity:1;
  visibility:visible;
  transition:opacity .28s ease, background .28s ease;
}
.success-modal-card{
  position:relative;
  max-width:380px;
  width:100%;
  background:var(--white);
  border-radius:20px;
  padding:44px 32px;
  text-align:center;
  box-shadow:0 30px 70px -20px rgba(0,0,0,0.4);
  transform:scale(.9) translateY(10px);
  opacity:0;
  transition:transform .32s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
}
.success-modal.is-open .success-modal-card{
  transform:scale(1) translateY(0);
  opacity:1;
}
.success-modal-icon{
  width:56px;
  height:56px;
  margin:0 auto 18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--gradient-brand);
  color:#fff;
}
.success-modal-icon svg{width:26px;height:26px;}
.success-modal-card h3{
  font-family:'Space Grotesk',sans-serif;
  font-size:20px;
  font-weight:600;
  color:var(--ink);
}
.success-modal-card p{
  margin-top:10px;
  font-size:14.5px;
  line-height:1.6;
  color:var(--ink-soft);
}
@media (prefers-reduced-motion: reduce){
  .success-modal,.success-modal-card{transition:none !important;}
  .success-modal-card{transform:none !important;}
}

/* ---------- MOTION (scroll reveal) ---------- */
/* Only hide pre-animation when JS is available to reveal it again,
   so the page is never blank if scripts fail to run. */
.js .reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.in{opacity:1;transform:none;}

/* ---------- RESPONSIVE ---------- */
@media (max-width:920px){
  .hero-banner{min-height:380px;}
  .about-lede{max-width:none;}
  .portfolio-grid{margin-top:44px;padding-top:36px;}
  .projects-tile-row{margin-top:0;padding-top:0;}
  .partners-inner{gap:40px;}
  .partner-logo{height:40px;}
  .partner-logo--bikiran{height:48px;}
  .cta-card{padding:64px 24px;border-radius:22px;}
  .cta-dotgrid{display:none;}
  .footer-bottom{justify-content:center;text-align:center;}
  .lead-inner{flex-direction:column;gap:36px;}
  .lead-portrait{flex:0 0 auto;width:100%;max-width:220px;align-self:center;}
  .lead-body p{max-width:none;}
  .member{max-width:none;}
  .pub-grid{grid-template-columns:repeat(2,1fr);}
  .contact-grid{grid-template-columns:1fr;}
}
@media (max-width:768px){
  .hero-banner{border-radius:22px;min-height:340px;}
  .hero-kicker{font-size:13.5px;padding:9px 16px 9px 13px;gap:8px;}
  .hero-lede{font-size:16px;}
  .pub-grid{grid-template-columns:1fr;}
  .nav-links{
    position:absolute;
    top:76px;left:0;right:0;
    background:var(--white);
    border-bottom:1px solid var(--border);
    flex-direction:column;
    align-items:stretch;
    padding:12px;
    gap:2px;
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-links > li{width:100%;}
  .nav-links > li > a, .nav-links > li > button{width:100%;justify-content:space-between;}
  .nav-links a.is-current::after{display:none;}
  .dropdown{
    position:static;
    transform:none;
    box-shadow:none;
    border:none;
    display:none;
    padding-left:12px;
    translate:0;
  }
  .has-dropdown.open .dropdown{display:block;opacity:1;visibility:visible;}
  .nav-cta{margin-left:0;text-align:center;justify-content:center;}
  .nav-toggle{display:flex;}
  .hero{padding:48px 0 64px;}
  .container{padding:0 20px;}
  .cta-content h2{white-space:normal;}
  .page-head{padding:52px 0 40px;}
  .team{padding:48px 0 88px;}
  .team-grid{gap:40px 28px;}
  .join-card{padding:36px 24px;}
}/* ---------- HUMAN X LAB PRODUCT THUMBNAILS ----------
   Reuses existing .portfolio-grid, .portfolio-tile, .portfolio-thumb and
   .project-btn styles. These rules apply only to the four new previews.
   Source image refs are relative so XAMPP /website-dev/ works as well. */
.hx-product-portfolio .hx-preview {
  cursor: default;
  isolation: isolate;
}
.hx-product-portfolio .hx-preview-image-label {
  position: absolute;
  z-index: 5;
  bottom: 11px;
  left: 13px;
  color: #24535a;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .12em;
}

/* Co-designed digital human: reuse original Matilda image. */
.hx-preview-human { background: #e1eae5; }
.portfolio-thumb.hx-preview-human > img {
  object-fit: cover;
  object-position: center 30%;
}
.hx-preview-human::after {
  content: '';
  position: absolute;
  inset: 60% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0, 30, 35, .54));
  pointer-events: none;
}
.hx-preview-human .hx-preview-image-label { color: white; }

/* The original website assistant graphic consists of a miniature web page
   and a portrait widget; rebuild that arrangement without new image files. */
.hx-preview-face { background: #e5edf1; }
.hx-preview-face .hx-site-browser {
  position: absolute;
  top: 13%;
  left: 12%;
  width: 79%;
  height: 77%;
  border-radius: 11px;
  overflow: hidden;
  background: white;
  border: 1px solid #d4dfe7;
  box-shadow: 0 13px 30px #42606c24;
  transform: rotate(-2deg);
  font-family: 'Inter', sans-serif;
}
.hx-site-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  padding: 0 9px;
  color: #738a97;
  font-size: 6px;
  background: #f8fafb;
  border-bottom: 1px solid #eaf0f2;
  position: relative;
}
.hx-site-toolbar .hx-window-dots {
  position: absolute;
  left: 7px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #c4d4d8;
}
.hx-site-body { position: relative; height: calc(100% - 17px); padding: 10px 9px; }
.hx-site-header { display:flex; justify-content:space-between; color: #526779; font-size: 5.5px; }
.hx-site-header b { color: #304459; font-size: 6px; }
.hx-site-intro { margin: 15px 0 0 4px; width: 48%; }
.hx-site-intro strong { display:block; color:#184c63; font-size:14px; font-weight:600; line-height:1.12; }
.hx-site-intro i { display:block; width:77%; height:4px; margin-top:9px; background:#e1e9ed; }
.hx-site-intro i + i { width:52%; margin-top:4px; }
.hx-site-intro small { display:inline-block; margin-top:11px; color:#fff; background:#5e8e9b; padding:5px 7px; border-radius:3px; font-size:5px; }
.hx-site-assistant {
  position: absolute;
  width: 42%;
  right: 3%;
  top: 23%;
  bottom: 5%;
  border: 1px solid #dbe4e8;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 18px #102b3530;
}
.hx-assistant-header { display:flex; align-items:center; gap:3px; padding:7px 5px; font-size:5.5px; color:#34434a; white-space:nowrap; }
.hx-assistant-header i { width:4px; height:4px; border-radius:50%; background:#1d7461; }
.hx-assistant-header b { font-size:5px; }
.hx-assistant-header span { margin-left:auto; font-size:5px; }
.hx-assistant-photo { position:relative; width:100%; height:51%; background:#bcc9d1; overflow:hidden; }
.portfolio-thumb .hx-assistant-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 19%;
}
.hx-assistant-photo span { position:absolute; bottom:5px; left:7px; z-index:1; color:white; font-size:8px; font-weight:600; text-shadow:0 1px 3px #000b; }
.hx-assistant-copy { padding:5px 7px; color:#4b5e6b; }
.hx-assistant-copy b { display:block; font-size:4px; letter-spacing:.08em; color:#72919b; }
.hx-assistant-copy > span { display:block; margin-top:5px; font-size:5.5px; line-height:1.3; }
.hx-assistant-copy em { display:block; margin-top:5px; padding:4px; border:1px solid #e1e9e9; border-radius:4px; font-style:normal; font-size:5px; }

/* Chat interface recreated from the source page's HTML/CSS illustration. */
.hx-preview-chat { background:#e5eee8; }
.hx-chat-mock {
  position:absolute;
  top:7%;
  left:17%;
  width:66%;
  height:85%;
  padding:8px 9px 5px;
  border-radius:11px;
  background:#fff;
  box-shadow:0 12px 30px #395e5324;
  transform:rotate(-2deg);
  overflow:hidden;
  color:#16363d;
}
.hx-chat-head { display:flex; align-items:center; gap:7px; border-bottom:1px solid #e3eae5; padding-bottom:5px; }
.hx-chat-symbol { width:22px; height:22px; background:#dcebe5; color:#2c6d5c; border-radius:7px; display:grid; place-items:center; font-size:14px; }
.hx-chat-head b { display:block; font-size:7px; white-space:nowrap; }
.hx-chat-head small { display:block; font-size:5.5px; color:#78918c; margin-top:2px; }
.hx-chat-head em { margin-left:auto; font-size:6px; font-style:normal; }
.hx-chat-label { font-size:6px; color:#629197; text-align:center; letter-spacing:.08em; margin:6px 0; }
.hx-chat-bubble { padding:5px 7px; margin-bottom:4px; border-radius:7px; font-size:6.5px; line-height:1.3; }
.hx-chat-bot { width:86%; background:#f0f5f2; }
.hx-chat-customer { width:89%; margin-left:auto; color:#fff; background:#0e454a; font-weight:600; }
.hx-chat-bubble small { display:block; font-size:5.5px; color:#6c8280; margin-top:4px; }
.hx-chat-entry { display:flex; justify-content:space-between; margin-top:5px; padding:5px; border:1px solid #e1e8e4; color:#83908f; border-radius:6px; font-size:6px; }
.hx-chat-entry span { color:#256b64; }

/* AI phone receptionist: keep Jennifer image, place it in a miniature phone. */
.hx-preview-phone { background:#e5eee5; }
.hx-phone-shell {
  position:absolute;
  top:4%;
  left:29%;
  width:46%;
  height:92%;
  border:6px solid #1c3334;
  border-radius:27px;
  overflow:hidden;
  transform:rotate(-4deg);
  background:#b5c4bb;
  box-shadow:0 13px 20px #29463a37;
}
.hx-phone-speaker { position:absolute; z-index:3; top:5px; left:35%; width:30%; height:7px; border-radius:99px; background:#1b3234; }
.portfolio-thumb .hx-phone-photo { position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; object-position:center 26%; }
.hx-phone-call-tag { position:absolute; top:17%; left:25%; z-index:2; font-size:6px; letter-spacing:.06em; background:#fffbf6e0; padding:4px 8px; border-radius:99px; color:#65726e; white-space:nowrap; }
.hx-phone-call-card {
  position:absolute;
  bottom:5%;
  left:4%;
  right:4%;
  padding:9px;
  z-index:2;
  border-radius:11px;
  background:#ffffffec;
  box-shadow:0 3px 10px #0002;
  color:#254d4d;
}
.hx-phone-call-card > b { display:block; font-size:11px; line-height:1.1; }
.hx-phone-call-card small { display:block; margin:3px 0 0; color:#78938b; font-weight:500; font-size:5.5px; }
.hx-phone-call-card > span { display:block; margin-top:8px; font-size:7px; line-height:1.3; }
.hx-phone-availability { position:absolute; right:12px; bottom:11px; padding:5px 8px; font-size:6px; border-radius:99px; background:#23534c; color:#fff; }

/* Keep the original portfolio card spacing and responsive columns. */
@media(max-width:500px) {
  .hx-site-intro strong { font-size:clamp(10px,3.5vw,14px); }
  .hx-product-portfolio .hx-preview-image-label { font-size:6px; }
}

/* ===============================================================
   HOMEPAGE REFINEMENTS - Human X Lab button, services, partners
   =============================================================== */


/* 2. Genuine size increase for all seven service-circle headings and
   descriptions, plus the central service heading. Scope to the orbit
   so other cards and headings elsewhere on the site are unchanged. */
#servicesOrbit .orbit-circle h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  max-width: 21ch;
}
#servicesOrbit .orbit-circle p {
  font-size: 15.5px;
  line-height: 1.45;
  max-width: 23ch;
  margin-top: 10px;
}
#servicesOrbit .orbit-hub .section-title {
  font-size: 27px;
  line-height: 1.2;
}
#servicesOrbit .orbit-hub .section-lede {
  font-size: 15.5px;
  line-height: 1.5;
  margin-top: 15px;
}

/* The logo's natural dimensions participate in layout, instead of a
   CSS scale that paints it outside its allocated area. */
#partners .partner-logo--humanxlab {
  height: 66px;
  max-width: min(270px, 100%);
  width: auto;
  transform: none;
}

/* 3. Mobile: two centered, equal logo columns with strict width limits.
   Avoid scaling altogether so logos cannot overlap or be cut off. */
@media (max-width: 600px) {
  #partners .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  #partners .partners-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 3vw, 16px);
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  #partners .partner-logo,
  #partners .partner-logo--humanxlab,
  #partners .partner-logo--bikiran {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 65px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    transform: none !important;
  }
  #partners .partners-head {
    margin-bottom: 34px;
  }
  #partners.partners {
    padding-bottom: 58px;
  }
}

/* Very narrow phones: keep two separate balanced logos rather than
   letting the original images spill out of the viewport. */
@media (max-width: 360px) {
  #partners .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  #partners .partners-inner { gap: 8px; }
  #partners .partner-logo,
  #partners .partner-logo--humanxlab,
  #partners .partner-logo--bikiran { height: 57px; }
}

/* Contact page: comfortable, overflow-free tablet and phone layout. */
@media (max-width: 900px) {
  body.contact-page { zoom: 1; }
  .contact-page .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-page .contact-grid > *,
  .contact-page .form-field,
  .contact-page .captcha-row { min-width: 0; }
  .contact-page .contact-form-card { width: 100%; min-width: 0; }
  .contact-page .form-field input,
  .contact-page .form-field textarea { min-width: 0; max-width: 100%; width: 100%; font-size: 16px; }
  .contact-page .captcha-row input { width: 0; flex: 1 1 0; }
  .contact-page .contact-cards p,
  .contact-page .contact-cards a { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .contact-page .container { padding-inline: 18px; }
  .contact-page .page-head { padding: 36px 0 24px; }
  .contact-page .page-head h1 { font-size: 36px; line-height: 1.15; }
  .contact-page .page-head p { font-size: 16px; line-height: 1.65; margin-top: 18px; }
  .contact-page .contact-section { padding: 12px 0 48px; }
  .contact-page .page-subhead { margin-bottom: 24px; }
  .contact-page .page-subhead h2 { font-size: 26px; }
  .contact-page .contact-cards { gap: 14px; }
  .contact-page .contact-cards .perk-card { padding: 22px; border-radius: 16px; }
  .contact-page .contact-cards .perk-card p { font-size: 16px; line-height: 1.65; }
  .contact-page .contact-social { gap: 14px; margin-top: 2px; }
  .contact-page .contact-social a { width: 46px; height: 46px; }
  .contact-page .contact-form-card { padding: 24px 18px; border-radius: 16px; }
  .contact-page .contact-form-card h2 { font-size: 24px; line-height: 1.25; }
  .contact-page .contact-form-card > p { font-size: 16px; }
  .contact-page .contact-form { margin-top: 24px; }
  .contact-page .form-field { margin-bottom: 18px; }
  .contact-page .form-field label { font-size: 15px; }
  .contact-page .form-field input,
  .contact-page .form-field textarea { padding: 13px 12px; min-height: 48px; }
  .contact-page .form-field textarea { min-height: 150px; }
  .contact-page .captcha-refresh { width: 48px; height: 48px; }
  .contact-page .contact-form .btn-primary { min-height: 50px; font-size: 16px; }
  .contact-page .map-embed { height: 280px; margin-top: 28px; border-radius: 16px; }
}


/* Fix Domain & Hosting Service card alignment */
@media (min-width: 769px) {
    #projects .portfolio-grid:not(.projects-tile-row) {
        justify-content: flex-start;
    }
}

/* Keep cards centered on smaller mobile screens */
@media (max-width: 768px) {
    #projects .portfolio-grid:not(.projects-tile-row) {
        justify-content: center;
    }
}
