:root{
  --space:#0c0a1b;
  --deep-blue:#000666;
  --deep-blue-2:#14134d;
  --cpu-purple:#7672ff;
  --chatty-green:#00f0ff;
  --purple:#bdb4f5;
  --purple-light:#dcd7ff;
  --off-white:#fcfeea;
  --paragraph:#a7a8cf;
  --brand-blue:#1868e8;
  --brand-navy:#082040;
  --font-sans:'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading:'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{
  font-size: clamp(14px, 1.1vw, 19px);
  background:var(--space);
  color:var(--paragraph);
  overflow:hidden;
  height:100%;
}

body{
  font-family:var(--font-sans);
  font-weight:300;
  line-height:1;
  height:100%;
  width:100%;
  overflow:hidden;
  position:fixed;
  inset:0;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none;}
ul{list-style:none;}
i,em{font-style:normal;font-family:var(--font-serif);color:var(--chatty-green);}

/* Headings use Manrope; body copy uses DM Sans (set on body). */
.ts-1, .ts-2, .ts-3, .logo, .discipline-heading, .stack-title,
.work-title, .standard-title, .work-headline, .work-client,
.team-name, .work-title, .discipline-heading,
.menu-list a, .stack-no, .discipline-no, .standard-no{
  font-family:var(--font-heading);
}

/* BACKGROUND BLOBS (WebGL stand-in) */
.bg-blob{
  position:fixed;
  border-radius:50%;
  filter:blur(80px);
  pointer-events:none;
  z-index:0;
}
.bg-blob--1{
  top:-15vw;right:-10vw;
  width:45vw;height:45vw;
  background:radial-gradient(circle, var(--cpu-purple) 0%, transparent 70%);
  opacity:0.35;
}
.bg-blob--2{
  bottom:-20vw;left:-15vw;
  width:40vw;height:40vw;
  background:radial-gradient(circle, var(--deep-blue-2) 0%, transparent 70%);
  opacity:0.5;
}

/* STARFIELD */
.starfield{
  position:fixed;inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 60% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 45% 90%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,0.4), transparent);
  background-size:100% 100%;
  animation:twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle{from{opacity:0.5;}to{opacity:1;}}

/* HERO ORB */
/* Layer stack (each layer owns its own `transform`, so JS and CSS
   animations never fight over the same property):
   .orb-scale  (no transform of its own — fades with the rest of the
                hero screen via the screen's own opacity, same as
                everything else in it)
     .orb-wrap (CSS: idle float bob, centers + sizes the sphere)
       .orb    (JS: cursor-tilt parallax)
         ::before/::after (CSS: rotating aurora color drift) */
