:root {
  --black: #050505;
  --ink: #141414;
  --muted: #6f6f6f;
  --line: #dfdedb;
  --paper: #fff7f4;
  --white: #ffffff;
  --gold: #e13d38;
  --burgundy: #e6413a;
  --burgundy-dark: #9f1f1f;
  --rose: #ffb6aa;
  --green: #3a554a;
  --rust: #7a3e43;
  --blue: #2f4f5d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 64px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, height 220ms ease;
}

.site-header.scrolled,
.site-header.light {
  background: rgba(159, 31, 31, 0.9);
  backdrop-filter: blur(14px);
  height: 74px;
}

.brand img { width: clamp(120px, 10vw, 170px); height: auto; max-height: 54px; object-fit: contain; }

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  margin-inline: auto;
  padding-inline: 24px;
}

.desktop-nav a {
  position: relative;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 28px;
}

.nav-dropdown > a {
  display: inline-block;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  min-width: 245px;
  padding: 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(159,31,31,0.18);
  box-shadow: var(--shadow);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 3;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  color: var(--ink);
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 900;
}

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

.nav-dropdown-menu a:hover {
  background: #fff0ec;
  color: var(--burgundy-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
}

.language { position: relative; }
.language button {
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  min-width: 42px;
  font-weight: 700;
}
.language-list {
  position: absolute;
  top: 30px;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 10px;
  min-width: 68px;
  background: rgba(180, 38, 35, 0.94);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: 180ms ease;
}
.language:hover .language-list,
.language:focus-within .language-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.phone-link {
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu-toggle {
  width: 74px;
  height: 42px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 961px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
}

.menu-toggle span {
  position: absolute;
  opacity: 0;
  font-size: 11px;
  font-weight: 800;
  transform: translateY(-20px);
  transition: 180ms ease;
}

.menu-toggle i {
  display: block;
  height: 2px;
  width: 46px;
  background: currentColor;
  justify-self: end;
  transition: transform 220ms ease, opacity 180ms ease;
}

body.menu-open .menu-toggle span { opacity: 1; }
body.menu-open .menu-toggle i:nth-of-type(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-toggle i:nth-of-type(2) { opacity: 0; }
body.menu-open .menu-toggle i:nth-of-type(3) { transform: translateY(-8px) rotate(-45deg); }

.mega-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

body.menu-open .mega-menu {
  pointer-events: auto;
  opacity: 1;
}

.menu-image {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.64)),
    url("/mesam-theme/assets/images/hero-halic.webp") center / cover;
  transform: translateX(-100%);
  transition: transform 380ms ease;
}

.menu-panel {
  position: relative;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px clamp(32px, 6vw, 90px) 50px;
  transform: translateX(100%);
  transition: transform 380ms ease 80ms;
  overflow: hidden;
}

body.menu-open .menu-image,
body.menu-open .menu-panel { transform: translateX(0); }

.main-menu,
.submenu-stack ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu a,
.main-menu button,
.submenu-stack a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--white);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: 0;
}

.main-menu button::after {
  content: "+";
  margin-left: 14px;
  color: var(--gold);
}

.submenu-stack {
  position: absolute;
  inset: 110px clamp(32px, 6vw, 90px) 90px;
  background: var(--black);
  transform: translateX(110%);
  transition: 260ms ease;
  overflow-y: auto;
}

.submenu-stack.active { transform: translateX(0); }

.submenu { display: none; }
.submenu.active { display: block; }

.back-button {
  margin-bottom: 28px;
  background: transparent;
  color: var(--gold);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.menu-social {
  margin-top: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #c8c2b5;
}
.menu-social span {
  width: 1px;
  background: #444;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 5vw, 76px) 72px;
  color: var(--white);
  overflow: hidden;
}

.hero.compact { min-height: 56svh; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero) center / cover no-repeat;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.76), rgba(0,0,0,0.26) 55%, rgba(0,0,0,0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 830px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 900;
  margin-bottom: 18px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.hero p {
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.38;
  max-width: 720px;
}

.hero-controls {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.icon-button,
.filter-button,
.button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  transition: 180ms ease;
}

.icon-button {
  width: 46px;
  padding: 0;
  font-size: 24px;
}

.button:hover,
.filter-button:hover,
.filter-button.active,
.icon-button:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.home-hero {
  align-items: center;
}

.home-hero::after {
  background:
    linear-gradient(90deg, rgba(98,18,18,0.78), rgba(98,18,18,0.22) 62%, rgba(98,18,18,0.48)),
    radial-gradient(circle at 78% 24%, rgba(230,65,58,0.32), transparent 34%);
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 76px);
  bottom: 64px;
  width: min(330px, calc(100vw - 40px));
  padding: 22px;
  border-left: 2px solid var(--gold);
  background: rgba(6, 7, 8, 0.58);
  backdrop-filter: blur(14px);
}

