:root {
  --ink: #161816;
  --muted: #5c615c;
  --line: #ececec;
  --white: #ffffff;
  --mist: #f5f6f5;
  --sage: #6e7d6c;
  --sage-deep: #4d5b4c;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: min(1200px, calc(100% - 48px));
  --header: 82px;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

/* Beat Elementor's `.elementor img { height: auto }` so photos fill cards. */
.aec-sector img,
.aec-proj img,
.aec-tile img,
.aec-svc__img img,
.aec-hydro__shot img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}
.aec-about__photo,
.aec-founder__media img {
  width: 100% !important;
  object-fit: cover !important;
}
.aec-about__photo { object-position: center !important; }
.aec-about__photo--a,
.aec-founder__media img { object-position: center 18% !important; }
.aec-about__photo { height: 340px !important; }
.aec-about__photo--a,
.aec-about__photo--b { height: 400px !important; }
.aec-founder__media img { height: 560px !important; object-position: center 18% !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
address { font-style: normal; }
.aec-skip { position: absolute; left: -999px; }
.aec-wrap { width: var(--wrap); margin: 0 auto; }
.aec-main { min-height: 40vh; }

.aec-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
}
.aec-h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 18ch;
}
.aec-h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; }
.aec-h1--light, .aec-h2--light { color: #fff; }
.aec-lead { color: var(--muted); max-width: 48ch; }

.aec-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-deep); color: #fff;
  padding: 12px 20px; border: 0; border-radius: 4px;
  font-size: 13px; font-weight: 600;
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.aec-btn::after {
  content: "";
  width: 6px; height: 6px; margin-top: -1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}
