/* =============================================================
   ZALA ENGENHARIA — Design System
   Premium · Dark · Engineering
   ============================================================= */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --red-primary:   #e60012;
  --red-dark:      #a9000d;
  --red-deep:      #650008;
  --red-glow:      rgba(230,0,18,.28);
  --red-glow-sm:   rgba(230,0,18,.14);

  /* Backgrounds */
  --bg-primary:    #07090b;
  --bg-secondary:  #0d1014;
  --bg-card:       #111518;
  --bg-card-hover: #161b20;
  --bg-glass:      rgba(17,21,24,.55);

  /* Borders */
  --border-primary:   #1e2226;
  --border-secondary: #2d3238;
  --border-accent:    rgba(230,0,18,.4);

  /* Typography */
  --text-primary:   #f2f2f2;
  --text-secondary: #9ea3aa;
  --text-muted:     #606570;

  /* Fonts */
  --font-heading: "Poppins", Arial, sans-serif;
  --font-body:    "Poppins", Arial, sans-serif;

  /* Layout */
  --container:     1280px;
  --header-height: 80px;

  /* Easing */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Shadows */
  --shadow-card:   0 20px 60px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.3);
  --shadow-glow:   0 0 32px var(--red-glow), 0 0 8px var(--red-glow-sm);
  --shadow-button: 0 8px 28px rgba(230,0,18,.35);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scrollbar-color: var(--red-primary) var(--bg-secondary);
  scrollbar-width: thin;
  overflow-x: clip;
}

/* Barra de rolagem */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--red-primary);
  border: 2px solid var(--bg-secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #ff1a2b; }

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open { overflow: hidden; }

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

::selection {
  background: var(--red-primary);
  color: #fff;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: min(var(--container), calc(100% - 128px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  background: #fff;
  color: #090b0d;
  padding: 10px 14px;
  font-weight: 700;
  border-radius: 4px;
}
.skip-link:focus { transform: none; }

/* ── Scroll Progress ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-primary), #ff3344);
  box-shadow: 0 0 20px rgba(230,0,18,.8), 0 0 6px rgba(230,0,18,.5);
  transition: width .1s linear;
}

/* Cursor customizado removido */

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(7,9,11,.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform .35s var(--ease), background .3s var(--ease), border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(7,9,11,.95);
  border-bottom-color: var(--border-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 24px rgba(0,0,0,.4);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}
.language-switcher { display: flex; align-items: center; }
.language-switcher select {
  min-width: 76px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 3px;
  padding: 8px 9px;
  background: rgba(7,9,11,.86);
  color: #fff;
  font: 600 .72rem var(--font-body);
  letter-spacing: .04em;
  cursor: pointer;
}
.language-switcher select:focus { outline: 2px solid var(--red-primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Brand ────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  transition: opacity .2s;
}
.brand:hover { opacity: .82; }
.brand__logo {
  display: block;
  width: 164px;
  height: 62px;
  object-fit: contain;
  /* The original SVG is white; this renders the header version in brand red. */
  filter: brightness(0) saturate(100%) invert(13%) sepia(98%) saturate(5843%) hue-rotate(351deg) brightness(90%) contrast(119%);
  transition: opacity .2s;
}
.brand:hover .brand__logo {
  opacity: .82;
}
.site-footer .brand__logo {
  width: 176px;
  height: 66px;
  filter: none;
}

/* ── Navigation ───────────────────────────────────────────── */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 2.4vw, 40px);
}
.main-nav a {
  position: relative;
  padding: 30px 0;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: .79rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-primary), transparent);
  transition: right .3s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--text-primary); }
.main-nav a:hover::after,
.main-nav a.is-active::after { right: 0; }

.menu-toggle { display: none; }

/* ── Buttons ──────────────────────────────────────────────── */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 30px;
  border: 1px solid var(--red-primary);
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease), color .25s;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.button:hover::before { opacity: 1; }
.button i {
  font-style: normal;
  font-size: 1.15rem;
  transition: transform .3s var(--ease-spring);
}
.button:hover {
  background: #c8000f;
  transform: translateY(-3px);
  box-shadow: var(--shadow-button);
}
.button:hover i { transform: translateX(6px); }
.button:active { transform: translateY(-1px); }

