/* ======================================================================
   LUSAIL INTERNATIONAL — PREMIUM FRONTEND LAYER
   Production-ready visual system. Loaded after style.css.
   ====================================================================== */

:root {
  --brand: #6f9993;
  --brand-dark: #456f69;
  --brand-deep: #264a46;
  --brand-light: #a7c7c2;
  --brand-pale: #dce9e6;
  --night: #081412;
  --night-2: #0d1d1a;
  --night-3: #132824;
  --paper: #fbfaf7;
  --sand: #f1eee8;
  --sand-2: #e4dfd6;
  --ink: #17201e;
  --ink-mid: #3e4b48;
  --ink-soft: #68736f;
  --white: #ffffff;
  --champagne: #c8ad76;
  --line: rgba(23, 32, 30, .12);
  --line-light: rgba(255, 255, 255, .12);
  --shadow-soft: 0 18px 60px rgba(8, 20, 18, .08);
  --shadow-deep: 0 28px 90px rgba(3, 13, 11, .28);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-padding-top: 112px;
}

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -.006em;
}

body.gallery-open {
  overflow: hidden;
}

::selection {
  background: var(--brand);
  color: var(--white);
}

img {
  user-select: none;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(167, 199, 194, .72);
  outline-offset: 4px;
}

.container {
  width: min(100% - 2rem, 1320px);
  max-width: 1320px;
  padding-inline: 0;
}

.section-pad {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
}

.section-pad::before {
  width: min(30vw, 360px);
  right: -110px;
  top: 4%;
  opacity: .032;
}

.section-pad::after {
  width: min(18vw, 220px);
  left: -75px;
  bottom: 4%;
  opacity: .018;
}

.section-dark {
  background:
    radial-gradient(circle at 15% 15%, rgba(111, 153, 147, .12), transparent 28%),
    radial-gradient(circle at 90% 70%, rgba(200, 173, 118, .05), transparent 24%),
    var(--night);
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 25%),
    var(--sand);
}

.section-eyebrow,
.inner-eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  color: var(--brand-dark);
  font-family: var(--ff-utility);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-eyebrow::before,
.inner-eyebrow::before,
.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.section-eyebrow.light,
.inner-eyebrow,
.hero-eyebrow {
  color: var(--brand-light);
}

.section-title {
  max-width: 760px;
  font-size: clamp(2.55rem, 5vw, 5.15rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.section-title.light {
  color: #f5f5f0;
}

.section-body-text {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.8;
}

.section-body-text.light {
  color: rgba(255, 255, 255, .64);
}

/* Buttons */
.btn-primary-brand,
.btn-outline-brand {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border-radius: 999px;
  padding-inline: 1.65rem !important;
  font-family: var(--ff-utility);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
  transition: transform .35s var(--ease-premium), background-color .35s ease,
              border-color .35s ease, box-shadow .35s ease, color .35s ease;
}

.btn-primary-brand {
  border: 1px solid var(--brand);
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(69, 111, 105, .24);
}

.btn-primary-brand:hover,
.btn-primary-brand:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brand-light);
  background: var(--brand-dark);
  box-shadow: 0 18px 42px rgba(69, 111, 105, .34);
}

.btn-outline-brand {
  border: 1px solid rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(12px);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.11);
}

/* ======================================================================
   PREMIUM NAVIGATION
   ====================================================================== */
#mainNav {
  padding: 18px 0;
  background: transparent;
  transition: padding .35s var(--ease-premium), transform .35s var(--ease-premium);
}

#mainNav .container {
  min-height: 78px;
  padding: 10px 14px 10px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(8, 20, 18, .56);
  box-shadow: 0 14px 50px rgba(0,0,0,.10);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  transition: min-height .35s var(--ease-premium), background .35s ease,
              border-color .35s ease, box-shadow .35s ease;
}

#mainNav.scrolled {
  padding: 10px 0;
  background: transparent;
  box-shadow: none;
}

#mainNav.scrolled .container {
  min-height: 68px;
  border-color: rgba(255,255,255,.1);
  background: rgba(8, 20, 18, .92);
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
}

.brand-logo-link {
  flex: 0 0 auto;
  margin-right: 1rem;
}

.brand-logo-card {
  width: auto;
  max-width: none;
}

.site-logo {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.26));
}

.site-logo-nav {
  height: 54px;
  width: auto;
}

.site-logo-footer {
  height: 66px;
  width: auto;
}

