:root {
  --primary-dark: rgb(18, 24, 36);
  --accent-gold: rgb(125, 92, 57);
  --cream: rgb(232, 220, 206);
  --white: #ffffff;
  --site-font: "Playfair Display", Georgia, serif;
  --section-fade:
    linear-gradient(to bottom, transparent 0%, rgba(14, 20, 32, 0.15) 25%, rgba(14, 20, 32, 0.4) 75%, rgb(14, 20, 32) 100%);
  --section-fade-reverse:
    linear-gradient(to bottom, rgb(14, 20, 32) 0%, rgba(14, 20, 32, 0.4) 25%, rgba(14, 20, 32, 0.15) 75%, transparent 100%);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--site-font);
  color: var(--cream);
  background: radial-gradient(circle at 15% 20%, rgba(125, 92, 57, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(232, 220, 206, 0.06), transparent 40%),
    linear-gradient(125deg, #0e1420 0%, var(--primary-dark) 45%, #1a2333 100%);
  overflow-x: hidden;
    min-height: 100svh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  z-index: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.curtain-stage {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
}

.curtain-stage::before,
.curtain-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--primary-dark);
  transition: transform var(--curtain-fade-duration, 1600ms) linear;
  z-index: 0;
}

.curtain-stage::before {
  left: 0;
  transform-origin: left center;
  transform: scaleX(1);
}

.curtain-stage::after {
  right: 0;
  transform-origin: right center;
  transform: scaleX(1);
}

.curtain-stage.is-opening::before,
.curtain-stage.is-opening::after {
  transform: scaleX(0);
}

.curtain-canvas,
.curtain-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.curtain-canvas {
  z-index: 2;
}

.curtain-fallback {
  display: none;
  background: transparent;
  z-index: 1;
}

.curtain-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(95deg, rgba(232, 220, 206, 0.08), rgba(125, 92, 57, 0.2) 24%, rgba(18, 24, 36, 0.25) 70%),
    repeating-linear-gradient(100deg, rgba(125, 92, 57, 0.26), rgba(125, 92, 57, 0.26) 8px, rgba(232, 220, 206, 0.08) 8px, rgba(232, 220, 206, 0.08) 16px);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.curtain-panel-left {
  left: 0;
  border-right: 1px solid rgba(232, 220, 206, 0.15);
}

.curtain-panel-right {
  right: 0;
  border-left: 1px solid rgba(232, 220, 206, 0.15);
}

/* About link transition: show aboutus.jpg full-screen, then open from center like a curtain. */
.curtain-stage.curtain-theme-about {
  --about-curtain-duration: 4800ms;
}

/* For the About transition we don't want the extra "backdrop" curtain animation. */
.curtain-stage.curtain-theme-about::before,
.curtain-stage.curtain-theme-about::after {
  background: transparent;
  transition: none;
  transform: scaleX(0);
}

.curtain-stage .curtain-underlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  background: transparent;
  z-index: 0;
  transition: opacity 1200ms ease;
}

.curtain-stage.curtain-theme-about.is-underlay-ready .curtain-underlay {
  opacity: 1;
}

.curtain-stage.curtain-theme-about .curtain-panel {
  background-image:
    linear-gradient(110deg, rgba(18, 24, 36, 0.28), rgba(18, 24, 36, 0.08) 55%, rgba(232, 220, 206, 0.06)),
    url("images/aboutus.jpg");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  background-position: center;
}

.curtain-stage.curtain-theme-about .curtain-panel-left {
  background-position: left center;
}

.curtain-stage.curtain-theme-about .curtain-panel-right {
  background-position: right center;
}

body.is-about-transition.fallback-open .curtain-panel-left,
body.is-about-transition.fallback-open .curtain-panel-right {
  transition: transform var(--about-curtain-duration, 2300ms) cubic-bezier(0.22, 0.72, 0.15, 1) !important;
}

body.no-3d .curtain-canvas {
  display: none;
}

body.no-3d .curtain-fallback {
  display: block;
}

body.fallback-open .curtain-panel-left {
  transform: translateX(-102%);
  transition: transform 2.8s linear !important;
}

body.fallback-open .curtain-panel-right {
  transform: translateX(102%);
  transition: transform 2.8s linear !important;
}