.button--outline {
  background: rgba(7,9,11,.6);
  backdrop-filter: blur(8px);
}
.button--outline:hover { background: var(--red-primary); }
.button--header {
  min-height: 44px;
  padding-inline: 22px;
  font-size: .77rem;
  white-space: nowrap;
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--red-primary);
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-glow);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 820px;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero__media,
.story__media,
.commitments__media,
.contact__pitch-bg,
.metrics__bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero__media {
  z-index: -3;
  object-fit: cover;
  transform: scale(1.08) translateY(var(--parallax, 0px));
  filter: brightness(.65) contrast(1.12) saturate(.7);
  transition: filter .6s;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(5,7,9,.98) 0%,
      rgba(5,7,9,.88) 35%,
      rgba(5,7,9,.42) 65%,
      rgba(5,7,9,.12) 100%
    ),
    linear-gradient(0deg,
      rgba(7,9,11,.92) 0%,
      transparent 40%
    ),
    radial-gradient(ellipse 80% 80% at 0% 50%, rgba(90,0,8,.35), transparent 65%);
}

.hero__mesh {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 40%;
  opacity: .1;
  background:
    repeating-linear-gradient(60deg,
      transparent 0 30px,
      rgba(255,255,255,.18) 31px,
      transparent 32px
    );
  clip-path: polygon(0 0, 100% 40%, 0 100%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 800px) 1fr;
  align-items: center;
  padding-top: var(--header-height);
}

.hero__content { padding-block: 80px 40px; }

.hero h1, h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: #3d3d3d;
}
.hero h1 span {
  color: inherit;
}
.hero h1 .hero__title-primary { color: #3d3d3d; }

.hero__intro {
  max-width: 560px;
  margin: 28px 0 34px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.78;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 16px 7px 10px;
  border: 1px solid var(--border-accent);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: .72rem;
  font-family: var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero__badge span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

.hero__aside {
  justify-self: end;
  display: grid;
  gap: 6px;
  padding: 16px 0 16px 22px;
  border-left: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.4);
  font-family: var(--font-heading);
  font-size: .68rem;
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero__aside::after {
  content: "";
  width: 60px; height: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--red-primary), transparent);
}

.hero__signature {
  position: absolute;
  right: 0; bottom: 64px;
  color: rgba(255,255,255,.45);
  font-family: var(--font-heading);
  font-size: .68rem;
  line-height: 1.55;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__signature span {
  display: block;
  width: 30px; height: 2px;
  margin-bottom: 10px;
  background: var(--red-primary);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%; bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-heading);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color .25s;
}
.scroll-cue:hover { color: rgba(255,255,255,.7); }
.scroll-cue__mouse {
  position: relative;
  display: grid;
  justify-items: center;
  width: 19px;
  height: 30px;
  border: 1px solid var(--red-primary);
  border-radius: 12px;
}
.scroll-cue__mouse span {
  width: 2px;
  height: 6px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--red-primary);
  animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  71%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  position: relative;
  padding: 104px 0;
}
.services,
.certifications {
  background: var(--bg-secondary);
}

.section-heading { margin-bottom: 44px; }
.section-heading--split {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) 1.4fr auto;
  align-items: end;
  gap: 64px;
}
.section-heading--line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading h2 {
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  line-height: .97;
  letter-spacing: -.025em;
}
.section-heading > p {
  max-width: 620px;
  margin: 0 0 8px;
  color: var(--text-secondary);
  line-height: 1.72;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s;
}
.text-link span {
  color: var(--red-primary);
  font-size: 1.25rem;
  transition: transform .3s var(--ease-spring);
}
.text-link:hover { color: var(--red-primary); }
.text-link:hover span { transform: translateX(6px); }

