/* ==========================================================================
   Seractive theme — high-contrast black / white / gray, square edges,
   bold headlines, green accent. Loaded after style.css and overrides it.
   ========================================================================== */

:root {
  --sx-green: #24b96f;
  --sx-green-hover: #15803d;
  --sx-btn-green: #16a34a;
  --sx-black: #000000;
  --sx-surface: #1a1a1a;
  --sx-surface-2: #222222;
  --sx-gray-bg: #eeeeee;
  --sx-ink: #1a1a1a;
  --sx-muted: #5e5e5e;
  --sx-muted-dark: #999999;
  --sx-line: #d8d8d8;
  --sx-header-h: 56px;
}

body {
  padding-top: var(--sx-header-h);
  color: var(--sx-ink);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sx-btn-green);
  color: #fff !important;
  border: 2px solid var(--sx-btn-green);
  border-radius: 2px;
  padding: 11px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sx-btn:hover,
.sx-btn:focus-visible {
  background: var(--sx-green-hover);
  border-color: var(--sx-green-hover);
}

.sx-btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.sx-btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7);
}

.sx-btn-ghost:hover,
.sx-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.sx-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sx-ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid var(--sx-green);
  padding-bottom: 2px;
  width: fit-content;
}

.sx-link-arrow i {
  font-size: 0.75em;
  transition: transform 0.15s ease;
}

a:hover > .sx-link-arrow i,
.sx-link-arrow:hover i {
  transform: translateX(3px);
}

.sx-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sx-ink);
  margin-bottom: 8px;
}

/* Square-off the legacy pill buttons so inner pages match */
.btn-hero-dark,
.btn-hero-light,
.btn-cta-dark,
.btn-header-cta,
.btn-contact-submit {
  border-radius: 2px !important;
}

.btn-hero-dark,
.btn-header-cta {
  background-color: var(--sx-btn-green) !important;
  color: #fff !important;
}

.btn-hero-dark:hover,
.btn-header-cta:hover {
  background-color: var(--sx-green-hover) !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.sx-header {
  height: var(--sx-header-h);
  background: #fff;
  border-bottom: 1px solid var(--sx-line);
  z-index: 1030;
}

.sx-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.sx-brand img {
  height: 24px;
  width: auto;
  display: block;
}

.sx-nav-primary {
  align-items: center;
  gap: 28px;
  height: 100%;
}

.sx-nav-utility {
  margin-left: auto;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.sx-nav-primary > .dropdown {
  height: 100%;
  display: flex;
  align-items: center;
  position: static;
}

.sx-nav-link,
.sx-util-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-size: 1rem;
  color: var(--sx-muted) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.sx-util-link {
  font-size: 0.9375rem;
  color: var(--sx-ink) !important;
}

.sx-nav-link::after,
.sx-util-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--sx-green);
  transform: scaleX(0);
  transition: transform 0.15s ease;
}

.sx-nav-link:hover,
.sx-nav-link.active,
.sx-nav-link[aria-expanded="true"],
.sx-util-link:hover,
.sx-util-link.active {
  color: var(--sx-ink) !important;
}

.sx-nav-link.active::after,
.sx-nav-link[aria-expanded="true"]::after,
.sx-util-link.active::after {
  transform: scaleX(1);
}

.sx-util-link.dropdown-toggle::after {
  display: none;
}

/* Services mega menu */
.sx-mega-menu.dropdown-menu {
  position: fixed !important;
  top: var(--sx-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  margin: 0 !important;
  border: 0;
  border-bottom: 1px solid var(--sx-line);
  border-radius: 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  padding: 36px 0 40px;
}

.sx-mega-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}

.sx-mega-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.sx-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
}

.sx-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 12px;
  text-decoration: none;
  color: var(--sx-ink);
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sx-mega-item i {
  font-size: 1.25rem;
  color: var(--sx-green);
  line-height: 1.2;
}

.sx-mega-item strong {
  display: block;
  font-size: 0.9375rem;
}

.sx-mega-item small {
  display: block;
  color: var(--sx-muted);
  font-size: 0.8125rem;
  margin-top: 2px;
}

.sx-mega-item:hover,
.sx-mega-item.active {
  background: #f5f5f5;
  border-left-color: var(--sx-green);
  color: var(--sx-ink);
}