.hero-note span {
  display: block;
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-note strong {
  font-size: 18px;
}

.home-slider {
  position: relative;
  min-height: 100svh;
  background: #180d0b;
  overflow: hidden;
  color: var(--white);
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
  overflow: hidden;
}

.home-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slide-title {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 76px);
  bottom: clamp(84px, 12vw, 150px);
  max-width: 760px;
}

.home-slide-title h1 {
  margin: 0;
  font-size: clamp(48px, 8.5vw, 128px);
  line-height: 0.92;
  color: var(--white);
  text-shadow: 0 18px 50px rgba(0,0,0,0.46);
}

.home-slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 24px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(159, 31, 31, 0.88);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 18px 46px rgba(0,0,0,0.24);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.home-slide-button:hover {
  background: var(--red);
  border-color: var(--white);
  transform: translateY(-2px);
}

.home-slider-controls {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 76px);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-slider-controls > button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.62);
  background: rgba(0,0,0,0.22);
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}

.home-slider-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-slider-dots button {
  width: 34px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
}

.home-slider-dots button.active {
  background: var(--white);
}

.section {
  padding: clamp(64px, 8vw, 126px) clamp(20px, 5vw, 76px);
}

.section.dark {
  background: linear-gradient(135deg, #b72b28, #2a1010 76%);
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.section h2 {
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1;
  margin: 0;
}

.lead {
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}

.dark .lead { color: #c9c3b8; }

.feature-grid,
.project-grid,
.news-grid,
.values-grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.project-card,
.news-card,
.value-card,
.person-card,
.form-panel,
.contact-box {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.feature-card,
.value-card,
.contact-box {
  padding: clamp(24px, 3vw, 38px);
}

.feature-card img,
.news-card img,
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card h3,
.project-card h3,
.news-card h3,
.value-card h3,
.person-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

.project-card,
.news-card {
  overflow: hidden;
  transition: transform 180ms ease;
}

.project-card:hover,
.news-card:hover { transform: translateY(-5px); }

.impact-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff0eb;
  border-bottom: 1px solid var(--line);
}

.impact-band div {
  padding: clamp(26px, 4vw, 50px) clamp(18px, 4vw, 52px);
  border-right: 1px solid var(--line);
}

.impact-band div:last-child { border-right: 0; }

.impact-band strong {
  display: block;
  font-size: clamp(36px, 5vw, 78px);
  line-height: 1;
}

.impact-band span {
  color: var(--muted);
  font-weight: 850;
}

.project-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 76px);
  background:
    linear-gradient(120deg, rgba(183,43,40,0.95), rgba(63,22,18,0.92)),
    #b72b28;
  color: var(--white);
  overflow: hidden;
}

.project-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 42%, rgba(255,255,255,0.18) 42% 42.4%, transparent 42.4%),
    linear-gradient(28deg, transparent 0 56%, rgba(255,255,255,0.06) 56% 56.2%, transparent 56.2%);
  pointer-events: none;
}

.showcase-copy,
.showcase-stage {
  position: relative;
  z-index: 1;
}

.showcase-copy h2 {
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.98;
  margin-bottom: 24px;
}

.showcase-copy p {
  color: #d3cec3;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}

.showcase-stage {
  min-width: 0;
}

.showcase-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 8px 26px;
  scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar { display: none; }

.showcase-card {
  position: relative;
  flex: 0 0 clamp(245px, 26vw, 380px);
  min-height: 520px;
  display: flex;
  align-items: end;
  overflow: hidden;
  scroll-snap-align: center;
  background: #222;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  opacity: 0.62;
  transform: scale(0.92);
  transition: 260ms ease;
}

.showcase-card.active {
  opacity: 1;
  transform: scale(1);
}

.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.82));
}

