/* =========================================================
   Encore Digital — additional styles
   (footer redesign, certification badge grid, conversation
   modal, contact CTA panel). Loaded after styles.css and
   pdf-theme.css so it wins the cascade for shared selectors.
   ========================================================= */

body.no-scroll { overflow: hidden; }

/* ---------- Certification badge grid ---------- */
.cert-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.cert-badge-card {
  background: #fff;
  border: 1px solid #cfe4f6;
  border-radius: 14px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  box-shadow: 0 6px 18px rgba(8, 115, 207, .05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cert-badge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(8, 115, 207, .16);
  border-color: var(--encore-blue, #0873cf);
}
.cert-media {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: visible;
  display: grid;
  place-items: center;
  background: transparent;
}
.cert-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cert-count {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--encore-blue, #0873cf);
  color: #fff;
  font: 700 11px "DM Mono", monospace;
  display: grid;
  place-items: center;
}
.cert-badge-card h3 {
  font: 400 13.5px/1.35 Audiowide, sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--encore-blue, #0873cf);
  margin: 2px 0 0;
}

.cert-other-row {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--encore-pale, #eef7ff);
  border: 1px solid #cfe4f6;
  border-radius: 14px;
  padding: 16px 22px;
  flex-wrap: wrap;
}
.cert-other-media { display: flex; }
.cert-other-media img {
  width: 52px;
  height: 52px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
.cert-other-media img:not(:first-child) { margin-left: -14px; }
.cert-other-text {
  margin: 0;
  font-size: 13px;
  color: #4a7da7;
}
.cert-other-text strong { color: var(--encore-blue, #0873cf); }

@media (max-width: 900px) {
  .cert-badges-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cert-badges-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-media { width: 64px; height: 64px; }
  .cert-badge-card h3 { font-size: 12px; }
}
@media (max-width: 400px) {
  .cert-badges-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact section as a CTA panel (form now lives in the modal) ---------- */
.contact-layout--cta { display: block; }
.contact-layout--cta .contact-title { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-layout--cta .contact-title h2 { margin: 22px auto; }
.contact-layout--cta .contact-title > p { margin: 0 auto; }
.contact-cta-actions { margin-top: 36px; display: flex; justify-content: center; }
.contact-chips {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--encore-blue, #0873cf);
  text-decoration: none;
  border: 1px solid #cfe4f6;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f6fbff;
  transition: background .2s, color .2s, border-color .2s;
}
.contact-chip:hover { background: var(--encore-blue, #0873cf); color: #fff; border-color: var(--encore-blue, #0873cf); }
.chip-icon { font-style: normal; font-size: 13px; }

@media (max-width: 800px) {
  .contact-layout--cta .contact-title { text-align: left; margin: 0; }
  .contact-cta-actions { justify-content: flex-start; }
  .contact-chips { justify-content: flex-start; }
}

/* ---------- Footer redesign ---------- */
footer { padding: 64px 0 0; }
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.footer-brand { max-width: 320px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-img { border-radius: 8px; background: #fff; padding: 3px; }
.footer-tagline {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .78);
  margin: 0;
}
.footer-col-title {
  font: 700 11px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 16px;
}
.footer-col .footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col .footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
}
.footer-mail {
  display: block;
  font: 600 15px "DM Sans", Arial, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #fff !important;
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-mail span { margin-left: 6px; color: var(--encore-sky, #4796db) !important; }
.footer-mail:hover { text-decoration: underline; }
.footer-phone {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-phone:hover { color: #fff; }
.footer-location {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin: 0;
}
.footer-bottom { padding: 22px 0 26px; }

@media (max-width: 800px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding-bottom: 34px; }
  .footer-brand { max-width: none; }
}

/* ---------- Conversation modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 20, 40, .58);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 40px 36px 34px;
  box-shadow: 0 30px 70px rgba(1, 42, 84, .35);
  transform: translateY(18px) scale(.97);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 36px;
  width: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--encore-pale, #eef7ff);
  color: var(--encore-blue, #0873cf);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
.modal-close:hover { background: var(--encore-blue, #0873cf); color: #fff; transform: rotate(90deg); }
.modal-kicker { color: var(--encore-blue, #0873cf) !important; margin-bottom: 12px; }
.modal-head h3 {
  margin: 0 0 10px;
  font: 400 clamp(22px, 4vw, 28px)/1.25 Audiowide, sans-serif;
  text-transform: uppercase;
  color: var(--encore-blue, #0873cf);
  letter-spacing: -.02em;
}
.modal-sub {
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5381a8;
}
.modal-form { display: grid; gap: 20px; }
.modal-form .talk-button { justify-self: stretch; text-align: center; }

@media (max-width: 480px) {
  .modal-panel { padding: 32px 22px 26px; border-radius: 14px; }
}

/* =========================================================
   Motion pass — hero entrance, richer scroll reveal, hover
   micro-interactions across every section. Additive only;
   nothing above this block is overridden in structure.
   ========================================================= */

/* ---------- Hero: staggered entrance on load ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-kicker { animation: heroFadeUp .85s cubic-bezier(.16,.8,.24,1) both; animation-delay: .05s; }
.hero h1 { animation: heroFadeUp .95s cubic-bezier(.16,.8,.24,1) both; animation-delay: .2s; }
.hero-bottom > p { animation: heroFadeUp .95s cubic-bezier(.16,.8,.24,1) both; animation-delay: .36s; }
.hero-tags { animation: heroFadeUp .95s cubic-bezier(.16,.8,.24,1) both; animation-delay: .5s; }
.hero-actions { animation: heroFadeUp .95s cubic-bezier(.16,.8,.24,1) both; animation-delay: .64s; }

/* Slow ambient drift on the hero orbit rings, layered under the existing float */
@keyframes heroOrbitSpin { to { transform: rotate(360deg); } }
.hero-art:before { animation: heroOrbitSpin 60s linear infinite; }
.hero-art:after { animation: heroOrbitSpin 90s linear infinite reverse; }

/* Stars: keep the existing pulse, add a gentle twinkle rotation */
@keyframes twinkleSpin { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.15); } }
.star { animation: pulse 3s ease-in-out infinite, twinkleSpin 5s ease-in-out infinite; transform-origin: center; }

/* Cursor spotlight that follows the pointer inside the hero (JS sets --spot-x/--spot-y) */
.hero { isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(120,157,235,.16), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.hero.spotlight-active::before { opacity: 1; }

/* ---------- Logo: soft continuous pulse halo ---------- */
@keyframes dotHalo {
  0%,100% { box-shadow: 0 0 0 4px rgba(216,168,55,.13); }
  50% { box-shadow: 0 0 0 8px rgba(216,168,55,.22); }
}
.logo-dot { animation: dotHalo 2.6s ease-in-out infinite; }

/* ---------- Richer scroll reveal (blur + rise), still driven by .in-view ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1), filter .7s ease;
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; filter: blur(0); }

/* ---------- Buttons: shine sweep + lift ---------- */
.talk-button { position: relative; overflow: hidden; }
.talk-button::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
  pointer-events: none;
}
.talk-button:hover::before { left: 130%; }
.talk-button.blue::before { background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent); }

.line-link span { display: inline-block; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.line-link:hover span { transform: translateX(6px); }

/* ---------- Service cards / industry cards / cert badges: shine sweep on hover ---------- */
.service-card, .industry-card, .cert-badge-card {
  position: relative;
}
.service-card::before, .cert-badge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .75s ease;
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::before, .cert-badge-card:hover::before { transform: translateX(120%); }

.service-icon { transition: background .3s, color .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }

/* ---------- Certification badges: pop-in media + hover ring ---------- */
.cert-media { transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease; }
.cert-badge-card:hover .cert-media { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 6px rgba(8,115,207,.12); }

/* ---------- Marquee: pause on hover, icons spin ---------- */
.marquee > div { transition: animation-play-state .2s; }
.marquee:hover > div { animation-play-state: paused; }
@keyframes marqueeStarSpin { to { transform: rotate(360deg); } }
.marquee b { display: inline-block; animation: marqueeStarSpin 4s linear infinite; }

/* ---------- Expertise accordion: subtle row highlight sweep ---------- */
.expertise-item { position: relative; overflow: hidden; }
.expertise-item::after {
  content: "";
  position: absolute;
  left: -100%; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transition: left .6s ease;
  pointer-events: none;
}
.expertise-item:hover::after { left: 100%; }

/* ---------- Stat counter: pop-in scale when it starts counting ---------- */
@keyframes statPop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.count-up { display: inline-block; }
.count-up.counting { animation: statPop .5s cubic-bezier(.34,1.56,.64,1) both; }

/* ---------- Contact form: animated focus underline ---------- */
.contact-form input, .contact-form textarea { position: relative; }
.contact-form label { position: relative; display: inline-block; }
.contact-form .field { position: relative; }
.contact-form input, .contact-form textarea { transition: border-color .3s ease, transform .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { transform: translateY(-1px); }

/* ---------- Back to top: entrance + hover ring pulse ---------- */
@keyframes backToTopIn { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
.back-to-top.show { animation: backToTopIn .4s cubic-bezier(.34,1.56,.64,1) both; }
.back-to-top { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease; }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 26px rgba(8,115,207,.35); }

/* ---------- Partnership marks: gentle float ---------- */
@keyframes markFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.partner-mark span { animation: markFloat 4.5s ease-in-out infinite; }
.partner-mark span:last-of-type { animation-delay: .6s; }

/* ---------- Salesforce Cloud: animated badge floating in the hero ---------- */
.sf-cloud-wrap {
  position: absolute;
  left: -10px;
  bottom: 6px;
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0;
  transform: scale(.4) translateY(34px);
  animation: sfCloudAppear 1.15s cubic-bezier(.2,.9,.25,1.15) both;
  animation-delay: .9s;
}
@keyframes sfCloudAppear {
  0%   { opacity: 0; transform: scale(.35) translateY(42px); filter: blur(7px); }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.sf-cloud-glow {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,193,255,.5) 0%, rgba(0,161,224,.2) 50%, transparent 72%);
  animation: sfGlowPulse 3.6s ease-in-out infinite;
  filter: blur(3px);
}
@keyframes sfGlowPulse {
  0%, 100% { transform: scale(.88); opacity: .65; }
  50%      { transform: scale(1.18); opacity: 1; }
}

.sf-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 193, 255, .32);
  pointer-events: none;
}
.sf-ring.r1 { inset: 2px; animation: sfRingPulse 3.2s ease-in-out infinite; }
.sf-ring.r2 { inset: -14px; border-color: rgba(0, 193, 255, .16); animation: sfRingPulse 3.2s ease-in-out infinite; animation-delay: .55s; }
.sf-ring.r3 { inset: -30px; border: 1px dashed rgba(216,168,55,.28); animation: sfOrbitSpin 22s linear infinite; }
@keyframes sfRingPulse {
  0%, 100% { transform: scale(.94); opacity: .5; }
  50%      { transform: scale(1.09); opacity: 1; }
}

.sf-orbit { position: absolute; inset: 8px; border-radius: 50%; pointer-events: none; }
.sf-orbit.o1 { animation: sfOrbitSpin 5s linear infinite; }
.sf-orbit.o2 { inset: -6px; animation: sfOrbitSpin 8.5s linear infinite reverse; }
.sf-orbit.o3 { inset: 26px; animation: sfOrbitSpin 11s linear infinite; }
@keyframes sfOrbitSpin { to { transform: rotate(360deg); } }

.sf-particle {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(0, 193, 255, .85), 0 0 2px #fff;
}
.sf-orbit.o2 .sf-particle { width: 5px; height: 5px; background: var(--gold); box-shadow: 0 0 8px 2px rgba(216,168,55,.8); }
.sf-orbit.o3 .sf-particle { width: 4px; height: 4px; background: #9fe1ff; box-shadow: 0 0 6px 2px rgba(159,225,255,.8); }

/* --- Real cloud artwork: float + gentle tilt + breathing scale --- */
.sf-cloud-figure {
  position: relative;
  width: 128px;
  animation: sfCloudFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 14px 26px rgba(0, 140, 214, .55));
}
.sf-cloud-img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes sfCloudFloat {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  50%  { transform: translateY(-12px) rotate(-2.2deg) scale(1.025); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* Shine sweep masked to the exact cloud silhouette for a premium, on-brand glint */
.sf-cloud-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.95) 48%, transparent 66%);
  background-size: 260% 260%;
  background-position: -60% -60%;
  -webkit-mask-image: url("cloud-logo.png");
  mask-image: url("cloud-logo.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: overlay;
  animation: sfShineSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sfShineSweep {
  0%   { background-position: -60% -60%; }
  55%  { background-position: 130% 130%; }
  100% { background-position: 130% 130%; }
}

.sf-ping {
  position: absolute;
  right: 14px;
  bottom: 40px;
  width: 12px;
  height: 12px;
}
.sf-ping::before, .sf-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 6px rgba(61, 220, 132, .8);
}
.sf-ping::before { animation: sfPing 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes sfPing {
  0%       { transform: scale(1); opacity: .75; }
  75%, 100%{ transform: scale(2.6); opacity: 0; }
}

@media (max-width: 800px) {
  .sf-cloud-wrap { left: 10px; bottom: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-cloud-wrap { animation: none !important; opacity: 1; transform: none; }
  .sf-cloud-figure, .sf-cloud-shine, .sf-ring, .sf-orbit { animation: none !important; }
}

/* ---------- Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Team section
   ========================================================= */
.team { background: var(--cream); }
.team-head { display: grid; grid-template-columns: 1.1fr .65fr; gap: 9vw; align-items: end; margin: 45px 0 60px; }
.team-head p { font-size: 14px; line-height: 1.8; color: #616c78; margin: 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  background: #fff;
  border: 1px solid #d9e1e6;
  border-radius: 14px;
  padding: 30px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(25, 38, 52, .1);
  border-color: var(--blue);
}
.team-media {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--navy);
}
.team-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.team-card:hover .team-media img { transform: scale(1.07); }
.team-card h3 { font: 500 20px/1.15 "Playfair Display", serif; letter-spacing: -.03em; margin: 0 0 4px; }
.team-role { font-size: 12.5px; color: #67707a; margin: 0 0 14px; }
.team-links { display: flex; gap: 8px; }
.team-links a {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #cfd6db; display: grid; place-items: center;
  font: 700 11px "DM Mono", monospace; color: var(--navy); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.team-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .team-head { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } .team-head { margin: 34px 0 40px; } }

/* =========================================================
   Gallery section
   ========================================================= */
.gallery { background: var(--paper); }
.gallery-head { display: grid; grid-template-columns: 1.1fr .65fr; gap: 9vw; align-items: end; margin: 45px 0 55px; }
.gallery-head p { font-size: 14px; line-height: 1.8; color: #63707b; margin: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  grid-row: span 1;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(7,20,39,.88), transparent);
  color: #fff;
  font: 500 12.5px/1.3 "DM Sans", sans-serif;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
}
@media (max-width: 800px) {
  .gallery-head { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-head { margin: 34px 0 40px; }
}

/* ---------- Gallery lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 12, 24, .93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-figure { max-width: min(900px, 86vw); max-height: 82vh; margin: 0; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 72vh; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.5); display: block; margin: 0 auto; }
.lightbox-figure figcaption { color: #dbe2ee; font: 13px "DM Mono", monospace; letter-spacing: .04em; margin-top: 16px; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--blue); border-color: var(--blue); }
.lightbox-close {
  top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.lightbox-nav {
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 26px; display: grid; place-items: center;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
}

/* =========================================================
   Footer social icons
   ========================================================= */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .25s ease, color .2s ease;
}
.social-icon:hover {
  background: var(--encore-blue, #0873cf);
  border-color: var(--encore-blue, #0873cf);
  transform: translateY(-3px);
}

/* =========================================================
   Toast notifications
   ========================================================= */
.toast-stack {
  position: fixed;
  z-index: 999;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b1b33;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 14px 14px 14px 16px;
  box-shadow: 0 18px 40px rgba(1, 20, 42, .35);
  font: 500 13.5px/1.4 "DM Sans", Arial, sans-serif;
  transform: translateY(16px) scale(.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast.hide { transform: translateY(10px) scale(.97); opacity: 0; }
.toast-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px "DM Mono", monospace;
  background: #1fae6c;
  color: #05230f;
}
.toast--error .toast-icon { background: #e2554a; color: #2a0805; }
.toast-text { flex: 1; }
.toast-close {
  flex: none;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.toast-close:hover { color: #fff; }

@media (max-width: 480px) {
  .toast-stack { right: 12px; left: 12px; bottom: 14px; max-width: none; }
  .toast { padding: 12px 12px 12px 14px; font-size: 13px; }
}

/* =========================================================
   Extra responsive refinements
   ========================================================= */
@media (max-width: 960px) {
  .about-layout, .expertise-intro, .industry-intro, .cert-head, .team-head, .gallery-head { gap: 6vw; }
}

@media (max-width: 640px) {
  .contact-cta-actions .talk-button { width: 100%; text-align: center; }
  .modal-form { gap: 16px; }
  .cert-other-row { padding: 14px 16px; gap: 12px; }
  .cert-other-text { font-size: 12px; }
  .partner-mark { margin: 60px 0 20px; }
  .partnership-copy h2 { margin-top: 0; }
}

@media (max-width: 400px) {
  .footer-mail { font-size: 17px; word-break: break-word; }
  .cert-badges-grid { gap: 10px; }
  .team-card { padding: 24px 14px 20px; }
  .team-media { width: 108px; height: 108px; }
  .toast-text { font-size: 12.5px; }
}

/* Avoid any residual horizontal scroll from wide decorative elements */
@media (max-width: 800px) {
  .hero, .hero-art, .partner-orbit { max-width: 100vw; }
}

/* =========================================================
   Rounded buttons — "Talk to us" / "Start a conversation" /
   modal submit all share one soft pill shape.
   ========================================================= */
.talk-button {
  border-radius: 999px !important;
  padding: 13px 22px !important;
}
.talk-button.blue {
  background: var(--encore-blue, #0873cf);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 115, 207, .28);
}
.talk-button.blue:hover {
  background: var(--encore-deep, #045cae);
  box-shadow: 0 14px 30px rgba(8, 115, 207, .38);
}
.header-talk { border-radius: 999px !important; }

/* =========================================================
   Contact chips — redesigned as distinct icon-tiles instead
   of plain text pills, styled to the blue theme.
   ========================================================= */
.contact-chips { gap: 16px; }
.contact-chip {
  gap: 12px;
  padding: 12px 22px 12px 12px;
  border: 1px solid #cfe4f6;
  border-radius: 999px;
  background: #fff;
  color: var(--encore-blue, #0873cf);
  box-shadow: 0 8px 22px rgba(8, 115, 207, .08);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.contact-chip .chip-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--encore-pale, #eef7ff);
  color: var(--encore-blue, #0873cf);
  font-size: 0;
  transition: background .25s ease, color .25s ease;
}
.contact-chip .chip-icon svg { display: block; }
.contact-chip .chip-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.contact-chip .chip-label {
  font: 700 9.5px "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7ba9cc;
  transition: color .25s ease;
}
.contact-chip .chip-value { font: 600 14px "DM Sans", Arial, sans-serif; }
.contact-chip:hover {
  background: var(--encore-blue, #0873cf);
  border-color: var(--encore-blue, #0873cf);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(8, 115, 207, .3);
}
.contact-chip:hover .chip-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.contact-chip:hover .chip-label { color: #dcf0ff; }

@media (max-width: 480px) {
  .contact-chip { width: 100%; padding: 10px 18px 10px 10px; }
}

/* =========================================================
   Offices section
   ========================================================= */
.offices { background: var(--encore-pale, #eef7ff); }
.offices-head {
  display: grid;
  grid-template-columns: 1.1fr .65fr;
  gap: 9vw;
  align-items: end;
  margin: 45px 0 55px;
}
.offices-head p { font-size: 14px; line-height: 1.8; color: #4a7da7; margin: 0; }
.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) {
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
}
.office-card {
  background: #fff;
  border: 1px solid #cfe4f6;
  border-radius: 18px;
  padding: 30px 26px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.office-card:after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--encore-pale, #eef7ff);
  right: -100px;
  bottom: -100px;
  z-index: 0;
  transition: transform .4s ease;
}
.office-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(8, 115, 207, .14);
  border-color: var(--encore-blue, #0873cf);
}
.office-card:hover:after { transform: scale(1.25); }
.office-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.office-pin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--encore-blue, #0873cf);
  color: #fff;
}
.office-flag { font-size: 24px; line-height: 1; }
.office-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font: 500 21px/1.15 "Playfair Display", serif;
  letter-spacing: -.02em;
  color: var(--encore-blue, #0873cf);
}
.office-company {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--encore-pale, #eef7ff);
  color: var(--encore-blue, #0873cf);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.office-address {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #517da4;
  flex: 1 0 auto;
}
.office-phone {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--encore-blue, #0873cf);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.office-phone svg { flex: none; }
.office-phone:hover { transform: translateX(3px); }
.office-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--encore-blue, #0873cf);
  margin-top: auto;
}
.office-link span { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.office-link:hover span { transform: translateX(5px); }

@media (max-width: 900px) {
  .offices-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .offices-head { grid-template-columns: 1fr; gap: 20px; margin: 30px 0 40px; }
}

.footer-sf-badge {
  height: 84px;
  width: auto;
  margin: 6px 0 22px;
  display: block;
  animation: badgeFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(8, 115, 207, .28));
}
.partnership-sf-badge {
  height: 96px;
  width: auto;
  display: block;
  margin: 6px 0 24px;
  animation: badgeFloat 3.6s ease-in-out infinite;
  animation-delay: .5s;
  filter: drop-shadow(0 10px 22px rgba(8, 115, 207, .3));
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-9px) scale(1.035); }
}

/* =========================================================
   Custom Industries Section Addition 
   ========================================================= */

.industries {
  background-color: var(--encore-pale, #f6fbff);
  padding: 80px 0;
  overflow: hidden;
}

.industry-slider {
  margin-top: 40px;
  padding-left: max(6vw, calc((100vw - 1120px) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; 
  cursor: grab;
}

.industry-slider::-webkit-scrollbar {
  display: none; 
}

.industry-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none; 
}

.slider-track {
  display: flex;
  gap: 20px;
  padding-right: 6vw; 
  width: max-content;
}

.industry-card {
  scroll-snap-align: start;
  flex: 0 0 min(350px, 80vw);
  height: 400px;
  background-color: var(--navy);
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(7, 20, 39, 0.2);
}

.industry-card::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(120, 157, 235, 0.15);
  border-radius: 50%;
  right: -100px;
  bottom: -100px;
  pointer-events: none;
}

.industry-card > span {
  font: 11px "DM Mono", monospace;
  color: #8292b1;
}

.industry-symbol {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font: 23px Georgia, serif;
  margin: 30px 0 20px;
}

.industry-card h3 {
  font: 400 22px/1.25 Audiowide, sans-serif;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.industry-card p {
  color: #afbbca;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.industry-card small {
  font: 600 11px "DM Mono", monospace;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.slide-count {
  font: 12px "DM Mono", monospace;
  color: #84909c;
}

.slide-count b {
  color: var(--blue, #0873cf);
}

.slider-line {
  height: 2px;
  background: #d3e6f5;
  width: 150px;
  position: relative;
}

.slider-line i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--blue, #0873cf);
  width: 16.66%;
  transition: width 0.4s ease;
}

.slider-nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.slider-button {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 1px solid #b9dbf3;
  background: transparent;
  color: var(--blue, #0873cf);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.slider-button:hover {
  background: var(--blue, #0873cf);
  color: #fff;
  border-color: var(--blue, #0873cf);
}

/* --- THE DYNAMIC DESKTOP GRID --- */
@media (min-width: 1200px) {
  .industry-slider {
    padding-left: 0; /* Remove edge bleed */
    overflow-x: visible; /* Disable scroll */
    cursor: auto; /* Remove grab cursor */
  }
  
  .slider-track {
    /* Transform the horizontal flex track into a responsive grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-right: 0;
    width: min(1120px, 88vw);
    margin: 0 auto;
  }
  
  .industry-card {
    /* Reset flex locking so cards fit grid cells */
    flex: none; 
    height: 380px;
  }
  
  .slider-controls {
    /* Hide the navigation buttons, line, and counter */
    display: none; 
  }
}