.orb-scale{
  position:absolute;
  inset:0;
  z-index:0;
}
.orb-wrap{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:min(46vw,46vh);
  height:min(46vw,46vh);
  perspective:1000px;
  animation:orb-float 8s ease-in-out infinite;
}
.orb{
  position:relative;
  width:100%;height:100%;
  border-radius:50%;
  overflow:hidden;
  -webkit-clip-path:circle(50% at 50% 50%);
  clip-path:circle(50% at 50% 50%);
  background:
    radial-gradient(circle at 65% 72%, transparent 0%, transparent 58%, rgba(0,240,255,0.55) 70%, transparent 84%),
    radial-gradient(circle at 28% 68%, transparent 0%, transparent 55%, rgba(118,114,255,0.5) 68%, transparent 82%),
    radial-gradient(circle at 52% 26%, transparent 0%, transparent 52%, rgba(189,180,245,0.65) 66%, transparent 80%),
    radial-gradient(circle at 50% 50%, var(--space) 0%, var(--space) 45%, rgba(20,19,77,0.6) 60%, rgba(60,55,140,0.25) 72%, transparent 88%);
  box-shadow:
    0 0 120px 20px rgba(118,114,255,0.35),
    inset 0 0 80px 10px rgba(0,240,255,0.15);
  transition:transform 0.4s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
}
.orb::before, .orb::after{
  content:"";
  position:absolute;
  inset:-25%;
  border-radius:50%;
  mix-blend-mode:screen;
  opacity:0.65;
  -webkit-mask-image:radial-gradient(circle, #fff 50%, transparent 51%);
  mask-image:radial-gradient(circle, #fff 50%, transparent 51%);
}
.orb::before{
  background:
    radial-gradient(circle at 30% 30%, rgba(0,240,255,0.5) 0%, transparent 40%),
    radial-gradient(circle at 70% 65%, rgba(118,114,255,0.45) 0%, transparent 45%);
  animation:aurora-spin 16s linear infinite;
}
.orb::after{
  background:
    radial-gradient(circle at 65% 25%, rgba(189,180,245,0.5) 0%, transparent 40%),
    radial-gradient(circle at 25% 70%, rgba(0,240,255,0.3) 0%, transparent 45%);
  animation:aurora-spin 22s linear infinite reverse;
}
@keyframes orb-float{
  0%,100%{transform:translate(-50%,-50%) translateY(0) scale(1);}
  50%{transform:translate(-50%,-50%) translateY(-1.5%) scale(1.015);}
}
@keyframes aurora-spin{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

/* Faint ambient bubbles drifting around the hero */
.ambient-bubble{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  z-index:0;
  filter:blur(1px);
  background:radial-gradient(circle at 35% 30%, rgba(220,215,255,0.18), transparent 70%);
  border:1px solid rgba(220,215,255,0.08);
}
.ambient-bubble--1{
  top:8%; right:14%;
  width:9rem; height:9rem;
  animation:bubble-drift 12s ease-in-out infinite;
}
.ambient-bubble--2{
  bottom:12%; right:6%;
  width:5rem; height:5rem;
  animation:bubble-drift 9s ease-in-out infinite reverse;
}
.ambient-bubble--3{
  top:20%; left:6%;
  width:4rem; height:4rem;
  animation:bubble-drift 14s ease-in-out infinite;
}
@keyframes bubble-drift{
  0%,100%{transform:translate(0,0);}
  50%{transform:translate(1.5%,-2.5%);}
}

/* TYPOGRAPHY SCALE (exact from source) */
.ts-1{
  font-size:6rem;
  font-weight:300;
  line-height:0.833;
  letter-spacing:-0.04em;
  color:var(--off-white);
  text-align:center;
}
.ts-1--left{text-align:left;}
.ts-2{
  font-size:4.5rem;
  font-weight:300;
  line-height:0.889;
  letter-spacing:-0.04em;
  color:var(--off-white);
}
.ts-3{
  font-size:3rem;
  font-weight:300;
  line-height:0.87;
  letter-spacing:-0.04em;
  color:var(--off-white);
}
.ts-p{font-size:1.125rem;font-weight:300;line-height:1.333;letter-spacing:-0.04em;}
.ts-p-sm{font-size:1rem;font-weight:300;line-height:1.333;letter-spacing:-0.04em;}
.ts-eyebrown{
  display:block;
  font-size:0.625rem;
  font-weight:700;
  line-height:1.6;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--purple);
  margin-bottom:0.5rem;
}
.ts-label{
  display:block;
  font-size:1.125rem;
  font-weight:500;
  line-height:1.333;
  letter-spacing:-0.04em;
  color:var(--chatty-green);
  margin-bottom:0.5rem;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-sans);
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:-0.02em;
  text-transform:uppercase;
  white-space:nowrap;
  border-radius:1.25rem;
  height:2.5rem;
  padding:0 1.5rem;
  transition:transform 0.4s cubic-bezier(.19,1,.22,1), box-shadow 0.3s;
}
.btn--xs{height:2rem;border-radius:1rem;padding:0.5rem 1rem;}
.btn--green{background:var(--off-white);color:var(--deep-blue-2);}
.btn--green:hover{box-shadow:0 0 1.25rem 0.125rem rgba(252,254,234,0.5);transform:scale(1.03);}
.btn--cream{background:var(--off-white);color:var(--deep-blue-2);}
.btn--cream:hover{box-shadow:0 0 1.25rem 0.125rem rgba(252,254,234,0.5);transform:scale(1.03);}
.btn--cyan{background:var(--brand-blue);color:var(--off-white);}
.btn--cyan:hover{box-shadow:0 0 1.25rem 0.125rem rgba(24,104,232,0.5);transform:scale(1.03);}
.btn--outlined{
  background:rgba(20,19,77,0.25);
  border:1px solid rgba(252,254,234,0.5);
  color:var(--off-white);
  backdrop-filter:blur(0.75rem);
}
.btn--outlined:hover{background:rgba(20,19,77,0.5);box-shadow:0 0 1.25rem 0.125rem rgba(118,114,255,0.3);}
.btn--icon{gap:0.6rem;padding-right:0.4rem;}
.btn--icon .icon{
  width:1.5rem;height:1.5rem;
  border-radius:50%;
  background:var(--purple);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  position:relative;
}
.btn--outlined .icon{background:var(--chatty-green);}
.icon--play::before{
  content:"";
  width:0;height:0;
  border-style:solid;
  border-width:4px 0 4px 6px;
  border-color:transparent transparent transparent var(--deep-blue-2);
  margin-left:1px;
}
.icon--arrow::before{
  content:"→";
  font-size:0.7rem;
  color:var(--deep-blue-2);
  line-height:1;
}

/* HEADER */
.header{
  position:fixed;
  top:0;left:0;right:0;
  height:5rem;
  z-index:200;
  display:flex;
  align-items:center;
  background:rgba(12,10,27,0.72);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.header-inner{
  width:100%;
  padding:0 3rem;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}
.logo{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  font-size:1.25rem;
  font-weight:700;
  color:var(--off-white);
  letter-spacing:0.05em;
  border-radius:0.5rem;
}
.logo:focus{outline:none;}
.logo:focus-visible{outline:2px solid var(--chatty-green);outline-offset:4px;}
.logo-mark{flex-shrink:0;height:2rem;width:auto;}
.logo-full{height:4rem;width:auto;flex-shrink:0;}
.header-nav{justify-self:end;display:flex;align-items:center;gap:0.75rem;}
.menu-btn{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  background:none;
  border:1px solid rgba(252,254,234,0.3);
  color:var(--off-white);
  border-radius:1rem;
  height:2rem;
  padding:0 1rem;
  font-size:0.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:-0.02em;
  cursor:pointer;
}
.menu-btn-icon{
  position:relative;
  width:0.85rem;
  height:0.7rem;
  flex-shrink:0;
}
.menu-btn-bar{
  position:absolute;
  left:0; right:0;
  height:1.5px;
  background:var(--off-white);
  border-radius:1px;
  transition:transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
.menu-btn-bar:nth-child(1){top:0;}
.menu-btn-bar:nth-child(2){top:100%;transform:translateY(-100%);}
.menu-btn.is-open .menu-btn-bar:nth-child(1){top:50%;transform:translateY(-50%) rotate(45deg);}
.menu-btn.is-open .menu-btn-bar:nth-child(2){top:50%;transform:translateY(-50%) rotate(-45deg);}

/* MENU OVERLAY */
.menu-overlay{
  position:fixed;inset:0;
  background:var(--deep-blue-2);
  z-index:150;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3rem;
  transform:translateY(-100%);
  transition:transform 0.7s cubic-bezier(.77,0,.18,1);
}
.menu-overlay.open{transform:translateY(0);}
.menu-list{display:flex;flex-direction:column;gap:1.25rem;text-align:center;}
.menu-list a{font-size:3rem;font-weight:300;color:var(--off-white);letter-spacing:-0.03em;}
.menu-list a:hover{color:var(--chatty-green);}
.menu-footer{
  position:absolute;
  bottom:2.5rem;
  left:3rem;right:3rem;
  display:flex;
  justify-content:space-between;
  font-size:0.8rem;
  opacity:0.6;
}
.menu-footer-links{display:flex;gap:1rem;}
/* short screens: keep every menu item visible */
@media (max-height:720px){.menu-overlay{gap:1.5rem;overflow-y:auto;}.menu-list{gap:.8rem;}.menu-list a{font-size:2.1rem;}}
@media (max-height:620px){.menu-overlay{gap:1rem;}.menu-list{gap:.5rem;}.menu-list a{font-size:1.7rem;}}

/* FRAME + SCREENS (no native scroll — custom engine) */
.frame{
  position:relative;
  width:100%;
  height:100%;
  z-index:1;
}
.screen{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0 3rem;
  opacity:0;
  pointer-events:none;
  will-change:opacity, transform;
  z-index:1;
}
.screen.is-active{pointer-events:auto;z-index:2;}
.screen-inner{width:100%;max-width:75rem;position:relative;z-index:1;}

/* text reveal helpers */
.split-lines .hl{
  display:block;
  overflow:hidden;
  padding-bottom:0.18em;
  margin-bottom:-0.18em;
}
.split-lines .hl > i, .split-lines .hl{
  transition:none;
}
.split-lines{opacity:1;}
.hl{
  opacity:0;
  transform:translateY(30%);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.screen.is-active .hl{opacity:1;transform:translateY(0);}
.screen.is-active .hl:nth-child(1){transition-delay:0.05s;}
.screen.is-active .hl:nth-child(2){transition-delay:0.15s;}
.screen.is-active .hl:nth-child(3){transition-delay:0.25s;}
.screen.is-active .hl:nth-child(4){transition-delay:0.35s;}

.fade-block{
  opacity:0;
  transform:translateY(16px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.screen.is-active .fade-block{opacity:1;transform:translateY(0);transition-delay:0.35s;}

/* Service cards: same reveal mechanism as the heading above (tied to the
   screen becoming active, never to extra in-section scrolling) with a
   quick per-card stagger so all six still arrive as one entrance. */
.screen.is-active .service-card:nth-child(1){transition-delay:0.32s;}
.screen.is-active .service-card:nth-child(2){transition-delay:0.38s;}
.screen.is-active .service-card:nth-child(3){transition-delay:0.44s;}
.screen.is-active .service-card:nth-child(4){transition-delay:0.50s;}
.screen.is-active .service-card:nth-child(5){transition-delay:0.56s;}
.screen.is-active .service-card:nth-child(6){transition-delay:0.62s;}

/* HERO */
.screen--hero .screen-inner{text-align:center;}
.hero-buttons{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem;}
.hero-copy{max-width:32rem;margin:1.5rem auto 0;}
.hero-copy-strong{color:inherit;font-weight:inherit;}
.screen-footer{
  position:absolute;
  bottom:2.5rem;left:3rem;right:3rem;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.scroll-cta{display:flex;align-items:center;gap:0.6rem;font-size:0.7rem;letter-spacing:0.1em;text-transform:uppercase;}
.scroll-cta .spin{
  width:0.9rem;height:0.9rem;
  border-radius:50%;
  border:1.5px solid rgba(167,168,207,0.3);
  border-top-color:var(--off-white);
  display:block;
  animation:spin 1.1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg);}}

/* SERVICES — heading on top, a 2x2 grid of cards below (image area left
   blank for real assets to be dropped in later). */
.screen--services .screen-inner{max-width:78rem;}
.services-layout-v2{display:flex;flex-direction:column;}
.services-heading-row{text-align:center;margin-bottom:1.25rem;}
.services-heading-row .discipline-heading{margin-bottom:0.5rem;white-space:nowrap;}
.services-heading-row .discipline-intro{margin:0 auto;white-space:nowrap;}
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1rem;
  width:100%;
  max-width:58rem;
  margin:0 auto;
}
.service-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:0;
  min-width:0;
  aspect-ratio:4/3.3;
  border-radius:1rem;
  padding:1.1rem 1.1rem;
  background:var(--deep-blue-2);
  border:1px solid rgba(167,168,207,0.2);
  overflow:hidden;
  transition:border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover{border-color:rgba(255,255,255,0.35);transform:translateY(-3px);}
.service-card-top{position:relative;z-index:1;margin-bottom:0.35rem;}
.service-title{
  position:relative;
  z-index:1;
  font-size:1rem;
  font-weight:700;
  color:var(--off-white);
  line-height:1.18;
  margin-bottom:0.35rem;
}
.service-desc{
  position:relative;
  z-index:1;
  font-size:0.74rem;
  line-height:1.42;
  color:var(--paragraph);
  max-width:20rem;
}
.service-more{
  position:relative;
  z-index:1;
  display:inline-block;
  margin-top:0.85rem;
  padding:0.45rem 1rem;
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:0.01em;
  color:var(--off-white);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:2rem;
  transition:background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.service-more:hover{
  background:var(--brand-blue);
  border-color:var(--brand-blue);
  color:var(--off-white);
}
.service-media{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.service-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.16;
  mix-blend-mode:screen;
  transition:opacity 0.35s ease, transform 0.35s ease;
}
.service-card:hover .service-media img{
  opacity:0.4;
  transform:scale(1.04);
}
.service-card::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(180deg, rgba(11,12,32,0.15) 0%, var(--deep-blue-2) 78%);
  transition:opacity 0.35s ease;
  pointer-events:none;
}
.service-card:hover::after{opacity:0.7;}
.discipline-heading{
  font-size:2.5rem;
  font-weight:300;
  line-height:1.08;
  letter-spacing:-0.03em;
  color:var(--off-white);
  margin-bottom:1rem;
}
.discipline-intro{
  color:var(--paragraph);
  max-width:28rem;
}
.services-heading-row .discipline-heading{font-size:1.7rem;}
.services-heading-row .discipline-intro{font-size:0.85rem;max-width:none;}

/* the card deck */
.stack-wrap{
  position:relative;
  width:100%;
  height:24rem;
  overflow:hidden;
}
.stack-card{
  position:absolute;
  left:0; right:0;
  top:calc(var(--depth) * 2rem);
  height:16rem;
  border-radius:1rem 1rem 0 0;
  padding:1.5rem 1.75rem;
  display:flex;
  flex-direction:column;
  background:var(--card-bg, var(--deep-blue-2));
  border:1px solid rgba(167,168,207,0.2);
  border-bottom:none;
  box-shadow:0 -1.5rem 3rem rgba(0,0,0,0.35);
  transform:translateY(120%);
  will-change:transform;
  z-index:1;
}
.stack-card[data-stack-card]:nth-child(1){--card-bg:#1a1958; z-index:1;}
.stack-card[data-stack-card]:nth-child(2){--card-bg:#171645; z-index:2;}
.stack-card[data-stack-card]:nth-child(3){--card-bg:#141338; z-index:3;}
.stack-card[data-stack-card]:nth-child(4){--card-bg:#100f2c; z-index:4;}
.stack-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:0.75rem;
}
.stack-no{font-size:0.7rem;font-weight:700;color:var(--purple);letter-spacing:0.02em;}
.stack-tag{font-size:0.65rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--chatty-green);}
.stack-title{
  font-size:1.5rem;
  font-weight:700;
  color:var(--off-white);
  line-height:1.15;
  margin-bottom:0.6rem;
}
.stack-desc{
  font-size:0.85rem;
  line-height:1.45;
  color:var(--paragraph);
  margin-bottom:0.9rem;
  max-width:26rem;
}
.stack-pills{display:flex;flex-wrap:wrap;gap:0.4rem;margin-bottom:0.9rem;}
.stack-pills li{
  font-size:0.65rem;
  padding:0.3rem 0.7rem;
  border:1px solid rgba(167,168,207,0.3);
  border-radius:1rem;
  color:var(--paragraph);
}
.stack-link{
  margin-top:auto;
  font-size:0.78rem;
  font-weight:700;
  color:var(--off-white);
}
.stack-link:hover{color:var(--chatty-green);}

/* WORK — "Selected Work": one project prominent at a time, sliding
   up and out as the next one slides in, carousel-style. */
.screen--work .screen-inner{max-width:70rem;}
.work-inner{display:flex;flex-direction:column;gap:1.75rem;}
.work-heading{text-align:center;}
.work-heading .ts-eyebrown{display:inline-block;}
.work-title{
  font-size:2rem;
  font-weight:300;
  letter-spacing:-0.03em;
  color:var(--off-white);
  margin-top:0.4rem;
}
.work-list{
  display:flex;
  flex-direction:column;
  width:100%;
  max-height:56vh;
  overflow-y:auto;
}
.work-row{
  position:relative;
  z-index:0;
  display:flex;
  align-items:center;
  gap:1.5rem;
  padding:1.1rem 0.75rem;
  border-bottom:1px solid rgba(167,168,207,0.2);
  color:var(--off-white);
  transition:border-color 0.25s ease;
}
.work-row:hover{border-bottom-color:transparent;}
.work-row::before{
  content:'';
  position:absolute;
  top:0.3rem; bottom:0.3rem;
  left:50%; right:50%;
  width:calc(100vw - 2.5rem);
  margin-left:calc(-50vw + 1.25rem);
  margin-right:calc(-50vw + 1.25rem);
  border-radius:0.6rem;
  background:transparent;
  transition:background 0.25s ease;
  z-index:-1;
  pointer-events:none;
}
.work-row:hover::before{background:rgba(255,255,255,0.08);}
.work-row-no{
  font-size:0.95rem;
  font-weight:500;
  color:var(--paragraph);
  width:2rem;
  flex-shrink:0;
  transition:color 0.25s ease;
}
.work-row:hover .work-row-no{color:var(--brand-blue);}
.work-row-name{
  flex:1;
  font-size:1.15rem;
  font-weight:500;
  color:var(--off-white);
  letter-spacing:-0.01em;
  transition:transform 0.25s ease, color 0.25s ease;
}
.work-row:hover .work-row-name{transform:translateX(0.6rem);color:var(--brand-blue);}
.work-row-arrow{
  color:var(--off-white);
  flex-shrink:0;
  display:inline-block;
  transition:transform 0.25s ease, color 0.25s ease;
}
.work-row:hover .work-row-arrow{transform:translate(0.2rem, 0.2rem);color:var(--brand-blue);}

/* VISION (attention) */
.screen--vision .split{
  display:grid;
  grid-template-columns:6fr 6fr;
  gap:4rem;
  align-items:center;
}
.vision-main .ts-eyebrown{margin-bottom:1.25rem;}
.vision-main p{color:var(--paragraph);max-width:26rem;margin-top:1.25rem;}
.vision-side .btn{margin-top:1.75rem;}

.standard-list{border-top:1px solid rgba(167,168,207,0.2);}
.standard-item{
  display:flex;
  gap:1.25rem;
  padding:1.1rem 0;
  border-bottom:1px solid rgba(167,168,207,0.2);
  opacity:0;
  transform:translateY(16px);
  will-change:opacity, transform;
}
.standard-no{
  font-size:0.7rem;
  font-weight:700;
  color:var(--chatty-green);
  letter-spacing:0.02em;
  padding-top:0.15rem;
  flex-shrink:0;
}
.standard-title{
  font-size:1rem;
  font-weight:700;
  color:var(--off-white);
  margin-bottom:0.3rem;
}
.standard-desc{
  font-size:0.82rem;
  line-height:1.45;
  color:var(--paragraph);
}
.start-project-btn{margin-top:1.5rem;}

/* TEAM / LEADERSHIP */
.screen--team .screen-inner{max-width:63rem;text-align:center;}
.team-eyebrow{display:block;margin-bottom:0.3rem;}
.screen--team .discipline-heading{font-size:2rem;margin-top:0;margin-bottom:0.9rem;}
.team-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0.8rem;
  max-width:46rem;
  margin-left:auto;
  margin-right:auto;
}
.team-grid + .team-grid{margin-top:0.8rem;}
/* Above the tablet breakpoint, all 6 team members sit in one fixed-width
   3-column grid (wraps into 2 rows). Below that, the generic .team-grid
   rules in the tablet/mobile media queries take back over. */
@media (min-width:1101px){
  .team-grid--all{grid-template-columns:repeat(3, 14.8rem);max-width:none;width:fit-content;}
  .team-grid--all.team-grid--two{grid-template-columns:repeat(2, 14.8rem);}
}
/* Photo and info are separate blocks — the photo is never covered by
   text. Hover just lifts the card and brings the photo to color. */
.team-card{
  display:flex;
  flex-direction:column;
  border-radius:1rem;
  overflow:hidden;
  border:1px solid rgba(167,168,207,0.2);
  background:var(--card-bg, var(--deep-blue-2));
  cursor:pointer;
  transition:transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
}
.team-card:hover{
  transform:translateY(-0.5rem);
  border-color:var(--brand-blue);
  box-shadow:0 1rem 2.5rem rgba(24,104,232,0.35);
  z-index:2;
}
.team-photo-wrap{
  position:relative;
  aspect-ratio:4/2.6;
  overflow:hidden;
  flex-shrink:0;
}
.team-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 18%;
  filter:grayscale(1) brightness(0.85);
  transition:filter 0.4s ease, transform 0.4s ease;
}
.team-card:hover .team-photo{filter:grayscale(0) brightness(1);transform:scale(1.04);}
.team-card-overlay{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  padding:0.65rem 0.75rem 0.75rem;
}
.team-role{
  font-size:0.54rem;
  font-weight:700;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--chatty-green);
  margin-bottom:0.2rem;
}
.team-name{font-size:0.85rem;font-weight:700;color:var(--off-white);margin-bottom:0.25rem;}
.team-bio{
  font-size:0.64rem;
  line-height:1.35;
  color:var(--paragraph);
  margin-bottom:0.45rem;
}
.team-card-buttons{display:flex;flex-wrap:wrap;gap:0.5rem;}
.team-card-link{
  display:inline-flex;
  align-items:center;
  gap:0.3rem;
  font-size:0.56rem;
  font-weight:700;
  color:var(--deep-blue-2);
  background:var(--off-white);
  padding:0.3rem 0.6rem;
  border-radius:1.5rem;
  transition:transform 0.2s ease;
}
.team-card:hover .team-card-link{transform:translateY(-2px);}
@media (max-width:1100px){
  .screen--team .screen-inner{max-width:40rem;}
  .team-grid{grid-template-columns:repeat(2, 1fr);max-width:32rem;}
  .services-grid{grid-template-columns:repeat(2, 1fr);max-width:34rem;}
  .service-card{aspect-ratio:auto;min-height:11rem;}
}
/* Between the mobile breakpoint and the tablet one, the site still runs
   the fixed-100vh desktop scroll engine but at 2-column card widths — with
   7 team members that's genuinely taller than one screen. Let it scroll
   internally instead of clipping. Mobile itself (<=799px) already uses
   natural page scroll and never hits this. */
@media (min-width:800px) and (max-width:1100px){
  .screen--team .screen-inner{max-height:calc(100vh - 6rem);overflow-y:auto;padding-right:0.5rem;}
  .screen--services .screen-inner{max-height:calc(100vh - 6rem);overflow-y:auto;padding-right:0.5rem;}
}
.screen--quote .screen-inner{text-align:center;}
.team-quote{
  max-width:42rem;
  margin:0 auto;
  padding-top:0;
  border-top:none;
}
.team-quote p{
  font-size:1.6rem;
  font-style:normal;
  font-family:var(--font-serif);
  color:var(--off-white);
  line-height:1.5;
  margin-bottom:0.9rem;
}
.team-quote cite{
  font-style:normal;
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--paragraph);
}

/* FOOTER */
.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
  width:100%;
  max-width:52rem;
  margin:0 auto;
}
.footer-grid--two{grid-template-columns:repeat(2,1fr);max-width:34rem;}
.footer-block a, .footer-block p{font-size:1rem;line-height:1.5;}
.footer-block:not(:first-child){border-left:1px solid rgba(167,168,207,0.2);padding-left:2rem;}
.footer-email{
  display:inline-block;
  color:var(--paragraph);
  transition:color 0.2s ease;
}
.footer-email + .footer-email{margin-top:0.5rem;}
.footer-email:hover{color:var(--brand-blue);}
.footer-address{
  display:flex;
  align-items:flex-start;
  gap:0.5rem;
  color:var(--paragraph);
  transition:color 0.2s ease;
}
.footer-address:hover{color:var(--brand-blue);}
.footer-address + .footer-address{margin-top:0.7rem;}
.footer-phone{
  display:flex;
  align-items:center;
  gap:0.5rem;
  font-size:1rem;
  white-space:nowrap;
  color:var(--paragraph);
  transition:color 0.2s ease;
}
.footer-phone:hover{color:var(--brand-blue);}
.footer-phone + .footer-phone{margin-top:0.5rem;}
.footer-phone svg{flex-shrink:0;color:var(--brand-blue);}
.footer-address-icon{flex-shrink:0;margin-top:0.2rem;color:var(--brand-blue);}
.socials{display:flex;flex-direction:column;gap:0.4rem;}
.social-link{display:inline-flex;align-items:center;gap:0.5rem;color:var(--paragraph);font-size:1rem;transition:color 0.2s ease;}
.social-link svg{color:var(--brand-blue);}
.social-link:hover{color:var(--brand-blue);}
.footer-wordmark{
  display:block;
  max-width:22rem;
  width:100%;
  height:auto;
  margin:2.5rem auto 0;
}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  font-size:0.75rem;
  opacity:0.6;
  margin-top:3rem;
  padding-top:1.5rem;
  border-top:1px solid rgba(167,168,207,0.15);
  width:100%;
  max-width:52rem;
  margin-left:auto;
  margin-right:auto;
  gap:1.5rem;
}