.aec-btn i { display: none; }
.aec-btn:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(22,24,22,.16); }
.aec-btn:hover::after { transform: rotate(45deg) translate(2px, -2px); }
.aec-btn--ghost {
  background: transparent; color: var(--ink); border: 1px solid #d8d8d8;
}
.aec-btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.aec-btn--line {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7);
}
.aec-btn--line:hover { background: #fff; color: var(--ink); }
a.aec-text-link,
.elementor a.aec-text-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--sage-deep) !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-deep) !important;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: background .22s var(--ease), color .22s, border-color .22s;
}
a.aec-text-link::after,
.elementor a.aec-text-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}
a.aec-text-link:hover,
a.aec-text-link:focus-visible,
.elementor a.aec-text-link:hover,
.elementor a.aec-text-link:focus-visible {
  background: var(--sage-deep);
  color: #fff !important;
  border-color: var(--sage-deep) !important;
}
a.aec-text-link:hover::after,
a.aec-text-link:focus-visible::after,
.elementor a.aec-text-link:hover::after,
.elementor a.aec-text-link:focus-visible::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* Preloader */
.aec-preloader {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  display: grid; place-items: center;
  animation: aecHidePre 1.4s var(--ease) forwards;
}
.aec-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes aecHidePre { 0%, 45% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.aec-preloader img { width: 120px; margin: 0 auto 14px; }
.aec-preloader__bar { display: block; width: 100px; height: 2px; background: #eee; overflow: hidden; }
.aec-preloader__bar i { display: block; height: 100%; width: 0; background: var(--sage); animation: aecLoad .8s forwards; }
@keyframes aecLoad { to { width: 100%; } }
.aec-cursor, .aec-cursor-dot { display: none !important; }

/* Header */
.aec-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 90;
  height: var(--header);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
html.admin-bar .aec-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}
.aec-main { padding-top: var(--header); }
.aec-home .aec-main { padding-top: 0; }
.aec-home .aec-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
.aec-home .aec-header.is-scrolled {
  background: #fff;
  border-bottom-color: var(--line);
  animation: aecDrop .35s var(--ease);
}
@keyframes aecDrop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

.aec-header__inner {
  width: var(--wrap); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.aec-logo img { height: 48px; width: auto; }
.aec-home .aec-header:not(.is-scrolled) .aec-logo img {
  filter: brightness(0) invert(1);
}
.aec-nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.aec-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: .7;
  transition: color .2s, opacity .2s;
}
.aec-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}
.aec-nav a:hover,
.aec-nav a:focus-visible,
.aec-nav .current-menu-item > a,
.aec-nav .current_page_item > a,
.aec-nav .current-menu-ancestor > a,
.aec-nav .current-menu-parent > a {
  opacity: 1;
  color: var(--sage-deep);
}
.aec-nav a:hover::after,
.aec-nav a:focus-visible::after,
.aec-nav .current-menu-item > a::after,
.aec-nav .current_page_item > a::after,
.aec-nav .current-menu-ancestor > a::after,
.aec-nav .current-menu-parent > a::after {
  transform: scaleX(1);
}
.aec-home .aec-header:not(.is-scrolled) .aec-nav a { color: #fff; opacity: .75; }
.aec-home .aec-header:not(.is-scrolled) .aec-nav a::after { background: #fff; }
.aec-home .aec-header:not(.is-scrolled) .aec-nav a:hover,
.aec-home .aec-header:not(.is-scrolled) .aec-nav a:focus-visible,
.aec-home .aec-header:not(.is-scrolled) .aec-nav .current-menu-item > a,
.aec-home .aec-header:not(.is-scrolled) .aec-nav .current_page_item > a,
.aec-home .aec-header:not(.is-scrolled) .aec-nav .current-menu-ancestor > a,
.aec-home .aec-header:not(.is-scrolled) .aec-nav .current-menu-parent > a {
  color: #fff;
  opacity: 1;
}
.aec-header__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  transition: background .22s var(--ease), color .22s, border-color .22s;
}
.aec-header__contact::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}
.aec-header__contact:hover,
.aec-header__contact:focus-visible {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}
.aec-header__contact:hover::after,
.aec-header__contact:focus-visible::after {
  transform: rotate(45deg) translate(2px, -2px);
}
.aec-home .aec-header:not(.is-scrolled) .aec-header__contact {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.aec-home .aec-header:not(.is-scrolled) .aec-header__contact:hover,
.aec-home .aec-header:not(.is-scrolled) .aec-header__contact:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.aec-header__cta { display: flex; align-items: center; gap: 12px; }
.aec-burger {
  display: none; width: 40px; height: 40px; background: none; border: 1px solid currentColor; position: relative; z-index: 91;
}
.aec-burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .22s var(--ease), top .22s var(--ease), bottom .22s var(--ease), opacity .22s;
}
.aec-burger span:first-child { top: 14px; }
.aec-burger span:last-child { bottom: 14px; }
.aec-burger.is-open,
.aec-home .aec-header:not(.is-scrolled) .aec-burger.is-open {
  color: var(--ink);
  background: #fff;
}
.aec-burger.is-open span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.aec-burger.is-open span:last-child {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}
.aec-home .aec-header:not(.is-scrolled) .aec-burger { color: #fff; }
.aec-mobile {
  position: fixed; inset: 0; z-index: 80; background: #fff;
  padding: 100px 28px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.aec-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.aec-mobile-nav { list-style: none; margin: 0; padding: 0; }
.aec-mobile.is-open .aec-mobile-nav li {
  animation: aecRise .45s var(--ease) both;
}
.aec-mobile.is-open .aec-mobile-nav li:nth-child(1) { animation-delay: .04s; }
.aec-mobile.is-open .aec-mobile-nav li:nth-child(2) { animation-delay: .08s; }
.aec-mobile.is-open .aec-mobile-nav li:nth-child(3) { animation-delay: .12s; }
.aec-mobile.is-open .aec-mobile-nav li:nth-child(4) { animation-delay: .16s; }
.aec-mobile.is-open .aec-mobile-nav li:nth-child(5) { animation-delay: .2s; }
.aec-mobile.is-open .aec-mobile-nav li:nth-child(6) { animation-delay: .24s; }
.aec-mobile.is-open .aec-mobile-nav li:nth-child(7) { animation-delay: .28s; }
.aec-mobile.is-open .aec-mobile-nav li:nth-child(8) { animation-delay: .32s; }
.aec-mobile-nav a { display: block; font-size: 22px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.aec-mobile-nav a:hover,
.aec-mobile-nav .current-menu-item > a,
.aec-mobile-nav .current_page_item > a { color: var(--sage-deep); }

/* Hero — ECG / CG full bleed */
.aec-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.aec-hero__slide {
  position: absolute; inset: 0; margin: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 7s linear;
}
.aec-hero__slide.is-active { opacity: 1; transform: scale(1); }
.aec-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,10,.28) 0%, rgba(10,12,10,.12) 40%, rgba(10,12,10,.72) 100%);
}
.aec-hero__copy { position: relative; z-index: 2; padding: 0 0 56px; }
.aec-hero__caption { display: none; max-width: 640px; }
.aec-hero__caption.is-active { display: block; animation: aecFade .6s var(--ease); }
.aec-hero__kicker {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.aec-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  max-width: 18ch;
}
.aec-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.aec-hero__dots { display: flex; gap: 8px; }
.aec-home .aec-hero__actions,
.aec-home .aec-hero__dots { opacity: 0; }
.aec-hero__dots button {
  width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35);
  transition: width .4s var(--ease), background .3s;
}
.aec-hero__dots button.is-active { width: 44px; background: #fff; }
@keyframes aecFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Sections */
.aec-section { padding: 88px 0; }
.aec-section__head { margin-bottom: 36px; }
.aec-section__head--row {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-end;
}

/* About — ECG two photos */
.aec-about { background: #fff; }
.aec-about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.aec-about__copy p { color: var(--muted); margin: 0 0 14px; }
.aec-about__copy .aec-btn { margin-top: 10px; }
.aec-about__photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch;
}
.aec-about__photo { width: 100%; height: 340px; object-fit: cover; object-position: center; border-radius: var(--radius); transition: transform .8s var(--ease); }
.aec-about__photo--a { height: 400px; margin-top: 28px; object-position: center 18%; }
.aec-about__photo--b { height: 400px; }
.aec-about__photo:hover { transform: scale(1.03); }

/* Stats */
.aec-stats { background: var(--mist); padding: 40px 0; }
.aec-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aec-stat { transition: transform .4s var(--ease); }
.aec-stat:hover { transform: translateY(-4px); }
.aec-stat__num { font-size: 36px; font-weight: 700; color: var(--sage-deep); letter-spacing: -.03em; line-height: 1; }
.aec-stat h3 { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.aec-stat p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

/* Sectors — 2 large + 4 compact */
.aec-sectors { background: #fff; }
.aec-sectors__mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 340px 230px;
  gap: 12px;
}
.aec-sector--0,
.aec-sector--1 { grid-column: span 2; }
.aec-sector {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: var(--radius);
  min-height: 210px;
  color: #fff;
}
.aec-sector img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.aec-sector__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,16,12,.05) 18%, rgba(12,16,12,.78) 100%);
  transition: background .35s;
}
.aec-sector:hover img { transform: scale(1.08); }
.aec-sector:hover .aec-sector__overlay {
  background: linear-gradient(180deg, rgba(12,16,12,.18) 8%, rgba(12,16,12,.9) 100%);
}
.aec-sector:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.aec-sector__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 22px 22px 20px;
}
.aec-sector__body small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #c5d3c3;
  margin-bottom: 6px;
}
.aec-sector__body h3 {
  margin: 0;
  color: #fff !important;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.aec-sector__body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
  max-width: 36ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), max-height .35s var(--ease), margin .35s var(--ease);
}
.aec-sector--0 .aec-sector__body p,
.aec-sector--1 .aec-sector__body p,
.aec-sector:hover .aec-sector__body p {
  margin-top: 8px;
  max-height: 3.2em;
  opacity: 1;
  transform: none;
}
.aec-sector--2 .aec-sector__body h3,
.aec-sector--3 .aec-sector__body h3,
.aec-sector--4 .aec-sector__body h3,
.aec-sector--5 .aec-sector__body h3 { font-size: 18px; }
.aec-sector--2 .aec-sector__body,
.aec-sector--3 .aec-sector__body,
.aec-sector--4 .aec-sector__body,
.aec-sector--5 .aec-sector__body { padding: 16px; }

