:root {
  --red: #b20f18;
  --red-dark: #7c0710;
  --ink: #151515;
  --coal: #202124;
  --paper: #f3f0ea;
  --concrete: #d7d1c8;
  --steel: #8f969a;
  --yellow: #d79b24;
  --green: #2f5d45;
  --white: #fffdf8;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 21, 21, .035) 1px, transparent 1px);
  background-size: 72px 72px;
}

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

[id] {
  scroll-margin-top: 110px;
}

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 15;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(21, 21, 21, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 214px;
  min-width: 178px;
  height: 66px;
  padding: 4px 16px;
  background: rgba(255, 255, 255, .95);
  border-radius: 6px;
  overflow: hidden;
}

.brand img {
  width: 142px;
  height: auto;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

nav a,
.header-cta {
  min-height: 42px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}

nav a:hover {
  background: rgba(255, 255, 255, .12);
}

.header-cta {
  color: var(--white);
  background: var(--red);
}

.header-cta:hover {
  background: #d71924;
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px max(24px, calc((100vw - 1180px) / 2)) 44px;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  transform: scale(1.04);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.08);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .54) 46%, rgba(0, 0, 0, .22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .44) 0%, rgba(0, 0, 0, .02) 42%, rgba(0, 0, 0, .72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: calc(100svh - 176px);
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #ff4b55;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(52px, 10vw, 126px);
  line-height: .88;
  font-weight: 900;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 15px 22px;
  border-radius: 6px;
  font-weight: 900;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--red);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}

.btn.dark {
  color: var(--white);
  background: var(--ink);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 44px;
  z-index: 2;
  width: min(320px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}

.hero-panel span,
.hero-panel p {
  color: rgba(255, 255, 255, .72);
}

.hero-panel strong {
  display: block;
  margin: 6px 0;
  color: var(--yellow);
  font-size: 54px;
  line-height: 1;
}

.hero-panel p {
  margin-bottom: 0;
  line-height: 1.5;
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  color: var(--white);
  background: var(--red);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 26s linear infinite;
}

.marquee span {
  position: relative;
  font-size: clamp(22px, 4vw, 56px);
  font-weight: 900;
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  transform: translateY(-50%);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(21, 21, 21, .14);
}

.metric {
  min-height: 190px;
  padding: 34px;
  border-right: 1px solid rgba(21, 21, 21, .14);
}

.metric strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: .9;
}

.metric span {
  color: #555;
  font-weight: 800;
}

.intro,
.showcase,
.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  padding: 112px 0 66px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 7vw, 82px);
  line-height: .95;
  font-weight: 900;
}

.intro-copy,
.showcase-copy p,
.safety-copy p,
.contact-card p {
  color: #555;
  font-size: 18px;
  line-height: 1.65;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 110px;
  background: rgba(21, 21, 21, .14);
  border: 1px solid rgba(21, 21, 21, .14);
}

.service-card {
  min-height: 300px;
  padding: 30px;
  background: var(--white);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.service-card:hover {
  color: var(--white);
  background: var(--coal);
  transform: translateY(-10px);
}

.service-card:hover p,
.service-card:hover span {
  color: rgba(255, 255, 255, .72);
}

.service-card span {
  color: var(--red);
  font-weight: 900;
}

.service-card h3 {
  margin: 58px 0 16px;
  font-size: 30px;
  line-height: 1.05;
}

.service-card p {
  margin-bottom: 0;
  color: #5f5f5f;
  line-height: 1.58;
}

.showcase {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 112px;
}

.showcase-copy {
  position: sticky;
  top: 122px;
}

.showcase-copy h2 {
  margin-bottom: 22px;
}

.work-stack {
  display: grid;
  gap: 22px;
}

.work-card {
  position: sticky;
  top: 108px;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--coal);
  box-shadow: 0 28px 70px rgba(21, 21, 21, .18);
}

.work-card:nth-child(2) {
  top: 132px;
}

.work-card:nth-child(3) {
  top: 156px;
}

.work-card img {
  height: 560px;
  object-fit: cover;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .72));
}

.work-card figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: var(--white);
}

.work-card figcaption span {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.work-card figcaption strong {
  display: block;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1;
}

.safety {
  padding: 112px 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 52px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.safety-media {
  overflow: hidden;
  border-radius: 8px;
}

.safety-media img {
  aspect-ratio: 1.22;
  height: auto;
  object-fit: cover;
}

.safety-copy h2 {
  margin-bottom: 22px;
}

.safety-copy p {
  color: rgba(255, 255, 255, .72);
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.checks span {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 112px auto;
  grid-auto-rows: 330px;
}

.gallery-item {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--coal);
}

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

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

.gallery-item img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.contact {
  padding-bottom: 112px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 7vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(124, 7, 16, .95), rgba(32, 33, 36, .96)),
    url("assets/escavadeira-cacamba.png") center/cover;
  border-radius: 8px;
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -28%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .12);
  transform: rotate(12deg);
}

.contact-card h2,
.contact-card p,
.contact-actions {
  position: relative;
  z-index: 1;
}

.contact-card h2 {
  max-width: 920px;
  margin-bottom: 22px;
}

.contact-card p {
  max-width: 680px;
  color: rgba(255, 255, 255, .78);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(20px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, .76);
  background: var(--ink);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  nav {
    display: none;
  }

  .header-cta {
    justify-self: end;
  }

  .hero {
    min-height: 920px;
  }

  .hero-content {
    min-height: 620px;
  }

  .hero-panel {
    left: 24px;
    right: 24px;
  }

  .metrics,
  .intro,
  .services,
  .showcase,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(21, 21, 21, .14);
  }

  .intro {
    gap: 24px;
    padding-top: 82px;
  }

  .services {
    margin-bottom: 82px;
  }

  .showcase-copy {
    position: static;
  }

  .work-card,
  .work-card:nth-child(2),
  .work-card:nth-child(3) {
    position: relative;
    top: 0;
    min-height: 460px;
  }

  .work-card img {
    height: 460px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    margin: 82px auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 62px;
    gap: 10px;
  }

  .brand {
    width: 142px;
    min-width: 128px;
    height: 48px;
    padding: 5px 12px;
  }

  .brand img {
    width: 112px;
  }

  .header-cta {
    min-height: 38px;
    padding: 10px 11px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 104px 20px 30px;
  }

  .hero-content {
    min-height: auto;
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .hero-copy,
  .intro-copy,
  .showcase-copy p,
  .safety-copy p,
  .contact-card p {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 28px;
  }

  .service-card {
    min-height: 250px;
  }

  .checks,
  .gallery {
    grid-template-columns: 1fr;
  }

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

  footer {
    flex-direction: column;
  }
}
