:root {
  --navy: #0F2F4F;
  --navy-950: #071928;
  --navy-900: #0A2239;
  --green: #2E8B57;
  --gold: #F4B400;
  --red: #D7261E;
  --white: #FFFFFF;
  --ink: #132235;
  --muted: #66788A;
  --mist: #F4F7FA;
  --line: #DDE6EE;
  --shadow-sm: 0 12px 28px rgba(15, 47, 79, 0.10);
  --shadow-lg: 0 28px 70px rgba(7, 25, 40, 0.28);
  --font-heading: "Poppins", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --text-hero: clamp(3rem, 5.2vw, 4rem);
  --leading-hero: 1.14;
  --text-section: clamp(2rem, 3.3vw, 2.625rem);
  --leading-section: 1.17;
  --text-card: 1.375rem;
  --leading-card: 1.18;
  --text-body: 1.125rem;
  --leading-body: 1.72;
  --text-small: 0.875rem;
  --leading-small: 1.55;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  min-width: 320px;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 24px;
  width: 100%;
}

.site-header {
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 50;
}

.site-header.is-scrolled .main-nav {
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.top-bar__inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 42px;
}

.top-bar__inner p {
  color: var(--white);
  font-weight: 500;
}

.top-bar__contact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.top-bar a:hover {
  color: var(--gold);
}

.main-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(221, 230, 238, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease;
}

.main-nav__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  min-width: 250px;
}

.brand__logo {
  background: var(--white);
  border: 1px solid var(--line);
  height: 58px;
  object-fit: contain;
  padding: 6px;
  width: 58px;
}

.brand__copy {
  display: grid;
  gap: 1px;
}

.brand__copy strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand__copy small {
  color: var(--green);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: var(--leading-small);
}

.nav-menu {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.nav-menu a {
  border-radius: 999px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 13px 17px;
  position: relative;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.nav-menu a::after {
  background: var(--green);
  border-radius: 999px;
  bottom: 6px;
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: calc(100% - 36px);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(46, 139, 87, 0.10);
  color: var(--green);
  transform: translateY(-1px);
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: none;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.nav-toggle span {
  background: var(--white);
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 21px;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  background: var(--navy-950);
  color: var(--white);
  min-height: 760px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  animation: heroBackgroundZoom 18s ease-out forwards;
  background:
    linear-gradient(90deg, rgba(7, 25, 40, 0.96) 0%, rgba(15, 47, 79, 0.84) 46%, rgba(15, 47, 79, 0.32) 100%),
    url("https://images.unsplash.com/photo-1667817418453-3489bb60ce9b?auto=format&fit=crop&w=2200&q=85");
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
  transform: scale(1);
}

.hero::after {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(244, 180, 0, 0.20), transparent 28%);
  inset: 0;
  position: absolute;
}

.hero__inner {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1fr) 370px;
  min-height: 760px;
  padding-bottom: 96px;
  padding-top: 96px;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 790px;
}

.hero__content > * {
  animation: fadeUp 780ms ease forwards;
  opacity: 0;
  transform: translateY(22px);
}

.hero__content > *:nth-child(1) {
  animation-delay: 100ms;
}

.hero__content > *:nth-child(2) {
  animation-delay: 210ms;
}

.hero__content > *:nth-child(3) {
  animation-delay: 320ms;
}

.hero__content > *:nth-child(4) {
  animation-delay: 430ms;
}

.hero__content > *:nth-child(5) {
  animation-delay: 540ms;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: var(--leading-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-hero);
  margin-top: 20px;
}

.hero__slogan {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 22px;
}

.hero__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  margin-top: 22px;
  max-width: 700px;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(7, 25, 40, 0.18);
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0;
  min-height: 56px;
  min-width: 172px;
  padding: 14px 28px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover {
  box-shadow: 0 18px 34px rgba(7, 25, 40, 0.24);
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav-menu a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(244, 180, 0, 0.55);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: #257848;
  border-color: var(--gold);
}

.btn--secondary,
.btn--light {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--navy);
  color: var(--navy);
}