/* ── Services Grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 275px;
  padding: 32px 26px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 120%, rgba(230,0,18,.08), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover {
  z-index: 2;
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(230,0,18,.15);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { transform: scaleX(1); }

.icon-box {
  position: relative;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-bottom: 26px;
  border: 1.5px solid rgba(230,0,18,.35);
  background: linear-gradient(135deg, rgba(230,0,18,.12), rgba(230,0,18,.02));
  box-shadow: inset 0 0 0 4px rgba(230,0,18,.03), 0 4px 16px rgba(0,0,0,.2);
  color: var(--red-primary);
  transition: box-shadow .3s, border-color .3s;
}
.icon-box::before,
.icon-box::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  transition: width .3s var(--ease), height .3s var(--ease);
}
.icon-box::before {
  inset: 5px auto auto 5px;
  border-top: 1.5px solid var(--red-primary);
  border-left: 1.5px solid var(--red-primary);
}
.icon-box::after {
  inset: auto 5px 5px auto;
  border-right: 1.5px solid var(--red-primary);
  border-bottom: 1.5px solid var(--red-primary);
}
.service-card:hover .icon-box {
  border-color: rgba(230,0,18,.75);
  box-shadow: inset 0 0 0 4px rgba(230,0,18,.06), var(--shadow-glow);
}
.service-card:hover .icon-box::before,
.service-card:hover .icon-box::after { width: 16px; height: 16px; }

.service-card h3,
.project-card h3,
.cert-card h3,
.commitment h3,
.site-footer h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
}
.service-card h3 {
  min-height: 52px;
  font-size: 1.08rem;
  letter-spacing: .02em;
}
.service-card p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: .83rem;
  line-height: 1.65;
}

/* ── Metrics Band ─────────────────────────────────────────── */
.metrics {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0;
  background: linear-gradient(105deg, #5c0008 0%, #cc000f 45%, #6e0009 100%);
}
.metrics__bg {
  z-index: -1;
  opacity: .14;
  background-image: url('./assets/zala-hero.webp');
  background-position: center 60%;
  filter: grayscale(1) contrast(1.3);
  mix-blend-mode: multiply;
}
.metrics::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 20% 50%, rgba(255,255,255,.04), transparent),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0,0,0,.2), transparent);
  pointer-events: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  min-height: 155px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.2);
  transition: background .3s;
}
.metric:last-child { border-right: 0; }
.metric:hover { background: rgba(255,255,255,.04); }

.metric__icon {
  display: block;
  width: 48px; height: 48px;
  color: rgba(255,255,255,.9);
  margin-bottom: 2px;
}
.metric__icon svg { width: 100%; height: 100%; }
.metric strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.metric p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.78);
  font-family: var(--font-heading);
  font-size: .88rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Story Section ────────────────────────────────────────── */
.story {
  min-height: 580px;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
}
.story__media {
  z-index: -2;
  left: 38%;
  background-image: url('./assets/zala-history.webp');
  filter: brightness(.42) contrast(1.12) saturate(.7);
  background-position: center calc(50% + var(--parallax, 0px));
  transform: scale(1.07);
}
.story::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--bg-primary) 0%,
      var(--bg-primary) 40%,
      rgba(7,9,11,.88) 55%,
      rgba(7,9,11,.18) 100%
    );
}
.story__grid {
  display: grid;
  grid-template-columns: 62% 38%;
  align-items: end;
}
.story__content { max-width: 720px; }
.story h2,
.commitments h2,
.contact h2 {
  font-size: clamp(3rem, 4.6vw, 4.8rem);
  line-height: .97;
  letter-spacing: -.025em;
}
.story__content > p {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
}
.story__content .button { margin-top: 28px; }

.story__quote {
  justify-self: end;
  padding: 22px 0 22px 28px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.story__quote span {
  display: block;
  width: 36px; height: 3px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--red-primary), transparent);
}
.story__quote p {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: .74rem;
  letter-spacing: .16em;
  line-height: 1.65;
  text-transform: uppercase;
}

/* ── Projects Grid ────────────────────────────────────────── */
.projects { border-block: 1px solid var(--border-primary); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.project-card:hover {
  border-color: var(--border-secondary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.project-card__image {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,9,11,.5));
  pointer-events: none;
  transition: opacity .4s;
}
.project-card:hover .project-card__image::after { opacity: .6; }
.project-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.78) contrast(1.08) saturate(.8);
  transition: transform .6s var(--ease), filter .45s var(--ease);
}
.project-card:hover .project-card__image img {
  transform: scale(1.06);
  filter: brightness(.9) contrast(1.06) saturate(.92);
}