/* FLOATING CALL / WHATSAPP ACTIONS */
.float-actions{
  position:fixed;
  right:1.5rem;
  bottom:1.5rem;
  z-index:140;
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.float-btn{
  position:relative;
  width:3.25rem;height:3.25rem;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--off-white);
  box-shadow:0 0.5rem 1.5rem rgba(0,0,0,0.35);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.float-btn:hover{transform:scale(1.08);}
.float-btn--call{background:var(--brand-blue);}
.float-btn--whatsapp{background:#25d366;}
.float-btn-label{
  position:absolute;
  right:calc(100% + 0.75rem);
  top:50%;
  transform:translateY(-50%) translateX(6px);
  white-space:nowrap;
  background:var(--deep-blue-2);
  color:var(--off-white);
  border:1px solid rgba(167,168,207,0.2);
  padding:0.4rem 0.85rem;
  border-radius:1.5rem;
  font-size:0.8rem;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.25s ease, transform 0.25s ease;
}
.float-btn:hover .float-btn-label{opacity:1;transform:translateY(-50%) translateX(0);}
@media (max-width:799px){
  .float-actions{right:1rem;bottom:1rem;gap:0.6rem;}
  .float-btn{width:2.9rem;height:2.9rem;}
  .float-btn-label{display:none;}
}

/* PROGRESS DOTS */
.progress-dots{
  position:fixed;
  right:1.5rem;top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:0.6rem;
  z-index:100;
}
.progress-dots .dot{
  width:6px;height:6px;
  border-radius:50%;
  background:rgba(167,168,207,0.3);
  transition:background 0.3s, transform 0.3s;
}
.progress-dots .dot.is-active{background:var(--off-white);transform:scale(1.5);}

/* MOBILE: fall back to real native scroll, stacked */
@media (max-width:799px){
  html{overflow-x:hidden;overflow-y:auto;}
  body{position:static;overflow-x:hidden;overflow-y:visible;height:auto;width:100%;}
  .frame{height:auto;}
  .screen{
    position:relative;
    min-height:100vh;
    height:auto;
    opacity:1;
    pointer-events:auto;
    padding:6rem 1.5rem 3rem;
    overflow:hidden;
  }
  .screen--footer{min-height:0;}
  /* Keep this bubble clear of the fixed call/WhatsApp buttons that always
     sit bottom-right — otherwise it visually collides with them and looks
     like a cropped circle. */
  .ambient-bubble--2{bottom:auto;top:6%;right:16%;}
  .screen-footer .scroll-cta{display:none;}
  .ts-1{font-size:2.15rem;line-height:1.15;}
  .ts-2{font-size:2.25rem;}
  .screen--hero .screen-inner{padding-top:2rem;}
  .hero-buttons{margin-top:1.75rem;}
  .hero-copy{margin-top:1.25rem;font-size:0.95rem;}
  .orb-wrap{width:65vw;height:65vw;perspective:none;}
  .screen--vision .split{grid-template-columns:1fr;gap:2rem;}
  .discipline-heading{font-size:1.9rem;}
  .services-heading-row{text-align:left;margin-bottom:1.5rem;}
  .services-heading-row .discipline-heading{font-size:1.6rem;white-space:normal;}
  .services-heading-row .discipline-intro{margin:0;white-space:normal;font-size:0.9rem;}
  .services-grid{grid-template-columns:1fr;gap:1rem;max-width:none;}
  .service-card{aspect-ratio:auto;min-height:11rem;padding:1.25rem 1.5rem;}
  .service-media img{opacity:0.22;}
  .work-list{max-height:none;overflow-y:visible;}
  .work-row{gap:1rem;padding:0.9rem 0;}
  .work-row-name{font-size:1rem;}
  .work-title{font-size:1.6rem;}
  .team-grid{grid-template-columns:1fr;max-width:26rem;}
  .team-card .team-photo{filter:grayscale(0) brightness(1);}
  .team-photo-wrap{aspect-ratio:4/3.6;}
  .team-card-overlay{padding:0.9rem 1rem 1.1rem;}
  .team-role{font-size:0.62rem;}
  .team-name{font-size:1rem;}
  .team-bio{font-size:0.74rem;line-height:1.42;}
  .team-card-link{font-size:0.62rem;padding:0.4rem 0.7rem;}
  .team-quote p{font-size:1.2rem;}
  .footer-address{text-align:left;margin-bottom:0.6rem;justify-content:center;}
  .footer-grid{grid-template-columns:1fr;gap:2rem;text-align:center;}
  .footer-block{display:flex;flex-direction:column;align-items:center;}
  .footer-block:not(:first-child){border-left:none;border-top:1px solid rgba(167,168,207,0.2);padding-left:0;padding-top:2rem;}
  .footer-phone, .social-link{justify-content:center;}
  .socials{align-items:center;}
  .progress-dots{display:none;}
  .hero-buttons{flex-direction:column;align-items:center;width:100%;}
  .hero-buttons .btn{width:auto;min-width:14rem;}
  .footer-bottom{flex-direction:column;gap:0.75rem;text-align:center;}
  .orb-wrap{width:80vw;height:80vw;perspective:none;}
  .screen-footer{position:static;flex-direction:column;align-items:center;gap:2rem;margin-top:3rem;}
  .menu-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:0.5rem;
    bottom:5rem;
    left:1.5rem;right:1.5rem;
  }

  /* Scroll-triggered reveal (native scroll — see the IntersectionObserver
     in main.js that adds .in-view as each element crosses into view). */
  .hl, .fade-block, .standard-item, .work-row, .team-card, .stack-card{
    opacity:0;
    transform:translateY(16px);
    transition:opacity 0.6s ease, transform 0.6s ease;
  }
  .split-lines .hl{transition:opacity 0.6s ease, transform 0.6s ease;}
  .hl.in-view, .fade-block.in-view, .standard-item.in-view,
  .work-row.in-view, .team-card.in-view, .stack-card.in-view{
    opacity:1;
    transform:none;
  }
  /* .screen.is-active is added to every screen immediately on mobile (no
     virtual-scroll engine), so these higher-specificity desktop rules would
     otherwise force full visibility regardless of scroll position. */
  .screen.is-active .hl{opacity:0;transform:translateY(16px);}
  .screen.is-active .hl.in-view{opacity:1;transform:none;}
  .screen.is-active .fade-block{opacity:0;transform:translateY(16px);}
  .screen.is-active .fade-block.in-view{opacity:1;transform:none;}
}

/* CONTACT MODAL — every ambiguous CTA (Get in touch, Get a Free
   Consultation, Know more, Start Your Project, floating call/WhatsApp
   buttons, footer WhatsApp) opens this instead of messaging one fixed
   number, so the visitor picks who they actually want to reach. */
.contact-modal-overlay{
  position:fixed;
  inset:0;
  z-index:300;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.5rem;
  background:rgba(6,6,18,0.72);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  opacity:0;
  visibility:hidden;
  transition:opacity 0.25s ease, visibility 0s linear 0.25s;
}
.contact-modal-overlay.open{
  opacity:1;
  visibility:visible;
  transition:opacity 0.25s ease, visibility 0s linear 0s;
}
.contact-modal{
  position:relative;
  width:100%;
  max-width:26rem;
  max-height:85vh;
  overflow-y:auto;
  background:var(--deep-blue-2);
  border:1px solid rgba(167,168,207,0.2);
  border-radius:1.25rem;
  padding:2rem 1.75rem 1.75rem;
  box-shadow:0 1.5rem 4rem rgba(0,0,0,0.5);
  transform:translateY(0.75rem) scale(0.97);
  opacity:0;
  transition:transform 0.25s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}
.contact-modal-overlay.open .contact-modal{
  transform:translateY(0) scale(1);
  opacity:1;
}
.contact-modal-close{
  position:absolute;
  top:1rem;right:1rem;
  width:2rem;height:2rem;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  color:var(--paragraph);
  background:rgba(167,168,207,0.08);
  transition:color 0.2s ease, background 0.2s ease;
}
.contact-modal-close:hover{color:var(--off-white);background:rgba(167,168,207,0.16);}
.contact-modal-title{
  font-size:1.25rem;
  font-weight:700;
  color:var(--off-white);
  margin-bottom:0.4rem;
  padding-right:1.5rem;
}
.contact-modal-sub{
  font-size:0.82rem;
  line-height:1.45;
  color:var(--paragraph);
  margin-bottom:1.5rem;
}
.contact-modal-list{display:flex;flex-direction:column;gap:0.75rem;}
.contact-person{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0.85rem 1rem;
  border:1px solid rgba(167,168,207,0.18);
  border-radius:0.85rem;
  background:rgba(167,168,207,0.04);
}
.contact-person-info{display:flex;flex-direction:column;gap:0.15rem;min-width:0;}
.contact-person-name{font-size:0.92rem;font-weight:700;color:var(--off-white);}
.contact-person-role{font-size:0.7rem;color:var(--paragraph);}
.contact-person-actions{display:flex;gap:0.5rem;flex-shrink:0;}
.contact-action{
  display:flex;
  align-items:center;
  gap:0.35rem;
  padding:0.5rem 0.7rem;
  border-radius:0.6rem;
  font-size:0.72rem;
  font-weight:700;
  color:var(--off-white);
  transition:transform 0.2s ease, background 0.2s ease;
}
.contact-action--call{background:var(--brand-blue);}
.contact-action--whatsapp{background:#25b358;}
.contact-action:hover{transform:translateY(-2px);}
@media (max-width:480px){
  .contact-person{flex-direction:column;align-items:flex-start;gap:0.75rem;}
  .contact-person-actions{width:100%;}
  .contact-action{flex:1;justify-content:center;}
}

/* CHAT ASSISTANT — bottom-left, mirrors the call/WhatsApp cluster on the
   right so the two never collide. Pure front-end demo: no backend, no
   API key, answers come from a small on-page knowledge base (js/chatbot.js). */
.chat-toggle{
  position:fixed;
  left:1.5rem;bottom:1.5rem;
  z-index:210;
  width:3.5rem;height:3.5rem;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--brand-blue);
  color:var(--off-white);
  box-shadow:0 0.6rem 1.5rem rgba(24,104,232,0.4);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-toggle:hover{transform:translateY(-2px);box-shadow:0 0.9rem 2rem rgba(24,104,232,0.5);}
/* Hide the fixed-corner floating CTAs (chat, call, WhatsApp) while the
   contact-picker modal is open — they sit at fixed screen positions and
   can otherwise visually collide with the centered modal. */
body.modal-open .chat-toggle,
body.modal-open .chat-panel,
body.modal-open .float-actions{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 0.2s ease, visibility 0s linear 0.2s;
}
.chat-toggle-icon--close{display:none;position:absolute;}
.chat-toggle.open .chat-toggle-icon--open{display:none;}
.chat-toggle.open .chat-toggle-icon--close{display:block;}
.chat-toggle-badge{
  position:absolute;
  top:-0.15rem;right:-0.15rem;
  min-width:1.2rem;height:1.2rem;
  padding:0 0.3rem;
  border-radius:1rem;
  background:#ff5c5c;
  color:#fff;
  font-size:0.65rem;
  font-weight:800;
  display:flex;align-items:center;justify-content:center;
  border:2px solid var(--space);
}
.chat-toggle.open .chat-toggle-badge, .chat-toggle.seen .chat-toggle-badge{display:none;}

.chat-panel{
  position:fixed;
  left:1.5rem;bottom:5.75rem;
  z-index:210;
  width:23rem;
  max-width:calc(100vw - 3rem);
  height:32rem;
  max-height:calc(100vh - 8rem);
  display:flex;
  flex-direction:column;
  background:var(--deep-blue-2);
  border:1px solid rgba(167,168,207,0.2);
  border-radius:1.25rem;
  box-shadow:0 1.5rem 4rem rgba(0,0,0,0.5);
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  transform:translateY(1rem) scale(0.97);
  transform-origin:bottom left;
  transition:opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.chat-panel.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  transition:opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}
.chat-panel-header{
  display:flex;
  align-items:center;
  gap:0.65rem;
  padding:0.9rem 1rem;
  border-bottom:1px solid rgba(167,168,207,0.16);
  flex-shrink:0;
}
.chat-panel-avatar{
  width:2.2rem;height:2.2rem;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--brand-blue);
  color:var(--off-white);
  flex-shrink:0;
}
.chat-panel-heading{display:flex;flex-direction:column;gap:0.1rem;min-width:0;flex:1;}
.chat-panel-title{font-size:0.85rem;font-weight:700;color:var(--off-white);}
.chat-panel-status{
  display:flex;align-items:center;gap:0.35rem;
  font-size:0.68rem;color:var(--paragraph);
}
.chat-panel-status i{
  width:0.4rem;height:0.4rem;border-radius:50%;
  background:#3ddc84;
  display:inline-block;
  box-shadow:0 0 0 3px rgba(61,220,132,0.18);
}
.chat-panel-close{
  width:1.9rem;height:1.9rem;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--paragraph);
  background:rgba(167,168,207,0.08);
  flex-shrink:0;
  transition:color 0.2s ease, background 0.2s ease;
}
.chat-panel-close:hover{color:var(--off-white);background:rgba(167,168,207,0.16);}

