/* More Reach Websites page: builds on the homepage system (home.css). Each project is a chapter, shown running. */

/* hero: the promise on the left, the three sites stacked on the right */
.w-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:40px 64px;min-height:calc(100svh - 84px);padding:72px var(--pad) 96px;overflow:hidden;overflow:clip;
  background:radial-gradient(ellipse 60% 70% at 88% 12%,rgba(181,192,207,.16),transparent 60%),radial-gradient(ellipse 50% 60% at 6% 96%,rgba(17,26,40,.7),transparent 65%),linear-gradient(180deg,#252e3b,#1f2733)}
.w-hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:26px;max-width:640px}
.w-hero h1{font-size:clamp(48px,5.6vw,92px);font-weight:500;line-height:.98;letter-spacing:-.055em}
.w-hero h1 .line{display:block}
.w-hero .lede{max-width:32em;font-size:clamp(17px,1.35vw,20px);color:var(--w-lead)}
.w-hero .actions{justify-content:flex-start}
.w-hero-stack{position:relative;height:min(68vh,620px);perspective:1800px}
.hs{position:absolute;display:block;width:78%;transition:transform .6s var(--ease)}
.hs .browser{box-shadow:0 50px 90px -40px rgba(5,10,18,.9),0 0 0 1px rgba(0,0,0,.35)}
.hs-1{left:0;top:0;transform:rotate(-3deg);z-index:1}
.hs-2{right:0;top:24%;transform:rotate(2.5deg);z-index:2}
.hs-3{left:8%;bottom:0;transform:rotate(-1.5deg);z-index:3}
.hs:hover{transform:translateY(-8px) rotate(0deg);z-index:4}
.hs.rise{animation-name:hs-in}
@keyframes hs-in{from{opacity:0;translate:0 60px}to{opacity:1;translate:0 0}}

