/*! RP Theme — home page sections
    Generated from the approved R&P homepage. Do not hand-edit:
    change the homepage source and re-run the extractor. */
/* --- hero --- */
.hero{position:relative;background:var(--charcoal-deep);overflow:hidden}
.hero-bg{position:absolute;inset:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;filter:saturate(.92) brightness(1.02)}
.hero::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(to top,rgba(11,14,17,.84) 0%,rgba(11,14,17,.58) 15%,rgba(11,14,17,.26) 36%,rgba(11,14,17,.06) 60%,transparent 78%),
    linear-gradient(95deg,rgba(16,20,24,.88) 0%,rgba(16,20,24,.6) 42%,rgba(16,20,24,.22) 72%,rgba(16,20,24,.08) 100%)}
.hero-inner{position:relative;z-index:2;padding:150px 0 110px}
.hero-grid{display:grid;grid-template-columns:1.22fr 1fr;gap:60px;align-items:end}
.hero h1{color:var(--white);font-size:var(--f-h1);line-height:1.14;margin-top:26px;max-width:16ch;
  text-shadow:0 2px 24px rgba(10,13,16,.45)}
.hero-side p{font-size:var(--f-lead);line-height:1.7;color:#E2E5E7;margin-bottom:34px;text-shadow:0 1px 14px rgba(10,13,16,.5)}
.hero-cta{display:flex;align-items:center;gap:24px;flex-wrap:nowrap}
.hero-phone{border-left:1px solid rgba(255,255,255,.34);padding-left:22px;font-family:"Instrument Sans",sans-serif}
.hero-phone span{display:block;font-size:13px;color:#D2D6D9;margin-bottom:3px;white-space:nowrap;
  text-shadow:0 1px 10px rgba(9,12,15,.75)}
.hero-phone b{font-size:19px;font-weight:600;color:var(--white);white-space:nowrap;
  text-shadow:0 1px 12px rgba(9,12,15,.75)}

@media(max-width:1200px){
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .hero-inner{padding:96px 0 76px}
}
@media(max-width:640px){
  .hero-cta{flex-wrap:wrap;gap:18px}
  .hero-phone{border-left:none;padding-left:0}
}

/* --- about --- */
.about-top{display:grid;grid-template-columns:1.04fr .96fr;gap:62px;align-items:center;margin-bottom:0}
.about-copy h2{font-size:var(--f-h2);margin-top:14px}
.about-copy p{margin-bottom:16px;max-width:54ch}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:14px 28px;margin:26px 0 32px}
.checks div{display:flex;gap:11px;align-items:center;font-weight:600;color:var(--ink);font-size:15.5px}

/* 16-person team block — small portraits, icons on the image, no names */
.team-lab{display:flex;align-items:center;gap:9px;font-family:"Instrument Sans",sans-serif;
  font-size:12.5px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;
  color:var(--muted);margin-bottom:16px}