.project-card__body { padding: 22px 22px 26px; }
.project-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.18rem;
  letter-spacing: .01em;
}
.project-card h3 span {
  color: var(--red-primary);
  transition: transform .3s var(--ease-spring);
}
.project-card:hover h3 span { transform: translateX(6px); }
.project-card p,
.project-card small {
  display: block;
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: .83rem;
  line-height: 1.55;
}

/* ── Certifications ───────────────────────────────────────── */
.section-heading--quality {
  grid-template-columns: .9fr 1.7fr;
  align-items: center;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cert-card {
  min-height: 178px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 22px 16px;
  border: 1px solid var(--border-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  text-align: center;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.cert-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 0 20px var(--red-glow-sm);
}
.cert-icon {
  width: 68px; height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230,0,18,.3);
  background: radial-gradient(circle, rgba(230,0,18,.14), transparent 70%);
  transform: rotate(45deg);
  transition: box-shadow .3s, border-color .3s;
}
.cert-icon svg {
  width: 38px; height: 38px;
  transform: rotate(-45deg);
}
.cert-card:hover .cert-icon {
  border-color: rgba(230,0,18,.6);
  box-shadow: var(--shadow-glow);
}
.cert-card h3 {
  margin-top: 14px;
  font-size: .97rem;
  line-height: 1.3;
}

/* ── Commitments ──────────────────────────────────────────── */
.commitments {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 80px;
}
.commitments__media {
  z-index: -2;
  background-image: url('./assets/zala-history.webp');
  filter: brightness(.18) grayscale(.4);
}
.commitments::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,9,11,.98), rgba(7,9,11,.72));
}
.commitments-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  align-items: center;
  gap: 0;
}
.commitments__title { padding-right: 56px; }
.commitments h2 { font-size: clamp(2.5rem, 3.3vw, 3.9rem); }

.commitment {
  min-height: 215px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: center;
  gap: 16px;
  padding: 28px 32px;
  border-left: 1px solid rgba(255,255,255,.1);
  transition: background .3s, border-color .3s;
}
.commitment:hover {
  background: rgba(255,255,255,.025);
  border-left-color: rgba(230,0,18,.5);
}
.commitment > span {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230,0,18,.35);
  background: rgba(230,0,18,.07);
  color: var(--red-primary);
  transition: box-shadow .3s, border-color .3s;
}
.commitment:hover > span {
  border-color: rgba(230,0,18,.6);
  box-shadow: 0 0 18px rgba(230,0,18,.2);
}
.commitment > span svg { width: 30px; height: 30px; }
.commitment h3 { font-size: 1.16rem; }
.commitment p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: .84rem;
  line-height: 1.6;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 420px;
  background: var(--bg-secondary);
}
.contact__pitch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 80px max(32px, calc((100vw - var(--container)) / 2));
  padding-right: 68px;
  background: linear-gradient(145deg, #7d0009, var(--red-primary) 60%, #b0000c);
}
.contact__pitch-bg {
  z-index: -1;
  opacity: .18;
  background-image: url('./assets/zala-hero.webp');
  filter: grayscale(1) contrast(1.45);
  mix-blend-mode: multiply;
  background-position: 60% center;
}
.eyebrow--light {
  color: rgba(255,255,255,.7);
}
.eyebrow--light::before { background: rgba(255,255,255,.45); }
.contact__pitch p:last-child {
  max-width: 460px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}