.site-main {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.site-main.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  min-height: 100svh;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 20, 32, 0.06) 0%, rgba(14, 20, 32, 0.22) 60%, rgba(14, 20, 32, 0.75) 84%, rgb(14, 20, 32) 100%),
    linear-gradient(110deg, rgba(232, 220, 206, 0.08), rgba(14, 20, 32, 0.08) 58%, transparent 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 80%;
  height: calc(20% + 1.5px); /* Add 1.5px bleed to eliminate sub-pixel seams on all displays */
  background: linear-gradient(to bottom, rgba(14, 20, 32, 0.06), rgb(14, 20, 32));
  z-index: 2;
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-top-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: contrast(1.07) saturate(1.02);
}

.hero-inner {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: block;
}

.hero-logo-float {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 5;
  width: clamp(170px, 21vw, 280px);
  border: 1px solid rgba(232, 220, 206, 0.45);
  background: rgba(18, 24, 36, 0.25);
  backdrop-filter: blur(2px);
}

.brand-logo {
  width: clamp(170px, 21vw, 280px);
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 100%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(232, 220, 206, 0.2);
}

.capabilities-section {
  min-height: auto;
  padding: clamp(1.8rem, 3vh, 2.4rem) 0 clamp(1.6rem, 3.2vh, 2.4rem);
  background: rgb(14, 20, 32);
  position: relative;
}

.capabilities-section::after {
  content: "";
  position: absolute;
  display: none;
}

.capabilities-section::before {
  content: "";
  position: absolute;
  display: none;
}

.capabilities-inner {
  display: grid;
  gap: clamp(1.2rem, 2.5vh, 2rem);
  text-align: center;
  position: relative;
  z-index: 1;
}

.capabilities-header h2 {
  margin: 0;
  font-family: var(--site-font);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  letter-spacing: 0.12em;
  color: var(--white);
}

.capabilities-header .cap-amp {
  color: var(--accent-gold);
  padding: 0 0.35rem;
}

.capabilities-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.8vw, 1.2rem);
  flex-wrap: wrap;
  color: var(--cream);
  width: 100%;
  text-align: center;
  position: relative;
}

/*
gap: clamp(0.9rem, 2.2vw, 1.4rem);
*/

.capabilities-slogan::after {
  content: "";
  height: 1px;
  flex: 1 1 0;
  min-width: 24px;
  opacity: 0.85;
  background: linear-gradient(to right, rgba(232, 220, 206, 0), rgba(232, 220, 206, 0.12) 18%, rgba(125, 92, 57, 0.9) 50%, rgba(232, 220, 206, 0.12) 82%, rgba(232, 220, 206, 0));
}

.capabilities-slogan p {
  margin: 0;
  font-family: var(--site-font);
  font-size: clamp(0.85rem, 1.25vw, 1.05rem);
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

.line-divider {
  display: none;
}

.capabilities-slogan .line-divider {
  display: none;
}

/* =========================================
   CAPABILITY GRID CENTER FIX
========================================= */

.capability-grid {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 0;

    width: 100%;

    max-width: 1000px;

    margin: 0 auto;
}

/* EACH ITEM */
.capability-item {

    flex: 0 0 220px;

    text-align: center;

    position: relative;

    padding: 18px 12px;
}

/* VERTICAL SEPARATORS */
.capability-item:not(:last-child)::after {

    content: "";

    position: absolute;

    top: 50%;

    right: 0;

    transform: translateY(-50%);

    width: 1px;

    height: 95px;

    background: rgba(255,255,255,0.12);
}

/* MOBILE */
/* MOBILE — KEEP 4 ITEMS IN ONE ROW */
@media (max-width: 768px) {

    .capability-grid {

        display: flex;

        flex-direction: row;

        justify-content: center;

        align-items: flex-start;

        flex-wrap: nowrap;

        gap: 0;

        overflow-x: auto;

        padding: 0 8px;
    }

    .capability-item {

        flex: 0 0 25%;

        min-width: 85px;

        padding: 12px 6px;
    }

    .capability-item h3 {

        font-size: 11px;

        line-height: 1.4;
    }

    .capability-icon img {

        width: 28px;

        height: 28px;
    }

    /* KEEP VERTICAL LINES */
    .capability-item:not(:last-child)::after {

        display: block;

        height: 75px;
    }
}

.capability-item {
  position: relative;
  padding: 0.6rem 0.4rem 0.2rem;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.capability-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.capability-link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.capability-item::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  top: 10%;
  bottom: 10%;
  width: 10px;
  background: url("images/lines.png") center/contain no-repeat;
  opacity: 0.6;
}

.capability-item:last-child::after {
  display: none;
}

.capability-item:not(:last-child) {
  border-right: 1px solid rgba(232, 220, 206, 0.18);
}

.capability-icon {
  width: clamp(68px, 6.2vw, 90px);
  height: clamp(68px, 6.2vw, 90px);
  border-radius: 0;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.capability-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3));
}

