/* Mugisha Marketing, Site B2: HOME. Only what the home page alone uses (hero M, globe box, ring, what-we-do pin, testimonial pull-apart, and its own section layouts). Loads after theme.css. */

.what-h,.tile .co,.grid-over h3,.num b,.stat b,#orbit .orbit-line{font-family:var(--serif);font-weight:var(--serif-w);font-stretch:var(--serif-s)}

/* ---------- Hero: their layout. 100vh column, content centred, 5vw left, fixed px (86px headline, 18px text) ---------- */
.hero{position:relative;height:100vh;height:100svh;min-height:36rem;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:0 0 0 max(24px,calc(5vw - 39px))}
.hero-m{position:absolute;inset:0;z-index:auto;pointer-events:none}
.hero-copy{position:relative;top:3.1vh;display:flex;flex-direction:column}   /* round ten: 28px lower at 1440x900 (38px at 2560x1233); a touch below the centre, as theirs sits */
/* the headline is light on a difference blend: ink on the paper, light where a long line runs over the dark M */
.hero .h1{display:block;--hs:78;font-size:min(calc(var(--hs) * 1px),calc(var(--hs) / 12.8 * 1vw));font-weight:var(--serif-w);line-height:1.1;letter-spacing:var(--track);color:#DDDBDC;mix-blend-mode:difference}
.hero .l1{display:block;height:1.5em;padding-top:.2em;line-height:1.1em;white-space:nowrap}
.hero .l2{display:flex;align-items:flex-start;gap:.26em;margin:-.2907em 0 0 0;height:1.3em;padding-top:0;line-height:1.3em;white-space:nowrap}
.hero-copy .sub{margin:20px 0 0 0;width:420px}
.hero-copy .sub p{font-size:18px;line-height:25.2px;letter-spacing:-.2px;margin:0 0 9px;min-height:75.6px}
.hero-copy .sub .cta{margin-top:0;padding-top:10px;height:136.1px}
.js .hero .h1>span{opacity:0}   /* hidden until the intro runs, so the headline never flashes before it */

/* ---------- In numbers + trusted by ---------- */
.proof{padding:4rem var(--edge)}
.proof-in{background:var(--dark);color:var(--bg);border-radius:var(--r-card);min-height:36rem;display:flex;flex-direction:column;overflow:hidden;position:relative}
.proof-top{position:relative;flex:1;overflow:hidden;padding:4.5rem 4rem 4rem;border-bottom:1px solid rgba(245,244,244,.18);min-height:clamp(31rem,22vw,42rem)}
.stats{position:relative;z-index:1;max-width:var(--sent-w,clamp(31rem,26vw,46rem))}
.proof-h{font-family:var(--serif);font-size:var(--sent,clamp(3.25rem,3.6vw,5rem));line-height:1.1;font-weight:var(--serif-w);letter-spacing:var(--track);color:var(--bg)}
.stat-list{display:flex;flex-wrap:wrap;gap:1.5rem 3.5rem;margin-top:2.75rem}
.stat{margin:0;font-variant-numeric:tabular-nums}
.stat b{display:block;font-family:var(--serif);font-weight:var(--serif-w);color:var(--bg);letter-spacing:-.02em;line-height:1}
.stat span{display:block;font-family:var(--sans);font-size:.875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);line-height:1.3}
/* the figures keep the space where a thin rule was (Patrick, round nine: lines off) */
.proof.s-a .stat{min-width:9.5rem;padding-top:1.1rem}
.proof.s-a .stat b{font-size:clamp(3.75rem,4.6vw,5.5rem);margin-bottom:.7rem}
/* the globe is a part of a sphere: the box's right edge and the divider cut it */
.proof-globe{position:absolute;z-index:0;width:var(--gs,max(56rem,38vw));height:var(--gs,max(56rem,38vw));right:calc(var(--gs,max(56rem,38vw)) * var(--gr,-.25) - max(0px,1431px - 100vw));bottom:calc(var(--gs,max(56rem,38vw)) * var(--gb,-.286))}
.proof-globe canvas{display:block;width:100%;height:100%;opacity:0;transition:opacity 1.2s ease-out;cursor:grab;touch-action:pan-y}
.proof-globe canvas.on{opacity:1}
.proof-globe{isolation:isolate}
.proof-globe::before{content:"";position:absolute;inset:-9%;z-index:-1;border-radius:50%;background:radial-gradient(circle closest-side,rgba(244,240,234,.22) 0,rgba(244,240,234,.2) 62%,rgba(244,240,234,.1) 69%,rgba(244,240,234,.03) 73%,transparent 76%);pointer-events:none}
.proof-globe canvas.marks{position:absolute;inset:0;pointer-events:none;opacity:1}
.proof.v-b{--sent:clamp(4rem,4.5vw,6.25rem);--sent-w:clamp(36rem,30vw,54rem);--gs:max(66rem,44vw);--gr:-.333;--gb:-.364}
.trusted{display:grid;grid-template-columns:auto 1fr;gap:3rem;align-items:center;padding:2.25rem 4rem 2.5rem}
.marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;align-items:center;gap:4rem;width:max-content;animation:marq 48s linear infinite}
.marquee-track{gap:0}
.marquee-set{display:flex;align-items:center;gap:3.75rem;padding-right:3.75rem;flex:none}
.lg{display:inline-flex;align-items:center;gap:.6rem;flex:none;color:rgba(245,244,244,.62);font-family:var(--sans);font-weight:400;font-size:1.0625rem;letter-spacing:-.01em;white-space:nowrap}
.lg svg{display:block;width:auto;fill:currentColor;flex:none}
.lg b{font-weight:400}
.lg-img img{display:block;height:1.2rem;width:auto;filter:brightness(0) invert(1);opacity:.62}
@keyframes marq{to{transform:translateX(-50%)}}