.hero .btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.btn--secondary:hover,
.btn--light:hover {
  background: var(--white);
  border-color: var(--gold);
  color: var(--green);
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  padding: 30px;
}

.hero-card__label {
  color: var(--red);
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: var(--leading-small);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-card div {
  border-left: 5px solid var(--green);
  padding: 0 0 0 18px;
}

.hero-card div + div {
  margin-top: 22px;
}

.hero-card div:nth-of-type(2) {
  border-left-color: var(--gold);
}

.hero-card div:nth-of-type(3) {
  border-left-color: var(--red);
}

.hero-card strong {
  color: var(--navy);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-card p {
  color: var(--muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  margin-top: 4px;
}

.trust-strip {
  background: var(--navy);
  color: var(--white);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-strip__grid div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 124px;
  padding: 28px 24px;
}

.trust-strip__grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-strip span {
  color: var(--gold);
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 9px;
}

.trust-strip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.page-hero {
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 25, 40, 0.95), rgba(15, 47, 79, 0.78), rgba(15, 47, 79, 0.36)),
    url("https://images.unsplash.com/photo-1667817418453-3489bb60ce9b?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
  transform: scale(1.01);
}

.page-hero::after {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  bottom: 0;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
}

.page-hero--services::before {
  background:
    linear-gradient(90deg, rgba(7, 25, 40, 0.96), rgba(15, 47, 79, 0.82), rgba(46, 139, 87, 0.40)),
    radial-gradient(circle at 78% 24%, rgba(244, 180, 0, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    url("https://images.unsplash.com/photo-1667817418453-3489bb60ce9b?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover, cover, 44px 44px, cover;
}

.page-hero--portfolio::before {
  background:
    linear-gradient(90deg, rgba(7, 25, 40, 0.96), rgba(15, 47, 79, 0.86), rgba(7, 25, 40, 0.52)),
    linear-gradient(135deg, rgba(46, 139, 87, 0.28), transparent 28%),
    linear-gradient(315deg, rgba(215, 38, 30, 0.20), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 44px);
  background-position: center;
  background-size: cover;
}

.page-hero--contact::before {
  background:
    linear-gradient(90deg, rgba(7, 25, 40, 0.95), rgba(15, 47, 79, 0.78), rgba(15, 47, 79, 0.34)),
    url("https://images.unsplash.com/photo-1672590273072-6a92fa9e7f30?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
}

.page-hero--faeslims::before {
  background:
    linear-gradient(90deg, rgba(7, 25, 40, 0.96), rgba(46, 139, 87, 0.76), rgba(15, 47, 79, 0.52)),
    linear-gradient(135deg, rgba(46, 139, 87, 0.24), transparent 32%),
    linear-gradient(315deg, rgba(244, 180, 0, 0.18), transparent 30%),
    url("https://images.unsplash.com/photo-1576091160550-112173e7d7a0?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
}

.page-hero__inner {
  max-width: 900px;
  min-height: 440px;
  padding-bottom: 86px;
  padding-top: 94px;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-hero);
  margin-top: 20px;
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-top: 22px;
  max-width: 760px;
}

.section {
  padding: 96px 0;
}

.page-section {
  background: var(--white);
}

.page-section--light {
  background: var(--mist);
}

.about-section {
  background: var(--white);
}

.about-grid,
.insight-grid,
.portfolio-header {
  display: grid;
  gap: 54px;
  grid-template-columns: 0.9fr 1.1fr;
}

.section-intro h2,
.section-heading h2,
.portfolio-header h2,
.insight-panel h2,
.cta-panel h2 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--text-section);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-section);
  margin-top: 14px;
}

.about-copy {
  border-left: 6px solid var(--gold);
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  padding-left: 32px;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-media-grid {
  display: grid;
  gap: 24px;
}

.about-visual {
  background:
    linear-gradient(135deg, rgba(15, 47, 79, 0.94), rgba(46, 139, 87, 0.78)),
    url("https://images.unsplash.com/photo-1667817418453-3489bb60ce9b?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
  min-height: 320px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.about-visual::after {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  bottom: 0;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
}

.about-visual__map {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 38px);
  inset: 0;
  opacity: 0.72;
  position: absolute;
}

.about-visual__card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(7, 25, 40, 0.18);
  max-width: 260px;
  padding: 18px 20px;
  position: relative;
}

.about-visual__card + .about-visual__card {
  margin-top: 14px;
}

.about-visual__card--gis {
  margin-left: auto;
}

.about-visual__card--innovation {
  border-left: 5px solid var(--gold);
}

.about-visual__card strong,
.about-visual__card span {
  display: block;
}

.about-visual__card strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.98rem;
}

.about-visual__card span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.page-card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  box-shadow: var(--shadow-sm);
  min-height: 230px;
  padding: 30px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.page-card:nth-child(2) {
  border-top-color: var(--gold);
}

.page-card:nth-child(3) {
  border-top-color: var(--red);
}

.page-card:hover {
  box-shadow: 0 22px 48px rgba(15, 47, 79, 0.15);
  transform: translateY(-6px);
}

.page-card span {
  color: rgba(15, 47, 79, 0.18);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
}

.page-card h3 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--text-card);
  font-weight: 600;
  line-height: var(--leading-card);
}

.page-card p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-top: 12px;
}