.contact__form-wrap {
  display: grid;
  align-items: center;
  padding: 68px max(32px, calc((100vw - var(--container)) / 2));
  padding-left: 52px;
}
.contact-form { width: 100%; max-width: 740px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label { display: block; }
.contact-form label > span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-secondary);
  background: rgba(255,255,255,.025);
  color: #fff;
  outline: 0;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.contact-form input {
  height: 50px;
  padding: 0 18px;
  border-radius: 0;
}
.contact-form textarea {
  height: 118px;
  margin-top: 14px;
  padding: 16px 18px;
  resize: vertical;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red-primary);
  background: rgba(230,0,18,.04);
  box-shadow: 0 0 0 3px rgba(230,0,18,.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form .button { min-width: 210px; margin-top: 16px; }
.form-status {
  display: inline;
  margin-left: 16px;
  color: var(--text-secondary);
  font-size: .86rem;
}
.form-status.is-success { color: #68d391; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-primary);
  background: #050709;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1fr 1.3fr;
  gap: 72px;
  padding-block: 76px;
}
.footer-about > p {
  max-width: 300px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: .86rem;
  line-height: 1.75;
}
.site-footer h3 {
  margin-bottom: 22px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-primary);
}
.footer-grid > div:not(:first-child) > a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: .85rem;
  transition: color .2s, transform .2s;
}
.footer-grid > div:not(:first-child) > a:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}
.footer-contact p {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  margin: 10px 0;
  color: var(--text-secondary);
  font-size: .84rem;
}
.footer-contact p > span {
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--red-primary);
}
.footer-contact p > span svg {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-contact a:hover { color: var(--text-primary); }
.footer-bottom {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border-primary);
  color: var(--text-muted);
  font-size: .74rem;
}
.footer-bottom p:last-child span {
  display: inline-block;
  width: 36px; height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--red-primary), transparent);
}

/* ── Back to Top / WhatsApp Float ────────────────────────── */
.back-to-top {
  position: fixed;
  z-index: 80;
  right: 24px; bottom: 100px;
  width: 46px; height: 46px;
  border: 1px solid var(--border-secondary);
  background: rgba(7,9,11,.88);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: .28s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible; transform: none;
}
.back-to-top:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: 0 0 16px rgba(230,0,18,.2);
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 24px; bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.4), 0 0 0 0 rgba(37,211,102,.45);
  transition: transform .28s var(--ease), background .25s, box-shadow .25s;
  animation: whatsappPulse 3s infinite;
}
.whatsapp-float span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.whatsapp-float svg { width: 34px; height: 34px; flex-shrink: 0; }
.whatsapp-float:hover {
  background: #1dba56;
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 12px 36px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,0);
  animation: none;
}
@keyframes whatsappPulse {
  0%, 60%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,.4), 0 0 0 0 rgba(37,211,102,.5); }
  80%            { box-shadow: 0 6px 24px rgba(0,0,0,.4), 0 0 0 16px rgba(37,211,102,0); }
}

/* ── Reveal Animations ────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .75s var(--ease) var(--delay, 0ms),
    transform .75s var(--ease) var(--delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── SVG Icon System ──────────────────────────────────────── */
.technical-icon {
  width: 100%;
  height: 100%;
}

.technical-icon,
.metric__icon svg,
.cert-icon svg,
.commitment > span svg,
.footer-contact svg,
.whatsapp-float svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Certification icons match the red, 1px stroke of their diamond outline. */
.cert-icon svg {
  color: var(--red-primary);
  stroke-width: 1.25;
}

/* ── Portfolio Page ───────────────────────────────────────── */
.portfolio-hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: grid;
  align-items: end;
  padding: 166px 0 96px;
  overflow: hidden;
}
.portfolio-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('./assets/zala-history.webp') center 46%/cover no-repeat;
  filter: brightness(.42) contrast(1.1) saturate(.72);
  transform: scale(1.05);
}
.portfolio-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(5,7,9,.98),
      rgba(5,7,9,.78) 50%,
      rgba(5,7,9,.26)
    ),
    linear-gradient(0deg, rgba(7,9,11,.92), transparent 55%);
}
.portfolio-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red-primary), transparent 60%);
}