/* Mobile nav */
.sx-burger {
  background: none;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  padding: 4px;
  color: var(--sx-ink);
}

.sx-mobile-nav {
  background: #fff;
  border-bottom: 1px solid var(--sx-line);
  max-height: calc(100vh - var(--sx-header-h));
  overflow-y: auto;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.sx-mobile-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sx-muted);
  margin: 20px 0 6px;
}

.sx-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-mobile-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: var(--sx-ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.sx-mobile-list a i {
  color: var(--sx-green);
}

.sx-mobile-list a.active {
  font-weight: 700;
}

.sx-mobile-list-main {
  margin: 12px 0 20px;
}

.sx-mobile-list-main a {
  font-size: 1.0625rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero carousel
   -------------------------------------------------------------------------- */
.sx-hero {
  --sx-hero-interval: 8000ms;
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, #262626 0%, rgba(0, 0, 0, 0) 70%),
    #000;
  color: #fff;
  padding: 64px 0 36px;
  overflow: hidden;
}

.sx-hero-slides {
  display: grid;
}

.sx-hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 500px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.sx-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s;
}

.sx-hero-copy {
  max-width: 640px;
}

.sx-hero-slide .sx-hero-copy > * {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.sx-hero-slide.is-active .sx-hero-copy > * {
  transform: none;
  opacity: 1;
}

.sx-hero-slide.is-active .sx-hero-copy > :nth-child(2) { transition-delay: 0.06s; }
.sx-hero-slide.is-active .sx-hero-copy > :nth-child(3) { transition-delay: 0.12s; }
.sx-hero-slide.is-active .sx-hero-copy > :nth-child(4) { transition-delay: 0.18s; }

.sx-hero-eyebrow {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.sx-hero-title {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}

.sx-hero-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.65;
  color: #e6e6e6;
  margin-bottom: 36px;
  max-width: 600px;
}

.sx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Decorative visual — isometric stack of three glass layers */
.sx-hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 0.92;
  margin-left: auto;
  perspective: 1800px;
}

.sx-stack {
  will-change: transform;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(58deg + var(--sx-tilt-y, 0deg)))
    rotateZ(calc(-42deg + var(--sx-tilt-x, 0deg)));
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sx-plate,
.sx-stack-glow {
  position: absolute;
  left: 18%;
  top: 30%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 22px;
  transform-style: preserve-3d;
}

.sx-stack-glow {
  /* A wide radial gradient is already soft; a blur filter here cost a repaint every frame */
  background: radial-gradient(circle, rgba(36, 185, 111, 0.45) 0%, rgba(36, 185, 111, 0.12) 45%, rgba(36, 185, 111, 0) 72%);
  transform: translateZ(-40px) scale(1.7);
  opacity: 0.8;
  will-change: opacity;
}

.sx-plate {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 55%), rgba(18, 18, 18, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* edge thickness */
.sx-plate::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #070707;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateZ(-10px);
}

.sx-plate-1 { transform: translateZ(0); }
.sx-plate-2 {
  transform: translateZ(70px);
  background-image:
    linear-gradient(rgba(36, 185, 111, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 185, 111, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 55%);
  background-size: 28px 28px, 28px 28px, auto;
  background-color: rgba(16, 16, 16, 0.85);
}

.sx-plate-3 {
  transform: translateZ(140px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(36, 185, 111, 0.75);
  background: linear-gradient(135deg, #1a3d2a 0%, #0b1a12 60%, #070d0a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 50px rgba(36, 185, 111, 0.35),
    0 40px 70px rgba(0, 0, 0, 0.6);
}

.sx-plate-3::after {
  background: #0a1f14;
  border-color: rgba(36, 185, 111, 0.35);
}

.sx-plate-3 i {
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 1;
  color: #eafff3;
  filter: drop-shadow(0 0 18px rgba(36, 185, 111, 0.7));
  transform: rotate(42deg);
}

.sx-hero-slide.is-active .sx-plate { opacity: 1; }
.sx-hero-slide.is-active .sx-plate-2 { transition-delay: 0.08s; }
.sx-hero-slide.is-active .sx-plate-3 { transition-delay: 0.16s; }

.sx-hero-slide.is-active .sx-plate-2 { animation: sxPlate2 7s ease-in-out infinite; }
.sx-hero-slide.is-active .sx-plate-3 { animation: sxPlate3 7s ease-in-out infinite; }
.sx-hero-slide.is-active .sx-stack-glow { animation: sxGlow 7s ease-in-out infinite; }

@keyframes sxPlate2 {
  0%, 100% { transform: translateZ(70px); }
  50%      { transform: translateZ(82px); }
}

@keyframes sxPlate3 {
  0%, 100% { transform: translateZ(140px); }
  50%      { transform: translateZ(164px); }
}

@keyframes sxGlow {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-stack { transition: none; }
  .sx-hero-slide.is-active .sx-plate-2,
  .sx-hero-slide.is-active .sx-plate-3,
  .sx-hero-slide.is-active .sx-stack-glow { animation: none; }
}

/* Header phone */
.sx-phone i,
.sx-phone-icon i {
  color: var(--sx-green);
}

.sx-phone {
  font-weight: 600;
}

.sx-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.125rem;
  color: var(--sx-ink);
}

/* Story tabs with progress bars */
.sx-hero-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px;
  margin-top: 48px;
}

.sx-hero-tab {
  background: none;
  border: 0;
  padding: 0 0 8px;
  text-align: left;
  color: var(--sx-muted-dark);
  cursor: pointer;
}

.sx-hero-tab-bar {
  display: block;
  height: 4px;
  background: #4a4a4a;
  margin-bottom: 26px;
  overflow: hidden;
}

.sx-hero-tab-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--sx-green);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.sx-hero-tab.is-active .sx-hero-tab-bar span {
  animation: sxHeroProgress var(--sx-hero-interval) linear forwards;
}

.sx-hero:hover .sx-hero-tab-bar span,
.sx-hero.is-paused .sx-hero-tab-bar span {
  animation-play-state: paused;
}

.sx-hero.is-static .sx-hero-tab.is-active .sx-hero-tab-bar span {
  animation: none;
  transform: none;
}

/* Animate transform, not width: no layout work on every frame */
@keyframes sxHeroProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Nothing in the hero animates while it is scrolled out of view */
.sx-hero.is-offscreen *,
.sx-hero.is-offscreen *::before,
.sx-hero.is-offscreen *::after {
  animation-play-state: paused !important;
}

.sx-hero-tab-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.sx-hero-tab-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.125rem;
  line-height: 1.45;
}