#mainNav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem .78rem !important;
  color: rgba(255,255,255,.72) !important;
  font-family: var(--ff-utility);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: .78rem;
  right: .78rem;
  bottom: .35rem;
  height: 1px;
  background: var(--brand-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-premium);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff !important;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

#mainNav .btn-primary-brand {
  min-height: 44px;
  padding-inline: 1.35rem !important;
  box-shadow: none;
}

.navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(111,153,147,.22);
}

/* ======================================================================
   PREMIUM HERO
   ====================================================================== */
.hero-section {
  min-height: max(860px, 100svh);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 14% 24%, rgba(111,153,147,.18), transparent 27%),
    radial-gradient(circle at 82% 18%, rgba(200,173,118,.08), transparent 18%),
    linear-gradient(135deg, #06100f 0%, #0b1a18 48%, #102824 100%);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,10,9,.24), transparent 48%),
    linear-gradient(180deg, transparent 65%, rgba(2,9,8,.5));
}

.hero-bg-pattern {
  z-index: -1;
  background-image: var(--brand-pattern), var(--brand-pattern);
  background-repeat: no-repeat;
  background-size: min(38vw, 520px) auto, min(18vw, 230px) auto;
  background-position: right -90px top 15%, left -70px bottom 12%;
  opacity: .09;
}

.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 84%);
}

.hero-section .hero-container {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 148px;
  padding-bottom: 120px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.hero-eyebrow {
  margin-bottom: 1.35rem;
}

.hero-title {
  margin: 0;
  max-width: 780px;
  color: #f7f6f1;
  font-size: clamp(4.2rem, 7.2vw, 7.7rem);
  font-weight: 600;
  letter-spacing: -.062em;
  line-height: .82;
  text-wrap: balance;
}

.hero-title .hero-accent {
  display: block;
  color: var(--brand-light);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
}

.hero-slogan {
  margin: 1.55rem 0 .85rem;
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  letter-spacing: .18em;
}

.hero-desc {
  max-width: 610px;
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.2rem;
  margin-top: 2.4rem;
  color: rgba(255,255,255,.58);
  font-family: var(--ff-utility);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.hero-trust-row i {
  color: var(--brand-light);
}

.hero-visual {
  position: relative;
  width: min(100%, 610px);
  margin-left: auto;
  padding: 0 20px 30px 40px;
}

.hero-main-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px 92px 12px 12px;
  background:
    linear-gradient(145deg, rgba(111,153,147,.22), rgba(8,20,18,.92)),
    var(--night-2);
  box-shadow: var(--shadow-deep);
}

.hero-main-media::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px 72px 7px 7px;
  pointer-events: none;
}

.hero-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.06) brightness(.86);
  transform: scale(1.015);
  transition: transform 1.2s var(--ease-premium), filter .7s ease;
}

.hero-main-media:hover img {
  transform: scale(1.055);
  filter: saturate(.9) contrast(1.07) brightness(.9);
}

.hero-main-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,15,13,.05), rgba(5,15,13,.72) 88%),
    linear-gradient(90deg, rgba(5,15,13,.28), transparent 44%);
}

.hero-media-caption {
  position: absolute;
  z-index: 4;
  left: 42px;
  right: 42px;
  bottom: 36px;
  display: grid;
  gap: .25rem;
  color: white;
}

.hero-media-caption span {
  color: var(--brand-light);
  font-family: var(--ff-utility);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero-media-caption strong {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
}

.hero-media-caption small {
  color: rgba(255,255,255,.66);
  font-size: .78rem;
}

.hero-quality-card {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 0;
  width: min(270px, 62%);
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(10,25,22,.88);
  box-shadow: 0 20px 55px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}

.hero-quality-card .quality-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(111,153,147,.16);
  color: var(--brand-light);
  font-size: 1.2rem;
}

.hero-quality-card strong {
  display: block;
  color: white;
  font-family: var(--ff-utility);
  font-size: .79rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-quality-card span {
  display: block;
  margin-top: .2rem;
  color: rgba(255,255,255,.54);
  font-size: .72rem;
}

.hero-monogram {
  position: absolute;
  z-index: 5;
  top: -28px;
  right: -3px;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(111,153,147,.12);
  backdrop-filter: blur(16px);
}

.hero-monogram img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  opacity: .9;
}

.hero-stats {
  position: relative;
  z-index: 5;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(4,13,11,.42);
  backdrop-filter: blur(14px);
}