.split-feature {
  display: grid;
  gap: 54px;
  grid-template-columns: 0.9fr 1.1fr;
}

.split-feature h2,
.contact-panel h2 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--text-section);
  font-weight: 700;
  line-height: var(--leading-section);
  margin-top: 12px;
}

.feature-list {
  color: var(--muted);
  display: grid;
  gap: 18px;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.feature-list p {
  background: var(--white);
  border-left: 5px solid var(--green);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.feature-list p:nth-child(2) {
  border-left-color: var(--gold);
}

.feature-list p:nth-child(3) {
  border-left-color: var(--red);
}

.services-section {
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--mist) 72%, var(--white) 72%, var(--white) 100%);
}

.section-heading {
  margin: 0 auto 44px;
  max-width: 820px;
  text-align: center;
}

.section-heading p:last-child,
.portfolio-header > p,
.insight-panel p,
.cta-panel p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-top: 16px;
}

.services-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  box-shadow: var(--shadow-sm);
  min-height: 255px;
  padding: 30px;
  position: relative;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.service-card::before {
  align-items: center;
  background: rgba(46, 139, 87, 0.10);
  color: var(--green);
  content: "R";
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  margin-bottom: 22px;
  width: 48px;
}

.service-card--gold::before {
  background: rgba(244, 180, 0, 0.14);
  color: #9B7200;
  content: "DA";
}

.service-card--red::before {
  background: rgba(215, 38, 30, 0.10);
  color: var(--red);
  content: "ME";
}

.service-card--navy::before {
  background: rgba(15, 47, 79, 0.10);
  color: var(--navy);
  content: "GIS";
}

.services-grid .service-card:nth-child(5)::before {
  content: "SD";
}

.services-grid .service-card:nth-child(6)::before {
  content: "DX";
}

.service-card:hover {
  box-shadow: 0 22px 48px rgba(15, 47, 79, 0.15);
  transform: translateY(-6px);
}

.service-card span {
  color: rgba(15, 47, 79, 0.18);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3,
.portfolio-card h3 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--text-card);
  font-weight: 600;
  line-height: var(--leading-card);
}

.service-card p,
.portfolio-card p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-top: 12px;
}

.service-card--green {
  border-top-color: var(--green);
}

.service-card--gold {
  border-top-color: var(--gold);
}

.service-card--red {
  border-top-color: var(--red);
}

.service-card--navy {
  border-top-color: var(--navy);
}

.faeslims-spotlight {
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.08), rgba(244, 180, 0, 0.04));
  border-top: 6px solid var(--green);
  border-bottom: 6px solid var(--gold);
}

.faeslims-spotlight__inner {
  display: grid;
  gap: 54px;
  grid-template-columns: 1fr;
}

.faeslims-spotlight__content h2 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: var(--text-section);
  font-weight: 700;
  line-height: var(--leading-section);
  margin-top: 14px;
}

.faeslims-spotlight__content > p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-top: 16px;
  max-width: 850px;
}