/* Services slider */
.aec-services { background: var(--mist); }
.aec-services__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aec-slider-nav { display: flex; gap: 8px; }
.aec-slider-btn {
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--sage-deep); border-radius: 4px;
  background: transparent; color: var(--sage-deep); position: relative;
  transition: background .2s, color .2s;
}
.aec-slider-btn::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-40%, -50%) rotate(45deg);
}
.aec-slider-btn--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.aec-slider-btn:hover,
.aec-slider-btn:focus-visible { background: var(--sage-deep); color: #fff; }
.aec-slider-btn:disabled { opacity: .35; pointer-events: none; }
.aec-services__viewport { overflow: hidden; cursor: grab; container-type: inline-size; }
.aec-services__viewport.is-dragging { cursor: grabbing; }
.aec-services__track {
  display: flex; gap: 18px;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.aec-services[data-aec-slider] .aec-svc {
  flex: 0 0 calc((100cqi - 36px) / 3);
  min-width: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
}
.aec-svc {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  color: inherit; text-decoration: none; display: block;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.aec-svc:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(16,20,16,.1); }
.aec-svc h3 { color: var(--ink); }
.aec-svc__img { position: relative; height: 180px; overflow: hidden; }
.aec-svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.aec-svc:hover img { transform: scale(1.06); }
.aec-svc:hover h3 { color: var(--sage-deep); }
.aec-svc span { display: block; padding: 14px 18px 0; font-size: 12px; color: var(--sage); font-weight: 600; }
.aec-svc h3 { margin: 6px 18px 8px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.aec-svc p { margin: 0 18px 18px; font-size: 13.5px; color: var(--muted); }
.aec-services--page .aec-services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.aec-services--page .aec-svc__img { height: 200px; }
.aec-svc__items {
  list-style: none;
  margin: 0;
  padding: 0 18px 20px;
}
.aec-svc__items li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-size: 13px;
  color: var(--muted);
}
.aec-svc__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 1.5px;
  background: var(--sage);
}

/* Projects */
.aec-projects { background: #fff; }
.aec-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aec-proj {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 360px; display: block; background: #ddd;
}
.aec-proj img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.aec-proj:hover img { transform: scale(1.05); }
.aec-proj__meta {
  position: absolute; inset: auto 0 0 0; padding: 20px 18px;
  background: linear-gradient(transparent, rgba(12,14,12,.78));
  color: #fff;
  transition: transform .45s var(--ease);
}
.aec-proj:hover .aec-proj__meta { transform: translateY(-6px); }
}
.aec-proj__meta small { font-size: 12px; opacity: .85; }
.aec-proj__meta h3 { margin: 4px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

/* Founder (inner pages) */
.aec-founder { background: var(--mist); }
.aec-founder__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.aec-founder__copy p { color: var(--muted); }
.aec-founder blockquote {
  margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--sage);
  font-size: 18px; font-weight: 500; color: var(--ink);
}
.aec-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.aec-chips li { font-size: 12px; background: #fff; border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; }
.aec-founder__media { position: relative; }
.aec-founder__media img { width: 100%; height: 560px; object-fit: cover; object-position: center 18%; border-radius: var(--radius); }
.aec-founder__caption {
  position: absolute; left: 14px; bottom: 14px; background: #fff; padding: 10px 14px; border-radius: 10px;
}
.aec-founder__caption span { display: block; font-size: 11px; color: var(--sage); font-weight: 600; }
.aec-founder__caption strong { font-size: 15px; }

/* Offices */
.aec-offices { background: var(--mist); }
.aec-flags-scroller {
  position: relative;
  margin-bottom: 18px;
}
.aec-flags {
  display: flex; gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.aec-flags::-webkit-scrollbar { display: none; }
.aec-flag {
  flex: 1; min-width: 100px;
  background: #fff; border: 1px solid transparent; border-radius: 12px;
  padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(16,20,16,.04);
  transition: transform .35s var(--ease), border-color .2s, box-shadow .35s var(--ease);
}
.aec-flag.is-active, .aec-flag:hover { border-color: var(--sage); }
.aec-flag.is-in:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16,20,16,.08); }
.aec-flag.is-active { box-shadow: 0 8px 24px rgba(77,91,76,.12); }
.aec-flag__mark { width: 42px; height: 28px; overflow: hidden; border-radius: 3px; }
.aec-flag-img, .aec-flag__mark img, .aec-office__flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aec-flag__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aec-flag.is-active .aec-flag__label { color: var(--sage-deep); }
.aec-flags__nav {
  display: none;
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(16,20,16,.1);
  transform: translateY(-50%);
}
.aec-flags__nav::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.aec-flags__nav--prev { left: -6px; }
.aec-flags__nav--prev::before { transform: rotate(-135deg); translate: 2px 0; }
.aec-flags__nav--next { right: -6px; }
.aec-flags__nav--next::before { transform: rotate(45deg); translate: -2px 0; }
.aec-flags__nav:disabled { opacity: .28; pointer-events: none; }
.aec-flags-scroller.is-overflow-start::before,
.aec-flags-scroller.is-overflow-end::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 36px;
  z-index: 1;
  pointer-events: none;
}
.aec-flags-scroller.is-overflow-start::before {
  left: 0;
  background: linear-gradient(90deg, var(--mist), transparent);
}
.aec-flags-scroller.is-overflow-end::after {
  right: 0;
  background: linear-gradient(270deg, var(--mist), transparent);
}
.aec-office {
  display: none; grid-template-columns: 150px 1fr; gap: 28px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 28px;
}
.aec-office.is-active { display: grid; animation: aecFade .4s var(--ease); }
.aec-office--photo { grid-template-columns: 240px 1fr; align-items: stretch; }
.aec-office__media { position: relative; }
.aec-office__media > img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 12px; display: block;
}
.aec-office--photo .aec-office__flag {
  position: absolute; left: 12px; bottom: 12px; width: 56px; height: 38px;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.aec-office__flag { width: 150px; height: 100px; overflow: hidden; border-radius: 10px; }
.aec-office h3 { font-size: 30px; font-weight: 700; margin: 4px 0 8px; letter-spacing: -.03em; }
.aec-office h3 span { display: block; font-size: 12px; font-weight: 600; color: var(--sage); margin-top: 6px; letter-spacing: 0; }
.aec-office p, .aec-office address { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.aec-office__links { display: flex; gap: 16px; flex-wrap: wrap; }
.aec-office__links a { color: var(--sage-deep); font-weight: 600; font-size: 14px; }

/* Process */
.aec-process { background: var(--mist); }
.aec-process .aec-lead { margin: 8px 0 0; }
.aec-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
  position: relative;
}
.aec-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  position: relative;
  min-height: 100%;
  box-shadow: 0 10px 28px rgba(16,20,16,.04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.aec-step:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16,20,16,.08); }