.hero-stats .container {
  flex: 0 0 auto;
  width: min(100% - 2rem, 1320px);
  padding-top: 0;
  padding-bottom: 0;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  min-height: 112px;
  justify-content: center;
  align-items: flex-start;
  padding: 1.25rem 1.6rem;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-num {
  color: #fff;
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  letter-spacing: -.035em;
}

.stat-label {
  margin-top: .38rem;
  color: rgba(255,255,255,.46);
  font-size: .65rem;
  letter-spacing: .12em;
}

/* ======================================================================
   ABOUT
   ====================================================================== */
#about {
  background:
    linear-gradient(90deg, transparent 0 67%, rgba(111,153,147,.035) 67% 100%),
    var(--paper);
}

#about .row.mb-5,
#services .row.mb-5,
#projects .row.mb-5,
#team .row.mb-5,
#faq .row.mb-5,
#contact .row.mb-5 {
  margin-bottom: clamp(2.7rem, 5vw, 5rem) !important;
}

.about-img-grid {
  padding: 0 74px 74px 0;
}

.about-img-main {
  position: relative;
}

.about-img-main::before {
  content: "";
  position: absolute;
  inset: -20px 20px 20px -20px;
  z-index: -1;
  border: 1px solid rgba(111,153,147,.26);
  border-radius: var(--radius-lg);
}

.about-img-main img {
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  filter: saturate(.88) contrast(1.02);
}

.about-img-accent {
  right: 0;
  bottom: 0;
  width: 52%;
  border: 10px solid var(--paper);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(8,20,18,.18);
}

.about-img-accent img {
  height: auto;
  aspect-ratio: 4 / 3;
}

.experience-badge {
  position: absolute;
  z-index: 5;
  left: -28px;
  top: 42px;
  width: 132px;
  min-height: 132px;
  display: grid;
  place-content: center;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: var(--brand-dark);
  color: white;
  box-shadow: 0 18px 45px rgba(38,74,70,.24);
  text-align: center;
}

.experience-badge small,
.experience-badge span {
  font-family: var(--ff-utility);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.experience-badge strong {
  display: block;
  margin: .1rem 0;
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: .95;
}

.ceo-card {
  padding: clamp(1.8rem, 3vw, 2.65rem);
  border: 1px solid rgba(111,153,147,.15);
  border-left: 0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(111,153,147,.09), rgba(255,255,255,.92)),
    white;
  box-shadow: var(--shadow-soft);
}

.ceo-card::after {
  width: 240px;
  right: -84px;
  opacity: .045;
}

.ceo-quote-mark {
  color: var(--brand-dark);
  font-size: 6.5rem;
  opacity: .22;
}

.ceo-quote {
  max-width: 600px;
  color: var(--ink-mid);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.ceo-avatar {
  width: 52px;
  height: 52px;
  background: var(--night-2);
  box-shadow: 0 8px 22px rgba(8,20,18,.16);
}

.mv-card {
  min-height: 180px;
  padding: 1.45rem;
  border-color: rgba(23,32,30,.09);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.mv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111,153,147,.38);
  box-shadow: var(--shadow-soft);
}

.mv-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.values-row {
  gap: .55rem;
}

.value-tag {
  padding: .48rem .85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(111,153,147,.09);
  color: var(--brand-deep);
}

.about-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-top: 1rem;
}

.about-proof {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.about-proof strong {
  display: block;
  color: var(--ink);
  font-family: var(--ff-utility);
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.about-proof span {
  display: block;
  margin-top: .35rem;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.5;
}

/* ======================================================================
   SERVICES
   ====================================================================== */
#services {
  overflow: hidden;
}

.services-grid {
  counter-reset: service;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 2rem 1.8rem 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(19,40,36,.42);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.service-card::before {
  counter-increment: service;
  content: counter(service, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,.16);
  font-family: var(--ff-display);
  font-size: 2.5rem;
  line-height: 1;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--champagne));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-premium);
}

.service-card:hover {
  transform: translateY(-9px);
  border-color: rgba(167,199,194,.34);
  background:
    linear-gradient(145deg, rgba(111,153,147,.14), rgba(255,255,255,.03)),
    rgba(19,40,36,.66);
  box-shadow: 0 28px 64px rgba(0,0,0,.22);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(167,199,194,.18);
  border-radius: 18px;
  background: rgba(111,153,147,.11);
  color: var(--brand-light);
  font-size: 1.35rem;
}