.showcase-card div {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.showcase-card span {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.showcase-card h3 {
  font-size: 28px;
  margin: 8px 0 10px;
}

.showcase-card p {
  color: #e8e2d8;
  line-height: 1.55;
}

.showcase-controls {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 18px;
}

.showcase-controls button {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(216,161,173,0.58);
  background: transparent;
  color: var(--white);
  font-size: 38px;
  cursor: pointer;
}

.showcase-progress {
  height: 2px;
  background: rgba(255,255,255,0.18);
}

.showcase-progress i {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--rose);
  transition: transform 260ms ease;
  transform-origin: left;
}

.sector-lab {
  padding: clamp(68px, 8vw, 118px) clamp(20px, 5vw, 76px);
  background: #fff4f0;
}

.services-lab {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,240,235,0.96)),
    #fff4f0;
  overflow: hidden;
}

.services-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 52%, rgba(230,65,58,0.12) 52% 52.3%, transparent 52.3%),
    radial-gradient(circle at 12% 14%, rgba(255,182,170,0.34), transparent 28%);
  pointer-events: none;
}

.services-lab > * {
  position: relative;
  z-index: 1;
}

.services-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: clamp(22px, 4vw, 52px);
  align-items: stretch;
}

.service-display {
  min-height: 520px;
  display: grid;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(96, 24, 22, 0.22);
  overflow: hidden;
}

.service-panel {
  display: none;
  grid-template-rows: minmax(260px, 0.95fr) auto;
  min-height: 520px;
  background: var(--white);
}

.service-panel.active {
  display: grid;
}

.service-panel figure {
  position: relative;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
}

.service-panel figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.18));
}

.service-panel figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-panel-body {
  padding: clamp(26px, 4vw, 52px);
}

.service-panel span {
  color: var(--burgundy);
  font-weight: 950;
  display: block;
  margin-bottom: 12px;
}

.service-panel h3 {
  max-width: 780px;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1;
  margin-bottom: 16px;
}

.service-panel p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.service-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  max-width: 720px;
  background: rgba(159,31,31,0.14);
}

.service-steps b {
  min-height: 54px;
  display: grid;
  place-items: center;
  background: #fff4f0;
  color: var(--burgundy);
  font-size: 13px;
  text-transform: uppercase;
}

.service-menu {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.service-menu button {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(159,31,31,0.14);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  text-align: left;
  padding: 18px;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(96, 24, 22, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-menu button:hover,
.service-menu button.active {
  transform: translateX(-8px);
  border-color: var(--burgundy);
  background: var(--white);
}

.service-menu span {
  color: var(--burgundy);
  font-weight: 950;
}

.service-menu strong {
  font-size: 18px;
}

.service-menu i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(159,31,31,0.3);
  position: relative;
}

.service-menu i::before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  border-top: 2px solid var(--burgundy);
  border-right: 2px solid var(--burgundy);
  transform: rotate(45deg);
}

.services-carousel-section {
  position: relative;
  padding: clamp(74px, 8vw, 120px) 0 clamp(70px, 8vw, 110px);
  background:
    linear-gradient(90deg, rgba(24, 17, 13, 0.94), rgba(24, 17, 13, 0.88)),
    radial-gradient(circle at 18% 18%, rgba(230,65,58,0.12), transparent 32%),
    #18110d;
  color: var(--white);
  overflow: hidden;
}

.services-carousel-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(255,255,255,0.08) 62% 62.2%, transparent 62.2%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 96px);
  opacity: 0.65;
  pointer-events: none;
}

.services-carousel-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 7vw, 100px);
  align-items: end;
  padding: 0 clamp(20px, 5vw, 76px);
  margin-bottom: clamp(44px, 6vw, 76px);
}

.services-carousel-head .eyebrow {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rose);
  color: var(--rose);
}

.services-carousel-head h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  color: var(--white);
}

.services-carousel-head p {
  color: #d8d1ca;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.service-all {
  min-width: 230px;
  background: #c8b46e;
  border-color: #c8b46e;
  color: #18110d;
}

.services-carousel-wrap {
  position: relative;
  z-index: 1;
}