.aec-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  right: -14px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--sage);
  border-right: 1.5px solid var(--sage);
  transform: rotate(45deg);
  z-index: 1;
}
.aec-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.aec-step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.aec-step__top small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
}
.aec-step h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.aec-step p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* CTA */
.aec-cta { padding: 0 0 88px; background: #fff; }
.aec-cta__inner {
  background: var(--sage-deep); color: #fff; border-radius: 24px;
  padding: 52px 48px; text-align: center;
}
.aec-cta__inner .aec-kicker { color: #c5d0c3; }
.aec-cta__inner .aec-h2 { color: #fff; margin-left: auto; margin-right: auto; }
.aec-cta__inner p { color: rgba(255,255,255,.8); max-width: 42ch; margin: 0 auto 22px; }
.aec-cta__inner .aec-btn { background: #fff; color: var(--ink); }
.aec-cta__inner .aec-btn:hover { background: #e8ebe6; }

/* Hydrological & Environmental Studies */
.aec-hydro {
  position: relative;
  padding: 88px 0;
  background: #1a1f1a;
  color: #fff;
  overflow: hidden;
}
.aec-hydro__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(110, 125, 108, .28), transparent 60%),
    linear-gradient(135deg, #141814 0%, #1f261f 48%, #161b16 100%);
  pointer-events: none;
}
.aec-hydro__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.aec-hydro__copy .aec-kicker { color: #c5d0c3; }
.aec-hydro__copy .aec-h2 { color: #fff; max-width: 16ch; }
.aec-hydro__text {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 22px;
}
.aec-hydro__chips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  max-width: 520px;
}
.aec-hydro__chips li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  text-align: center;
  color: #e8efe7;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.aec-hydro .aec-btn--on-dark,
.aec-hydro .aec-btn {
  background: #fff;
  color: var(--ink);
}
.aec-hydro .aec-btn--on-dark:hover,
.aec-hydro .aec-btn:hover { background: #e8ebe6; }
.aec-hydro__gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 168px 168px 132px;
  gap: 10px;
  min-height: 480px;
}
.aec-hydro__shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #2a322a;
}
.aec-hydro__open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: none;
}
.aec-hydro__open:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.aec-hydro__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.aec-hydro__shot:hover img,
.aec-hydro__open:hover img { transform: scale(1.05); }
.aec-hydro__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10,12,10,.55);
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.aec-hydro__zoom::before,
.aec-hydro__zoom::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
}
.aec-hydro__zoom::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.aec-hydro__zoom::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.aec-hydro__open:hover .aec-hydro__zoom { transform: scale(1.06); background: rgba(10,12,10,.72); }

/* Lightbox */
.aec-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px 72px;
  background: rgba(8,10,8,.92);
  backdrop-filter: blur(8px);
}
.aec-lightbox[hidden] { display: none !important; }
.aec-lightbox.is-open { animation: aecFade .25s var(--ease); }
.aec-lightbox__stage {
  width: min(1200px, 100%);
  max-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
}
.aec-lightbox__stage img {
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain !important;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.aec-lightbox__close,
.aec-lightbox__nav {
  position: absolute;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.aec-lightbox__close:hover,
.aec-lightbox__nav:hover { background: rgba(255,255,255,.16); }
.aec-lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.aec-lightbox__close::before,
.aec-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.aec-lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.aec-lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.aec-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.aec-lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.aec-lightbox__nav--prev { left: 18px; }
.aec-lightbox__nav--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.aec-lightbox__nav--next { right: 18px; }
.aec-lightbox__nav--next::before { transform: translate(-65%, -50%) rotate(45deg); }
.aec-lightbox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
body.aec-lightbox-open { overflow: hidden; }
.aec-hydro__shot--0 {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.aec-hydro__shot--1 { grid-column: 2; grid-row: 1; }
.aec-hydro__shot--2 { grid-column: 2; grid-row: 2; }
.aec-hydro__shot--3 { grid-column: 1; grid-row: 3; }
.aec-hydro__shot--4 { grid-column: 2; grid-row: 3; }

.elementor-widget-container > .aec-hydro { margin: 0; }


/* Footer */
.aec-footer { background: #1b1f1b; color: #c7ccc6; padding: 48px 0 20px; }
.aec-footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; padding-bottom: 28px; }
.aec-footer__logo { display: inline-block; }
.aec-footer__brand img { height: 52px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.aec-footer p, .aec-footer a, .aec-footer li { color: #a7aea6; font-size: 14px; }
.aec-footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.aec-footer ul { list-style: none; margin: 0; padding: 0; }
.aec-footer li { margin: 0 0 6px; }
.aec-footer a:hover { color: #fff; }
.aec-footer__social {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  list-style: none; margin: 14px 0 0; padding: 0;
}
.aec-footer__social a { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.aec-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #8a9188;
}
.aec-footer__bottom--solo { justify-content: center; text-align: center; }
.aec-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; }
.aec-footer__legal a { font-size: 12px; }

/* Inner pages */
.aec-page-hero { padding: 40px 0 32px; background: var(--mist); }
.aec-page-hero--image {
  min-height: 320px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; position: relative;
}
.aec-page-hero--project { min-height: 56vh; }
.aec-page-hero--image .aec-kicker a { color: inherit; }
.aec-page-hero--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,10,.2), rgba(10,12,10,.62));
}
.aec-page-hero--image .aec-wrap { position: relative; z-index: 1; padding-bottom: 36px; }
.aec-page-hero--image .aec-h1,
.aec-page-hero--image .aec-lead { color: #fff; }
.aec-page-hero--image .aec-kicker { color: #d5e0d3; }

.aec-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aec-tile { position: relative; overflow: hidden; min-height: 300px; display: block; border-radius: var(--radius); background: #ddd; }
.aec-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s var(--ease); }
.aec-tile:hover img { transform: scale(1.05); }
.aec-tile__body {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  background: linear-gradient(transparent, rgba(12,14,12,.8)); color: #fff;
}
.aec-tile span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.aec-tile h3 { font-size: 18px; margin: 4px 0 2px; font-weight: 700; }
.aec-tile p { margin: 0; font-size: 13px; opacity: .85; }
.aec-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.aec-filter button {
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  padding: 8px 12px; font-size: 12px; font-weight: 600; border-radius: 99px;
}
.aec-filter button.is-active, .aec-filter button:hover { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.aec-tile.is-hidden { display: none; }

.aec-org__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aec-org article { background: var(--mist); padding: 18px; border-radius: 14px; }
.aec-org h3 { font-size: 17px; margin: 0 0 10px; font-weight: 700; }
.aec-org ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.aec-org li { padding: 6px 0; border-bottom: 1px solid #e6e6e6; }

.aec-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.aec-contact address { font-size: 15px; color: var(--muted); margin: 12px 0 16px; }
.aec-contact-form { display: grid; gap: 14px; }
.aec-contact-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sage-deep); }
.aec-contact-form input, .aec-contact-form textarea {
  background: var(--mist); border: 1px solid var(--line); color: var(--ink);
  padding: 12px 14px; font-size: 14px; border-radius: 8px; width: 100%;
}
.aec-contact-form input:focus, .aec-contact-form textarea:focus { outline: 1px solid var(--sage); background: #fff; }
.aec-contact-form :invalid { box-shadow: none; }
.aec-req { color: #c62828; }
.aec-phone-field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sage-deep); }
.aec-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  position: relative;
}
.aec-phone__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 108px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.aec-phone__flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.aec-phone__list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, 100%);
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(16,20,16,.12);
  list-style: none;
  margin: 0;
  padding: 6px;
}
.aec-phone__list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}
.aec-phone__list li:hover,
.aec-phone__list li[aria-selected="true"] { background: var(--mist); }
.aec-phone__list img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.aec-phone__list em { font-style: normal; color: var(--muted); font-size: 12px; }
.aec-phone input[type="tel"] { min-width: 0; }
.aec-contact-form__btn {
  justify-self: start;
  width: auto;
  min-width: 160px;
  justify-content: center;
}
.aec-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0; width: 0; overflow: hidden;
}
.aec-field-error { color: #b42318; font-size: 12px; font-weight: 500; min-height: 0; }
.aec-form-note { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin: 0 0 14px; }
.aec-form-note--ok { background: #eef5ee; color: var(--sage-deep); }
.aec-form-note--err { background: #fdecec; color: #8a1f16; }
.aec-project-single { background: #fff; }
.aec-project-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.aec-project-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 0 0 28px;
  padding: 0;
}
.aec-project-facts > div {
  background: var(--mist);
  border-radius: 12px;
  padding: 14px 16px;
}
.aec-project-facts dt {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin: 0;
}
.aec-project-facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.aec-prose { color: var(--muted); font-size: 16px; max-width: 62ch; }
.aec-prose p { margin: 0 0 14px; }
.aec-prose h2, .aec-prose h3 { color: var(--ink); font-weight: 700; }
.aec-project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.aec-project-media {
  margin: 0;
  position: sticky;
  top: 24px;
}
.aec-project-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}
.aec-project-related { background: var(--mist); }
.aec-service-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.aec-service-points li {
  position: relative;
  padding: 10px 12px 10px 16px;
  background: var(--mist);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.aec-service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--sage);
  border-radius: 2px;
}

.aec-marquee { display: none !important; }

@keyframes aecRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.aec-sector[data-reveal],
.aec-proj[data-reveal],
.aec-tile[data-reveal] {
  transform: translateY(28px) scale(.98);
}
.aec-sector[data-reveal].is-in,
.aec-proj[data-reveal].is-in,
.aec-tile[data-reveal].is-in {
  transform: none;
}

body.aec-ready .aec-hero__caption.is-active .aec-hero__kicker {
  animation: aecRise .7s var(--ease) .08s both;
}
body.aec-ready .aec-hero__caption.is-active h1 {
  animation: aecRise .85s var(--ease) .18s both;
}
body.aec-ready .aec-hero__actions {
  animation: aecRise .75s var(--ease) .32s both;
}
body.aec-ready .aec-hero__dots {
  animation: aecRise .75s var(--ease) .46s both;
}
body.aec-ready .aec-page-hero .aec-kicker { animation: aecRise .6s var(--ease) both; }
body.aec-ready .aec-page-hero .aec-h1 { animation: aecRise .7s var(--ease) .1s both; }
body.aec-ready .aec-page-hero .aec-lead { animation: aecRise .7s var(--ease) .18s both; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

body.elementor-editor-preview [data-reveal],
body.elementor-editor-active [data-reveal],
.elementor-editor-preview [data-reveal],
.elementor-element-edit-mode [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.elementor-widget-container > .aec-hero,
.elementor-widget-container > .aec-section,
.elementor-widget-container > .aec-stats,
.elementor-widget-container > .aec-hydro,
.elementor-widget-container > .aec-cta,
.elementor-widget-container > .aec-page-hero { margin: 0; }
body.elementor-editor-active .elementor-widget-aec_hydro .elementor-widget-container,
.elementor-editor-preview .elementor-widget-aec_hydro .elementor-widget-container {
  min-height: 120px;
}
.elementor-section .elementor-container { max-width: 100% !important; }
.elementor-column-gap-no > .elementor-column > .elementor-element-populated { padding: 0 !important; }
.elementor-widget:not(:last-child) { margin-bottom: 0 !important; }

@media (max-width: 1020px) {
  .aec-about__grid, .aec-founder__grid, .aec-office, .aec-office--photo, .aec-contact, .aec-project-layout, .aec-hydro__grid { grid-template-columns: 1fr; }
  .aec-project-media { order: -1; position: static; }
  .aec-project-media img { height: 360px; }
  .aec-sectors__mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 200px 200px; }
  .aec-sector--0, .aec-sector--1 { grid-column: span 1; }
  .aec-sector__body p { opacity: 1; transform: none; margin-top: 8px; max-height: 3.2em; }
  .aec-services--page .aec-services__row { grid-template-columns: 1fr 1fr; }
  .aec-services[data-aec-slider] .aec-svc { flex-basis: calc((100cqi - 18px) / 2); }
  .aec-proj-grid, .aec-org__grid, .aec-process__grid,
  .aec-stats__grid, .aec-projects-grid { grid-template-columns: 1fr 1fr; }
  .aec-stat { text-align: center; }
  .aec-step:nth-child(2n)::after { display: none; }
  .aec-section__head--row, .aec-footer__top { flex-direction: column; align-items: flex-start; }
  .aec-footer__top { grid-template-columns: 1fr 1fr; }
  .aec-about__photos { order: -1; }
  .aec-hydro__gallery { order: -1; min-height: 380px; grid-template-rows: 140px 140px 110px; }
  .aec-about__photo,
  .aec-about__photo--a,
  .aec-about__photo--b {
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
  }
}
@media (max-width: 760px) {
  :root { --wrap: min(1200px, calc(100% - 24px)); --header: 70px; }
  .aec-header__nav, .aec-header__contact { display: none; }
  .aec-burger { display: block; color: var(--ink); }
  .aec-logo img { height: 42px; }
  .aec-hero { min-height: 100svh; }
  .aec-hero h1 { font-size: 26px; }
  .aec-hero__copy { padding-bottom: 36px; }
  .aec-sectors__mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .aec-sector { min-height: 240px; }
  .aec-sector--0, .aec-sector--1 { min-height: 280px; }
  .aec-services--page .aec-services__row { grid-template-columns: 1fr; }
  .aec-services[data-aec-slider] .aec-svc { flex-basis: 100cqi; }
  .aec-proj-grid, .aec-org__grid,
  .aec-process__grid, .aec-projects-grid, .aec-footer__top { grid-template-columns: 1fr; grid-template-rows: none; }
  .aec-stats__grid { grid-template-columns: 1fr 1fr; }
  .aec-stat { text-align: center; }
  .aec-step::after { display: none; }
  .aec-service-points { grid-template-columns: 1fr; }
  .aec-cta__inner { padding: 36px 22px; }
  .aec-hydro { padding: 56px 0; }
  .aec-hydro__copy .aec-h2 { max-width: none; }
  .aec-hydro__chips { max-width: none; grid-template-columns: 1fr 1fr; }
  .aec-lightbox { padding: 16px 56px; }
  .aec-lightbox__nav--prev { left: 10px; }
  .aec-lightbox__nav--next { right: 10px; }
  .aec-hydro__gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 120px 120px;
    min-height: 0;
  }
  .aec-hydro__shot--0 { grid-column: 1 / -1; grid-row: 1; }
  .aec-hydro__shot--1 { grid-column: 1; grid-row: 2; }
  .aec-hydro__shot--2 { grid-column: 2; grid-row: 2; }
  .aec-hydro__shot--3 { grid-column: 1; grid-row: 3; }
  .aec-hydro__shot--4 { grid-column: 2; grid-row: 3; }
  .aec-founder__media img { height: 420px !important; }
  .aec-office { padding: 18px; }
  .aec-flags-scroller { margin-inline: -4px; }
  .aec-flags {
    gap: 8px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 40px;
    padding: 4px 40px 12px;
    touch-action: pan-x;
  }
  .aec-flag {
    flex: 0 0 108px;
    min-width: 108px;
    scroll-snap-align: center;
  }
  .aec-flags__nav { display: grid; place-items: center; }
}