.portfolio-hero__content { position: relative; }
.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 44px;
  color: var(--text-muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.breadcrumb a:hover { color: var(--red-primary); }
.breadcrumb strong { color: var(--text-secondary); font-weight: 500; }

.portfolio-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.portfolio-hero h1 span { color: #3d3d3d; }
.portfolio-hero__content > p:last-child {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.portfolio-overview {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}
.portfolio-overview__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  align-items: end;
  gap: 72px;
}
.portfolio-overview h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
  line-height: 1;
}
.portfolio-overview__grid > p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.72;
}
.portfolio-count {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 32px;
  border-left: 1px solid var(--border-secondary);
}
.portfolio-count strong {
  color: var(--red-primary);
  font-family: var(--font-heading);
  font-size: 4.8rem;
  line-height: .8;
  text-shadow: 0 0 40px rgba(230,0,18,.3);
}
.portfolio-count span {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: .84rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.projects-catalog { background: var(--bg-secondary); }
.projects-catalog .section-heading { margin-bottom: 48px; }
.projects-catalog .section-heading h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
  line-height: 1;
}
.project-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.project-catalog__item {
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.project-catalog__item:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.project-catalog__item > img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  filter: brightness(.78) saturate(.82);
  transition: transform .6s var(--ease), filter .4s;
}
.project-catalog__item:hover > img {
  transform: scale(1.03);
  filter: brightness(.9) saturate(.95);
}
.project-catalog__body { padding: 28px; }
.project-catalog__index {
  color: var(--red-primary);
  font-family: var(--font-heading);
  font-size: .76rem;
  letter-spacing: .14em;
}
.project-catalog__body h3 {
  margin: 7px 0 15px;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}
.project-catalog__client {
  display: grid;
  gap: 2px;
  margin: 0 0 15px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: .85rem;
}
.project-catalog__client small {
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.project-catalog__body > p:not(.project-catalog__client) {
  margin: 0;
  color: var(--text-secondary);
  font-size: .87rem;
  line-height: 1.7;
}
.project-gallery { margin-top: 20px; }
.project-gallery summary {
  width: fit-content;
  cursor: pointer;
  color: var(--red-primary);
  font-family: var(--font-heading);
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.project-gallery > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 16px;
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border-primary);
}

.portfolio-list { background: var(--bg-primary); }
.portfolio-item {
  min-height: 650px;
  display: grid;
  grid-template-columns: 58% 42%;
  border-bottom: 1px solid var(--border-primary);
  scroll-margin-top: var(--header-height);
  transition: background .4s;
}
.portfolio-item:hover { background: rgba(255,255,255,.008); }
.portfolio-item--reverse { grid-template-columns: 42% 58%; }
.portfolio-item--reverse .portfolio-item__image { order: 2; }

.portfolio-item__image {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}
.portfolio-item__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(7,9,11,.4));
  transition: opacity .4s;
}
.portfolio-item--reverse .portfolio-item__image::after {
  background: linear-gradient(270deg, transparent 72%, rgba(7,9,11,.4));
}
.portfolio-item__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.74) contrast(1.06) saturate(.8);
  transition: transform .8s var(--ease), filter .55s;
}
.portfolio-item:hover .portfolio-item__image img {
  transform: scale(1.04);
  filter: brightness(.86) contrast(1.05) saturate(.92);
}