.chat-panel-body{
  flex:1;
  overflow-y:auto;
  padding:1rem;
  display:flex;
  flex-direction:column;
  gap:0.7rem;
}
.chat-msg{
  max-width:85%;
  font-size:0.8rem;
  line-height:1.5;
  padding:0.6rem 0.85rem;
  border-radius:0.9rem;
  animation:chat-msg-in 0.25s ease;
}
@keyframes chat-msg-in{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
.chat-msg--bot{
  align-self:flex-start;
  background:rgba(167,168,207,0.08);
  color:var(--off-white);
  border-bottom-left-radius:0.25rem;
}
.chat-msg--user{
  align-self:flex-end;
  background:var(--brand-blue);
  color:var(--off-white);
  border-bottom-right-radius:0.25rem;
}
.chat-msg a{color:var(--chatty-green);text-decoration:underline;}
.chat-msg ul{margin:0.4rem 0 0;padding-left:1.1rem;}
.chat-msg li{margin-bottom:0.2rem;}
.chat-typing{
  align-self:flex-start;
  display:flex;
  gap:0.3rem;
  padding:0.7rem 0.9rem;
  background:rgba(167,168,207,0.08);
  border-radius:0.9rem;
  border-bottom-left-radius:0.25rem;
}
.chat-typing span{
  width:0.4rem;height:0.4rem;border-radius:50%;
  background:var(--paragraph);
  animation:chat-typing-bounce 1.1s ease-in-out infinite;
}
.chat-typing span:nth-child(2){animation-delay:0.15s;}
.chat-typing span:nth-child(3){animation-delay:0.3s;}
@keyframes chat-typing-bounce{
  0%,60%,100%{transform:translateY(0);opacity:0.5;}
  30%{transform:translateY(-3px);opacity:1;}
}

.chat-quick-replies{
  align-self:flex-start;
  max-width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:0.45rem;
}
.chat-quick-reply{
  font-size:0.72rem;
  font-weight:600;
  padding:0.4rem 0.75rem;
  border-radius:1.5rem;
  border:1px solid rgba(24,104,232,0.45);
  color:var(--off-white);
  background:rgba(24,104,232,0.1);
  transition:background 0.2s ease, transform 0.2s ease;
}
.chat-quick-reply:hover{background:rgba(24,104,232,0.25);transform:translateY(-1px);}

.chat-panel-input{
  display:flex;
  align-items:center;
  gap:0.5rem;
  padding:0.75rem;
  border-top:1px solid rgba(167,168,207,0.16);
  flex-shrink:0;
}
.chat-panel-input input{
  flex:1;
  min-width:0;
  background:rgba(167,168,207,0.08);
  border:1px solid rgba(167,168,207,0.18);
  border-radius:1.5rem;
  padding:0.55rem 0.9rem;
  font-size:0.78rem;
  color:var(--off-white);
  font-family:var(--font-sans);
}
.chat-panel-input input::placeholder{color:var(--paragraph);}
.chat-panel-input input:focus{outline:none;border-color:var(--brand-blue);}
.chat-send-btn{
  width:2.3rem;height:2.3rem;
  border-radius:50%;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:var(--brand-blue);
  color:var(--off-white);
  transition:transform 0.2s ease;
}
.chat-send-btn:hover{transform:scale(1.06);}
.chat-panel-footnote{
  font-size:0.65rem;
  line-height:1.4;
  color:var(--paragraph);
  text-align:center;
  padding:0 1rem 0.85rem;
  flex-shrink:0;
}
.chat-panel-footnote a{color:var(--brand-blue);font-weight:600;}

@media (max-width:480px){
  .chat-toggle{left:1rem;bottom:1rem;width:3.2rem;height:3.2rem;}
  .chat-panel{
    left:0.75rem;right:0.75rem;bottom:0.75rem;top:0.75rem;
    width:auto;height:auto;max-height:none;max-width:none;
  }
}

/* LEGAL PAGES (Privacy Policy, Terms & Conditions) — plain scrolling
   document pages, not the homepage's fixed-viewport scroll engine. The
   base html/body rules above lock the page in place (position:fixed,
   overflow:hidden) for the homepage's virtual-scroll trick; these pages
   need normal document scrolling instead. */
html.legal-html{overflow-y:auto;overflow-x:hidden;height:auto;}
body.legal-body{position:static;height:auto;width:100%;overflow:visible;}
.legal-page{
  position:relative;
  z-index:1;
  min-height:100vh;
  padding:8rem 1.5rem 5rem;
  display:flex;
  justify-content:center;
}
.legal-page-inner{width:100%;max-width:46rem;}
.legal-back{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  font-size:0.78rem;
  font-weight:600;
  color:var(--paragraph);
  margin-bottom:2rem;
  transition:color 0.2s ease;
}
.legal-back:hover{color:var(--off-white);}
.legal-eyebrow{
  display:block;
  font-size:0.68rem;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--purple);
  margin-bottom:0.6rem;
}
.legal-title{
  font-size:2.4rem;
  font-weight:300;
  letter-spacing:-0.03em;
  color:var(--off-white);
  margin-bottom:0.6rem;
}
.legal-updated{
  font-size:0.8rem;
  color:var(--paragraph);
  margin-bottom:2.5rem;
  padding-bottom:2rem;
  border-bottom:1px solid rgba(167,168,207,0.16);
}
.legal-page-inner h2{
  font-family:var(--font-heading);
  font-size:1.15rem;
  font-weight:700;
  color:var(--off-white);
  margin:2.25rem 0 0.85rem;
}
.legal-page-inner h2:first-of-type{margin-top:0;}
.legal-page-inner p{
  font-size:0.88rem;
  line-height:1.7;
  color:var(--paragraph);
  margin-bottom:0.9rem;
}
.legal-page-inner ul, .legal-page-inner ol{
  margin:0 0 0.9rem;
  padding-left:1.25rem;
}
.legal-page-inner li{
  font-size:0.88rem;
  line-height:1.65;
  color:var(--paragraph);
  margin-bottom:0.5rem;
  list-style:disc;
}
.legal-page-inner ol li{list-style:decimal;}
.legal-page-inner li::marker{color:var(--brand-blue);}
.legal-page-inner strong{color:var(--off-white);font-weight:600;}
.legal-page-inner a{color:var(--brand-blue);text-decoration:underline;}
.legal-contact-box{
  margin-top:2.5rem;
  padding:1.5rem;
  border:1px solid rgba(167,168,207,0.18);
  border-radius:1rem;
  background:rgba(167,168,207,0.04);
}
.legal-contact-box p{margin-bottom:0.4rem;}
.legal-contact-box p:last-child{margin-bottom:0;}
@media (max-width:799px){
  .legal-page{padding:7rem 1.25rem 4rem;}
  .legal-title{font-size:1.8rem;}
}

