/* V3.2 — realistic simulation media, experience counters and final polish.
   Capability images are original AI-assisted illustrations and do not depict
   client projects, client equipment or confidential deliverables. */

.simulation-card .simulation-visual {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background-color: #071b28;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.simulation-card .simulation-visual > svg {
  display: none !important;
}

.simulation-card .simulation-visual::before,
.simulation-card .simulation-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.simulation-card .simulation-visual::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 15, 23, .01) 52%, rgba(3, 15, 23, .34) 100%),
    linear-gradient(90deg, rgba(0, 31, 51, .06), transparent 32%, transparent 74%, rgba(0, 31, 51, .08));
}

.simulation-card .simulation-visual::after {
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(153, 224, 255, .12),
    inset 0 -30px 56px rgba(3, 15, 23, .12);
}

html[lang^="fr"] .simulation-card:nth-child(1) .simulation-visual,
html[lang^="en"] .simulation-card:nth-child(1) .simulation-visual {
  background-image: url("simulation/fea-analysis.webp");
  background-position: center;
}

html[lang^="fr"] .simulation-card:nth-child(2) .simulation-visual {
  background-image: url("simulation/seismic-qualification-fr.webp");
  background-position: center;
}

html[lang^="en"] .simulation-card:nth-child(2) .simulation-visual {
  background-image: url("simulation/seismic-qualification-en.webp");
  background-position: center;
}

html[lang^="fr"] .simulation-card:nth-child(3) .simulation-visual,
html[lang^="en"] .simulation-card:nth-child(3) .simulation-visual {
  background-image: url("simulation/thermofluid-cfd.webp");
  background-position: center;
}

.simulation-grid {
  align-items: stretch;
}

.simulation-card {
  overflow: hidden;
  border-color: rgba(117, 208, 244, .24);
  background: linear-gradient(180deg, rgba(18, 53, 72, .98), rgba(12, 40, 56, .98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .16);
}

.simulation-card--featured {
  border-color: rgba(47, 193, 237, .60);
}

.simulation-copy {
  position: relative;
  z-index: 3;
}

.hero-meta strong {
  font: inherit;
  color: inherit;
}

/* Compact examples: enough proof of breadth without adding another long section. */
.mandate-section {
  padding: 0 0 clamp(3.25rem, 6vw, 5.5rem);
  background: #fff;
}

.mandate-strip {
  display: grid;
  grid-template-columns: minmax(12rem, .38fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #d7e4eb;
  border-radius: 1.25rem;
  background: #f7fafc;
}

.mandate-heading .eyebrow {
  margin-bottom: .55rem;
}

.mandate-heading h3 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  color: #0b1e2a;
}

.mandate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mandate-chips li {
  padding: .64rem .82rem;
  border: 1px solid #cbdce6;
  border-radius: 999px;
  background: #fff;
  color: #315064;
  font-size: .92rem;
  line-height: 1.25;
}

/* Mailto remains the fastest way to attach drawings. This is the fallback. */
.copy-email-line {
  grid-column: 1 / -1;
  margin: .9rem 0 0;
  color: #526d7d;
  font-size: .9rem;
}

.copy-email-line button {
  margin-inline: .25rem;
  padding: .15rem .1rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #007eae;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.copy-email-line button:hover,
.copy-email-line button:focus-visible {
  color: #005f87;
}

.copy-status {
  display: inline-block;
  min-width: 7rem;
  color: #0d7a62;
  font-weight: 700;
}

/* Accessibility contrast improvements validated by Lighthouse. */
.image-note {
  color: var(--ink-600);
}

.process-grid span,
.contact-action:not(.contact-action--primary) > span {
  color: var(--brand-700);
}

/* Light footer with the original logo at its natural aspect ratio. */
.site-footer {
  padding-top: clamp(2.25rem, 4vw, 3.25rem) !important;
  color: #0b1e2a !important;
  background: #f7fafc !important;
  border-top: 1px solid #d7e4eb !important;
}

.site-footer .footer-grid {
  align-items: center !important;
  gap: clamp(1.5rem, 4vw, 4rem) !important;
}

.site-footer .footer-brand {
  align-self: center !important;
}

.site-footer .footer-brand picture {
  display: block !important;
  width: clamp(8.5rem, 11vw, 10.25rem) !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer .footer-brand picture img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
}

.site-footer .footer-brand p,
.site-footer .footer-tagline span,
.site-footer .footer-bottom {
  color: #526d7d !important;
}

.site-footer .footer-tagline strong {
  color: #0b1e2a !important;
}

.site-footer .footer-links a,
.site-footer .footer-bottom a {
  color: #153346 !important;
}

.site-footer .footer-links a:hover,
.site-footer .footer-bottom a:hover {
  color: #0084ba !important;
}

.site-footer .footer-bottom {
  border-top-color: #d7e4eb !important;
}

@media (max-width: 860px) {
  .mandate-strip {
    grid-template-columns: 1fr;
  }

  .mandate-heading h3 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .simulation-card .simulation-visual {
    aspect-ratio: 16 / 10;
  }

  .mandate-section {
    padding-bottom: 3.25rem;
  }

  .mandate-strip {
    padding: 1.15rem;
  }

  .mandate-chips {
    gap: .5rem;
  }

  .mandate-chips li {
    flex: 1 1 calc(50% - .5rem);
    border-radius: .8rem;
    font-size: .86rem;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .site-footer .footer-brand {
    display: grid !important;
    justify-items: center !important;
  }

  .site-footer .footer-brand picture {
    width: 8.75rem !important;
  }

  .site-footer .footer-brand picture img {
    object-position: center !important;
  }

  .site-footer .footer-brand p,
  .site-footer .footer-tagline {
    margin-inline: auto !important;
  }

  .site-footer .footer-links {
    justify-content: center !important;
  }
}

@media (max-width: 430px) {
  .mandate-chips li {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simulation-card {
    transition: none !important;
  }
}