.service-card:hover .service-icon {
  transform: rotate(-5deg) scale(1.05);
  background: var(--brand);
}

.service-card h5 {
  max-width: 85%;
  margin-top: .35rem;
  color: white;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.service-card p {
  margin-top: .75rem;
  color: rgba(255,255,255,.54);
  line-height: 1.72;
}

.service-more {
  margin-top: 1.35rem;
  color: var(--brand-light);
  letter-spacing: .1em;
}

.qa-banner {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-color: rgba(167,199,194,.18);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(111,153,147,.14), rgba(255,255,255,.025));
}

.qa-banner::after {
  width: 230px;
  right: -70px;
  opacity: .07;
}

.qa-shield-icon {
  color: var(--champagne);
}

/* Delivery process */
.delivery-process {
  background:
    linear-gradient(180deg, rgba(111,153,147,.035), transparent 44%),
    var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.process-card {
  position: relative;
  min-height: 280px;
  padding: 2rem 1.7rem;
  background: var(--paper);
}

.process-card::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 86px;
  aspect-ratio: 1;
  background: var(--brand-pattern) center / contain no-repeat;
  opacity: .035;
}

.process-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(111,153,147,.26);
  border-radius: 50%;
  color: var(--brand-dark);
  font-family: var(--ff-utility);
  font-weight: 700;
  letter-spacing: .06em;
}

.process-card h3 {
  margin: 3rem 0 .7rem;
  font-family: var(--ff-display);
  font-size: 1.65rem;
  font-weight: 600;
}

.process-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.65;
}

/* ======================================================================
   PROJECT PORTFOLIO
   ====================================================================== */
#projects {
  background:
    linear-gradient(180deg, #f7f5f0 0%, var(--paper) 32%),
    var(--paper);
}

.project-toolbar,
.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.project-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 30px rgba(8,20,18,.045);
}

.filter-btn {
  min-height: 42px;
  padding: .55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .09em;
}

.filter-btn:hover {
  border-color: transparent;
  background: rgba(111,153,147,.09);
  color: var(--brand-deep);
}

.filter-btn.active {
  border-color: transparent;
  background: var(--night-2);
  color: white;
  box-shadow: 0 8px 20px rgba(8,20,18,.18);
}

.project-count-label {
  color: var(--ink-soft);
  font-family: var(--ff-utility);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#projectGrid,
.project-index-grid {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.4rem;
}

#projectGrid > .project-item,
.project-index-grid > .project-item,
.project-index-grid > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
  grid-column: span 4;
}

#projectGrid > .project-item:nth-child(1),
#projectGrid > .project-item:nth-child(8),
.project-index-grid > .project-item:nth-child(1),
.project-index-grid > .project-item:nth-child(8) {
  grid-column: span 8;
}

.project-card {
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 46px rgba(8,20,18,.07);
  cursor: pointer;
  transition: transform .55s var(--ease-premium), box-shadow .55s var(--ease-premium);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-9px);
  box-shadow: 0 28px 70px rgba(8,20,18,.14);
}

.project-img-wrap {
  height: 340px;
  background:
    linear-gradient(135deg, rgba(111,153,147,.25), rgba(8,20,18,.86)),
    var(--night-2);
}

#projectGrid > .project-item:nth-child(1) .project-img-wrap,
#projectGrid > .project-item:nth-child(8) .project-img-wrap,
.project-index-grid > .project-item:nth-child(1) .project-img-wrap,
.project-index-grid > .project-item:nth-child(8) .project-img-wrap {
  height: 420px;
}

.project-img-wrap img {
  filter: saturate(.88) contrast(1.02);
  transform: scale(1.005);
  transition: transform .8s var(--ease-premium), filter .5s ease;
}

.project-card:hover .project-img-wrap img,
.project-card:focus-visible .project-img-wrap img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.03);
}

.project-image-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,14,12,.02), rgba(5,14,12,.56));
  pointer-events: none;
}

.project-card-topline {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-badge {
  position: static;
  padding: .48rem .78rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(8,20,18,.62) !important;
  color: white !important;
  backdrop-filter: blur(12px);
}

.project-badge.completed::before,
.project-badge.ongoing::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .4rem;
  border-radius: 50%;
  background: var(--brand-light);
  vertical-align: middle;
}

.project-badge.ongoing::before {
  background: #e4b96a;
  box-shadow: 0 0 0 4px rgba(228,185,106,.14);
}