.services-carousel {
  display: flex;
  gap: clamp(18px, 2.3vw, 34px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 clamp(20px, 5vw, 76px) 12px;
  scrollbar-width: none;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-card {
  position: relative;
  flex: 0 0 clamp(290px, 25vw, 430px);
  min-height: 560px;
  scroll-snap-align: start;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0,0,0,0.25);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.service-card-body {
  min-height: 190px;
  padding: 30px 34px 34px;
  background: var(--white);
}

.service-card-body h3 {
  font-size: 25px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.service-card-body p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.service-card-arrow {
  position: absolute;
  right: -7px;
  top: calc(100% - 225px);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #c8b46e;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 500;
}

.services-arrow {
  position: absolute;
  z-index: 2;
  top: 45%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
}

.services-arrow.prev {
  left: 14px;
}

.services-arrow.next {
  right: 14px;
}

.sector-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
}

.sector-tabs {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}

.sector-tabs button {
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 900;
  color: var(--muted);
}

.sector-tabs button.active {
  color: var(--ink);
  padding-left: 18px;
  border-left: 3px solid var(--burgundy);
}

.sector-panels {
  background: linear-gradient(135deg, #c7332f, #331412);
  color: var(--white);
  min-height: 390px;
  display: grid;
}

.sector-panels article {
  display: none;
  padding: clamp(30px, 5vw, 70px);
  align-content: center;
}

.sector-panels article.active {
  display: grid;
}

.sector-panels span {
  color: var(--gold);
  font-weight: 950;
  margin-bottom: 16px;
}

.sector-panels h3 {
  font-size: clamp(30px, 4.4vw, 60px);
  margin-bottom: 18px;
}

.sector-panels p {
  color: #d3cec3;
  font-size: 18px;
  line-height: 1.8;
  max-width: 690px;
}

.soft-section {
  background: #fff0eb;
}

.reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.featured-projects {
  position: relative;
  min-height: 900px;
  padding: 82px clamp(20px, 5vw, 76px) 78px;
  background:
    linear-gradient(180deg, rgba(13, 15, 18, 0.88), rgba(13, 15, 18, 0.94)),
    linear-gradient(135deg, transparent 0 34%, rgba(255,255,255,0.045) 34% 48%, transparent 48%),
    #111417;
  color: var(--white);
  overflow: hidden;
}

.featured-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 0 46%, rgba(255,255,255,0.055) 46% 47%, transparent 47%),
    linear-gradient(-38deg, transparent 0 51%, rgba(255,255,255,0.035) 51% 52%, transparent 52%);
  opacity: 0.72;
  pointer-events: none;
}

.featured-title {
  position: relative;
  z-index: 1;
  width: min(720px, 88vw);
  min-height: 98px;
  margin: 0 auto 100px;
  border: 1px solid rgba(185, 154, 95, 0.92);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.featured-carousel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5.8vw, 86px);
  min-width: max-content;
  transform: translateX(0);
}

