/* /contact-us motion & visuals. Prefix ct-. Hidden/entrance states are gated behind
   html.ct-ready (added by /js/contact-anim.js) so the page reads fully without JS. */

/* ---------- Hero: copy + animated network globe ---------- */
.ct-hero{position:relative;overflow:hidden;}
.ct-hero::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(600px 320px at 80% 40%,rgba(16,121,191,.22),transparent 70%),
             radial-gradient(420px 260px at 95% 90%,rgba(248,162,48,.12),transparent 70%);}
.ct-hero-wrap{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:40px;align-items:center;}
.ct-hero-copy{min-width:0;}
.ct-visual{position:relative;min-width:0;max-width:480px;width:100%;justify-self:end;}
.ct-visual svg{display:block;width:100%;height:auto;overflow:visible;}
.ct-globe{fill:none;stroke:rgba(184,198,224,.22);stroke-width:1;}
.ct-arc{fill:none;stroke:url(#ctArc);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:4 7;}
.ct-nodes circle{fill:#33ADDD;stroke:rgba(6,14,26,.9);stroke-width:2;}
.ct-dot{fill:#F8A230;stroke:#fff;stroke-width:2;}
.ct-ping{fill:none;stroke:#F8A230;stroke-width:2;opacity:0;}
.ct-label{font-family:var(--font-mono);font-size:15px;fill:#E8EEF8;letter-spacing:.06em;}

@media (max-width:900px){
  .ct-hero-wrap{grid-template-columns:1fr;gap:12px;}
  .ct-visual{justify-self:center;max-width:340px;margin-top:8px;}
}

/* ---------- Routing cards ---------- */
.ct-cards{margin-top:40px;}
.ct-card{position:relative;overflow:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease,border-color .35s ease;}
.ct-card::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .35s ease;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,0%),rgba(51,173,221,.16),transparent 70%);}
.ct-card::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,var(--blue),var(--cyan),var(--orange));transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.2,.7,.2,1);}
.ct-card:hover{transform:translateY(-6px);box-shadow:0 24px 50px -26px rgba(11,36,64,.45);}
.ct-card:hover::before{opacity:1;}
.ct-card:hover::after{transform:scaleX(1);}
.ct-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;margin-bottom:16px;
  background:linear-gradient(135deg,rgba(16,121,191,.12),rgba(248,162,48,.14));color:var(--blue-ink);transition:transform .35s ease;}
.ct-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.ct-card:hover .ct-icon{transform:translateY(-3px) rotate(-4deg);}

/* ---------- Office: address card + embedded map ---------- */
.ct-office-split{margin-top:24px;align-items:center;}
.ct-office{display:flex;flex-direction:column;gap:20px;}
.ct-office-row{display:flex;align-items:flex-start;gap:24px;}
.ct-office address{margin:0;}
.ct-office .cap-card-link{margin-top:0;}
.ct-map{aspect-ratio:4/3;}
.ct-map iframe{display:block;width:100%;height:100%;border:0;}
.ct-pin{position:relative;flex:none;width:56px;height:56px;}
.ct-pin svg{position:relative;z-index:1;width:56px;height:56px;}
.ct-pin path{fill:var(--blue);}
.ct-pin circle{fill:#fff;}
.ct-pin-ring{position:absolute;left:50%;bottom:2px;width:28px;height:10px;margin-left:-14px;border-radius:50%;border:2px solid var(--orange);opacity:0;}
@media (max-width:560px){.ct-office-row{gap:16px;}.ct-pin,.ct-pin svg{width:44px;height:44px;}.ct-map{aspect-ratio:16/10;}}

/* ---------- Motion (only with JS + motion allowed) ---------- */
@media (prefers-reduced-motion:no-preference){
  /* hero entrance stagger */
  html.ct-ready .ct-hero-copy > *{animation:ctUp .8s cubic-bezier(.2,.7,.2,1) both;}
  html.ct-ready .ct-hero-copy > :nth-child(2){animation-delay:.08s;}
  html.ct-ready .ct-hero-copy > :nth-child(3){animation-delay:.16s;}
  html.ct-ready .ct-hero-copy > :nth-child(4){animation-delay:.24s;}
  html.ct-ready .ct-hero-copy > :nth-child(5){animation-delay:.32s;}
  html.ct-ready .ct-visual{animation:ctFade 1.2s ease .2s both;}

  .ct-globe{animation:ctSpin 60s linear infinite;transform-origin:260px 210px;}
  .ct-halo{animation:ctBreathe 5s ease-in-out infinite;transform-origin:260px 210px;}
  .ct-arc{animation:ctFlow 1.6s linear infinite;}
  .ct-arc:nth-child(2){animation-duration:2s;}
  .ct-arc:nth-child(3){animation-duration:1.8s;}
  .ct-arc:nth-child(4){animation-duration:2.2s;}
  .ct-nodes circle{animation:ctTwinkle 2.4s ease-in-out infinite;transform-box:fill-box;transform-origin:center;}
  .ct-nodes circle:nth-child(2){animation-delay:.4s;}
  .ct-nodes circle:nth-child(3){animation-delay:.8s;}
  .ct-nodes circle:nth-child(4){animation-delay:1.2s;}
  .ct-nodes circle:nth-child(5){animation-delay:1.6s;}
  .ct-ping{animation:ctPing 2.4s ease-out infinite;transform-box:fill-box;transform-origin:center;}
  .ct-ping-2{animation-delay:1.2s;}

  /* cards + office reveal (class added by IntersectionObserver) */
  html.ct-ready .ct-cards .ct-card:not(.ct-in){opacity:0;transform:translateY(26px);}
  html.ct-ready .ct-card.ct-in{transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease;}
  html.ct-ready .ct-card.ct-in .ct-icon svg *{stroke-dasharray:80;stroke-dashoffset:80;animation:ctDraw 1.2s ease forwards .2s;}
  html.ct-ready .ct-office:not(.ct-in){opacity:0;transform:translateY(20px);}
  html.ct-ready .ct-office.ct-in{transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);}
  .ct-pin svg{animation:ctBob 2.6s ease-in-out infinite;}
  .ct-pin-ring{animation:ctRing 2.6s ease-out infinite;}
  .ct-pin-ring-2{animation-delay:1.3s;}
}
@keyframes ctUp{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:none;}}
@keyframes ctFade{from{opacity:0;transform:scale(.94);}to{opacity:1;transform:none;}}
@keyframes ctSpin{to{transform:rotate(360deg);}}
@keyframes ctBreathe{0%,100%{opacity:.7;transform:scale(.97);}50%{opacity:1;transform:scale(1.03);}}
@keyframes ctFlow{to{stroke-dashoffset:-22;}}
@keyframes ctTwinkle{0%,100%{transform:scale(1);opacity:.85;}50%{transform:scale(1.35);opacity:1;}}
@keyframes ctPing{0%{opacity:.9;transform:scale(1);}100%{opacity:0;transform:scale(3.4);}}
@keyframes ctDraw{to{stroke-dashoffset:0;}}
@keyframes ctBob{0%,100%{transform:translateY(0);}50%{transform:translateY(-6px);}}
@keyframes ctRing{0%{opacity:.9;transform:scale(.6);}100%{opacity:0;transform:scale(2.4);}}

/* Office address: regular body text, not the browser's default italic <address> */
.ct-office address,
.ct-office address.cap-note{font-style:normal;font-size:17px;line-height:1.7;color:var(--text);}
.ct-office address.cap-note::before{display:none;}