.project-sequence {
  color: rgba(255,255,255,.72);
  font-family: var(--ff-display);
  font-size: 1.15rem;
}

.gallery-photo-count {
  z-index: 3;
  left: 1rem;
  bottom: 1rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,20,18,.66);
  backdrop-filter: blur(12px);
}

.gallery-hint {
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: .75rem;
  background: rgba(8,20,18,.18);
  backdrop-filter: blur(2px);
}

.gallery-hint-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
}

.gallery-hint > span:last-child {
  font-size: .72rem;
  letter-spacing: .12em;
}

.project-info {
  padding: 1.55rem 1.55rem 1.7rem;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-location {
  color: var(--brand-dark);
}

.project-card-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-mid);
  transition: transform .35s var(--ease-premium), background .35s ease, color .35s ease;
}

.project-card:hover .project-card-arrow {
  transform: rotate(45deg);
  background: var(--night-2);
  color: white;
}

.project-card-title,
.project-info h5 {
  margin: .8rem 0 .55rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -.025em;
  line-height: 1.05;
}

.project-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-seo-link {
  margin-top: 2.5rem !important;
}

/* Fullscreen gallery */
.gallery-overlay {
  padding: 1.25rem;
  background: rgba(3,10,9,.92);
  backdrop-filter: blur(18px) saturate(115%);
}

.gallery-modal {
  max-width: 1320px;
  max-height: calc(100svh - 2.5rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 5%, rgba(111,153,147,.12), transparent 20%),
    #0b1816;
  box-shadow: 0 50px 140px rgba(0,0,0,.66);
}

.gallery-header {
  padding: 1.3rem 1.6rem 1rem;
}