.featured-card {
  position: relative;
  width: clamp(210px, 17vw, 250px);
  height: clamp(350px, 32vw, 405px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transition: width 240ms ease, height 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.48);
  transition: background 240ms ease;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.featured-card.active {
  width: clamp(310px, 25vw, 350px);
  height: clamp(465px, 41vw, 525px);
  opacity: 1;
  transform: translateY(-8px);
}

.featured-card.active::after {
  background: rgba(5, 7, 10, 0);
}

.featured-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-align: center;
  font-weight: 850;
  font-size: 24px;
  line-height: 1.05;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.featured-logo small {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.featured-card.active .featured-logo {
  opacity: 0;
}

.featured-controls {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 92px;
}

.featured-controls button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-weight: 950;
  font-size: 22px;
  cursor: pointer;
  min-height: 46px;
}

.featured-controls span {
  font-size: 46px;
  line-height: 0.7;
  font-weight: 300;
}

.featured-controls i {
  width: 70px;
  height: 1px;
  background: rgba(255,255,255,0.36);
}

.card-body { padding: 24px; }

.meta {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-top: 42px;
}

.stat {
  padding: 28px 18px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
}
.stat span { color: #d4cec2; font-weight: 800; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item strong {
  color: var(--gold);
  font-size: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-button {
  color: var(--ink);
  min-height: 42px;
}

.form-panel {
  padding: clamp(24px, 4vw, 46px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid label,
.form-grid .full {
  display: grid;
  gap: 8px;
}

.form-grid .full { grid-column: 1 / -1; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #faf9f6;
  min-height: 50px;
  padding: 12px 14px;
}

textarea { min-height: 130px; resize: vertical; }

.map {
  min-height: 410px;
  background:
    linear-gradient(135deg, rgba(185,154,95,0.88), rgba(45,82,104,0.86)),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,0.18) 22px 24px);
  display: grid;
  place-items: center;
  color: var(--white);
  padding: 30px;
  text-align: center;
}

.site-footer {
  background: #401313;
  color: #ddd6ca;
  padding: 58px clamp(20px, 5vw, 76px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.footer-logo { width: min(170px, 100%); height: auto; max-height: 88px; object-fit: contain; margin-bottom: 24px; }
.site-footer h2 { font-size: 18px; color: var(--white); }
.site-footer a { display: block; margin: 10px 0; }
.footer-contact-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.footer-contact-list p {
  margin: 0;
}

.site-footer .footer-mail {
  display: inline-block;
  margin: 0;
  color: var(--white);
  font-weight: 700;
  word-break: break-word;
}

.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.24);
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-socials a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.empty-state {
  padding: 40px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.project-detail-hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: 150px clamp(20px, 5vw, 76px) 76px;
  color: var(--white);
  overflow: hidden;
}

.project-detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.62));
}

.project-detail-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.project-detail-hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.9;
}

.project-detail-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 18px;
  line-height: 1.7;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.project-richtext {
  display: grid;
  gap: 22px;
  color: #292929;
  font-size: 16px;
  line-height: 1.75;
}

.project-richtext ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.project-richtext li {
  position: relative;
  padding-left: 24px;
}

.project-richtext li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.project-side-panel {
  position: sticky;
  top: 104px;
  background: var(--white);
  border: 1px solid #f0d6d0;
  padding: 30px;
  box-shadow: var(--shadow);
}

.project-side-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.project-side-panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.gallery-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.gallery-tabs button {
  border: 1px solid #e8b8af;
  background: var(--white);
  min-height: 48px;
  padding: 0 20px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.gallery-tabs button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.gallery-pane { display: none; }
.gallery-pane.active { display: block; }

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

.detail-gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece8e5;
}

.detail-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.detail-gallery-grid a:hover img {
  transform: scale(1.04);
}

.related-projects {
  background: #241514;
  color: var(--white);
}

.related-projects .lead,
.related-projects .meta {
  color: rgba(255,255,255,0.68);
}

.related-projects .project-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.inner-hero {
  position: relative;
  min-height: 54svh;
  display: flex;
  align-items: flex-end;
  padding: 145px clamp(20px, 5vw, 76px) 64px;
  color: var(--white);
  overflow: hidden;
  background: #2a1010;
}

.inner-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,0,0,0.12), rgba(20,0,0,0.58));
}

.inner-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.inner-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 106px);
  line-height: 0.96;
}

.inner-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.84);
}

.content-panel {
  background: var(--white);
  border: 1px solid #f0d6d0;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow);
}

.content-panel :where(p, li) {
  line-height: 1.75;
  color: #2b2b2b;
}

.content-panel h2,
.content-panel h3,
.content-panel h4 {
  color: var(--ink);
}

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

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid #f0d6d0;
  padding: 28px;
  min-height: 150px;
}

.contact-info-card span {
  display: block;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 10px;
}

.contact-map iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

body.lightbox-open {
  overflow: hidden;
}

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(8, 5, 5, 0.9);
}

.site-lightbox.active {
  display: flex;
}

.site-lightbox figure {
  margin: 0;
  width: min(1120px, 100%);
  max-height: 88svh;
  display: grid;
  gap: 14px;
}

.site-lightbox img {
  max-width: 100%;
  max-height: 80svh;
  object-fit: contain;
  justify-self: center;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.site-lightbox figcaption {
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.site-lightbox-close,
.site-lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  cursor: pointer;
}

.site-lightbox-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 34px;
}

.site-lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 74px;
  font-size: 48px;
  transform: translateY(-50%);
}