.faeslims-spotlight__features {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.faeslims-spotlight__features div {
  background: var(--white);
  border-left: 5px solid var(--green);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.faeslims-spotlight__features div:nth-child(2) {
  border-left-color: var(--gold);
}

.faeslims-spotlight__features div:nth-child(3) {
  border-left-color: var(--red);
}

.faeslims-spotlight__features strong {
  color: var(--navy);
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faeslims-spotlight__features p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.portfolio-section {
  background: var(--navy-950);
  color: var(--white);
  position: relative;
}

.portfolio-section::before {
  background:
    linear-gradient(135deg, rgba(46, 139, 87, 0.20), transparent 34%),
    linear-gradient(315deg, rgba(215, 38, 30, 0.18), transparent 28%);
  content: "";
  inset: 0;
  position: absolute;
}

.portfolio-section .container {
  position: relative;
  z-index: 1;
}

.portfolio-header {
  align-items: end;
  margin-bottom: 42px;
}

.portfolio-header h2 {
  color: var(--white);
}

.portfolio-header > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.portfolio-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-grid--light .portfolio-card {
  box-shadow: var(--shadow-sm);
}

.portfolio-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  min-height: 300px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.portfolio-card::before {
  background:
    linear-gradient(135deg, rgba(15, 47, 79, 0.10), transparent 42%),
    repeating-linear-gradient(90deg, rgba(15, 47, 79, 0.08) 0 1px, transparent 1px 18px);
  content: "";
  height: 86px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.portfolio-card:nth-child(2)::before {
  background:
    linear-gradient(135deg, rgba(46, 139, 87, 0.16), transparent 42%),
    repeating-linear-gradient(45deg, rgba(46, 139, 87, 0.10) 0 2px, transparent 2px 18px);
}

.portfolio-card:nth-child(3)::before {
  background:
    linear-gradient(135deg, rgba(215, 38, 30, 0.12), transparent 42%),
    repeating-linear-gradient(90deg, rgba(244, 180, 0, 0.14) 0 2px, transparent 2px 20px);
}

.portfolio-card:hover {
  box-shadow: 0 34px 78px rgba(7, 25, 40, 0.34);
  transform: translateY(-6px);
}

.portfolio-card:nth-child(2) {
  border-top-color: var(--green);
}

.portfolio-card:nth-child(3) {
  border-top-color: var(--red);
}

.portfolio-card--flagship {
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.04), rgba(244, 180, 0, 0.02));
  border: 2px solid var(--green);
  border-top: 8px solid var(--green);
  box-shadow: 0 28px 70px rgba(46, 139, 87, 0.18), var(--shadow-lg);
  grid-column: 1 / -1;
  min-height: auto;
  padding: 40px;
}

.portfolio-card--flagship::before {
  background:
    linear-gradient(135deg, rgba(46, 139, 87, 0.16), transparent 34%),
    repeating-linear-gradient(45deg, rgba(46, 139, 87, 0.12) 0 2px, transparent 2px 18px);
  height: 100px;
}

.portfolio-card--flagship:hover {
  box-shadow: 0 38px 86px rgba(46, 139, 87, 0.24), var(--shadow-lg);
  transform: translateY(-8px);
}

.portfolio-card--flagship h3 {
  font-size: 1.75rem;
}

.portfolio-card__top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 42px;
  position: relative;
  z-index: 1;
}

.portfolio-card__top span {
  color: rgba(15, 47, 79, 0.18);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.portfolio-card__top strong {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.portfolio-card a {
  color: var(--navy);
  display: inline-flex;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 22px;
}

.portfolio-card a:hover {
  color: var(--red);
}

.insight-section {
  background: var(--mist);
}

.insight-grid {
  align-items: center;
}

.insight-panel {
  background: var(--white);
  border-left: 7px solid var(--green);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list div {
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 18px 1fr;
  padding: 24px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.process-list div:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.process-list span {
  background: var(--gold);
  height: 18px;
  margin-top: 5px;
  width: 18px;
}

.process-list div:nth-child(2) span {
  background: var(--green);
}

.process-list div:nth-child(3) span {
  background: var(--red);
}

.process-list p {
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-body);
}

.contact-grid {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 38px;
}

.contact-panel--accent {
  border-left: 7px solid var(--gold);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.contact-list a,
.contact-list div {
  background: var(--mist);
  border-left: 5px solid var(--green);
  color: var(--ink);
  padding: 18px 20px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.contact-list a:nth-child(2),
.contact-list div:nth-child(4) {
  border-left-color: var(--gold);
}

.contact-list div:nth-child(3) {
  border-left-color: var(--red);
}

.contact-list a:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.contact-list strong,
.contact-list span {
  display: block;
}

.contact-list strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact-list span {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-top: 3px;
}

.cta-section {
  background:
    linear-gradient(rgba(15, 47, 79, 0.92), rgba(15, 47, 79, 0.92)),
    url("https://images.unsplash.com/photo-1672590273072-6a92fa9e7f30?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  padding: 86px 0;
}

.cta-panel {
  align-items: center;
  background: var(--white);
  border-left: 8px solid var(--gold);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding: 46px;
}

.cta-panel > div {
  max-width: 760px;
}

.site-footer {
  background: var(--navy-950);
  color: var(--white);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 38px;
  grid-template-columns: 1.35fr 0.7fr 0.9fr 0.85fr;
}

.brand--footer .brand__copy strong,
.site-footer h3 {
  color: var(--white);
}

.brand--footer .brand__logo {
  border-color: rgba(255, 255, 255, 0.18);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 420px;
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, 0.70);
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 9px;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  margin: 0 auto;
  max-width: 820px;
}

.footer-bottom p:nth-child(2) {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.footer-bottom p:nth-child(3) {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBackgroundZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.055);
  }
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 200ms ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230F2F4F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-form label span {
  color: var(--red);
}

.contact-form button {
  width: 100%;
}

@media (max-width: 640px) {
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea {
    padding: 12px;
    font-size: 16px;
  }
}

.thank-you-panel {
  padding: 20px 0;
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 620px;
  }

  .services-grid,
  .portfolio-grid,
  .page-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .top-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .top-bar__contact {
    gap: 8px 14px;
    justify-content: flex-start;
  }

  .main-nav__inner {
    min-height: 76px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-menu {
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 14px 24px 24px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 17px 0;
  }

  .nav-menu a:hover,
  .nav-menu a[aria-current="page"] {
    background: transparent;
    color: var(--green);
    padding-left: 10px;
  }

  .nav-menu a::after {
    display: none;
  }

  .about-grid,
  .insight-grid,
  .portfolio-header,
  .split-feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-header {
    gap: 18px;
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

    .faeslims-spotlight__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --text-hero: clamp(2.4rem, 11vw, 3.25rem);
    --leading-hero: 1.12;
    --text-section: clamp(1.75rem, 8vw, 2.25rem);
    --leading-section: 1.18;
    --text-card: 1.25rem;
    --leading-card: 1.22;
    --text-body: 1rem;
    --leading-body: 1.7;
  }

  .container {
    padding: 0 18px;
  }

  .brand__logo {
    height: 50px;
    width: 50px;
  }

  .brand__copy strong {
    font-size: 1.35rem;
  }

  .brand__copy small {
    font-size: 0.7rem;
  }

  .hero {
    background: var(--navy-950);
    min-height: auto;
  }

  .page-hero::before,
  .page-hero--services::before,
  .page-hero--portfolio::before,
  .page-hero--contact::before {
    background:
      linear-gradient(180deg, rgba(7, 25, 40, 0.95), rgba(15, 47, 79, 0.80)),
      url("https://images.unsplash.com/photo-1667817418453-3489bb60ce9b?auto=format&fit=crop&w=1200&q=80");
    background-position: center;
    background-size: cover;
  }

  .page-hero__inner {
    min-height: 390px;
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 25, 40, 0.96) 0%, rgba(15, 47, 79, 0.82) 64%, rgba(15, 47, 79, 0.58) 100%),
      url("https://images.unsplash.com/photo-1667817418453-3489bb60ce9b?auto=format&fit=crop&w=1200&q=80");
  }

  .hero__inner {
    min-height: auto;
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: var(--text-hero);
    line-height: var(--leading-hero);
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero-card,
  .insight-panel,
  .cta-panel {
    padding: 28px;
  }

  .section {
    padding: 72px 0;
  }

  .about-copy {
    padding-left: 22px;
  }

  .services-grid,
  .portfolio-grid,
  .page-card-grid,
  .footer-grid,
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .trust-strip__grid div,
  .trust-strip__grid div:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    min-height: auto;
  }

  .service-card,
  .portfolio-card,
  .page-card,
  .contact-panel {
    min-height: auto;
    padding: 26px;
  }

  .portfolio-card--flagship {
    grid-column: 1;
    padding: 30px;
  }

  .portfolio-card--flagship h3 {
    font-size: 1.5rem;
  }

  .faeslims-spotlight__features {
    grid-template-columns: 1fr;
  }
}

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

  .hero::before,
  .hero__content > *,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ==================================================
   FINAL MOBILE OVERFLOW AND RESPONSIVE FIX
   ================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 860px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .top-bar,
  .main-nav,
  .hero,
  .page-hero,
  .section,
  .site-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .top-bar__inner,
  .main-nav__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
    flex-shrink: 1;
  }

  .brand__copy {
    min-width: 0;
  }

  .brand__copy strong,
  .brand__copy small {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .brand__copy strong {
    font-size: 1.15rem;
    line-height: 1.1;
  }

  .brand__copy small {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .brand__logo {
    flex: 0 0 auto;
    height: 46px;
    width: 46px;
  }

  .nav-toggle {
    flex: 0 0 auto;
  }

  .nav-menu {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    overflow-x: hidden;
  }

  .nav-menu a {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero__inner,
  .page-hero__inner,
  .about-grid,
  .insight-grid,
  .portfolio-header,
  .split-feature,
  .contact-grid,
  .services-grid,
  .portfolio-grid,
  .page-card-grid,
  .footer-grid,
  .trust-strip__grid,
  .faeslims-spotlight__features,
  .faeslims-spotlight__inner {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero__content,
  .hero-card,
  .page-card,
  .service-card,
  .portfolio-card,
  .contact-panel,
  .insight-panel,
  .cta-panel,
  .feature-list p,
  .faeslims-spotlight__features div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero h1,
  .page-hero h1,
  .section-intro h2,
  .section-heading h2,
  .portfolio-header h2,
  .insight-panel h2,
  .cta-panel h2,
  .contact-panel h2,
  .faeslims-spotlight__content h2 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero__text,
  .page-hero p,
  .section-heading p,
  .portfolio-card p,
  .service-card p,
  .page-card p,
  .contact-list span,
  .site-footer p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero__actions,
  .cta-panel,
  .portfolio-card__top {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  img,
  svg,
  video {
    max-width: 100%;
    height: auto;
  }

  .footer-bottom,
  .footer-bottom p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .main-nav__inner {
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand__copy strong {
    font-size: 1rem;
  }

  .brand__copy small {
    font-size: 0.62rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.85rem;
  }

  .hero__slogan {
    font-size: 1.2rem;
  }

  .service-card,
  .portfolio-card,
  .page-card,
  .contact-panel,
  .hero-card,
  .insight-panel,
  .cta-panel {
    padding: 22px;
  }
}
/* ==================================================
   CONTACT PAGE MOBILE WIDTH FIX
   ================================================== */

@media (max-width: 860px) {
  .contact-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 22px;
    overflow-x: hidden;
  }

  .contact-panel,
  .contact-panel--accent {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    overflow-x: hidden;
  }

  .contact-list,
  .contact-list a,
  .contact-list div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .contact-list span,
  .contact-list strong {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .contact-form,
  .contact-form fieldset,
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-form button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .contact-form select {
    white-space: normal;
  }

  .page-hero--contact,
  .page-hero--contact .page-hero__inner {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .contact-panel,
  .contact-panel--accent {
    padding: 20px !important;
  }

  .contact-list a,
  .contact-list div {
    padding: 16px !important;
  }
}