.gallery-modal-title {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.gallery-close,
.gallery-nav {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
}

.gallery-close:hover,
.gallery-nav:hover {
  background: var(--brand);
}

.gallery-main-wrap {
  height: min(62vh, 650px);
  border-radius: 18px;
  background: rgba(0,0,0,.28);
}

.gallery-main-img {
  border-radius: 12px;
}

.gallery-thumb {
  border-radius: 9px;
  background: rgba(255,255,255,.05);
}

.gallery-thumb.active {
  border-color: var(--brand-light);
}

/* ======================================================================
   TEAM + FAQ
   ====================================================================== */
.org-chart {
  padding: 2rem;
  border: 1px solid rgba(23,32,30,.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
}

.org-node {
  border-color: rgba(23,32,30,.1);
  border-radius: 18px;
  box-shadow: none;
}

.ceo-node {
  border-top: 0;
  background: var(--night-2);
}

.ceo-node strong,
.ceo-node span {
  color: white;
}

.ceo-node span {
  opacity: .55;
}

.org-node-icon {
  border-radius: 12px;
  background: var(--brand-dark);
}

.team-card,
.manpower-card {
  height: 100%;
  border-color: rgba(23,32,30,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 38px rgba(8,20,18,.05);
}

.team-card {
  padding: 2rem 1.5rem;
}

.team-card:hover,
.manpower-card:hover {
  transform: translateY(-7px);
  border-color: rgba(111,153,147,.3);
  box-shadow: var(--shadow-soft);
}

.avatar-placeholder {
  width: 82px;
  height: 82px;
  border: 6px solid rgba(111,153,147,.10);
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 30px rgba(69,111,105,.2);
}

.team-card h5 {
  font-size: 1.42rem;
}

.manpower-card {
  padding: 1.8rem;
}

.manpower-card i {
  color: var(--brand-dark);
}

.faq-section {
  background:
    linear-gradient(180deg, rgba(111,153,147,.035), transparent 50%),
    var(--paper);
}

.faq-list {
  max-width: 1040px;
  gap: .7rem;
}

.faq-item {
  border-color: rgba(23,32,30,.09);
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 28px rgba(8,20,18,.035);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.faq-item[open] {
  border-color: rgba(111,153,147,.3);
  box-shadow: 0 16px 42px rgba(8,20,18,.07);
}

.faq-item summary {
  padding: 1.35rem 4rem 1.35rem 1.45rem;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.faq-item summary::after {
  width: 32px;
  height: 32px;
  right: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(111,153,147,.09);
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.faq-item p {
  max-width: 850px;
  padding: 0 1.45rem 1.45rem;
  line-height: 1.75;
}

/* ======================================================================
   CONTACT
   ====================================================================== */
#contact {
  background:
    radial-gradient(circle at 82% 12%, rgba(111,153,147,.15), transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(200,173,118,.06), transparent 22%),
    var(--night);
}

#contact::before {
  opacity: .08;
}

.contact-layout {
  align-items: stretch;
}

.contact-info-block,
.contact-form {
  height: 100%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 22px 70px rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
}

.contact-info-block {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  justify-content: center;
}

.contact-info-intro {
  margin-bottom: .6rem;
}

.contact-info-intro span {
  color: var(--brand-light);
  font-family: var(--ff-utility);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact-info-intro h3 {
  margin: .55rem 0 .35rem;
  color: white;
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
}

.contact-info-intro p {
  color: rgba(255,255,255,.5);
  font-size: .86rem;
  line-height: 1.65;
}

.contact-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.contact-item:last-of-type {
  border-bottom: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(167,199,194,.16);
  border-radius: 15px;
  background: rgba(111,153,147,.10);
}

.contact-form {
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.form-input-dark {
  min-height: 56px;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.045) !important;
  color: white !important;
  padding: .9rem 1rem !important;
}

textarea.form-input-dark {
  min-height: 150px;
  resize: vertical;
}

.form-input-dark::placeholder {
  color: rgba(255,255,255,.35) !important;
}

.form-input-dark:focus {
  border-color: rgba(167,199,194,.65) !important;
  background: rgba(255,255,255,.07) !important;
  box-shadow: 0 0 0 4px rgba(111,153,147,.13) !important;
}

.captcha-card {
  min-height: 56px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.captcha-image {
  height: 42px;
  border-radius: 10px;
}

.captcha-refresh {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.contact-submit {
  min-height: 58px;
}

.form-status {
  border-radius: 13px;
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.main-footer {
  position: relative;
  overflow: hidden;
  padding: 78px 0 0;
  background: #040d0c;
}

.main-footer::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  aspect-ratio: 1;
  background: var(--brand-pattern) center / contain no-repeat;
  opacity: .04;
}

.main-footer .container {
  position: relative;
  z-index: 1;
}

.footer-heading {
  color: rgba(255,255,255,.55);
  letter-spacing: .16em;
}

.footer-text {
  max-width: 360px;
  color: rgba(255,255,255,.45);
  font-size: .86rem;
}

.footer-links {
  gap: .62rem;
}

.footer-links li a,
.footer-links li span {
  color: rgba(255,255,255,.47);
}

.footer-links li a:hover {
  color: var(--brand-light);
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.45rem 0;
  border-color: rgba(255,255,255,.08);
}

.social-btn {
  border-radius: 50%;
}

.back-to-top {
  width: 50px;
  height: 50px;
  right: 1.35rem;
  bottom: 1.35rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(69,111,105,.92);
  box-shadow: 0 14px 36px rgba(8,20,18,.24);
  backdrop-filter: blur(12px);
}

/* ======================================================================
   INNER / SERVICE / PROJECT PAGES
   ====================================================================== */
.inner-page {
  background: var(--paper);
}

.inner-page #mainNav .container {
  background: rgba(8,20,18,.9);
}

.inner-hero {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 92px;
  background:
    linear-gradient(90deg, rgba(5,15,13,.94) 0%, rgba(5,15,13,.74) 58%, rgba(5,15,13,.56)),
    url('https://lusailint.qa/assets/images/projects/33-flat-building/Picture%201.webp') center / cover no-repeat;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
}

.inner-hero::after {
  width: min(34vw, 430px);
  right: -90px;
  top: 92px;
  opacity: .09;
}

.inner-title {
  max-width: 920px;
  margin-bottom: 1.2rem;
  font-size: clamp(3.4rem, 7.5vw, 7rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .9;
  text-wrap: balance;
}

.inner-lead {
  max-width: 790px;
  color: rgba(255,255,255,.68);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.75;
}

.breadcrumb-lite {
  margin-bottom: 1.4rem;
  color: rgba(255,255,255,.48);
}

.content-shell {
  max-width: 1040px;
  padding: clamp(1.6rem, 4vw, 4rem);
  border: 1px solid rgba(23,32,30,.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.content-shell h2 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  letter-spacing: -.04em;
  line-height: 1;
}

.content-shell h3 {
  font-size: 1.7rem;
}

.content-shell p,
.content-shell li {
  font-size: .98rem;
  line-height: 1.8;
}

.service-scope-grid {
  gap: .75rem;
}

.service-scope-item {
  min-height: 92px;
  align-items: center;
  border-color: rgba(23,32,30,.08);
  border-radius: 16px;
  background: var(--sand);
}

.service-scope-item i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(111,153,147,.11);
  color: var(--brand-dark);
}

.inner-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 20%, rgba(111,153,147,.17), transparent 24%),
    var(--night-2);
}

.inner-cta::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -65px;
  width: 220px;
  aspect-ratio: 1;
  background: var(--brand-pattern) center / contain no-repeat;
  opacity: .08;
}

.inner-cta > * {
  position: relative;
  z-index: 1;
}

.inner-cta h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -.035em;
}

/* Portfolio page */
.projects-page .inner-hero {
  background:
    linear-gradient(90deg, rgba(5,15,13,.93) 0%, rgba(5,15,13,.70) 62%, rgba(5,15,13,.48)),
    url('https://lusailint.qa/assets/images/projects/luxury-private-majlis-alzaghwa/picture%201.webp') center / cover no-repeat;
}

.portfolio-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.8rem;
}

.portfolio-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.68);
  font-family: var(--ff-utility);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.projects-page .section-pad {
  background: var(--paper);
}

.projects-page .project-index-grid {
  margin-top: 0;
}

.projects-page .inner-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.projects-page .inner-cta p {
  margin-bottom: 0;
}

/* Reveal animation */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .75s var(--ease-premium) var(--reveal-delay, 0ms),
    transform .75s var(--ease-premium) var(--reveal-delay, 0ms);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1199.98px) {
  .container {
    width: min(100% - 2rem, 1120px);
  }

  .hero-title {
    font-size: clamp(4rem, 7vw, 6.3rem);
  }

  .hero-visual {
    max-width: 520px;
  }

  #projectGrid > .project-item,
  .project-index-grid > .project-item,
  .project-index-grid > [class*="col-"] {
    grid-column: span 6;
  }

  #projectGrid > .project-item:nth-child(1),
  #projectGrid > .project-item:nth-child(8),
  .project-index-grid > .project-item:nth-child(1),
  .project-index-grid > .project-item:nth-child(8) {
    grid-column: span 6;
  }

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

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 90px;
  }

  #mainNav {
    padding: 10px 0;
  }

  #mainNav .container,
  #mainNav.scrolled .container {
    min-height: 64px;
    padding: 8px 10px 8px 14px;
    border-radius: 18px;
    background: rgba(8,20,18,.94);
  }

  .site-logo-nav {
    height: 45px;
  }

  #navMenu {
    margin-top: .75rem;
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(8,20,18,.98);
    box-shadow: 0 22px 55px rgba(0,0,0,.24);
  }

  #mainNav .nav-link {
    width: 100%;
    min-height: 48px;
    padding-inline: .8rem !important;
  }

  #mainNav .nav-link::after {
    display: none;
  }

  #mainNav .nav-item.ms-lg-3 {
    margin-top: .55rem;
  }

  #mainNav .btn-primary-brand {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section .hero-container {
    padding-top: 140px;
    padding-bottom: 78px;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-title {
    font-size: clamp(4rem, 11vw, 6.4rem);
  }

  .hero-visual {
    width: min(100%, 640px);
    margin: 2.8rem auto 0;
  }

  .hero-main-media {
    aspect-ratio: 5 / 4;
  }

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

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .about-img-grid {
    max-width: 720px;
    margin: 0 auto 1.5rem;
  }

  .process-grid {
    margin-top: 2.5rem;
  }

  .contact-info-block,
  .contact-form {
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .container {
    width: min(100% - 1.25rem, 720px);
  }

  .section-pad {
    padding: 4.7rem 0;
  }

  .section-title {
    font-size: clamp(2.65rem, 12vw, 4.1rem);
  }

  .section-body-text {
    margin-top: 1rem;
  }

  .hero-section .hero-container {
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .hero-title {
    font-size: clamp(3.35rem, 16vw, 5.05rem);
    line-height: .86;
  }

  .hero-desc {
    font-size: .97rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
  }

  .hero-visual {
    padding: 0 0 28px 18px;
  }

  .hero-main-media {
    aspect-ratio: 4 / 5;
    border-radius: 10px 62px 10px 10px;
  }

  .hero-main-media::before {
    inset: 11px;
    border-radius: 6px 48px 6px 6px;
  }

  .hero-media-caption {
    left: 27px;
    right: 27px;
    bottom: 31px;
  }

  .hero-quality-card {
    width: 76%;
    padding: .8rem;
  }

  .hero-monogram {
    top: -22px;
    right: -8px;
    width: 82px;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    min-height: 98px;
    padding: 1rem;
  }

  .about-img-grid {
    padding: 0 28px 46px 0;
  }

  .about-img-accent {
    display: block;
    width: 48%;
    border-width: 7px;
  }

  .experience-badge {
    left: -3px;
    top: 24px;
    width: 100px;
    min-height: 100px;
  }

  .experience-badge strong {
    font-size: 1.7rem;
  }

  .about-proof-grid {
    grid-template-columns: 1fr;
  }

  .mv-card {
    min-height: 165px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: auto;
  }

  .process-card h3 {
    margin-top: 1.8rem;
  }

  .project-toolbar,
  .portfolio-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .project-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-radius: 18px;
  }

  .filter-btn {
    padding-inline: .55rem;
  }

  .project-count-label {
    padding-left: .35rem;
  }

  #projectGrid,
  .project-index-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #projectGrid > .project-item,
  #projectGrid > .project-item:nth-child(1),
  #projectGrid > .project-item:nth-child(8),
  .project-index-grid > .project-item,
  .project-index-grid > .project-item:nth-child(1),
  .project-index-grid > .project-item:nth-child(8),
  .project-index-grid > [class*="col-"] {
    grid-column: 1;
  }

  .project-img-wrap,
  #projectGrid > .project-item:nth-child(1) .project-img-wrap,
  #projectGrid > .project-item:nth-child(8) .project-img-wrap,
  .project-index-grid > .project-item:nth-child(1) .project-img-wrap,
  .project-index-grid > .project-item:nth-child(8) .project-img-wrap {
    height: 310px;
  }

  .project-info {
    padding: 1.3rem;
  }

  .gallery-overlay {
    padding: .45rem;
  }

  .gallery-modal {
    max-height: calc(100svh - .9rem);
    border-radius: 18px;
  }

  .gallery-header {
    padding: 1rem;
  }

  .gallery-viewer {
    padding: .5rem .35rem;
  }

  .gallery-main-wrap {
    height: min(50vh, 430px);
    border-radius: 12px;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    background: rgba(8,20,18,.7);
  }

  .gallery-nav.prev {
    left: .7rem;
  }

  .gallery-nav.next {
    right: .7rem;
  }

  .gallery-thumbs {
    padding-inline: .8rem;
  }

  .org-chart {
    padding: 1.15rem;
  }

  .contact-info-block,
  .contact-form {
    border-radius: 20px;
  }

  .inner-hero {
    min-height: 500px;
    padding: 135px 0 70px;
  }

  .inner-title {
    font-size: clamp(3.2rem, 14vw, 5.15rem);
  }

  .content-shell {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .projects-page .inner-cta {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 1.2rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 1rem, 400px);
  }

  .site-logo-nav {
    max-width: 205px;
    height: 42px;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-trust-row {
    grid-template-columns: 1fr;
  }

  .hero-quality-card {
    width: 86%;
  }

  .project-img-wrap,
  #projectGrid > .project-item:nth-child(1) .project-img-wrap,
  #projectGrid > .project-item:nth-child(8) .project-img-wrap {
    height: 275px;
  }

  .project-filters {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-main-media img,
  .project-img-wrap img,
  .project-card,
  .service-card,
  .team-card,
  .manpower-card,
  .fade-in {
    transition: none !important;
    transform: none !important;
  }
}

/* Compatibility refinements for static SEO fallbacks and active inner pages */
#mainNav .nav-link[aria-current="page"] {
  color: #fff !important;
}

#mainNav .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.project-badge {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  right: auto;
}

.project-card-topline .project-badge {
  position: static;
  inset: auto;
}

.project-index-grid > [class*="col-"]:nth-child(1),
.project-index-grid > [class*="col-"]:nth-child(8) {
  grid-column: span 8;
}

.gallery-thumb {
  appearance: none;
  padding: 0;
  border: 2px solid transparent;
}

@media (max-width: 1199.98px) {
  .project-index-grid > [class*="col-"]:nth-child(1),
  .project-index-grid > [class*="col-"]:nth-child(8) {
    grid-column: span 6;
  }
}

@media (max-width: 767.98px) {
  .project-index-grid > [class*="col-"]:nth-child(1),
  .project-index-grid > [class*="col-"]:nth-child(8) {
    grid-column: 1;
  }
}