.site-lightbox-arrow.prev { left: 22px; }
.site-lightbox-arrow.next { right: 22px; }

@media (max-width: 960px) {
  .site-header { height: 76px; padding-inline: 18px; }
  .brand img { width: 132px; height: auto; max-height: 46px; }
  .desktop-nav { display: none; }
  .phone-link { display: none; }
  .mega-menu { grid-template-columns: 1fr; }
  .menu-image { display: none; }
  .menu-panel { padding: 94px 24px 36px; }
  .submenu-stack { inset: 94px 24px 80px; }
  .feature-grid,
  .project-grid,
  .listing-grid,
  .news-grid,
  .values-grid,
  .field-grid,
  .contact-info-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .section-head { align-items: start; flex-direction: column; }
  .hero-note {
    left: 20px;
    right: 20px;
    bottom: 28px;
    width: auto;
  }
  .impact-band,
  .project-showcase,
  .services-carousel-head,
  .services-shell,
  .sector-layout,
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-side-panel { position: static; }
  .detail-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .showcase-card {
    min-height: 440px;
  }
  .featured-projects {
    min-height: 760px;
    padding-top: 70px;
  }
  .featured-title { margin-bottom: 58px; min-height: 78px; }
  .featured-carousel {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    min-width: 0;
    padding: 0 10vw 18px;
  }
  .featured-card,
  .featured-card.active {
    width: 260px;
    height: 390px;
    scroll-snap-align: center;
    transform: none;
  }
  .featured-controls { margin-top: 38px; }
}

@media (max-width: 620px) {
  .hero { min-height: 88svh; padding-bottom: 46px; }
  .hero.compact { min-height: 48svh; }
  h1 { font-size: 42px; }
  .main-menu a,
  .main-menu button,
  .submenu-stack a { font-size: 26px; min-height: 42px; }
  .stats,
  .form-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .home-slide img {
    position: absolute;
    left: 50%;
    width: 154%;
    max-width: none;
    transform: translateX(-50%) scaleX(0.66);
    transform-origin: center center;
  }
  .home-slide.active img {
    transform: translateX(-50%) scaleX(0.66);
  }
  .home-slide-title {
    bottom: 112px;
  }
  .home-slide-title h1 {
    font-size: 44px;
  }
  .home-slide-button {
    min-height: 42px;
    margin-top: 18px;
    padding: 0 22px;
    font-size: 12px;
  }
  .home-slider-controls {
    right: 20px;
    justify-content: space-between;
  }
  .featured-projects { min-height: 680px; padding-inline: 0; }
  .featured-title { width: calc(100vw - 32px); font-size: 24px; }
  .featured-carousel { gap: 18px; padding-inline: 24px; }
  .featured-card,
  .featured-card.active { width: 235px; height: 350px; }
  .featured-controls { gap: 18px; }
  .project-detail-hero {
    min-height: 56svh;
    padding-bottom: 44px;
  }
  .project-detail-hero h1 {
    font-size: 46px;
  }
  .inner-hero {
    min-height: 46svh;
    padding-bottom: 42px;
  }
  .inner-hero h1 {
    font-size: 42px;
  }
  .detail-gallery-grid {
    grid-template-columns: 1fr;
  }
  .site-lightbox-arrow {
    top: auto;
    bottom: 24px;
    width: 56px;
    height: 56px;
    transform: none;
  }
  .site-lightbox img {
    max-height: 72svh;
  }
  .featured-controls i { width: 42px; }
  .showcase-card {
    flex-basis: 78vw;
    min-height: 410px;
  }
  .sector-tabs button {
    min-height: 54px;
  }
  .service-display { min-height: 470px; }
  .service-panel { padding: 28px; }
  .service-steps { grid-template-columns: repeat(2, 1fr); }
  .service-menu button {
    transform: none !important;
    min-height: 78px;
  }
  .services-carousel-head {
    padding-inline: 20px;
  }
  .services-carousel-head p {
    font-size: 17px;
  }
  .service-card {
    flex-basis: 82vw;
    min-height: 500px;
  }
  .service-card img {
    min-height: 280px;
  }
  .service-card-body {
    padding: 24px;
  }
  .services-arrow {
    display: none;
  }
}