.team-lab svg{color:var(--red);flex:none}
.team{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.tcard{position:relative;overflow:hidden;background:var(--gray);aspect-ratio:1/1}
.tcard img{width:100%;height:100%;object-fit:cover;object-position:50% 18%;
  transition:transform .45s cubic-bezier(.22,.61,.36,1)}
@media(hover:hover){.tcard:hover img{transform:scale(1.06)}}
.tlinks{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:4px;
  padding:5px 0;background:rgba(255,255,255,.94);transition:background-color .22s}
.tlinks a{color:var(--red);display:flex;align-items:center;justify-content:center;
  width:24px;height:24px;transition:color .22s,transform .22s}
@media(hover:hover){.tcard:hover .tlinks{background:var(--red)}
.tcard:hover .tlinks a{color:var(--white)}
.tlinks a:hover{transform:translateY(-2px)}}
/* on a touch screen the two icons share the bar as two half-width targets */
@media(pointer:coarse){
  .tcard .tlinks{padding:0;gap:0}
  .tcard .tlinks a{width:auto;flex:0 1 38px;height:34px}
}

/* stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:78px;padding-top:58px;border-top:1px solid var(--line)}
.stat{padding-right:46px;border-right:1px solid var(--line)}
.stat:last-child{border-right:none;padding-right:0}
.stat:not(:first-child){padding-left:46px}
.stat-top{display:flex;align-items:center;gap:17px;margin-bottom:8px}
.stat .n{font-family:"Playfair Display",Georgia,serif;font-size:50px;font-weight:600;color:var(--ink);
  line-height:1;font-variant-numeric:tabular-nums}
.stat .lab{font-family:"Instrument Sans",sans-serif;font-size:12.5px;font-weight:600;letter-spacing:.11em;
  text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.stat p{font-size:15.5px;line-height:1.65}

@media(max-width:1200px){
  .about-top{grid-template-columns:1fr;gap:40px}
  .team{grid-template-columns:repeat(8,1fr)}
}
@media(max-width:900px){
  .stats{grid-template-columns:1fr;margin-top:52px;padding-top:42px}
  .stat{border-right:none;border-bottom:1px solid var(--line);padding:22px 0}
  .stat:not(:first-child){padding-left:0}
  .stat:last-child{border-bottom:none}
}
@media(max-width:640px){
  .team{grid-template-columns:repeat(4,1fr);gap:8px}
  .tlinks{padding:4px 0;gap:2px}
  .tlinks a{width:21px;height:21px}
  .checks{grid-template-columns:1fr}
}

/* --- expertise --- */
/* A native scroller: a finger drags the cards and a flick carries them on with the
   platform's own momentum, then settles on a page. Pages are grouped four to a page in
   the markup; below 900px the groups dissolve (display:contents) into two-card and
   one-card pages, so nothing is rebuilt by script and nothing shifts on load. The
   script only drives the arrows and dots, measuring the scroller to count pages. */
.ecar-window{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ecar-window::-webkit-scrollbar{display:none}
.ecar-track{display:flex;gap:22px}
.ecar-page{flex:0 0 100%;display:grid;grid-template-columns:1fr 1fr;gap:22px;align-content:start;
  scroll-snap-align:start;scroll-snap-stop:always}
.ecard{position:relative;display:grid;grid-template-columns:172px 1fr;background:var(--white);border:1px solid var(--line-soft);
  border-left:4px solid var(--red);transition:box-shadow .18s,transform .18s;-webkit-tap-highlight-color:transparent}
/* pressed: the card darkens where the finger is, since the scroller clips the shadow */
.ecard:active{background:var(--gray);box-shadow:0 8px 22px rgba(20,24,27,.09)}
@media(hover:hover){.ecard:hover{box-shadow:0 12px 30px rgba(20,24,27,.10);transform:translateY(-2px)}}
.ecard .shot{height:100%;min-height:204px}
.ecard-body{padding:24px 28px 22px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ecard h3{font-size:var(--f-h3);line-height:1.22}
.ecard p{font-size:14.5px;line-height:1.6}
/* the whole card is the link's target, so a thumb need not find the words; the card's
   own pressed state answers the tap, so the link adds no tint of its own */
.ecard .link-r{margin-top:auto;font-size:14px;position:static;-webkit-tap-highlight-color:transparent}
.ecard .link-r::after{top:0;right:0;bottom:0;left:0;z-index:1}

@media(max-width:900px){
  .ecar-track{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:100%;gap:16px}
  .ecar-page{display:contents}
  .ecar-page>:nth-child(odd){scroll-snap-align:start;scroll-snap-stop:always}
}
@media(max-width:640px){
  .ecar-track{grid-template-rows:auto}
  .ecar-page>*{scroll-snap-align:start;scroll-snap-stop:always}
  .ecard{grid-template-columns:1fr;grid-template-rows:170px 1fr}
  .ecard .shot{min-height:170px}
}

/* --- approach --- */
.acells{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line-soft);border-left:1px solid var(--line-soft)}
.acell{position:relative;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);
  padding:40px 38px 44px;background:var(--white);min-height:262px;overflow:hidden}
.acell .ghost-num{position:absolute;top:32px;right:32px}
.acell h3{font-size:20px}
.acell p{font-size:15px;max-width:34ch}
.acell--cta{background:var(--charcoal);border-color:var(--charcoal);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.acell--cta h3{color:var(--white);font-size:23px}
.acell--cta p{color:#AEB2B6;margin-bottom:22px}
.acell--cta .cta-art{position:absolute;inset:0;opacity:.13}
.acell--cta .cta-art img{width:100%;height:100%;object-fit:cover;filter:grayscale(1)}
.acell--cta>*{position:relative;z-index:2}
/* the cell is narrower than its button on a tablet: the label wraps rather than clips */
.acell--cta .btn{white-space:normal}

@media(max-width:900px){
  .acells{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .acells{grid-template-columns:1fr}
}

/* --- quotes --- */
.quotes{background:var(--charcoal);color:#C9CCCF;padding:var(--section-y) 0;overflow:hidden}
.quotes h2{color:var(--white);font-size:var(--f-h2);margin-top:14px}
.q-head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:46px}
.q-head .cbtn{border-color:rgba(255,255,255,.28);color:var(--white)}
.q-window{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.q-window::-webkit-scrollbar{display:none}
.q-track{display:flex;gap:40px}
.q-slide{flex:0 0 100%;min-width:0;display:grid;grid-template-columns:1fr 260px;gap:64px;align-items:center;
  scroll-snap-align:start;scroll-snap-stop:always}
.q-mark{color:var(--red);margin-bottom:20px}
.q-slide blockquote{font-family:"Playfair Display",Georgia,serif;font-size:28px;line-height:1.5;color:var(--white);font-weight:500;max-width:34ch}
.q-attrib{margin-top:28px}
.q-attrib b{display:block;color:var(--white);font-size:16px;font-family:"Instrument Sans",sans-serif;font-weight:600}
.q-attrib span{font-size:14px;color:#9AA0A5}
.q-mark-img{display:flex;align-items:center;justify-content:center;min-height:120px}
.q-mark-img img{max-width:100%;width:auto;object-fit:contain;opacity:.95}
.q-mark-img .m-sq{height:96px}.q-mark-img .m-wide{height:62px}.q-mark-img .m-xwide{height:46px}
.quotes .cdot{background:rgba(255,255,255,.25)}
.quotes .cdot.is-on{background:var(--red)}
.marks{display:flex;align-items:center;justify-content:center;gap:56px;flex-wrap:wrap;
  margin-top:56px;padding-top:44px;border-top:1px solid rgba(255,255,255,.14)}
.marks img{width:auto;object-fit:contain;opacity:.74;transition:opacity .2s}
@media(hover:hover){.marks img:hover{opacity:1}}
.m-sq{height:58px}.m-wide{height:38px}.m-xwide{height:30px}

@media(max-width:1200px){
  .q-slide{grid-template-columns:1fr 200px;gap:40px}
  .marks{gap:40px}
}
@media(max-width:900px){
  .q-track{gap:24px}
  .q-head{flex-direction:column;align-items:flex-start;gap:26px}
  .q-head .cnav{align-self:flex-end}
  .q-slide{grid-template-columns:1fr;gap:28px}
  .q-slide blockquote{font-size:23px}
  .q-mark-img{justify-content:flex-start;min-height:0}
}
@media(max-width:640px){
  .marks{gap:26px}
  .m-sq{height:42px}
  .m-wide{height:27px}
  .m-xwide{height:22px}
}

/* --- industries --- */
/* columns share the row equally whatever the names are; a long word wraps inside its card */
.ind-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.icard{position:relative;background:var(--white);border:1px solid var(--line-soft);padding:22px 20px;
  display:flex;align-items:center;gap:14px;transition:box-shadow .18s,transform .18s;-webkit-tap-highlight-color:transparent}
.icard:active{box-shadow:0 6px 18px rgba(20,24,27,.08)}
@media(hover:hover){.icard:hover{box-shadow:0 10px 26px rgba(20,24,27,.09);transform:translateY(-2px)}}
.icard-label{font-family:"Instrument Sans",sans-serif;font-weight:600;color:var(--ink);font-size:15px;line-height:1.35;flex:1;
  min-width:0;overflow-wrap:break-word}
.icard-arrow{color:var(--red);flex:none;transition:transform .24s cubic-bezier(.22,.61,.36,1)}
.icard:active .icard-arrow{transform:translateX(4px)}
@media(hover:hover){.icard:hover .icard-arrow{transform:translateX(4px)}}

@media(max-width:1200px){
  .ind-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .ind-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .ind-grid{grid-template-columns:1fr}
}

/* --- why --- */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.wcard{position:relative;background:var(--white);border:1px solid var(--line-soft);padding:36px 34px 44px;
  overflow:hidden;min-height:320px;transition:box-shadow .18s,transform .18s}
@media(hover:hover){.wcard:hover{box-shadow:0 14px 32px rgba(20,24,27,.10);transform:translateY(-2px)}}
.wcard::before{content:"";position:absolute;left:0;bottom:0;width:4px;height:40%;background:var(--red);z-index:2}
.wcard-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.wcard .num{font-family:"Playfair Display",Georgia,serif;font-size:44px;font-weight:600;color:var(--ink);line-height:1}
.wcard h3{font-size:22px}
.wcard p{font-size:15px;max-width:34ch;position:relative;z-index:2}
/* the line drawing behind each card: Shanghai, the globe, the way forward. It has a band of its
   own beneath the copy, so it never sits behind the words, and fades out toward the left */
.wcard--art{padding-bottom:150px}
.wcard-ghost{position:absolute;right:26px;bottom:24px;width:172px;height:auto;opacity:.22;stroke:var(--ink);fill:none;
  stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;z-index:1;
  -webkit-mask-image:linear-gradient(to left,#000 62%,transparent);mask-image:linear-gradient(to left,#000 62%,transparent)}
.wcard-ghost .wg-soft{opacity:.5}
.wcard-ghost .wg-dash{stroke-dasharray:3 4}
.wcard-ghost .wg-route{stroke-width:1.8}
.wcard-ghost .wg-dot{fill:var(--ink)}

@media(max-width:900px){
  .why-grid{grid-template-columns:1fr}
  .wcard{min-height:0}
}

/* --- support --- */
.talk-grid{display:grid;grid-template-columns:.84fr 1.16fr;gap:70px;align-items:center}
.talk-grid .shot{min-height:520px}
.talk-grid .shot img{filter:saturate(.62) contrast(1.04)}
.talk h2{font-size:var(--f-h2);margin-top:14px}
.talk>p{margin-bottom:24px;max-width:58ch}
.assure{display:flex;align-items:center;gap:16px;border:1px solid var(--line);background:var(--white);padding:17px 20px;margin-bottom:28px}
.assure p{font-size:15px;margin:0}
.assure b{color:var(--ink);font-weight:600}
.emergency{display:flex;align-items:center;gap:15px;background:var(--charcoal);color:#C9CCCF;padding:18px 24px;margin-top:28px;font-size:15px}
.emergency .num{margin-left:auto;color:var(--white);font-weight:600;font-size:17px;white-space:nowrap}

@media(max-width:1200px){
  .talk-grid{grid-template-columns:1fr;gap:40px}
  .talk-grid .shot{min-height:360px}
}
@media(max-width:640px){
  .emergency{flex-wrap:wrap}
  .emergency .num{margin-left:0;width:100%}
}

/* --- insights --- */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.ncard{position:relative;background:var(--white);border:1px solid var(--line-soft);display:flex;flex-direction:column;
  transition:box-shadow .18s,transform .18s;-webkit-tap-highlight-color:transparent}
.ncard:active{box-shadow:0 8px 22px rgba(20,24,27,.09)}
@media(hover:hover){.ncard:hover{box-shadow:0 12px 30px rgba(20,24,27,.10);transform:translateY(-2px)}}
.ncard .shot{height:190px}
.ncard .chip{position:absolute;left:0;top:0}
.ncard h3{font-size:18.5px;line-height:1.35;margin:20px 22px 12px}
/* the headline link reaches across the whole card, whose pressed state answers the tap */
.ncard h3 a{-webkit-tap-highlight-color:transparent}
.ncard h3 a::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}
.nmeta{margin:auto 22px 20px;font-size:13.5px;color:var(--muted);font-family:"Instrument Sans",sans-serif}

@media(max-width:900px){
  .news-grid{grid-template-columns:1fr}
}