/* statement */
.w-statement{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px 80px;align-items:end;padding:130px var(--pad);background:#f8f8f6;color:var(--w-ink)}
.w-statement h2{font-size:clamp(42px,5vw,80px);font-weight:500;line-height:.98;letter-spacing:-.05em}
.w-statement h2 em{color:#68717f}
.w-statement p{max-width:34em;color:var(--w-text);font-size:18px}
.w-statement p+p{margin-top:18px}

/* chapters */
.chapters{background:linear-gradient(180deg,#1f2733,#232c39)}
.chapter{position:relative;padding:140px var(--pad) 120px;border-top:1px solid rgba(255,255,255,.08);overflow:hidden;overflow:clip}
.chapter::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 55% 45% at 50% 42%,color-mix(in srgb,var(--brand) 26%,transparent),transparent 70%)}
.chapter>*{position:relative}
.ch-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:end;gap:18px 64px;margin-bottom:56px}
.ch-meta{grid-column:1/-1;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:color-mix(in srgb,var(--brand) 40%,var(--w-soft))}
.ch-head h2{font-size:clamp(46px,6vw,104px);font-weight:500;line-height:.94;letter-spacing:-.055em}
.ch-line{font-size:clamp(19px,1.6vw,24px);line-height:1.4;color:#f2f4f7;max-width:22em}
.ch-stage{position:relative;max-width:1180px;margin:0 auto;padding-right:7%}
.ch-stage .browser.big{border-radius:16px}
.ch-stage .screen{aspect-ratio:16/10}
.ch-phone{position:absolute;right:0;bottom:-48px;width:clamp(150px,15vw,230px);z-index:2}
.flip .ch-stage{padding-right:0;padding-left:7%}
.flip .ch-phone{right:auto;left:0}
.ch-body{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:56px 80px;align-items:start;margin-top:110px}
.ch-text{display:flex;flex-direction:column;gap:18px;padding-top:12px}
.ch-text p{color:var(--w-soft);font-size:17px;max-width:32em}
.ch-text .text-link{align-self:flex-start;margin-top:8px}
.ch-moments{position:relative;min-height:clamp(320px,32vw,500px)}
.m{position:absolute;width:74%}
.m .browser{box-shadow:0 40px 80px -36px rgba(5,10,18,.9),0 0 0 1px rgba(0,0,0,.35)}
.m .screen img{width:100%;height:100%;object-fit:cover;object-position:top}
.m .film video{width:100%;height:100%;object-fit:cover}
.m1{left:0;top:0;transform:rotate(-1.5deg)}
.m2{right:0;bottom:0;width:62%;transform:rotate(2deg);z-index:1}
.flip .ch-body{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.flip .ch-text{order:2}

/* the cards and stills lift on hover */
.m .browser,.ch-stage .browser.big{transition:transform .6s var(--ease)}
.m:hover .browser{transform:translateY(-6px)}

@media (max-width:1100px){
  .w-hero{grid-template-columns:minmax(0,1fr);min-height:0}
  .w-hero-stack{height:clamp(320px,62vw,560px)}
  .ch-head,.ch-body,.flip .ch-body{grid-template-columns:minmax(0,1fr)}
  .flip .ch-text{order:0}
}
@media (max-width:860px){
  .w-hero{padding:48px var(--pad) 72px}
  .w-statement{grid-template-columns:minmax(0,1fr);padding:90px var(--pad)}
  .chapter{padding:100px var(--pad) 90px}
  .ch-stage,.flip .ch-stage{padding:0 18% 0 0}
  .flip .ch-stage{padding:0 0 0 18%}
  .ch-phone{width:31%;bottom:-36px}
  .ch-body{margin-top:80px}
  .ch-moments{min-height:0;display:flex;flex-direction:column;gap:18px}
  .m,.m2{position:relative;width:100%;transform:none}
}
@media (max-width:560px){
  .w-hero h1{font-size:clamp(42px,12vw,60px)}
  .hs{width:86%}
}
@media (prefers-reduced-motion:reduce){ .hs.rise{animation:none!important;opacity:1!important} }
@media (min-width:1101px){
  .w-hero{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}
  .w-hero-copy{max-width:720px}
  .w-hero h1{font-size:clamp(46px,4.7vw,84px)}
  .w-hero h1 .line{white-space:nowrap}
}

/* What we do: lead sentence and two plain links */
.w-statement{align-items:start}
.w-statement .w-lead{font-size:clamp(19px,1.6vw,23px);line-height:1.45;color:var(--w-ink)}
.w-statement .w-links{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:28px}
.w-statement .w-links a{font-size:16px;font-weight:600;color:#1a6b42;text-decoration:none;border-bottom:1.5px solid rgba(26,107,66,.35);padding-bottom:3px}
.w-statement .w-links a:hover{border-bottom-color:#1a6b42}

/* ══ Websites keeps to its own blue palette everywhere on the page (the logo stays as it is) ══ */
.mr-websites{--wb:#252e3b;--wb2:#1b2230;--wb-mid:#3d5a80;--wb-pale:#eef1f5;--wb-soft:#b5c0cf}
.mr-websites .skip-link{background:var(--wb)!important;color:#fff!important}
.mr-websites .site-header .header-contact{background:var(--wb)!important}
.mr-websites .site-header .header-contact:hover{background:var(--wb2)!important}
.mr-websites .site-header .desktop-nav a:hover,.mr-websites .site-header .desktop-nav a[aria-current="page"]{color:var(--wb-mid)!important}
.mr-websites .site-header .desktop-nav a[aria-current="page"]::after{background:var(--wb-mid)!important}
.mr-websites .mobile-menu a{color:var(--wb)!important}
.mr-websites .browser .bar i{background:#c9cfd8!important}
.mr-websites .w-statement .w-links a{color:var(--wb-mid)!important;border-bottom-color:rgba(61,90,128,.35)!important}
.mr-websites .w-statement .w-links a:hover{border-bottom-color:var(--wb-mid)!important}
body.mr-websites .social-strip{background:var(--wb-pale)!important;color:var(--wb)!important}
body.mr-websites .social-strip .eyebrow,body.mr-websites .ss-go,body.mr-websites .ss-go span{color:var(--wb-mid)!important}
.mr-websites .site-footer{background:var(--wb2)!important;color:#dfe5ec!important}
.mr-websites .site-footer .brand>span{color:#fff!important}
.mr-websites .site-footer .brand b,.mr-websites .site-footer .brand-tagline span{color:var(--wb-soft)!important}
.mr-websites .site-footer .brand-tagline{color:#aab5c3!important}
.mr-websites .site-footer a,.mr-websites .site-footer .footer-bottom,.mr-websites .site-footer .footer-bottom span{color:#c3ccd7!important}
.mr-websites .site-footer a:hover{color:#fff!important}
.mr-websites .site-footer .footer-links,.mr-websites .site-footer .footer-bottom{border-color:rgba(255,255,255,.12)!important}

/* How a project works: same calm layout as What we do, on white */
.w-how{background:#fff;border-top:1px solid #e6e9ed}
/* projects use the Websites blue too, not each client's colour */
.mr-websites .chapter{--brand:#5b7ba3!important}
.mr-websites .ch-meta{color:#9fb0c6!important}

/* projects: text, then three screens in a row, each with a caption (no overlapping, nothing hidden) */
.ch-body{grid-template-columns:minmax(0,1fr)!important;gap:48px;margin-top:110px}
.flip .ch-text{order:0}
.ch-text{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 56px;padding-top:0}
.ch-text p{max-width:none}
.ch-text .text-link{grid-column:1/-1}
.ch-moments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;min-height:0}
.ch-moments .m{position:relative;width:auto;left:auto;right:auto;top:auto;bottom:auto;transform:none;margin:0}
.ch-moments .m .browser{box-shadow:0 30px 60px -34px rgba(5,10,18,.9),0 0 0 1px rgba(0,0,0,.35)}
.m-cap{margin:14px 2px 0;font-size:14px;line-height:1.5;color:#b9c3d0}
.ch-feature{max-width:1180px;margin:110px auto 0}
.ch-feature .screen{aspect-ratio:16/9}
.ch-feature video{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:860px){
  .ch-text{grid-template-columns:minmax(0,1fr)}
  .ch-moments{grid-template-columns:minmax(0,1fr);gap:28px}
  .ch-feature{margin-top:80px}
}

/* hero: the three things that set More Reach websites apart, readable at a glance */
.w-facts{margin:0;font-size:15px;font-weight:600;color:#dfe5ec;letter-spacing:-.005em}
.w-facts span{margin:0 .5em;color:#7f8da0}
@media (max-width:560px){ .w-hero h1 .line{display:inline} }
