/*
 * SafeSmart Defense Elementor presentation layer.
 * Scope: only managed Elementor pages and the dynamic product catalogue.
 */

:root {
  --ssd-red: #ef2027;
  --ssd-red-dark: #bd1018;
  --ssd-ink: #16181d;
  --ssd-slate: #343841;
  --ssd-muted: #666d78;
  --ssd-line: #d9dde3;
  --ssd-panel: #f3f5f7;
  --ssd-white: #ffffff;
  --ssd-radius: 2px;
  --ssd-shadow: 0 16px 36px rgba(18, 22, 29, 0.12);
  --ssd-font-content: "Montserrat", Arial, sans-serif;
  --ssd-font-ui: "Montserrat", Arial, sans-serif;
}

/*
 * Set the managed document and every shared footer text surface to Montserrat.
 * Icon glyph elements are deliberately excluded so their icon fonts remain intact.
 */
body,
.elementor-location-footer,
.elementor-location-footer a,
.elementor-location-footer p,
.elementor-location-footer li,
.elementor-location-footer span {
  font-family: var(--ssd-font-content) !important;
}

/*
 * Use the approved Montserrat family consistently across the shared interface.
 */
.elementor-location-header .elementor-nav-menu .elementor-item,
.elementor-location-header .elementor-button,
.elementor-location-footer .elementor-nav-menu .elementor-item,
.elementor-location-footer .elementor-button {
  font-family: var(--ssd-font-ui) !important;
}

/*
 * Keep the shared Elementor navigation operable for mouse and keyboard users.
 * Desktop regional submenus open from hover or focus-within, while every
 * header/footer navigation control receives a high-contrast focus marker.
 */
.elementor-location-header a:focus,
.elementor-location-header button:focus,
.elementor-location-footer a:focus,
.elementor-location-footer button:focus {
  outline: 3px solid var(--ssd-red) !important;
  outline-offset: 3px !important;
}

