/*! RP Theme — contact page
    The offices, the emergency line and the social cards, after the client's
    reference design (1.8.1). Loaded on the Contact template only.
    Hand-authored (not generated), so this file is safe to edit. */

/* ---------- the offices ------------------------------------------ */
.ct-page{position:relative;overflow:hidden;padding-bottom:64px}
.ct-page .art--sky{top:6px;right:9%;width:600px;opacity:.1}
.ct-page .container{z-index:2}

.ct-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:40px;margin-bottom:46px}
.ct-head h2{font-size:var(--f-h2);margin-top:18px}
.ct-head .rule{margin-top:18px}
.ct-head p:not(.ct-motto){max-width:44ch;margin-top:22px;font-size:17.5px;line-height:1.65}

/* the short standing lines in spaced capitals, closing on a red rule */
.ct-motto{font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:12.5px;font-weight:600;line-height:2.15;letter-spacing:.24em;text-transform:uppercase;color:var(--ink)}
.ct-motto::after{content:"";display:block;width:36px;height:3px;background:var(--red);margin-top:14px}
.ct-head .ct-motto{padding:22px 24px 0 0}

/* the cities, written up the page's edges beside their cards */
.ct-side{display:none;position:absolute;top:52%;z-index:1;writing-mode:vertical-rl;
  font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:12px;font-weight:600;letter-spacing:.42em;text-transform:uppercase;color:var(--line)}
.ct-side::before{content:"";display:block;width:9px;height:9px;margin:0 auto 22px;border-radius:50%;
  border:1px solid var(--red-ghost);box-shadow:inset 0 0 0 2px var(--white),inset 0 0 0 5px var(--red-ghost)}
.ct-side--start{left:28px;transform:rotate(180deg)}
.ct-side--start::before{margin:22px auto 0;order:2}
.ct-side--end{right:28px}

/* one card per office: a photograph under a charcoal gradient carrying the city,
   then the ways to reach it, then where it is */
.ct-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:start}
.ct-card{background:var(--white);border:1px solid var(--line-soft);padding:10px;
  box-shadow:0 18px 44px rgba(20,24,27,.07)}
.ct-card__media{position:relative;height:270px;overflow:hidden;isolation:isolate;color:var(--white)}
.ct-card__media .shot{position:absolute;inset:0;z-index:-2}
.ct-card__media .shot img{transition:transform .8s cubic-bezier(.22,.61,.36,1)}
.ct-card__media::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(to top,rgba(11,14,17,.88) 0%,rgba(11,14,17,.42) 50%,rgba(11,14,17,.12) 100%)}
.ct-card__words{position:absolute;top:26px;right:28px;
  font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:10.5px;font-weight:600;line-height:2.05;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.86)}
.ct-card__words::after{content:"";display:block;width:40px;height:1px;background:rgba(255,255,255,.6);margin-top:12px}
.ct-card__title{position:absolute;left:26px;right:26px;bottom:24px}
.ct-card__eyebrow,.ct-card__tag{display:block;font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-weight:600;text-transform:uppercase}
.ct-card__eyebrow{font-size:11.5px;letter-spacing:.34em}
.ct-card h3{color:var(--white);font-size:42px;line-height:1.1;margin:6px 0 16px;text-shadow:0 2px 20px rgba(10,13,16,.4)}
.ct-card__tag{font-size:11px;letter-spacing:.26em;color:rgba(255,255,255,.9)}
@media(hover:hover){.ct-card:hover .ct-card__media .shot img{transform:scale(1.04)}}

.ct-card__body{padding:24px 24px 20px}
.ct-reach{list-style:none;display:grid;gap:10px;padding-bottom:22px;border-bottom:1px solid var(--line-soft)}
.ct-reach li{display:flex;align-items:center;gap:16px}
.ct-dot{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;
  border-radius:50%;background:var(--red-tint);color:var(--red)}
.ct-reach a{position:relative;font-family:"Playfair Display",Georgia,serif;font-size:18.5px;color:var(--ink);
  overflow-wrap:anywhere;background:linear-gradient(var(--red),var(--red)) left bottom/0 1px no-repeat;
  padding-bottom:2px;transition:background-size .3s cubic-bezier(.22,.61,.36,1);-webkit-tap-highlight-color:transparent}
.ct-reach a:active{background-size:100% 1px}
@media(hover:hover){.ct-reach a:hover{background-size:100% 1px}}

.ct-place{display:grid;gap:20px;padding-top:22px}
.ct-place__row{display:flex;align-items:flex-start;gap:16px}
.ct-place__ico{flex:none;display:flex;justify-content:center;width:40px;padding-top:3px;color:var(--ink)}
.ct-place p{font-size:15px;line-height:1.7;color:var(--body)}
.ct-place span[lang]{display:block;margin-top:2px}

/* ---------- the emergency line ----------------------------------- */
.ct-urgent-band{padding:0 0 30px}
.ct-urgent{display:grid;grid-template-columns:auto 1px minmax(0,1fr) auto;align-items:center;gap:0 34px;
  padding:26px 40px;background:var(--gray-soft);border:1px solid var(--line-soft)}