.capability-item h3 {
  margin: 0;
  font-family: var(--site-font);
  font-size: clamp(0.58rem, 0.95vw, 0.75rem);
  letter-spacing: 0.12em;
  color: var(--cream);
  line-height: 1.35
}

.modal-close:hover {
  color: var(--cream);
  background: rgba(125, 92, 57, 0.2);
}

.modal-body {
  display: grid;
  gap: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-image {
  margin: 0;
  border-top: none;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgb(14, 20, 32);
}

.footer-video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.03) brightness(0.82);
  margin: 0;
  position: relative;
  z-index: 1;
}

.footer-image::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24%;
  background: linear-gradient(to bottom, rgba(14, 20, 32, 0.7) 0%, rgba(14, 20, 32, 0.38) 45%, rgba(14, 20, 32, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.footer-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(to top, rgba(14, 20, 32, 0.96) 0%, rgba(14, 20, 32, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ----- PREMIUM MODERN FOOTER ----- */
.site-footer {
  position: relative;
  z-index: 3;
  background: radial-gradient(circle at 50% 0%, rgba(125, 92, 57, 0.12), transparent 60%),
              linear-gradient(to bottom, rgba(14, 20, 32, 1) 0%, rgba(18, 24, 36, 0.95) 100%);
  padding: 1.2rem 0 0.8rem;
  border-top: 1px solid rgba(125, 92, 57, 0.25);
  box-shadow: inset 0 15px 30px rgba(0, 0, 0, 0.45), 0 -8px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-main-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: 0 0.5rem;
}

/* Logo container & style */
.footer-logo-box {
  position: relative;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo-box:hover {
  transform: scale(1.08);
}

.footer-logo-box::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(125, 92, 57, 0.35);
  animation: spinLogoBorder 24s linear infinite;
  pointer-events: none;
}

@keyframes spinLogoBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(232, 220, 206, 0.3);
  background: rgba(18, 24, 36, 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(125, 92, 57, 0.12);
  padding: 3px;
  object-fit: contain;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo-box:hover .footer-logo {
  border-color: var(--accent-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 20px rgba(125, 92, 57, 0.35);
}

/* Designed By credit */
.footer-credits {
  font-family: var(--site-font);
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.1em;
  color: rgba(232, 220, 206, 0.45);
}

.designer-link {
  color: rgba(232, 220, 206, 0.45);
  text-decoration: none;
  font-weight: inherit;
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.3s ease;
}

.designer-link:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(125, 92, 57, 0.35);
}

/* ---------- Footer: simplified contact row + divider ---------- */
.footer-main-row.footer-contacts-row {
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: nowrap;
  width: 100%;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
  text-decoration: none;
  color: var(--cream);
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  border: none; /* ensure no small square border */
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 0;
}

.footer-contact-item .footer-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  background: transparent;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.footer-contact-item .contact-text {
  font-family: var(--site-font);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(232, 220, 206, 0.92);
  min-width: 0;
}


.footer-email-icon {
  mix-blend-mode: screen;
  filter: invert(1) sepia(1) saturate(8) hue-rotate(345deg) brightness(0.77) contrast(1.1);
  transition: filter 0.3s ease;
}

@media (min-width: 760px) {
  .footer-contact-item {
    gap: 1.6rem;
    padding: 4px 6px;
  }
}

.footer-divider {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 0.45rem 0;
}
.footer-divider::before,
.footer-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 0;
  min-width: 20px;
  opacity: 0.95;
  background: linear-gradient(to right, rgba(232, 220, 206, 0), rgba(232, 220, 206, 0.12) 18%, rgba(125, 92, 57, 0.9) 50%, rgba(232, 220, 206, 0.12) 82%, rgba(232, 220, 206, 0));
}

.footer-credits {
  margin-top: 0.4rem;
  text-align: center;
}

@media (max-width: 759px) {
  .footer-main-row.footer-contacts-row {
    flex-direction: row;
    gap: clamp(0.5rem, 1.8vw, 1rem);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-contact-item {
    width: auto;
    padding: 4px 8px;
    gap: 0.35rem;
  }

  .footer-contact-item .footer-icon {
    width: 15px;
    height: 15px;
  }

  .footer-contact-item .contact-text {
    font-size: clamp(0.68rem, 2vw, 0.8rem);
    letter-spacing: 0.02em;
  }
}

@media (max-width: 420px) {
  .footer-main-row.footer-contacts-row {
    gap: 0.35rem;
  }

  .footer-contact-item {
    padding: 3px 6px;
    gap: 0.28rem;
  }

  .footer-contact-item .footer-icon {
    width: 13px;
    height: 13px;
  }

  .footer-contact-item .contact-text {
    font-size: 0.65rem;
    letter-spacing: 0.01em;
  }
}

@media (min-width: 760px) {
  .hero {
    min-height: 55svh;
  }

  .hero-inner {
    min-height: 55svh;
  }

  .hero-top-image {
    object-position: center 14%;
  }

  .hero-logo-float {
    top: 62%;
  }
}

/* Mobile optimizations */
@media (max-width: 759px) {
  .home-page .site-main {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }

  .hero {
    min-height: auto;
    height: auto;
    padding-bottom: 0;
    overflow: visible;
    position: relative;
  }

  .hero::before {
    background:
      linear-gradient(to bottom, rgba(18, 24, 36, 0.06) 0%, rgba(18, 24, 36, 0.22) 60%, rgba(18, 24, 36, 0.75) 84%, rgb(18, 24, 36) 100%),
      linear-gradient(110deg, rgba(232, 220, 206, 0.08), rgba(18, 24, 36, 0.08) 58%, transparent 100%);
  }

  .hero::after {
    display: none;
  }

  .hero-media-layer::after {
    content: "";
    position: absolute;
    bottom: -1.5px; /* Bleed down to eliminate sub-pixel seams on high-DPI viewports */
    left: 0;
    right: 0;
    height: clamp(120px, 18vw, 180px);
    background: linear-gradient(
      to bottom,
      rgba(18, 24, 36, 0) 0%,
      rgba(18, 24, 36, 0.2) 30%,
      rgba(18, 24, 36, 0.6) 60%,
      rgba(18, 24, 36, 0.9) 85%,
      rgb(18, 24, 36) 98%,
      rgb(18, 24, 36) 100%
    );
    z-index: 3;
    pointer-events: none; /* Do not block touch elements under the gradient mask */
  }

  .hero-media-layer {
    position: relative;
    width: 100%;
    height: auto;
    background: transparent;
    z-index: 0;
  }

  .hero-top-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center 22%;
    display: block;
  }

  .hero-inner {
    min-height: auto;
    position: relative;
    height: 0;
  }

  .hero-logo-float {
    position: absolute;
    width: clamp(110px, 26vw, 150px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(-30px, -7vw, -45px);
    margin: 0;
    z-index: 10;
    border: 1px solid rgba(232, 220, 206, 0.45);
    background: rgba(18, 24, 36, 0.6);
    backdrop-filter: blur(4px);
  }

  .brand-logo {
    width: clamp(110px, 26vw, 150px);
    height: auto;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .capabilities-section {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: clamp(3.8rem, 10vh, 5.5rem) 0 clamp(2.8rem, 8vh, 4rem);
    margin-top: 0;
    background: rgb(18, 24, 36);
  }

  .capabilities-inner {
    width: 100%;
    align-self: center;
  }

  .capabilities-section::before {
    display: none;
  }
  

  .capabilities-inner {
    gap: clamp(1.4rem, 4.5vh, 2.5rem);
  }

  .capabilities-header h2 {
    font-size: clamp(1.1rem, 2.3vw, 1.4rem);
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
  }

  .capabilities-slogan {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    align-items: center;
  }

  .capabilities-slogan::before,
  .capabilities-slogan::after {
    min-width: 18px;
  }

  .capabilities-slogan p {
    font-size: clamp(0.7rem, 1.05vw, 0.85rem);
    letter-spacing: 0.15em;
    text-align: center;
    white-space: normal; /* Fix spacing overflow on mobile */
  }

  .capability-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .capability-item {
    padding: 0.5rem 0.15rem 0.2rem;
    position: relative;
    display: grid;
    gap: 0.8rem;
  }

  .capability-item::after {
    display: block;
    right: -0.3rem;
    width: 8px;
  }

  .capability-item:not(:last-child) {
    border-right: 1px solid rgba(232, 220, 206, 0.16);
  }

  .capability-icon {
    width: clamp(48px, 11vw, 56px);
    height: clamp(48px, 11vw, 56px);
  }

  .capability-item h3 {
    font-size: clamp(0.55rem, 1.2vw, 0.72rem);
    letter-spacing: 0.06em;
    line-height: 1.2;
  }

  .footer-image {
    min-height: auto;
    height: auto;
    overflow: hidden;
    position: relative;
    margin-top: 0;
  }

  .site-footer {
    padding: 1.2rem 0 0.8rem;
  }

  .footer-content {
    gap: 0.8rem;
  }

  .footer-main-row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
    padding: 0 0.2rem;
  }

}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    height: auto;
  }

  .hero-top-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center 22%;
  }

  .hero-logo-float {
    width: clamp(100px, 24vw, 130px);
    bottom: clamp(-25px, -6vw, -35px);
  }

  .brand-logo {
    width: clamp(100px, 24vw, 130px);
  }

  .capabilities-header h2 {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  .capabilities-slogan p {
    font-size: clamp(0.63rem, 0.95vw, 0.75rem);
    letter-spacing: 0.12em;
    white-space: normal; /* Fix spacing overflow on mobile */
  }

  .capabilities-slogan::before,
  .capabilities-slogan::after {
    min-width: 14px;
  }

  .capability-grid {
    gap: 0.35rem;
  }

  .capability-item {
    border-right: none;
  }

  .capability-item::after {
    display: block;
    right: -0.25rem;
    width: 7px;
  }

  .capability-item:not(:last-child) {
    border-right: 1px solid rgba(232, 220, 206, 0.14);
  }

  .capability-icon {
    width: clamp(42px, 10vw, 48px);
    height: clamp(42px, 10vw, 48px);
  }

  .capability-item h3 {
    font-size: clamp(0.52rem, 1.1vw, 0.65rem);
    line-height: 1.25;
  }

  .capabilities-section {
    margin-top: 0;
  }

  .footer-image {
    min-height: auto;
    height: auto;
  }

  .site-footer {
    padding: 1rem 0 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
} /* YOUR EXISTING CSS ABOVE */


/* =========================================
   RESTORE DARK GRADIENT + REMOVE GREY LINE
========================================= */

/* =========================================
   FINAL MOBILE HERO FIX
========================================= */

@media (max-width: 768px) {

    .capabilities-section {

        position: relative;

        margin-top: 0 !important;

        padding-top: 30px !important;

        background: transparent !important;

        z-index: 2;
    }

    html,
    body {

        overflow-x: hidden !important;
    }
}

    .footer-image {

        margin-top: -1px !important;

        background: #000512;

        overflow: hidden;
    }

    .footer-video {

        display: block;

        width: 100%;

        border: none !important;
    }

    .capability-grid {

        overflow-x: hidden !important;
    }
} /* =========================================
   FINAL MOBILE HERO FIX
========================================= */

@media (max-width: 768px) {

    .capabilities-section {

        position: relative;

        margin-top: 0 !important;

        padding-top: 30px !important;

        background: transparent !important;

        z-index: 2;
    }

    html,
    body {

        overflow-x: hidden !important;
    }
} 