/* ---------- Section 4: how it works  ---------- */
.how{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.5fr);gap:3.5rem;align-items:start;padding:7rem var(--edge) 7rem}
.how .h2{margin-bottom:2.5rem;max-width:34rem;font-size:clamp(2.625rem,3.45vw,3.875rem)}
.how .cols{display:grid;grid-template-columns:repeat(3,minmax(0,14.5rem));justify-content:start;gap:2.75rem;padding-top:.9rem}
.how .col{padding-top:0}
.how h4{font-size:1.25rem;font-weight:600;line-height:1.2;margin-bottom:.9rem;white-space:nowrap}
.how h4 i{display:block;font-style:normal;font-weight:400;color:var(--grey);margin:0 0 1.5rem;font-size:.875rem}
.how .col p{font-size:clamp(.9375rem,1.15vw,1.0625rem);line-height:1.4}

/* ---------- Orbit (dotted drum) ---------- */
.orbit-scene{position:relative}
#orbit{height:100vh;height:100svh;position:relative;overflow:clip;background:var(--bg)}
#orbit .orbit-run{height:200vh;position:relative}
#orbit-dots{width:100%;height:100vh;height:100svh;display:block;will-change:transform;transform:translateZ(0);backface-visibility:hidden;position:relative;z-index:1}
#orbit .orbit-line{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(96vw,1900px);margin:0;text-align:center;white-space:nowrap;letter-spacing:-.03em;font-stretch:100%;font-weight:300;font-size:clamp(26px,5vw,92px);line-height:1.1;color:#1A1A1A;z-index:10;pointer-events:none;opacity:0}
.orbit-word{display:inline-block;will-change:transform,opacity,filter}

/* ---------- What we do ---------- */
.what{display:grid;grid-template-columns:clamp(14rem,33vw,40rem) minmax(0,36rem);justify-content:center;gap:clamp(1.75rem,5vw,6rem);padding:8rem var(--edge) 7rem;align-items:start}
.what-title .eyebrow{display:block;margin-bottom:1.25rem}
.what-title{letter-spacing:var(--track);font-size:calc(clamp(2.25rem,3.5vw,4.4rem) * var(--serif-fix));line-height:1.05;text-wrap:balance}
.what-title small{display:block;margin-bottom:1.5rem}
.what-list{padding-bottom:clamp(2rem,6vh,5rem)}
/* the cards scroll like any other content, 7.5rem apart, never touching; the title is pinned by js/site.js until it lines up with the last card */
.what-block{position:relative;margin-bottom:7.5rem}
.what-block:last-child{margin-bottom:0}
.what-in{max-width:36rem;transform-origin:50% 0;will-change:transform,opacity}
.what-photo{border-radius:var(--r-card);overflow:hidden;aspect-ratio:2/1;position:relative;margin-bottom:1.5rem}
.what-h{font-family:var(--serif);font-style:normal;letter-spacing:var(--track);font-size:calc(var(--fs-h3) * var(--serif-fix));line-height:1.05;margin-bottom:.9rem}
.what-p{font-size:clamp(1rem,1.2vw,1.3rem);line-height:1.4;max-width:32rem;margin-bottom:1.5rem}

