:root {
  --black: #030506;
  --ink: #0a0f13;
  --panel: #10161b;
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #f4f7f4;
  --muted: #aab4b6;
  --orange: #f26b22;
  --yellow: #f4c542;
  --teal: #00a9a6;
  --blue: #133a5e;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(3, 5, 6, 0.54), rgba(3, 5, 6, 0));
  transition: padding 260ms ease, background 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding-block: 14px;
  background: rgba(3, 5, 6, 0.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 148px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--yellow);
}

.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

.nav-cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-weight: 760;
  box-shadow: 0 16px 38px rgba(0, 169, 166, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-cta {
  padding: 10px 18px;
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  box-shadow: 0 16px 38px rgba(0, 169, 166, 0.22);
}

.button-primary {
  padding: 13px 24px;
}

.nav-cta:hover,
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(0, 169, 166, 0.3);
}

.site-nav .nav-cta:hover {
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 169, 166, 0.3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 22px 86px;
  isolation: isolate;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: -8% 0;
  z-index: -3;
  transform: translateY(var(--parallax, 0));
  will-change: transform;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: opacity 900ms ease;
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 24% 72%, rgba(0, 169, 166, 0.22), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(242, 107, 34, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.42), rgba(3, 5, 6, 0.76) 68%, var(--black));
}

.wave-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.72;
}

.wave-lines span {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-color: transparent transparent rgba(255, 255, 255, 0.2) transparent;
  border-radius: 50%;
  transform: rotate(-5deg);
  animation: waveDrift 9s ease-in-out infinite alternate;
}

.wave-lines span:nth-child(1) {
  top: 30%;
  border-bottom-color: rgba(244, 197, 66, 0.42);
}

.wave-lines span:nth-child(2) {
  top: 39%;
  border-bottom-color: rgba(0, 169, 166, 0.4);
  animation-delay: -2s;
}

.wave-lines span:nth-child(3) {
  top: 48%;
  border-bottom-color: rgba(242, 107, 34, 0.36);
  animation-delay: -4s;
}

@keyframes waveDrift {
  from {
    transform: translateX(-18px) rotate(-5deg);
  }
  to {
    transform: translateX(18px) rotate(-3deg);
  }
}

.hero-content {
  width: min(860px, 100%);
  text-align: center;
}

.hero-logo {
  width: clamp(132px, 16vw, 210px);
  margin: 0 auto 24px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-dot.is-active {
  background: var(--yellow);
  transform: scale(1.28);
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(86px, 11vw, 148px) 0;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.section-copy p,
.contact-copy p,
.section-heading p:not(.eyebrow),
.service-card p,
.site-footer p {
  color: var(--muted);
}

.section-copy p,
.contact-copy p {
  font-size: 1.08rem;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0, 169, 166, 0.28), transparent 42%, rgba(242, 107, 34, 0.2));
}

.image-frame img {
  width: 100%;
  height: min(620px, 62vw);
  min-height: 420px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.image-frame:hover img {
  transform: scale(1.04);
}

.inner-hero {
  position: relative;
  min-height: 62svh;
  display: grid;
  align-items: end;
  padding: 150px 22px 82px;
  isolation: isolate;
  overflow: hidden;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: center / cover no-repeat;
  transform: scale(1.03);
}

.inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 74%, rgba(0, 169, 166, 0.24), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(242, 107, 34, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.34), rgba(3, 5, 6, 0.82));
}

.about-hero::before {
  background-image: url("Assets/Nosotros.png");
}

.inner-hero-content {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.inner-hero-content h1 {
  max-width: 860px;
  margin-bottom: 22px;
}

.inner-hero-content p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.about-page {
  display: grid;
  gap: clamp(44px, 6vw, 86px);
}

.about-visual-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.about-intro {
  max-width: 850px;
}

.about-intro p,
.about-block p {
  color: var(--muted);
}

.about-intro p:not(.eyebrow) {
  font-size: 1.08rem;
}

.about-image-stack {
  position: relative;
  min-height: 480px;
}

.about-image-stack img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-stack-main {
  inset: 0 10% 10% 0;
  width: 90%;
  height: 90%;
  filter: saturate(1.03) contrast(1.04);
}

.about-stack-float {
  right: 0;
  bottom: 0;
  width: min(48%, 260px);
  aspect-ratio: 1.04;
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: softFloat 5.8s ease-in-out infinite;
}

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

.about-block {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.about-block::before,
.about-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-block::before {
  background: center / cover no-repeat;
  opacity: 0.26;
  transition: opacity 220ms ease, transform 520ms ease;
}

.about-block::after {
  background:
    linear-gradient(180deg, rgba(3, 5, 6, 0.38), rgba(3, 5, 6, 0.92)),
    radial-gradient(circle at 18% 18%, rgba(0, 169, 166, 0.18), transparent 34%);
}

.about-block:hover::before {
  opacity: 0.38;
  transform: scale(1.045);
}

.about-block > * {
  position: relative;
  z-index: 1;
}

.about-block-tech::before {
  background-image: url("Assets/Galeria/Sisimica3.jpg");
}

.about-block-history::before {
  background-image: url("Assets/Galeria/Foto%2010.jpeg");
}

.about-block-field::before {
  background-image: url("Assets/Galeria/Hidrologia1.jpg");
}

.about-responsibility {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: end;
  min-height: 410px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #050708;
  box-shadow: var(--shadow);
}

.about-responsibility::before,
.about-responsibility::after {
  content: "";
  position: absolute;
  inset: 0;
}

.about-responsibility::before {
  background: url("Assets/Galeria/Foto%207.jpeg") center / cover no-repeat;
  opacity: 0.34;
  animation: slowZoom 16s ease-in-out infinite alternate;
}

.about-responsibility::after {
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.92), rgba(3, 5, 6, 0.54)),
    radial-gradient(circle at 74% 28%, rgba(244, 197, 66, 0.18), transparent 30%);
}