.portfolio-item__content {
  position: relative;
  align-self: center;
  max-width: 590px;
  padding: 80px clamp(36px, 6vw, 112px);
}
.project-index {
  position: absolute;
  right: 54px; top: 16px;
  color: rgba(255,255,255,.04);
  font-family: var(--font-heading);
  font-size: 11rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.portfolio-item__content h2 {
  position: relative;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  line-height: .97;
}
.portfolio-item__content > p:not(.eyebrow) {
  position: relative;
  margin: 28px 0;
  color: var(--text-secondary);
  line-height: 1.72;
}
.project-client {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 16px 0;
  border-block: 1px solid var(--border-primary);
}
.project-client svg { width: 34px; height: 34px; color: var(--red-primary); }
.project-client span { display: grid; color: var(--text-primary); font-weight: 600; }
.project-client small {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid var(--border-accent);
  background: rgba(230,0,18,.07);
  color: var(--red-primary);
  font-family: var(--font-heading);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.portfolio-item__content .button { position: relative; margin-top: 10px; }

.portfolio-cta {
  padding: 86px 0;
  background: linear-gradient(105deg, #5c0008, #b0000d 55%, #5c0008);
  overflow: hidden;
  position: relative;
}
.portfolio-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 30% 50%, rgba(255,255,255,.04), transparent);
  pointer-events: none;
}
.portfolio-cta__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}
.portfolio-cta h2 {
  max-width: 780px;
  font-size: clamp(2.8rem, 4.5vw, 4.7rem);
  line-height: .99;
}
.portfolio-cta .eyebrow { color: rgba(255,255,255,.72); }
.portfolio-cta .eyebrow::before { background: rgba(255,255,255,.45); }
.portfolio-cta .button {
  background: rgba(7,9,11,.85);
  border-color: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.portfolio-cta .button:hover {
  background: #fff;
  border-color: #fff;
  color: #090b0d;
  box-shadow: 0 8px 32px rgba(255,255,255,.2);
}

/* ── Responsive — 1180px ──────────────────────────────────── */
@media (max-width: 1180px) {
  .container { width: min(var(--container), calc(100% - 64px)); }
  .header__inner { grid-template-columns: 190px 1fr auto; gap: 20px; }
  .main-nav { gap: 20px; }
  .button--header { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .section-heading--split { grid-template-columns: .9fr 1.2fr; gap: 40px; }
  .section-heading--split .text-link { grid-column: 1/-1; justify-self: end; margin-top: -18px; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .commitments-grid { grid-template-columns: repeat(3, 1fr); }
  .commitments__title { grid-column: 1/-1; padding: 0 0 44px; max-width: 700px; }
  .contact__pitch, .contact__form-wrap { padding-inline: 32px; }
  .footer-grid { gap: 40px; }
}

/* ── Responsive — 860px ───────────────────────────────────── */
@media (max-width: 860px) {
  .header__inner { grid-template-columns: 1fr auto auto; }
  .header__inner > .button--header { display: none; }
  .language-switcher { margin-right: 12px; }
  :root { --header-height: 72px; }
  .site-header { height: var(--header-height); }
  .header__inner { display: flex; justify-content: space-between; }
  .brand__logo { width: 148px; height: 56px; }
  .menu-toggle {
    position: relative;
    z-index: 102;
    width: 46px; height: 46px;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--border-primary);
    background: transparent;
    color: #fff;
  }
  .menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    transition: transform .28s, width .28s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px 20px 32px;
    overflow: hidden;
    background: rgba(7,9,11,.98);
    backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transform: translateY(-12px);
    transition: .32s var(--ease);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { width: min(100%, 280px); min-width: 0; padding: 11px 0; font-size: 1.45rem; text-align: center; }
  .main-nav a::after { bottom: 8px; }
  .hero { min-height: 780px; height: auto; }
  .hero__grid { min-height: 780px; grid-template-columns: 1fr; }
  .hero__aside { display: none; }
  .hero h1 { font-size: clamp(2.8rem, 8vw, 3.8rem); }
  .hero__signature { display: none; }
  .section-heading--split, .section-heading--quality { grid-template-columns: 1fr; gap: 20px; }
  .section-heading--split .text-link { grid-column: auto; justify-self: start; margin-top: 0; }
  .metrics-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .metric:nth-child(2) { border-right: 0; }
  .story__grid { grid-template-columns: 1fr; }
  .story__content { max-width: 660px; }
  .story__quote { display: none; }
  .story__media { left: 15%; }
  .story::before { background: linear-gradient(90deg, rgba(7,9,11,.97), rgba(7,9,11,.65)); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card:last-child { grid-column: 1/-1; max-width: calc(50% - 11px); }
  .contact { grid-template-columns: 1fr; }
  .contact__pitch { min-height: 340px; padding-block: 64px; }
  .contact__form-wrap { padding-block: 60px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Responsive — 640px ───────────────────────────────────── */
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .brand__logo { width: 136px; height: 52px; }
  .site-footer .brand__logo { width: 156px; height: 59px; }
  .hero { min-height: 780px; }
  .hero__grid { min-height: 780px; }
  .hero::before {
    background:
      linear-gradient(100deg, rgba(5,7,9,.97), rgba(5,7,9,.62)),
      linear-gradient(0deg, rgba(7,9,11,.9), transparent 52%);
  }
  .hero__media { background-position: 62% calc(50% + var(--parallax, 0px)); }
  .hero__content { padding-top: 108px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 2.8rem); letter-spacing: -.03em; }
  .hero__intro { font-size: .95rem; line-height: 1.68; }
  .hero__actions { display: grid; }
  .hero__actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .section { padding-block: 68px; }
  .section-heading--line { align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 2.7rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .metrics { padding-block: 52px; }
  .metrics-grid { grid-template-columns: 1fr; row-gap: 0; }
  .metric { min-height: 168px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .metric:last-child { border-bottom: 0; }
  .story { min-height: 700px; }
  .story h2, .commitments h2, .contact h2 { font-size: 2.85rem; }
  .story__content > p { font-size: .93rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:last-child { grid-column: auto; max-width: none; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-card { min-height: 160px; }
  .commitments { padding-block: 68px; }
  .commitments-grid { grid-template-columns: 1fr; }
  .commitments__title { padding-bottom: 34px; }
  .commitment { min-height: 0; padding: 30px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .contact__pitch { padding-inline: 20px; }
  .contact__form-wrap { padding: 52px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form .button { width: 100%; }
  .form-status { display: block; margin: 14px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; padding-block: 56px; }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) { display: none; }
  .footer-bottom { min-height: 112px; align-items: flex-start; justify-content: center; flex-direction: column; padding-block: 26px; }
  .back-to-top { right: 16px; bottom: 96px; }
  .whatsapp-float {
    right: 16px; bottom: 24px;
    width: 56px; height: 56px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-float span {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .whatsapp-float svg { width: 29px; height: 29px; }
  .portfolio-hero { min-height: 600px; padding: 136px 0 72px; }
  .portfolio-hero h1 { font-size: clamp(2.4rem, 10vw, 2.7rem); }
  .portfolio-overview__grid { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-count { grid-column: auto; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--border-primary); }
  .portfolio-item__image { min-height: 320px; }
  .portfolio-item__content { padding: 52px 20px 68px; }
  .project-index { right: 20px; font-size: 7.5rem; }
  .portfolio-item__content h2 { font-size: 2.9rem; }
  .portfolio-cta { padding: 68px 0; }
}

/* ── Portfolio responsive — 1000px ───────────────────────── */
@media (max-width: 1000px) {
  .portfolio-overview__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .portfolio-count { grid-column: 1/-1; }
  .portfolio-item,
  .portfolio-item--reverse { grid-template-columns: 1fr; min-height: 0; }
  .portfolio-item--reverse .portfolio-item__image { order: 0; }
  .portfolio-item__image { min-height: 500px; aspect-ratio: 16/9; }
  .portfolio-item__image::after,
  .portfolio-item--reverse .portfolio-item__image::after {
    background: linear-gradient(0deg, rgba(7,9,11,.45), transparent 50%);
  }
  .portfolio-item__content { max-width: none; padding: 64px 32px 80px; }
  .portfolio-cta__inner { align-items: start; flex-direction: column; }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 720px) {
  .project-catalog__grid { grid-template-columns: 1fr; }
  .project-catalog__item > img { height: 220px; }
  .project-catalog__body { padding: 22px; }
}

/* Mobile portfolio safeguards — kept last so they override wider breakpoints. */
@media (max-width: 640px) {
  .portfolio-page,
  .portfolio-page main,
  .portfolio-page section,
  .portfolio-page .container { min-width: 0; }
  .portfolio-overview__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .portfolio-count { grid-column: auto; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--border-primary); }
  .portfolio-item,
  .portfolio-item--reverse { grid-template-columns: minmax(0, 1fr); }
  .portfolio-item__image { min-height: 320px; aspect-ratio: auto; }
  .portfolio-item__content { max-width: 100%; padding: 52px 20px 68px; }
  .portfolio-cta__inner { align-items: stretch; gap: 30px; }
  .portfolio-cta .button { width: 100%; }
}