.ct-urgent__ico{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;
  background:var(--red);color:var(--white);box-shadow:0 10px 24px rgba(183,29,41,.25);
  transition:background-color .2s,transform .2s;-webkit-tap-highlight-color:transparent}
.ct-urgent__ico:active{background:var(--red-dark)}
@media(hover:hover){.ct-urgent__ico:hover{background:var(--red-dark);transform:scale(1.04)}}
.ct-urgent__sep{width:1px;height:58px;background:var(--red)}
.ct-urgent p{font-size:15.5px;line-height:1.65;max-width:62ch}
.ct-urgent .ct-urgent__line{margin-top:8px;font-family:"Playfair Display",Georgia,serif;font-size:20px;color:var(--ink)}
.ct-urgent__line a{font-weight:600;background:linear-gradient(var(--red),var(--red)) left bottom/0 1px no-repeat;
  padding-bottom:2px;transition:background-size .3s cubic-bezier(.22,.61,.36,1)}
.ct-urgent__line a:active{background-size:100% 1px}
@media(hover:hover){.ct-urgent__line a:hover{background-size:100% 1px}}
.ct-urgent__clock{display:flex;align-items:center;gap:22px}
.ct-urgent__ring{display:flex;align-items:center;justify-content:center;width:66px;height:66px;border-radius:50%;
  border:1px dashed var(--ink);font-family:"Playfair Display",Georgia,serif;font-size:17px;color:var(--ink)}
.ct-urgent__note{font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:11px;font-weight:600;line-height:2;letter-spacing:.2em;text-transform:uppercase;color:var(--body)}

/* ---------- WeChat and LinkedIn ----------------------------------- */
.ct-connect{padding:34px 0 84px}
.ct-connect__grid{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:44px}
.ct-connect h2{font-size:34px}
.ct-connect .rule{margin-top:16px}
.ct-connect__grid>div>p{max-width:38ch;margin-top:18px;font-size:15.5px;line-height:1.65}
.ct-socials{display:flex;gap:20px}
.ct-social{display:flex;align-items:center;gap:18px;min-width:230px;padding:14px 22px 14px 14px;
  background:var(--white);border:1px solid var(--line);transition:box-shadow .18s,transform .18s;-webkit-tap-highlight-color:transparent}
a.ct-social:active{box-shadow:0 6px 18px rgba(20,24,27,.08)}
@media(hover:hover){a.ct-social:hover{box-shadow:0 10px 26px rgba(20,24,27,.09);transform:translateY(-2px)}}
.ct-social__qr,.ct-social__mark{flex:none;display:flex;align-items:center;justify-content:center;width:76px;height:76px}
.ct-social__qr img{width:100%;height:100%;object-fit:contain}
.ct-social__mark{background:var(--red);color:var(--white)}
/* LinkedIn is one colour wherever it appears: the blue the footer square wears (1.10.5) */
.ct-social__mark--li{background:#0a66c2}
.ct-social__text b{display:block;font-size:15.5px;font-weight:600;color:var(--ink)}
.ct-social__text span{display:block;margin-top:3px;font-size:13px;color:var(--muted)}
.ct-motto--split{padding-left:44px;border-left:1px solid var(--line)}

@media(prefers-reduced-motion:reduce){
  .ct-card__media .shot img,.ct-reach a,.ct-urgent__ico,.ct-urgent__line a,.ct-social{transition:none}
}

@media(min-width:1440px){
  .ct-side{display:flex;flex-direction:column;align-items:center}
}
@media(max-width:1200px){
  .ct-card h3{font-size:36px}
  .ct-urgent{grid-template-columns:auto 1px minmax(0,1fr);gap:0 28px;padding:26px 30px}
  .ct-urgent__clock{display:none}
  .ct-connect__grid{grid-template-columns:minmax(0,1fr) auto}
  .ct-motto--split{display:none}
}
@media(max-width:900px){
  .ct-head{grid-template-columns:1fr;gap:0;margin-bottom:36px}
  .ct-head .ct-motto{display:none}
  .ct-cards{grid-template-columns:1fr;gap:22px}
  .ct-urgent{grid-template-columns:auto minmax(0,1fr);gap:0 22px;padding:24px}
  .ct-urgent__sep{display:none}
  .ct-connect__grid{grid-template-columns:1fr;gap:26px}
  .ct-connect h2{font-size:30px}
}
@media(max-width:640px){
  .ct-page{padding-bottom:44px}
  .ct-card{padding:8px}
  .ct-card__media{height:250px}
  .ct-card__words{top:18px;right:18px}
  .ct-card__title{left:18px;right:18px;bottom:18px}
  .ct-card h3{font-size:30px;margin:4px 0 12px}
  .ct-card__tag{letter-spacing:.18em}
  .ct-card__body{padding:20px 12px 14px}
  .ct-reach a{font-size:16.5px}
  .ct-dot,.ct-place__ico{width:36px}
  .ct-dot{height:36px}
  .ct-urgent{grid-template-columns:1fr;gap:16px;padding:22px 20px}
  .ct-urgent__ico{width:54px;height:54px}
  .ct-socials{flex-direction:column;gap:14px}
  .ct-social{min-width:0}
}