.about-responsibility > * {
  position: relative;
  z-index: 1;
}

.about-responsibility h2 {
  margin-bottom: 0;
}

.about-responsibility p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.terrain-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--yellow), transparent);
  opacity: 0.72;
  transform-origin: center;
  animation: terrainPulse 3.8s ease-in-out infinite;
}

@keyframes softFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes terrainPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleX(0.82);
  }
  50% {
    opacity: 0.9;
    transform: scaleX(1);
  }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.service-card {
  min-height: 276px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 197, 66, 0.42);
  background:
    linear-gradient(145deg, rgba(242, 107, 34, 0.12), rgba(0, 169, 166, 0.08)),
    var(--panel);
}

.card-number {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--teal);
  font-weight: 800;
}

.clients-section {
  overflow: hidden;
  padding-bottom: clamp(54px, 7vw, 86px);
}

.clients-section .section-heading {
  margin-bottom: 34px;
}

.clients-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 8px 0 0;
  opacity: 1;
  transform: none;
}

.clients-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.clients-track {
  display: flex;
  gap: 18px;
  width: 100%;
  transition: transform 520ms ease;
  will-change: transform;
}

.clients-arrow {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.clients-arrow:hover {
  border-color: rgba(0, 169, 166, 0.55);
  background: rgba(0, 169, 166, 0.14);
  color: #fff;
}

.client-logo {
  flex: 0 0 calc((100% - 90px) / 6) !important;
  display: grid;
  place-items: center;
  max-width: calc((100% - 90px) / 6);
  min-width: 0;
  height: 116px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.client-logo img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 66px !important;
  object-fit: contain !important;
}

.clients-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 9px;
  padding-top: 22px;
}

.clients-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.clients-dot.is-active {
  background: var(--yellow);
  transform: scale(1.28);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.16);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.differential-section {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 12vw, 160px) 22px;
  background:
    linear-gradient(120deg, rgba(19, 58, 94, 0.74), rgba(3, 5, 6, 0.88)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1900&q=85") center/cover;
}

.differential-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(242, 107, 34, 0.22), transparent 28%),
    linear-gradient(250deg, rgba(0, 169, 166, 0.24), transparent 32%);
}

.differential-inner {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.differential-inner ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 38px 0 0;
  list-style: none;
}

.differential-inner li {
  display: grid;
  grid-template-rows: 68px 58px;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 182px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 5, 6, 0.46);
  backdrop-filter: blur(12px);
  line-height: 1.55;
  text-align: center;
}

.differential-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  color: #fff;
}

.differential-icon svg {
  width: 58px;
  height: 58px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.differential-text {
  align-self: start;
  max-width: 230px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(3, 5, 6, 0.58);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 169, 166, 0.12);
}

.contact-form .button-primary {
  width: max-content;
}

.site-footer {
  padding: 58px clamp(22px, 4vw, 56px) 26px;
  border-top: 1px solid var(--border);
  background: #050708;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 34px;
  width: min(var(--max), 100%);
  margin: 0 auto 36px;
}

.footer-logo {
  width: 142px;
  margin-bottom: 18px;
}

.site-footer h3 {
  font-size: 1rem;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--muted);
  transition: color 180ms ease;
}

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

.footer-bottom {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox button {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox .lightbox-arrow {
  top: 50%;
  right: auto;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.6rem;
}

.lightbox .lightbox-prev {
  left: 24px;
}

.lightbox .lightbox-next {
  right: 24px;
}

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

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: 18px;
    display: grid;
    width: max-content;
    min-width: 190px;
    max-width: calc(100vw - 36px);
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(3, 5, 6, 0.94);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    width: 100%;
    padding: 12px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .split-section,
  .contact-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .about-visual-intro,
  .about-responsibility {
    grid-template-columns: 1fr;
  }

  .about-image-stack {
    min-height: 390px;
  }

  .services-grid,
  .differential-inner ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-logo {
    flex-basis: calc((100% - 36px) / 3) !important;
    max-width: calc((100% - 36px) / 3);
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 18px 18px;
  }

  .brand img {
    width: 124px;
  }

  .hero {
    align-items: end;
    padding-bottom: 78px;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.25rem);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.12;
  }

  h3 {
    font-size: 1.08rem;
    line-height: 1.28;
  }

  body {
    font-size: 15.5px;
    line-height: 1.62;
  }

  .hero-logo {
    width: 124px;
    margin-bottom: 18px;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 26px;
  }

  .section-copy p,
  .contact-copy p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .inner-hero {
    min-height: 58svh;
    padding-bottom: 64px;
  }

  .about-image-stack {
    min-height: 320px;
  }

  .about-stack-main {
    inset: 0 0 15% 0;
    width: 100%;
    height: 82%;
  }

  .about-stack-float {
    width: min(56%, 220px);
  }

  .about-block {
    min-height: 280px;
  }

  .about-responsibility {
    min-height: 430px;
    align-items: end;
  }

  .service-card p,
  .site-footer p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .differential-text {
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .section {
    width: min(100% - 34px, var(--max));
    padding-block: 76px;
  }

  .services-grid,
  .differential-inner ul,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  .clients-track {
    gap: 12px;
  }

  .clients-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .clients-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }

  .client-logo {
    flex-basis: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2);
    min-width: 0;
    height: 96px;
    padding: 16px;
  }

  .client-logo img {
    max-height: 58px;
  }

  .lightbox .lightbox-arrow {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .image-frame img {
    height: 420px;
    min-height: 0;
  }

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

@media (max-width: 420px) {
  .client-logo {
    flex-basis: 100% !important;
    max-width: 100%;
  }
}

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