/* LEAD-GEN POPUP — free-SEO-audit capture, shown once, 40s after landing. */
.lead-popup-overlay{
  position:fixed;
  inset:0;
  z-index:320;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.5rem;
  background:rgba(6,6,18,0.72);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  opacity:0;
  visibility:hidden;
  transition:opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lead-popup-overlay.open{
  opacity:1;
  visibility:visible;
  transition:opacity 0.3s ease, visibility 0s linear 0s;
}
.lead-popup{
  position:relative;
  width:100%;
  max-width:27rem;
  max-height:90vh;
  overflow-y:auto;
  background:var(--deep-blue-2);
  border:1px solid rgba(0,240,255,0.25);
  border-radius:1.25rem;
  padding:2.25rem 1.75rem 1.75rem;
  box-shadow:0 1.5rem 4rem rgba(0,0,0,0.55), 0 0 0 1px rgba(0,240,255,0.06);
  transform:translateY(0.75rem) scale(0.97);
  opacity:0;
  transition:transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
}
.lead-popup-overlay.open .lead-popup{
  transform:translateY(0) scale(1);
  opacity:1;
}
.lead-popup-close{
  position:absolute;
  top:1rem;right:1rem;
  width:2rem;height:2rem;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  color:var(--paragraph);
  background:rgba(167,168,207,0.08);
  transition:color 0.2s ease, background 0.2s ease;
}
.lead-popup-close:hover{color:var(--off-white);background:rgba(167,168,207,0.16);}
.lead-popup-badge{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  padding:0.35rem 0.75rem;
  border-radius:2rem;
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.02em;
  color:#04222a;
  background:linear-gradient(90deg,var(--chatty-green),var(--cpu-purple));
  margin-bottom:1rem;
}
.lead-popup-title{
  font-size:1.4rem;
  font-weight:800;
  color:var(--off-white);
  line-height:1.25;
  margin-bottom:0.5rem;
  padding-right:1.25rem;
}
.lead-popup-sub{
  font-size:0.85rem;
  line-height:1.5;
  color:var(--paragraph);
  margin-bottom:1.5rem;
}
.lead-popup-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.lead-popup-row{display:flex;gap:0.75rem;}
.lead-popup-row .lead-popup-field{flex:1;min-width:0;}
.lead-popup-field{display:flex;flex-direction:column;gap:0.4rem;margin-bottom:1rem;}
.lead-popup-field label{font-size:0.72rem;font-weight:700;color:var(--paragraph);}
.lead-popup-field input{
  width:100%;
  padding:0.75rem 0.9rem;
  border-radius:0.65rem;
  border:1px solid rgba(167,168,207,0.22);
  background:rgba(167,168,207,0.05);
  color:var(--off-white);
  font-family:var(--font-sans);
  font-size:0.88rem;
  transition:border-color 0.2s ease, background 0.2s ease;
}
.lead-popup-field input::placeholder{color:rgba(167,168,207,0.55);}
.lead-popup-field input:focus{
  outline:none;
  border-color:var(--chatty-green);
  background:rgba(167,168,207,0.08);
}
.lead-popup-field input.lead-input-error{border-color:#ff6b6b;}
.lead-popup-field-error{
  display:block;
  font-size:0.72rem;
  color:#ff8f8f;
  min-height:1em;
}
.lead-popup-phone-row{display:flex;gap:0.5rem;}
.lead-popup-phone-row input{flex:1;min-width:0;}
.lead-popup-country-select{
  flex:0 0 auto;
  max-width:9rem;
  padding:0.75rem 0.5rem;
  border-radius:0.65rem;
  border:1px solid rgba(167,168,207,0.22);
  background:rgba(167,168,207,0.05);
  color:var(--off-white);
  font-family:var(--font-sans);
  font-size:0.8rem;
}
.lead-popup-country-select:focus{outline:none;border-color:var(--chatty-green);}
.lead-popup-country-select.lead-input-error{border-color:#ff6b6b;}
.lead-popup-submit{
  width:100%;
  padding:0.85rem 1rem;
  border-radius:0.75rem;
  font-size:0.9rem;
  font-weight:800;
  color:#04222a;
  background:linear-gradient(90deg,var(--chatty-green),var(--cpu-purple));
  transition:transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow:0 0.5rem 1.5rem rgba(0,240,255,0.2);
}
.lead-popup-submit:hover{transform:translateY(-2px);box-shadow:0 0.8rem 2rem rgba(0,240,255,0.3);}
.lead-popup-submit:disabled{opacity:0.6;transform:none;cursor:default;}
.lead-popup-consent{
  display:flex;
  align-items:flex-start;
  gap:0.55rem;
  margin-bottom:1rem;
  cursor:pointer;
}
.lead-popup-consent input{
  margin-top:0.15rem;
  width:1rem;height:1rem;
  flex-shrink:0;
  accent-color:var(--chatty-green);
}
.lead-popup-consent span{
  font-size:0.75rem;
  line-height:1.45;
  color:var(--paragraph);
}
.lead-popup-consent a{color:var(--chatty-green);text-decoration:underline;}
.lead-popup-note{
  margin-top:0.75rem;
  font-size:0.75rem;
  text-align:center;
  color:#ff8f8f;
  min-height:1em;
}
.lead-popup-success{
  display:none;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:0.5rem;
  padding:1.5rem 0 0.5rem;
}
.lead-popup-success.show{display:flex;}
.lead-popup-success h3{font-size:1.15rem;font-weight:800;color:var(--off-white);}
.lead-popup-success p{font-size:0.85rem;color:var(--paragraph);}
@media (max-width:480px){
  .lead-popup-row{flex-direction:column;gap:0;}
  .lead-popup{padding:2rem 1.25rem 1.5rem;}
  .lead-popup-country-select{max-width:6.5rem;font-size:0.72rem;padding:0.75rem 0.35rem;}
}