.sx-hero-tab:hover,
.sx-hero-tab.is-active {
  color: #fff;
}

.sx-hero-tab:focus-visible {
  outline: 2px solid var(--sx-green);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .sx-hero-slide,
  .sx-hero-slide .sx-hero-copy > * {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Homepage sections
   -------------------------------------------------------------------------- */
.section-eyebrow {
  color: var(--sx-ink);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.section-title-large {
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--sx-ink);
  letter-spacing: -0.025em;
  max-width: 820px;
}

/* Capability tiles */
.core-capabilities-section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.capability-grid {
  border: 0;
  gap: 24px;
}

.capability-card-item {
  position: relative;
  border: 1px solid var(--sx-line);
  border-radius: 0;
  padding: 36px 32px 32px;
  min-height: 260px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.capability-card-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--sx-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.capability-card-item:hover {
  background: #fff;
  border-color: #bdbdbd;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.capability-card-item:hover::before {
  transform: scaleX(1);
}

.capability-card-item > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.capability-icon-wrap {
  font-size: 1.75rem;
}

.capability-card-title {
  font-size: 1.25rem;
  color: var(--sx-ink);
}

.capability-card-text {
  font-size: 0.9375rem;
  color: var(--sx-muted);
}

/* Technology logos — light gray band */
.trusted-partners-section {
  background: var(--sx-gray-bg);
}

.partner-eyebrow {
  color: var(--sx-ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.partner-cell {
  border-radius: 0 !important;
}

/* Process — dark band */
.process-section {
  background: var(--sx-black);
  color: #fff;
}

.process-section .section-eyebrow,
.process-section .section-title-large,
.process-section .process-step-title {
  color: #fff;
}

.process-section .process-intro,
.process-section .process-step-text {
  color: #bdbdbd;
}

.process-section .process-step {
  background: var(--sx-surface);
  border: 1px solid #333;
  border-radius: 0;
  border-top: 4px solid var(--sx-green);
}

.process-section .process-step-icon {
  background: transparent;
  color: var(--sx-green);
  border-radius: 0;
}

.process-section .process-step-num {
  color: #777;
}

/* Projects */
.work-section {
  background: #fff;
}

.work-link-all {
  color: var(--sx-ink) !important;
  border-bottom: 2px solid var(--sx-green);
  padding-bottom: 2px;
  font-weight: 700;
}

.project-img-box {
  border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   CTA — split banner with diagonal accent
   -------------------------------------------------------------------------- */
.sx-cta {
  position: relative;
  background: #fff;
  border-top: 1px solid var(--sx-line);
  padding: 96px 0;
  overflow: hidden;
}

.sx-cta {
  background: linear-gradient(90deg, #fff 45%, #f3f3f3 100%);
}

/* Oversized version of the logo's corner mark */
.sx-cta-mark {
  position: absolute;
  top: 50%;
  right: max(4vw, 32px);
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
}

.sx-cta-mark::before,
.sx-cta-mark span {
  content: '';
  position: absolute;
  border-top: 22px solid;
  border-right: 22px solid;
}

.sx-cta-mark::before {
  inset: 0;
  border-color: var(--sx-green);
}

.sx-cta-mark span {
  inset: 56px 56px -56px -56px;
  border-color: rgba(0, 0, 0, 0.06);
  border-width: 22px 22px 0 0;
}

.sx-cta-copy {
  position: relative;
  max-width: 640px;
}

.sx-cta-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--sx-ink);
  margin-bottom: 16px;
}

.sx-cta-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--sx-muted);
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--sx-surface);
  color: var(--sx-muted-dark);
  font-size: 0.875rem;
}

.footer-desc,
.footer-bottom {
  color: var(--sx-muted-dark);
  font-size: 0.8125rem;
}

.footer-heading {
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.footer-links {
  gap: 0.55rem;
}

.footer-links a,
.footer-bottom a {
  color: #cccccc;
  font-size: 0.875rem;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-email-input {
  border-radius: 0 !important;
  background: #000;
  border-color: #444;
}

.footer-email-input:focus {
  background: #000;
  border-color: var(--sx-green);
}

.btn-newsletter-submit {
  border-radius: 0 !important;
  background: var(--sx-btn-green);
  color: #fff !important;
  font-weight: 700;
}

.btn-newsletter-submit:hover {
  background: var(--sx-green-hover);
}

.footer-bottom {
  border-top-color: #333;
}

.social-link {
  border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .sx-hero-tabs {
    gap: 24px;
  }

  .sx-hero-tab-title {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: var(--sx-header-h);
  }

  .sx-header-inner {
    justify-content: space-between;
    gap: 16px;
  }

  .sx-hero {
    padding: 56px 0 32px;
  }

  .sx-hero-slide {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    align-content: start;
  }

  .sx-hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }

  .sx-hero-tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-top: 40px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .sx-hero-tabs::-webkit-scrollbar {
    display: none;
  }

  .sx-hero-tab {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }

  .sx-hero-tab-bar {
    margin-bottom: 16px;
  }

  .sx-mega-grid {
    grid-template-columns: 1fr;
  }

  .sx-cta {
    padding: 72px 0;
  }

  .sx-cta-mark {
    width: 140px;
    height: 140px;
    top: 32px;
    right: 20px;
    transform: none;
    opacity: 0.25;
  }

  .sx-cta-mark::before {
    border-width: 12px 12px 0 0;
  }

  .sx-cta-mark span {
    display: none;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .sx-hero {
    padding-top: 44px;
  }

  .sx-hero-title {
    font-size: 2.375rem;
  }

  .sx-hero-actions .sx-btn {
    flex: 1 1 auto;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Cards without a trailing link: drop the reserved bottom gap */
.capability-card-item,
.services-grid-card {
  min-height: 0;
}

.capability-card-text,
.services-card-text {
  margin-bottom: 0;
}

/* Contact page starts directly with the form section */
@media (min-width: 992px) {
  .contact-section-white {
    padding-top: 64px;
  }
}

.contact-direct {
  margin: 28px 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--sx-muted);
}

.contact-direct a {
  color: var(--sx-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--sx-green);
}

.contact-direct span {
  margin: 0 8px;
}

/* /work starts directly with the filter bar */
.work-section-index {
  padding-top: 40px;
}

/* /services starts directly with the service grid */
.services-grid-index {
  padding-top: 40px;
}

/* /industries starts directly with the industry cards */
.industries-section-index {
  padding-top: 40px;
}

/* Footer bottom: copyright + trademark notice + disclaimer, full width */
.footer-bottom-legal {
  display: block;
}

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #8a8a8a;
}

.footer-legal a {
  color: #bdbdbd;
  text-decoration: underline;
}

.footer-legal a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Project detail header — dark, matching the homepage hero
   -------------------------------------------------------------------------- */
.project-hero {
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, #262626 0%, rgba(0, 0, 0, 0) 70%),
    #000;
  color: #fff;
}

.project-hero .hero-title {
  color: #fff;
}

.project-hero-lead {
  color: #d4d4d4;
}

.project-back-link {
  color: #a3a3a3;
}

.project-back-link:hover {
  color: #fff;
}

.project-hero-logo {
  border-color: #333;
}

.project-facts {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #333;
  border-radius: 0;
}

.project-facts dt {
  color: #8a8a8a;
}

.project-facts dd {
  color: #fff;
}

.project-facts dd a {
  color: var(--sx-green);
}

/* Screenshot frame straddles the dark header and the white body */
.project-showcase-frame {
  border: 0;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
}

/* /about starts directly with its first content section */
.about-section-index {
  padding-top: 40px;
}

/* Dark page header (service pages) — matches the homepage hero */
.hero-section-dark {
  background:
    radial-gradient(ellipse 60% 90% at 80% 30%, #262626 0%, rgba(0, 0, 0, 0) 70%),
    #000;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-section-dark .hero-title {
  color: #fff;
}

.hero-section-dark .hero-lead {
  color: #d4d4d4;
}

/* Phones: show the glass stack, compact, under the hero copy */
@media (max-width: 767.98px) {
  .sx-hero-slide {
    gap: 8px;
  }

  .sx-hero-visual {
    max-width: 300px;
    margin: 56px auto -48px;
    pointer-events: none;
  }

  .sx-plate-3 i {
    font-size: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Town pages (/web-design/{state}/{town}) — homepage-style hero
   -------------------------------------------------------------------------- */
.sx-hero-local {
  padding-top: 28px;
}

.sx-hero-local .sx-hero-slide {
  min-height: 460px;
}

.sx-local-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 0.875rem;
  color: var(--sx-muted-dark);
}

.sx-local-breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: #555;
}

.sx-local-breadcrumb a {
  color: var(--sx-muted-dark);
  text-decoration: none;
}

.sx-local-breadcrumb a:hover {
  color: #fff;
}

.sx-local-breadcrumb [aria-current] {
  color: #fff;
}

.sx-hero-local .sx-hero-eyebrow {
  color: var(--sx-green);
}

/* Static highlight row — same look as the homepage story tabs, full bars */
.sx-local-highlights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.sx-local-highlights .sx-hero-tab {
  cursor: default;
}

.sx-local-highlights .sx-hero-tab-bar span,
.sx-local-highlights .sx-hero-tab.is-active .sx-hero-tab-bar span {
  animation: none;
  transform: none;
}

.sx-local-highlights .sx-hero-tab-title {
  -webkit-line-clamp: 3;
}

.sx-local-section {
  padding: 104px 0;
}

.sx-local-copy {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sx-muted);
}

.sx-local-copy p {
  margin-bottom: 1.25rem;
}

.sx-local-lead {
  font-size: 1.25rem;
  color: var(--sx-ink);
}

.sx-local-region {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--sx-line);
}

.sx-local-region h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--sx-ink);
  margin-bottom: 12px;
}

.sx-band-gray .core-capabilities-section {
  background: var(--sx-gray-bg);
}

.sx-local-nearby {
  background: var(--sx-gray-bg);
  padding: 88px 0;
}

.sx-local-nearby-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.sx-local-nearby-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--sx-line);
  color: var(--sx-ink);
  font-weight: 600;
  text-decoration: none;
}

.sx-local-nearby-list a:hover {
  color: var(--sx-green-hover);
}

.sx-local-nearby-all {
  color: var(--sx-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 991.98px) {
  .sx-hero-local .sx-hero-slide {
    min-height: 0;
  }

  .sx-local-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  .sx-local-section {
    padding: 72px 0;
  }

  .sx-local-nearby-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .sx-local-nearby-list {
    grid-template-columns: 1fr;
  }
}
