: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:'Fraunces', Georgia, 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  (JS: scroll-driven zoom, engulfs the screen)
     .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;
  will-change:transform;
}
.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;
  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;
}
.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;
}
.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;
}
.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;
}

/* 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;}

/* 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 the left, a scroll-driven stacked-card deck on the right */
.screen--services .screen-inner{max-width:78rem;}
.services-layout{
  display:grid;
  grid-template-columns:5fr 6fr;
  gap:3.5rem;
  align-items:center;
}
.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;
}

/* 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{
  font-style:normal;
  font-size:1.2rem;
  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:74rem;text-align:center;}
.team-eyebrow{display:block;}
.screen--team .discipline-heading{margin-top:0.4rem;margin-bottom:2.25rem;}
.team-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:0.9rem;
  margin-bottom:1.75rem;
  max-width:72rem;
  margin-left:auto;
  margin-right:auto;
}
/* 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/3.6;
  overflow:hidden;
  flex-shrink:0;
}
.team-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  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.85rem 0.9rem 1rem;
}
.team-role{
  font-size:0.56rem;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--chatty-green);
  margin-bottom:0.2rem;
}
.team-name{font-size:0.9rem;font-weight:700;color:var(--off-white);margin-bottom:0.3rem;}
.team-bio{
  font-size:0.68rem;
  line-height:1.4;
  color:var(--paragraph);
  margin-bottom:0.6rem;
}
.team-card-buttons{display:flex;flex-wrap:wrap;gap:0.5rem;}
.team-card-link{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  font-size:0.62rem;
  font-weight:700;
  color:var(--deep-blue-2);
  background:var(--off-white);
  padding:0.4rem 0.7rem;
  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:46rem;}
  .team-grid{grid-template-columns:repeat(3, 1fr);max-width:40rem;}
}
.team-quote{
  max-width:38rem;
  margin:0 auto;
  padding-top:1.75rem;
  border-top:1px solid rgba(167,168,207,0.2);
}
.team-quote p{
  font-size:1.05rem;
  font-style:italic;
  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(4,1fr);
  gap:2rem;
  width:100%;
  max-width:64rem;
  margin:0 auto;
}
.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-address{
  display:flex;
  align-items:flex-start;
  gap:0.5rem;
}
.footer-address + .footer-address{margin-top:0.7rem;}
.footer-phone{
  display:flex;
  align-items:center;
  gap:0.5rem;
  font-size:1rem;
  white-space:nowrap;
}
.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;}
.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:static;
    min-height:100vh;
    height:auto;
    opacity:1;
    pointer-events:auto;
    padding:6rem 1.5rem 3rem;
  }
  .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;}
  .screen--vision .split{grid-template-columns:1fr;gap:2rem;}
  .services-layout{grid-template-columns:1fr;gap:1.5rem;}
  .discipline-heading{font-size:1.9rem;}
  .stack-wrap{height:auto;overflow:visible;display:flex;flex-direction:column;gap:1rem;}
  .stack-card{
    position:static;
    transform:none;
    height:auto;
    border-radius:1rem;
    border-bottom:1px solid rgba(167,168,207,0.2);
    box-shadow:none;
  }
  .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;}
  .team-card .team-photo{filter:grayscale(0) brightness(1);}
  .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;width:100%;}
  .footer-bottom{flex-direction:column;gap:0.75rem;text-align:center;}
  .orb-wrap{width:80vw;height:80vw;}
  .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;}
}