@media (min-width: 1025px) {
  .elementor-location-header .elementor-nav-menu--main li.menu-item-has-children:hover > ul.sub-menu,
  .elementor-location-header .elementor-nav-menu--main li.menu-item-has-children:focus-within > ul.sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.ssd-page {
  color: var(--ssd-ink);
  overflow: clip;
}

.ssd-page,
.ssd-page p,
.ssd-page button,
.ssd-page a,
.ssd-page input,
.ssd-page select {
  font-family: var(--ssd-font-content);
}

.ssd-page .elementor-heading-title {
  font-family: var(--ssd-font-content);
  color: var(--ssd-ink);
  hyphens: none;
  letter-spacing: -0.018em;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

/*
 * Override Elementor's legacy Roboto declarations on rendered text inside
 * managed CTA, button, and icon-list widgets without changing icon glyphs or
 * shared header/footer interface typography.
 */
.ssd-page .elementor-button,
.ssd-page .elementor-button-text,
.ssd-page .elementor-cta__button,
.ssd-page .elementor-cta__description,
.ssd-page .elementor-cta__title,
.ssd-page .elementor-icon-list-text {
  font-family: var(--ssd-font-content) !important;
}

.ssd-hero {
  isolation: isolate;
  min-height: 330px;
  position: relative;
}

.ssd-hero::before {
  background: linear-gradient(90deg, rgba(12, 15, 21, 0.92) 0%, rgba(12, 15, 21, 0.68) 58%, rgba(12, 15, 21, 0.25) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

/*
 * Soften the nine deliberately low-resolution Air, Land, and Sea hero images
 * without blurring their Elementor-authored text or controls.
 */
.ssd-page--global-air > .ssd-hero::before,
.ssd-page--global-land > .ssd-hero::before,
.ssd-page--global-sea > .ssd-hero::before,
.ssd-page--us-air > .ssd-hero::before,
.ssd-page--us-land > .ssd-hero::before,
.ssd-page--us-sea > .ssd-hero::before,
.ssd-page--au-air > .ssd-hero::before,
.ssd-page--au-land > .ssd-hero::before,
.ssd-page--au-sea > .ssd-hero::before {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ssd-hero > .e-con-inner,
.ssd-hero > .elementor-element,
.ssd-hero .ssd-hero-content {
  position: relative;
  z-index: 1;
}

.ssd-hero--home {
  min-height: 610px;
}

.ssd-hero .ssd-eyebrow .elementor-heading-title,
.ssd-eyebrow .elementor-heading-title {
  color: var(--ssd-red);
  font-family: var(--ssd-font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ssd-hero .ssd-hero-title .elementor-heading-title {
  color: var(--ssd-white);
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  max-width: 980px;
}

.ssd-hero:not(.ssd-hero--home) .ssd-hero-title .elementor-heading-title {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
}

.ssd-hero .ssd-hero-subtitle .elementor-heading-title {
  color: var(--ssd-white);
  font-family: var(--ssd-font-content);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  max-width: 780px;
}

.ssd-hero .ssd-hero-copy,
.ssd-hero .ssd-hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 720px;
}

.ssd-section {
  padding-block: clamp(64px, 7vw, 108px);
}

.ssd-section--tight {
  padding-block: clamp(44px, 5vw, 72px);
}

.ssd-section--panel {
  background: var(--ssd-panel);
}

.ssd-section--dark {
  background: var(--ssd-ink);
  color: var(--ssd-white);
}

.ssd-section--dark .elementor-heading-title,
.ssd-section--dark p,
.ssd-section--dark .elementor-widget-text-editor {
  color: var(--ssd-white);
}

/* Keep source-authored emphasis legible when the theme's prose rules set strong text to ink. */
.ssd-page .ssd-section--dark .elementor-widget-text-editor strong,
.ssd-page .ssd-section--dark .elementor-widget-text-editor b {
  color: inherit !important;
}

.ssd-section-heading .elementor-heading-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: none;
  width: 100%;
}

.ssd-section-heading,
.ssd-section-heading .elementor-widget-container {
  width: 100%;
}

.ssd-section-copy,
.ssd-section-copy p {
  color: var(--ssd-muted);
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 760px;
}

.ssd-section--dark .ssd-section-copy,
.ssd-section--dark .ssd-section-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.ssd-button .elementor-button {
  background: var(--ssd-red);
  border: 1px solid var(--ssd-red);
  border-radius: 0;
  color: var(--ssd-white);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 16px 22px;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ssd-button .elementor-button:hover,
.ssd-button .elementor-button:focus-visible {
  background: var(--ssd-ink);
  border-color: var(--ssd-ink);
  color: var(--ssd-white);
}

.ssd-section--dark .ssd-button .elementor-button:hover,
.ssd-section--dark .ssd-button .elementor-button:focus-visible {
  background: var(--ssd-white);
  border-color: var(--ssd-white);
  color: var(--ssd-ink);
}

.ssd-inner {
  align-items: center;
}

.ssd-square-image img {
  aspect-ratio: 1 / 1;
  background: var(--ssd-panel);
  object-fit: cover;
  transition: transform 360ms ease-in-out;
  width: 100%;
}

.ssd-square-image .elementor-widget-container {
  overflow: hidden;
}

.ssd-inner:hover .ssd-square-image img,
.ssd-inner:focus-within .ssd-square-image img {
  transform: scale(1.035);
}

.ssd-feature-list .elementor-icon-list-items {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.ssd-feature-list .elementor-icon-list-icon {
  color: var(--ssd-red);
}

.ssd-feature-list .elementor-icon-list-text {
  color: var(--ssd-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.ssd-info-card {
  background: var(--ssd-white);
  border-top: 3px solid var(--ssd-red);
  box-shadow: 0 8px 26px rgba(18, 22, 29, 0.07);
  min-height: 100%;
  padding: 28px;
}

.ssd-info-card .elementor-heading-title {
  font-family: var(--ssd-font-content);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ssd-info-card p {
  color: var(--ssd-muted);
  line-height: 1.65;
}

/* Keep intentionally text-only linked CTAs from displaying Elementor's generic image placeholder pane. */
.ssd-info-card .elementor-cta__bg-wrapper {
  display: none !important;
}

.ssd-info-card .elementor-cta {
  min-height: 0 !important;
}

.ssd-info-card .elementor-cta__content {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  width: 100% !important;
}

/* Stretch text-only linked cards so unequal copy lengths keep their CTA baselines aligned. */
.ssd-info-card > .elementor-widget-container,
.ssd-info-card > .elementor-widget-container > .elementor-cta {
  height: 100%;
}

.ssd-info-card .elementor-cta__button-wrapper {
  margin-top: auto;
}

/* Anduril-inspired editorial product tiles, built with native Elementor CTAs. */
.ssd-featured-grid {
  display: grid !important;
  gap: 20px 18px !important;
  /* Resolve Elementor's percentage-width cycle with twelve explicit equal tracks after eleven 18px gaps. */
  grid-template-columns: repeat(12, calc((100% - 198px) / 12)) !important;
}

.ssd-featured-grid > .elementor-element {
  aspect-ratio: 1 / 1;
  grid-column: span 4;
  min-width: 0;
  width: 100% !important;
}

.ssd-featured-grid > .ssd-featured-tile--tall {
  aspect-ratio: auto;
  grid-column: 1 / span 4;
  grid-row: 2 / span 2;
}

.ssd-featured-grid > .ssd-featured-tile--wide {
  aspect-ratio: 2 / 1;
  grid-column: span 8;
}

.ssd-featured-grid > .ssd-featured-tile--lower-left {
  grid-column: 5 / span 4;
}

.ssd-featured-grid > .ssd-featured-tile--lower-right {
  grid-column: 9 / span 4;
}

.ssd-featured-tile,
.ssd-featured-tile .elementor-widget-container,
.ssd-featured-tile .elementor-cta,
.ssd-featured-tile .elementor-cta__bg-wrapper,
.ssd-featured-tile .elementor-cta__content {
  height: 100%;
}

.ssd-featured-tile .elementor-cta {
  background: var(--ssd-ink);
  overflow: hidden;
}

.ssd-featured-tile .elementor-cta__bg {
  filter: saturate(0.82) contrast(1.04);
  transition: filter 480ms ease-in-out, transform 480ms ease-in-out;
}

.ssd-featured-tile .elementor-cta__bg-overlay {
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.08) 18%, rgba(6, 8, 12, 0.88) 100%);
}

.ssd-featured-tile .elementor-cta__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.ssd-featured-tile .elementor-cta__title {
  color: var(--ssd-white);
  font-family: var(--ssd-font-content);
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  transform: translateY(28px);
  transition: transform 320ms ease;
}

.ssd-featured-tile .elementor-cta__description {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.48;
  margin-top: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition: max-height 380ms ease, opacity 240ms ease, transform 320ms ease;
}

.ssd-featured-tile .elementor-cta:hover .elementor-cta__bg,
.ssd-featured-tile .elementor-cta:focus-within .elementor-cta__bg {
  filter: saturate(1) contrast(1.05);
  transform: scale(1.035);
}

.ssd-featured-tile .elementor-cta:hover .elementor-cta__title,
.ssd-featured-tile .elementor-cta:focus-within .elementor-cta__title {
  transform: translateY(0);
}

.ssd-featured-tile .elementor-cta:hover .elementor-cta__description,
.ssd-featured-tile .elementor-cta:focus-within .elementor-cta__description {
  max-height: 130px;
  opacity: 1;
  transform: translateY(0);
}

.ssd-featured-tile .elementor-cta__button-wrapper {
  display: none;
}

/*
 * Linked information and project cards keep their authored descriptions and
 * calls to action visible, with every button aligned to the bottom edge.
 */
.ssd-linked-card .elementor-cta__title,
.ssd-project-card .elementor-cta__title {
  transform: none;
}

.ssd-linked-card .elementor-cta__description,
.ssd-project-card .elementor-cta__description {
  max-height: none;
  opacity: 1;
  transform: none;
}

.ssd-linked-card.ssd-featured-tile .elementor-cta__bg-overlay {
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.3) 10%, rgba(6, 8, 12, 0.94) 100%);
}

/* Keep white project copy legible over every featured image and interaction state. */
.ssd-project-card.ssd-featured-tile .elementor-cta__bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(6, 8, 12, 0.66) 0%,
    rgba(6, 8, 12, 0.78) 52%,
    rgba(6, 8, 12, 0.94) 100%
  );
}

.ssd-linked-card .elementor-cta__button-wrapper,
.ssd-project-card .elementor-cta__button-wrapper {
  display: block;
  margin-top: auto;
  padding-top: 18px;
}

.ssd-linked-card .elementor-cta__button,
.ssd-project-card .elementor-cta__button {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  color: var(--ssd-white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 11px 15px;
  text-transform: uppercase;
}

.ssd-info-card .elementor-cta__button {
  border-color: var(--ssd-ink);
  color: var(--ssd-ink);
}

/* Give managed interactive affordances a comfortable 44-pixel touch target. */
.ssd-team-link .elementor-button,
.ssd-page .elementor-cta__button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
}

.ssd-featured-tile .elementor-cta:focus-within {
  outline: 3px solid var(--ssd-white);
  outline-offset: -6px;
}

.ssd-project-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none !important;
  grid-auto-rows: minmax(360px, auto);
}

.ssd-project-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ssd-linked-grid {
  display: grid !important;
  gap: 20px !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-template-rows: none !important;
  grid-auto-rows: auto;
}

.ssd-linked-grid > .elementor-element {
  min-width: 0;
  width: 100% !important;
}

.ssd-project-grid .ssd-featured-tile {
  min-height: 360px;
}

.ssd-project-thumbnails .ssd-project-section-cta {
  margin-top: 20px;
}

.ssd-project-thumbnails .ssd-project-section-cta .elementor-widget-container {
  margin: 0;
}

/* Keep the two honest regional homepage case-study actions together below the grid. */
.ssd-project-section-actions {
  align-items: center;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px;
  justify-content: flex-start !important;
  margin-top: 20px;
}

.ssd-project-section-actions > .ssd-project-section-action {
  width: auto;
}

.ssd-project-section-actions .elementor-widget-container {
  margin: 0;
}

/* Keep a linked-card section action directly beneath its card grid. */
.ssd-linked-section-cta {
  margin-top: 20px;
}

.ssd-linked-section-cta .elementor-widget-container {
  margin: 0;
}

/* Structured source-copy cards use equal-height native Elementor containers. */
.ssd-content-grid {
  display: grid !important;
  gap: 20px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none !important;
  grid-auto-rows: auto;
}

.ssd-content-grid > .elementor-element {
  min-width: 0;
  width: 100% !important;
}

.ssd-content-card {
  background: var(--ssd-white);
  border-top: 3px solid var(--ssd-red);
  box-shadow: 0 8px 26px rgba(18, 22, 29, 0.07);
  min-height: 100%;
  padding: 28px;
}

.ssd-content-card .elementor-heading-title {
  font-family: var(--ssd-font-content);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ssd-content-card p {
  color: var(--ssd-muted);
  line-height: 1.65;
}

/* AU customer feedback is presented as an editorial quote grid. */
.ssd-testimonial-grid {
  display: grid !important;
  gap: 20px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssd-testimonial-grid > .elementor-element {
  min-width: 0;
  width: 100% !important;
}

.ssd-testimonial-card {
  background: var(--ssd-white);
  border-left: 4px solid var(--ssd-red);
  box-shadow: 0 10px 30px rgba(18, 22, 29, 0.09);
  min-height: 100%;
  padding: clamp(26px, 3vw, 40px);
}

.ssd-testimonial-quote,
.ssd-testimonial-quote p {
  color: var(--ssd-ink);
  font-family: var(--ssd-font-content);
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  margin: 0;
}

.ssd-testimonial-company .elementor-heading-title {
  color: var(--ssd-red-dark);
  font-family: var(--ssd-font-ui);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 24px;
  text-transform: uppercase;
}

.ssd-testimonial-title,
.ssd-testimonial-title p,
.ssd-testimonial-project,
.ssd-testimonial-project p {
  color: var(--ssd-slate);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.ssd-testimonial-years,
.ssd-testimonial-years p {
  color: var(--ssd-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: auto 0 0;
  padding-top: 22px;
  text-transform: uppercase;
}

/* Palantir-inspired restrained logo ticker, hosted in an Elementor HTML widget. */
.ssd-logo-tier {
  border-bottom: 1px solid var(--ssd-line);
  padding-bottom: 34px;
}

.ssd-logo-tier:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ssd-logo-marquee {
  position: relative;
}

.ssd-logo-marquee__viewport {
  overflow: hidden;
}

.ssd-logo-marquee__track {
  animation: ssd-logo-marquee var(--ssd-marquee-duration, 80s) linear infinite;
  display: flex;
  width: max-content;
  will-change: transform;
}

.ssd-logo-marquee:hover .ssd-logo-marquee__track,
.ssd-logo-marquee:focus-within .ssd-logo-marquee__track {
  animation-play-state: paused;
}

.ssd-logo-marquee__list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0 20px 0 0;
}

.ssd-logo-marquee__item {
  align-items: center;
  background: var(--ssd-panel);
  display: flex;
  justify-content: center;
  min-height: 124px;
  padding: 20px 26px;
  width: 220px;
}

.ssd-logo-marquee__item img {
  filter: grayscale(1);
  height: 76px;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.7;
  transition: filter 220ms ease-in-out, opacity 220ms ease-in-out, transform 220ms ease-in-out;
  width: 100%;
}

.ssd-logo-marquee__item figure {
  margin: 0;
  width: 100%;
}

.ssd-logo-marquee__item:hover img,
.ssd-logo-marquee__item:focus-within img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes ssd-logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ssd-logo-tier-label .elementor-heading-title {
  color: var(--ssd-muted);
  font-family: var(--ssd-font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Concise capability steps and the proposal schedule remain native Elementor grids. */
.ssd-process-grid,
.ssd-schedule-grid,
.ssd-team-grid {
  display: grid !important;
  gap: 18px !important;
}

.ssd-process-grid,
.ssd-schedule-grid {
  grid-template-rows: none !important;
  grid-auto-rows: auto;
}

.ssd-process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ssd-process-grid > .elementor-element,
.ssd-schedule-grid > .elementor-element,
.ssd-team-grid > .elementor-element {
  min-width: 0;
  width: 100% !important;
}

.ssd-process-card {
  border-top: 3px solid var(--ssd-red);
  min-height: 220px;
  padding: 26px 22px;
}

.ssd-section--dark .ssd-process-card {
  background: #22262d;
}

.ssd-process-number .elementor-heading-title,
.ssd-schedule-number .elementor-heading-title {
  color: var(--ssd-red);
  font-family: var(--ssd-font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ssd-process-heading .elementor-heading-title,
.ssd-schedule-title .elementor-heading-title {
  font-family: var(--ssd-font-content);
  font-size: 1.16rem;
  line-height: 1.25;
}

.ssd-process-copy,
.ssd-process-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Give the rewritten Capabilities process enough width for its detailed source copy. */
.ssd-page.ssd-page--global-capabilities .ssd-process-grid--detailed {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ssd-page.ssd-page--global-capabilities .ssd-process-grid--detailed > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Preserve the source's emphasized hero statement and two-column FAQ rhythm. */
.ssd-page--global-capabilities .ssd-hero-copy,
.ssd-page--global-capabilities .ssd-hero-copy p {
  color: var(--ssd-white);
  font-weight: 800;
}

.ssd-page--global-capabilities .ssd-faq-section .ssd-content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ssd-schedule-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ssd-schedule-card {
  background: var(--ssd-panel);
  border-top: 3px solid var(--ssd-red);
  min-height: 210px;
  padding: 24px 20px;
}

.ssd-schedule-duration .elementor-heading-title {
  color: var(--ssd-red-dark);
  font-family: var(--ssd-font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Flat regional team presentation based on the supplied Meet the Team reference. */
.ssd-team-section {
  background: var(--ssd-panel);
}

.ssd-team-grid {
  /* Override Elementor's generated three-column container variable for this flat team layout. */
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ssd-team-card {
  align-items: center;
  background: var(--ssd-white);
  border-bottom: 3px solid transparent;
  box-shadow: 0 8px 26px rgba(18, 22, 29, 0.07);
  min-height: 100%;
  padding: 22px;
  text-align: center;
  transition: border-color 240ms ease-in-out, transform 240ms ease-in-out;
}

.ssd-team-card:hover,
.ssd-team-card:focus-within {
  border-color: var(--ssd-red);
  transform: translateY(-4px);
}

.ssd-team-portrait .elementor-widget-container,
.ssd-team-placeholder-widget .elementor-widget-container {
  border-radius: 50%;
  overflow: hidden;
}

/* Give verified portraits and initials fallbacks the same compact visual frame. */
.ssd-team-portrait,
.ssd-team-placeholder-widget {
  max-width: 200px;
  width: 100%;
}

.ssd-team-portrait img,
.ssd-team-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 360ms ease-in-out;
  width: 100%;
}

.ssd-team-card:hover .ssd-team-portrait img,
.ssd-team-card:focus-within .ssd-team-portrait img {
  transform: scale(1.045);
}

.ssd-team-placeholder {
  align-items: center;
  background: var(--ssd-ink);
  color: var(--ssd-white);
  display: flex;
  font-family: var(--ssd-font-content);
  font-size: clamp(2rem, 4vw, 3.25rem);
  justify-content: center;
}

.ssd-team-name .elementor-heading-title {
  color: var(--ssd-red-dark);
  font-family: var(--ssd-font-ui);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 16px;
}

.ssd-team-role,
.ssd-team-role p {
  color: var(--ssd-slate);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.ssd-team-link {
  margin-top: auto;
}

.ssd-team-link .elementor-button {
  background: transparent;
  color: var(--ssd-slate);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 10px 8px;
  transition: color 180ms ease-in-out;
}

.ssd-team-link .elementor-button:hover,
.ssd-team-link .elementor-button:focus-visible {
  color: var(--ssd-red);
}

/* Keep portrait and initials treatments on one compact, predictable frame. */
.ssd-page .ssd-team-card > .ssd-team-portrait,
.ssd-page .ssd-team-card > .ssd-team-placeholder-widget {
  max-width: 200px !important;
  width: 100%;
}

/* Prevent the theme's prose image margins from shifting portrait-based cards. */
.ssd-page .ssd-team-card .ssd-team-portrait img {
  display: block;
  margin: 0;
}

/* Normalize the team text stack while retaining a two-line role allowance. */
.ssd-page .ssd-team-card .ssd-team-name {
  width: 100%;
}

.ssd-page .ssd-team-card .ssd-team-name .elementor-heading-title {
  margin: 0;
}

.ssd-page .ssd-team-card .ssd-team-role {
  min-height: 41px;
  width: 100%;
}

.ssd-page .ssd-team-card .ssd-team-role p {
  margin: 0;
}

/* Give every team row one card height, including records without LinkedIn. */
.ssd-page .ssd-team-grid {
  grid-auto-rows: 1fr;
}

/* Responsive video sections and the reusable discipline-page video banner. */
.ssd-video {
  margin-top: 22px;
  max-width: 1040px;
  width: 100%;
}

.ssd-video .elementor-wrapper {
  aspect-ratio: 16 / 9;
}

.ssd-global-reach {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.ssd-global-reach > .elementor-background-video-container,
.ssd-global-reach > .elementor-background-overlay {
  inset: 0;
}

.ssd-global-reach > .e-con-inner,
.ssd-global-reach > .elementor-element {
  position: relative;
  z-index: 1;
}

.ssd-global-reach-title .elementor-heading-title {
  color: var(--ssd-white);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

/* Elementor-hosted product catalogue and taxonomy filters. */
.ssd-catalog {
  width: 100%;
}

.ssd-catalog-filters {
  background: var(--ssd-panel);
  border-top: 3px solid var(--ssd-red);
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 24px;
}

.ssd-catalog-filter {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.ssd-catalog-filter__label {
  color: var(--ssd-slate);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 9px;
  text-transform: uppercase;
}

.ssd-catalog-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ssd-catalog-filter button {
  background: var(--ssd-white);
  border: 1px solid #c9ced6;
  border-radius: 100px;
  color: var(--ssd-slate);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  min-height: 44px;
  padding: 10px 14px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.ssd-catalog-filter button:hover,
.ssd-catalog-filter button:focus-visible,
.ssd-catalog-filter button.is-active {
  background: var(--ssd-red);
  border-color: var(--ssd-red);
  color: var(--ssd-white);
}

.ssd-catalog-count {
  color: var(--ssd-muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.ssd-catalog-count strong {
  color: var(--ssd-ink);
}

.ssd-catalog-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--ssd-line);
  border: 1px solid var(--ssd-line);
}

.ssd-product-card {
  background: var(--ssd-white);
  min-width: 0;
}

.ssd-product-card[hidden] {
  display: none;
}

.ssd-product-card > a {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  text-decoration: none;
}

.ssd-product-card__media {
  aspect-ratio: 4 / 3;
  background: #e9ecef;
  overflow: hidden;
}

.ssd-product-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease-in-out;
  width: 100%;
}

.ssd-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.ssd-product-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.ssd-product-card__terms span {
  color: var(--ssd-red-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ssd-product-card h3 {
  color: var(--ssd-ink);
  font-family: var(--ssd-font-content);
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.ssd-product-card p {
  color: var(--ssd-muted);
  font-size: 0.92rem;
  line-height: 1.58;
  margin: 0 0 22px;
}

.ssd-product-card__cta {
  color: var(--ssd-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-top: auto;
  text-transform: uppercase;
}

.ssd-product-card:hover .ssd-product-card__media img,
.ssd-product-card:focus-within .ssd-product-card__media img {
  transform: scale(1.045);
}

.ssd-product-card:hover .ssd-product-card__cta,
.ssd-product-card:focus-within .ssd-product-card__cta {
  color: var(--ssd-red);
}

.ssd-catalog-empty {
  background: var(--ssd-panel);
  color: var(--ssd-muted);
  margin: 20px 0 0;
  padding: 20px;
}

.ssd-hubspot-form {
  background: var(--ssd-white);
  border-top: 3px solid var(--ssd-red);
  box-shadow: 0 8px 26px rgba(18, 22, 29, 0.08);
  min-height: 320px;
  padding: 32px;
}

.ssd-form-section {
  scroll-margin-top: 110px;
}

.ssd-contact-split {
  align-items: stretch;
}

/* Split the compact footer menu into two columns inside its Elementor widget. */
.site-wide-footer .ssd-footer-menu-two-column .elementor-nav-menu--main > ul.elementor-nav-menu {
  column-gap: 28px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 2px;
  width: 100%;
}

.site-wide-footer .ssd-footer-menu-two-column .elementor-nav-menu--main > ul.elementor-nav-menu > li {
  min-width: 0;
  width: 100%;
}

/* Laptop-specific refinements complement Elementor's explicit laptop values. */
@media (min-width: 1025px) and (max-width: 1366px) {
  /*
   * Use Elementor's existing accessible menu toggle throughout the laptop
   * range so the seven primary links never wrap into a second header row.
   */
  .elementor-location-header .elementor-element-b962e75 .elementor-nav-menu--main {
    display: none !important;
  }

  .elementor-location-header .elementor-element-b962e75 .elementor-menu-toggle {
    display: flex !important;
  }

  .elementor-location-header .elementor-element-b962e75 nav.elementor-nav-menu--dropdown {
    display: block !important;
  }

  .ssd-hero .ssd-hero-title .elementor-heading-title {
    font-size: clamp(3.25rem, 4vw, 3.75rem);
  }

  .ssd-hero:not(.ssd-hero--home) .ssd-hero-title .elementor-heading-title {
    font-size: clamp(2.625rem, 3.35vw, 3rem);
  }

  .ssd-section-heading .elementor-heading-title {
    font-size: clamp(2.25rem, 2.8vw, 2.625rem);
  }

  .ssd-section {
    padding-block: clamp(58px, 6vw, 84px);
  }

  .ssd-process-grid,
  .ssd-schedule-grid,
  .ssd-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ssd-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .ssd-hero .ssd-hero-title .elementor-heading-title {
    font-size: clamp(2.3rem, 4.7vw, 3rem);
  }

  .ssd-hero:not(.ssd-hero--home) .ssd-hero-title .elementor-heading-title {
    font-size: clamp(2.1rem, 4vw, 2.5rem);
  }

  .ssd-section-heading .elementor-heading-title {
    font-size: clamp(1.9rem, 3.4vw, 2.125rem);
  }

  .ssd-global-reach-title .elementor-heading-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
  }

  /* Stack detailed Capabilities steps and FAQs for tablet and narrower views. */
  .ssd-page.ssd-page--global-capabilities .ssd-process-grid--detailed,
  .ssd-page--global-capabilities .ssd-faq-section .ssd-content-grid {
    grid-template-columns: 1fr !important;
  }

  .ssd-page.ssd-page--global-capabilities .ssd-process-grid--detailed > :last-child {
    grid-column: auto;
  }

  .ssd-featured-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }

  .ssd-featured-grid > .elementor-element,
  .ssd-featured-grid > .ssd-featured-tile--tall,
  .ssd-featured-grid > .ssd-featured-tile--wide,
  .ssd-featured-grid > .ssd-featured-tile--lower-left,
  .ssd-featured-grid > .ssd-featured-tile--lower-right {
    aspect-ratio: 1 / 1;
    grid-column: span 4;
    grid-row: auto;
  }

  .ssd-project-grid,
  .ssd-content-grid,
  .ssd-process-grid,
  .ssd-schedule-grid,
  .ssd-team-grid,
  .ssd-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssd-page .ssd-project-grid,
  .ssd-page .ssd-content-grid,
  .ssd-page .ssd-process-grid,
  .ssd-page .ssd-schedule-grid,
  .ssd-page .ssd-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Preserve the intended two-column team layout against Elementor's generated grid variable. */
  .ssd-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ssd-inner {
    align-items: stretch;
    flex-direction: column !important;
  }

  .ssd-inner > .elementor-element {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  .ssd-hero,
  .ssd-hero--home {
    min-height: 460px;
  }

  .ssd-hero::before {
    background: linear-gradient(90deg, rgba(12, 15, 21, 0.92), rgba(12, 15, 21, 0.74));
  }

  .ssd-hero .ssd-hero-title .elementor-heading-title {
    font-size: clamp(2.1rem, 9.2vw, 2.3rem);
    line-height: 1.03;
  }

  .ssd-hero:not(.ssd-hero--home) .ssd-hero-title .elementor-heading-title {
    font-size: clamp(2rem, 8.4vw, 2.1rem);
  }

  .ssd-section-heading .elementor-heading-title {
    font-size: clamp(1.75rem, 7.2vw, 1.9rem);
    line-height: 1.08;
  }

  .ssd-global-reach-title .elementor-heading-title {
    font-size: clamp(1.9rem, 8.5vw, 2.25rem);
  }

  .ssd-featured-tile .elementor-cta__title {
    font-size: 1.5rem;
  }

  /* Keep the longest regional hero CTA readable on one mobile line. */
  .ssd-hero .ssd-button .elementor-button {
    font-size: 0.72rem;
    letter-spacing: 0.025em;
    padding-inline: 10px;
    white-space: nowrap;
    width: 100%;
  }

  .ssd-section {
    padding-block: 56px;
  }

  /* Stack the two homepage case-study directory actions into aligned mobile rows. */
  .ssd-project-section-actions {
    align-items: stretch;
    flex-direction: column !important;
  }

  .ssd-project-section-actions > .ssd-project-section-action,
  .ssd-project-section-actions .elementor-button {
    width: 100% !important;
  }

  .ssd-featured-grid,
  .ssd-project-grid,
  .ssd-linked-grid,
  .ssd-content-grid,
  .ssd-testimonial-grid,
  .ssd-process-grid,
  .ssd-schedule-grid,
  .ssd-team-grid,
  .ssd-catalog-grid {
    grid-template-columns: 1fr !important;
  }

  .ssd-page .ssd-project-grid,
  .ssd-page .ssd-content-grid,
  .ssd-page .ssd-testimonial-grid,
  .ssd-page .ssd-process-grid,
  .ssd-page .ssd-schedule-grid,
  .ssd-page .ssd-team-grid {
    grid-template-columns: 1fr !important;
  }

  .ssd-project-grid {
    grid-auto-rows: minmax(330px, auto);
  }

  .ssd-featured-grid > .elementor-element,
  .ssd-featured-grid > .ssd-featured-tile--tall,
  .ssd-featured-grid > .ssd-featured-tile--wide,
  .ssd-featured-grid > .ssd-featured-tile--lower-left,
  .ssd-featured-grid > .ssd-featured-tile--lower-right {
    aspect-ratio: 1 / 1;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ssd-featured-tile,
  .ssd-project-grid .ssd-featured-tile {
    min-height: 330px;
  }

  /* Keep hover-only editorial copy visible on touch screens without recapping linked/project cards. */
  .ssd-featured-tile:not(.ssd-linked-card):not(.ssd-project-card) .elementor-cta__description {
    max-height: 130px;
    opacity: 1;
    transform: none;
  }

  .ssd-featured-tile .elementor-cta__title {
    transform: none;
  }

  .ssd-catalog-filter {
    grid-template-columns: 1fr;
  }

  .ssd-catalog-filter__label {
    padding-top: 0;
  }

  .ssd-product-card__body {
    padding: 22px;
  }

  .ssd-logo-marquee__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .ssd-logo-marquee__track {
    animation: none;
  }

  .ssd-logo-marquee__list[aria-hidden="true"] {
    display: none;
  }

  .ssd-logo-marquee__item {
    scroll-snap-align: start;
  }

  .site-wide-footer .ssd-footer-menu-two-column .elementor-nav-menu--main > ul.elementor-nav-menu {
    column-gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ssd-page *,
  .ssd-page *::before,
  .ssd-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ssd-logo-marquee__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .ssd-logo-marquee__track {
    animation: none;
  }

  .ssd-logo-marquee__list[aria-hidden="true"] {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  /* Preserve auto-height linked/project copy while revealing hover-only tiles on coarse pointers. */
  .ssd-featured-tile:not(.ssd-linked-card):not(.ssd-project-card) .elementor-cta__description {
    max-height: 130px;
    opacity: 1;
    transform: none;
  }

  .ssd-featured-tile .elementor-cta__title {
    transform: none;
  }
}