/* ---------- Testimonials: the curtain grid ---------- */
.clients{position:relative;background:var(--dark);color:var(--bg);min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:5rem var(--edge);overflow:hidden}
.clients-head{text-align:center;max-width:62rem;margin:0 auto 2.25rem}
.clients-head .h2{color:var(--bg)}
.grid{padding:0}
.grid-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.125rem;width:100%;align-content:start}
.grid-col{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.125rem;will-change:transform}
.tile{position:relative;margin:0;border-radius:var(--r-card);overflow:hidden;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;padding:1.5rem 1.4rem 1.4rem;aspect-ratio:3/3.95;color:#F5F4F4;background:#2a2a2a}
.tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,9,11,.86) 0%,rgba(9,9,11,.76) 34%,rgba(9,9,11,.50) 60%,rgba(9,9,11,.36) 80%,rgba(9,9,11,.42) 100%);z-index:-1}
.tile .co{font-family:var(--serif);letter-spacing:var(--track);font-size:calc(1.75rem * var(--serif-fix));line-height:1.08}
.tile blockquote{font-size:.95rem;line-height:1.38;margin:1rem 0 1.25rem}
.tile .by{font-size:.875rem;line-height:1.3;padding-top:.9rem;border-top:1px solid rgba(245,244,244,.28);text-shadow:0 1px 10px rgba(0,0,0,.5)}
.tile .by b{display:block;font-weight:600}
.tile .by span{color:#d6d3d1}
.grid-over{position:absolute;top:50%;left:50%;z-index:1;width:min(100%,46rem);text-align:center;transform:translate(-50%,-50%);opacity:0;pointer-events:none;will-change:transform,opacity;color:var(--bg)}
.grid-over h3{font-family:var(--serif);font-weight:400;letter-spacing:var(--track);font-size:4.125rem;line-height:1.08;margin:0 0 1.5rem;text-wrap:balance}
.grid-over h3 .w{display:inline-block}
.grid-over .btn{pointer-events:auto;color:var(--bg)}
.grid-over .btn:hover{background:#fff;color:var(--dark);border-color:#fff}

/* ---------- Founder ---------- */
.founder{display:grid;grid-template-columns:25rem minmax(0,40rem);gap:4.5rem;align-items:center;justify-content:center;padding:5.5rem var(--edge)}
.founder .ph{border-radius:var(--r-card);overflow:hidden;width:min(25rem,100%);aspect-ratio:1/1;position:relative;background:#e4e2df}
.founder .ph img{width:100%;height:100%;object-fit:cover;object-position:50% 12%}
.founder .ph::after{content:"";position:absolute;inset:0;background:#f0e9de;mix-blend-mode:multiply;pointer-events:none}
.founder .tx{max-width:40rem}
.founder .tx .eyebrow{margin-bottom:1.5rem;display:block}
.founder .tx .h2{margin-bottom:1.75rem}
.founder .tx .btn{margin-top:2.25rem}

/* ---------- Home: tablet and phone ---------- */
@media (max-width:1024px){
  .hero{height:auto;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;padding:0}
  .hero-m{position:relative;inset:auto;order:2;height:auto;aspect-ratio:449/391;margin-top:1rem}
  .hero-m .m3d{left:8%;top:6%;width:96%;height:96%}
  .hero .h1{font-size:2.25rem;color:var(--ink);mix-blend-mode:normal}
  .hero .l1{height:auto;padding:0;line-height:1.12}
  .hero .l2{margin:0;height:auto;line-height:1.2}
  .hero-copy{padding:6.5rem var(--edge) 0;top:0}
  .hero-copy .sub{margin:1.4rem 0 0;width:auto;max-width:26rem}
  .hero-copy .sub .cta{height:auto;margin-top:0;padding-top:1.4rem}
  .hero-copy .sub p{min-height:0}
  .how,.founder,.what{grid-template-columns:1fr;gap:2rem;padding:4.5rem var(--edge);min-height:0}
  .proof{padding:1.5rem var(--edge)}
  .proof-in{min-height:0}
  .proof-top{padding:2rem 1.5rem 0;min-height:0}
  .stats{max-width:none}
  .proof-h{font-size:2.25rem}
  .stat-list{gap:1.5rem;flex-wrap:wrap}
  .proof-globe{position:relative;right:auto;bottom:auto;width:130%;max-width:none;height:auto;aspect-ratio:1;margin:-2rem -15% -9rem 25%}
  .trusted{grid-template-columns:1fr;gap:1.25rem;padding:1.75rem 1.5rem 2rem}
  .how .cols{grid-template-columns:1fr;padding-top:0;gap:1.75rem}
  .orbit-scene{display:none}
  .what-block{position:static;margin-bottom:3rem}
  .what-title{position:static}
  .what-title .eyebrow{display:block;margin-bottom:1.25rem}
.what-title{letter-spacing:var(--track);margin-bottom:.5rem}
  .clients{min-height:0;display:block;padding:4.5rem var(--edge) 4rem}
  .grid-items{grid-template-columns:1fr;min-height:0}
  .grid-col{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile{aspect-ratio:auto;min-height:25rem}
  .grid-over{position:relative;top:auto;left:auto;transform:none;opacity:1;width:100%;margin-top:2rem}
  .grid-over h3{font-size:2.6rem}
}
@media (max-width:1024px){.hero-m video{transform:none}.hero .hero-m{overflow:hidden}.hero .hero-m video{object-position:0% 50%;inset:-8px 0;width:100%;height:calc(100% + 16px)}.hero-copy{text-align:center}.hero-copy .sub{margin-left:auto;margin-right:auto}.hero .l2{margin-left:0;justify-content:center}}
@media (max-width:640px){
  .grid-col{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .marquee-track{animation:none}
}

.orbit-line .wm,.grid-over .wm{overflow:visible;padding:0;margin:0}

.js .hero-m video{clip-path:inset(0 0 100% 0)}
.hero-m video{filter:none;mix-blend-mode:multiply;transform:translateX(max(0px,calc(695px - 39.24vw)));position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;-webkit-mask-image:radial-gradient(circle at 100% 0,transparent 0,transparent 5.5vw,#000 8vw);mask-image:radial-gradient(circle at 100% 0,transparent 0,transparent 5.5vw,#000 8vw)}

/* hero: 78px (theirs is 86px, 9 percent smaller) at 1280 and up, with their tracking (-0.2px) and line heights (1.1em / 1.3em).
   "increasing complexity" is the longest line, so the M moves right by just enough to leave 24px plus a 3px margin:
   695px minus 39.24vw (about 193px at 1280, 130 at 1440, 17 at 1728, none from 1770). Below 1280 the headline scales with the window. */
@media (min-width:1025px) and (max-width:1279px){.hero-m video{transform:translateX(calc(13vw + 27px))}}
@media (min-width:1025px){.hero-copy .sub .btn{min-height:4.125rem;padding:.75rem 2.25rem;font-size:1.625rem}}
@media (min-width:2200px){.hero .h1{--hs:86}}

/* phones and tablets: the M sits under the text, never shifted (the desktop shift would push it off screen) */
@media (max-width:1024px){.hero .hero-m video{transform:none;inset:-8px 0 -8px -8px;width:calc(100% + 8px)}}
@media (max-width:1024px){.hero .hero-m video{-webkit-mask-image:linear-gradient(to right,#000 84%,transparent 84%),linear-gradient(to bottom,#000 74%,transparent 94%);mask-image:linear-gradient(to right,#000 84%,transparent 84%),linear-gradient(to bottom,#000 74%,transparent 94%);-webkit-mask-size:100% 100%,18% 100%;mask-size:100% 100%,18% 100%;-webkit-mask-position:0 0,100% 0;mask-position:0 0,100% 0;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}}

.what-p a,.animated-texts a[href^="/"]{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
