:root {
  --accent: #b04600;
  --accent-on-dark: #ff9b61;
  --ink: #151515;
  --paper: #f6f4ef;
  --stone: #dedbd4;
  --muted: #67645f;
  --line: #c9c5bd;
  --header-height: 76px;
  --shell: min(1180px, calc(100% - 48px));
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 30; padding: .7rem; background: #fff; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 10; height: var(--header-height); background: #fff; border-bottom: 1px solid #e6e3dd; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.brand { display: block; flex: 0 0 auto; text-decoration: none; }
.brand picture, .brand img { display: block; width: 180px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.7rem; }
.primary-nav a { position: relative; padding: .45rem 0; font-size: .82rem; font-weight: 700; text-decoration: none; }
.primary-nav a::after { position: absolute; right: 0; bottom: .1rem; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--accent); }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; padding: .65rem; border: 0; background: none; cursor: pointer; }
.menu-toggle span[aria-hidden] { display: block; width: 24px; height: 2px; margin: 5px; background: var(--ink); }

.hero { position: relative; display: grid; min-height: calc(100svh - var(--header-height)); align-items: end; isolation: isolate; color: #fff; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: 50% 60%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .24) 68%, rgba(0, 0, 0, .1)); }
.hero-content { padding: clamp(5rem, 12vh, 9rem) 0 7rem; }
.kicker { margin: 0 0 1rem; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kicker.light { color: #fff; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(3rem, 7.4vw, 6.8rem); line-height: .91; letter-spacing: -.075em; text-wrap: balance; }
.hero-copy { max-width: 550px; margin: 1.6rem 0 2rem; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.25rem; border: 0; font-size: .82rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-orange { color: #fff; background: var(--accent); }
.button-orange:hover, .button-orange:focus-visible { background: #853300; }
.hero-caption { position: absolute; right: max(24px, calc((100% - 1180px) / 2)); bottom: 1.45rem; font-size: .72rem; font-weight: 700; text-decoration: none; }
.hero-caption span { margin-left: .35rem; font-size: 1.2rem; }
.credentials-band { color: #fff; background: var(--accent); }
.credentials-band p { margin: 0; padding: 1rem 0; font-size: clamp(.78rem, 1.25vw, .9rem); font-weight: 700; letter-spacing: .02em; line-height: 1.45; text-align: center; }
.credentials-band span { margin: 0 .55rem; color: #fff; }

.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 10vw, 10rem); }
.section-heading h2, .equipment h2, .contact h2 { max-width: 640px; margin: 0; font-size: clamp(2.25rem, 4.4vw, 4.8rem); line-height: .96; letter-spacing: -.06em; }
.intro-copy { max-width: 570px; font-size: 1.08rem; }
.intro-copy p:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 2px solid var(--ink); }
.facts dt { color: var(--muted); font-size: .69rem; font-weight: bold; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: .2rem 0; font-size: 1rem; font-weight: bold; }
.facts dd span { font-size: .8rem; font-weight: normal; }

.services, .contact { color: #fff; background: var(--ink); }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.heading-row > p { max-width: 330px; margin: 0; color: inherit; }
.service-list { margin-top: 4rem; border-top: 1px solid #4e4e4e; }
.service-list article { display: grid; grid-template-columns: 70px minmax(180px, 1fr) 1.4fr; gap: 1rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid #4e4e4e; }
.service-list span { color: var(--accent-on-dark); font-size: .75rem; font-weight: bold; }
.service-list h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.service-list p { max-width: 550px; margin: 0; color: #ddd; }

.soil-summary { background: #fff; border-bottom: 1px solid var(--line); }
.soil-summary-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(3rem, 10vw, 10rem); align-items: center; }
.soil-summary h2, .soil-page main h2 { max-width: 640px; margin: 0; font-size: clamp(2.25rem, 4.4vw, 4.8rem); line-height: .96; letter-spacing: -.06em; }
.soil-summary-copy { max-width: 530px; padding-top: .3rem; font-size: 1.08rem; }
.soil-summary-copy p { margin-top: 0; }
.soil-summary .button { margin-top: 1rem; }

.soil-page-hero { position: relative; display: grid; min-height: min(720px, calc(100svh - var(--header-height))); align-items: end; isolation: isolate; overflow: hidden; padding: clamp(5.5rem, 11vw, 10rem) 0 clamp(4.5rem, 9vw, 8rem); color: #fff; background: var(--ink); }
.soil-page-hero-image, .soil-page-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.soil-page-hero-image { z-index: -2; object-fit: cover; object-position: 58% 30%; }
.soil-page-hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(21, 21, 21, .84), rgba(21, 21, 21, .5) 55%, rgba(21, 21, 21, .18)); }
.soil-page-hero > .shell { position: relative; z-index: 0; }
.soil-page-hero .kicker { color: #fff; }
.soil-page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.075em; text-wrap: balance; }
.soil-page-hero .lead { max-width: 620px; margin: 1.8rem 0 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.soil-page-intro { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(3rem, 10vw, 10rem); align-items: center; }
.soil-page-intro-copy { max-width: 650px; font-size: 1.08rem; }
.soil-page-intro-copy p:first-child { margin-top: 0; }
.soil-factors { background: #fff; }
.soil-factor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin: 3.5rem 0 0; border-top: 2px solid var(--ink); }
.soil-factor-list article { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.soil-factor-list h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.03em; }
.soil-factor-list p { max-width: 42ch; margin: .6rem 0 0; color: var(--muted); }
.soil-when { background: var(--paper); }
.soil-when-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(3rem, 10vw, 10rem); }
.soil-checklist { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.soil-checklist li { position: relative; padding: 1.2rem 0 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.soil-checklist li::before { position: absolute; left: 0; content: "—"; color: var(--accent); font-weight: 800; }
.soil-contact { color: #fff; background: var(--ink); }
.soil-contact-layout { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.soil-contact p:not(.kicker) { max-width: 580px; margin: 1.5rem 0 0; font-size: 1.08rem; }
.soil-contact .button { flex: 0 0 auto; }

.equipment { background: #fcfbf8; }
.equipment-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(3rem, 10vw, 10rem); align-items: end; }
.equipment h2 { max-width: 640px; }
.equipment-intro > p { max-width: 540px; margin: 0; font-size: 1.08rem; }
.equipment-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(3rem, 6vw, 5rem); border-top: 2px solid var(--ink); }
.equipment-list article { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.equipment-list h3 { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -.03em; }
.equipment-list p { max-width: 34ch; margin: .55rem 0 0; color: var(--muted); }
.projects { background: var(--stone); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 4rem; background: var(--ink); }
.project { display: grid; grid-template-rows: 1fr auto; min-height: 330px; margin: 0; background: var(--paper); }
.project-large { grid-row: span 2; }
.project:nth-child(4) { grid-column: 1 / -1; }
.project picture { display: block; min-height: 0; }
.project img { width: 100%; height: 100%; min-height: 275px; object-fit: cover; object-position: center; }
.project-large img { min-height: 580px; object-position: 50% 56%; }
.project-grid > .project-large img { filter: brightness(1.15); }
.project:nth-child(2) img { object-position: 54% 50%; }
.project:nth-child(3) img { object-position: 50% 48%; }
.project:nth-child(4) img { object-position: 50% 58%; }
.project figcaption { padding: 1rem 1.2rem 1.25rem; border-top: 4px solid var(--accent); font-size: .82rem; }
.project figcaption b { display: block; margin-bottom: .2rem; font-size: 1rem; }
.project figcaption span { color: var(--muted); }
.projects-cta { margin-top: 2.5rem; text-align: center; }

.works-page-hero { position: relative; display: grid; min-height: min(720px, calc(100svh - var(--header-height))); align-items: end; isolation: isolate; overflow: hidden; padding: clamp(5.5rem, 11vw, 10rem) 0 clamp(4.5rem, 9vw, 8rem); color: #fff; background: var(--ink); }
.works-page-hero-image, .works-page-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.works-page-hero-image { z-index: -2; object-fit: cover; object-position: 48% 42%; }
.works-page-hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(21, 21, 21, .86), rgba(21, 21, 21, .54) 55%, rgba(21, 21, 21, .2)); }
.works-page-hero > .shell { position: relative; z-index: 0; }
.works-page-hero .kicker { color: #fff; }
.works-page-hero h1 { max-width: 940px; margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.075em; text-wrap: balance; }
.works-page-hero .lead { max-width: 690px; margin: 1.8rem 0 0; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.works-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 10vw, 10rem); }
.works-intro > p { max-width: 620px; margin: 0; font-size: 1.08rem; }
.works-list { background: var(--paper); }
.works-list-title { max-width: 700px; margin: 0; padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2rem, 4vw, 3.5rem); line-height: .96; letter-spacing: -.06em; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); border-top: 2px solid var(--ink); }
.work-card { display: flex; flex-direction: column; padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line); }
.work-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.work-card h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.02; letter-spacing: -.04em; }
.work-details { margin: 1.5rem 0 0; }
.work-details div { padding: .7rem 0; border-top: 1px solid var(--line); }
.work-details div:last-child { padding-bottom: 0; }
.work-details dt { margin-bottom: .25rem; color: var(--muted); font-size: .72rem; font-weight: 800; }
.work-details dd { margin: 0; font-size: .94rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr); gap: clamp(3rem, 10vw, 10rem); align-items: start; }
.contact-copy > p:not(.kicker) { max-width: 420px; font-size: 1.1rem; }
.contact-direct { border-top: 1px solid #555; }
.contact-whatsapp { display: flex; align-items: center; min-height: 58px; margin-top: 1rem; padding: 1rem 1.2rem; background: var(--accent); color: #fff; font-size: .92rem; font-weight: 800; text-decoration: none; }
.contact-whatsapp:hover, .contact-whatsapp:focus-visible { background: #853300; }
.contact-links { margin-top: 1rem; }
.contact-links a { display: grid; grid-template-columns: minmax(78px, .42fr) 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #555; color: #fff; text-decoration: none; }
.contact-links a:hover strong, .contact-links a:focus-visible strong { color: var(--accent-on-dark); }
.contact-links span { color: #bbb; font-size: .72rem; font-weight: 700; }
.contact-links strong { overflow-wrap: anywhere; font-size: .9rem; }

.site-footer { color: var(--ink); background: #fff; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.55; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 4.5rem) 0 2.75rem; }
.footer-brand img { width: 199px; height: auto; }
.footer-descriptor { max-width: 40ch; margin: 1.4rem 0 0; color: var(--muted); }
.footer-heading { margin: 0 0 1.1rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1.3rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .875rem; }
.site-footer .footer-social { display: flex; gap: 1.5rem; }

button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.whatsapp-float { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20; display: grid; width: 52px; height: 52px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 3px 12px rgba(21, 21, 21, .24); color: #fff; }
.whatsapp-float:hover { background: #853300; }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink), 0 3px 12px rgba(21, 21, 21, .24); }
.whatsapp-float img { display: block; width: 25px; height: 25px; filter: invert(1); }

.whatsapp-float::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: .45rem .7rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (hover: none), (pointer: coarse) {
  .whatsapp-float::after { content: none; }
}

@media (max-width: 700px) {
  :root { --header-height: 62px; --shell: min(100% - 32px, 1180px); }
  .brand img { width: 142px; height: auto; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: var(--header-height); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 1rem max(16px, calc((100% - 1180px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 1rem 0; border-bottom: 1px solid #e7e4de; }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a::after { right: auto; width: 3rem; }
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero-image { object-position: 58% 61%; }
  .hero h1 { font-size: clamp(2.65rem, 13.5vw, 3.4rem); text-wrap: wrap; }
  .hero-content { padding-bottom: 6.5rem; }
  .hero-caption { right: auto; left: 16px; }
  .credentials-band p { padding: .85rem 0; text-align: left; }
  .credentials-band span { margin: 0 .3rem; }
  .soil-page-hero-image { object-position: 68% 30%; }
  .works-page-hero-image { object-position: 48% 38%; }
  .intro, .soil-summary-layout, .soil-page-intro, .soil-when-layout, .equipment-intro, .contact-layout, .works-intro { grid-template-columns: 1fr; }
  .soil-factor-list { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .soil-contact-layout { display: block; }
  .soil-contact .button { margin-top: 2rem; }
  .facts { grid-template-columns: 1fr; gap: .8rem; }
  .heading-row { display: block; }
  .heading-row > p { margin-top: 1.2rem; }
  .service-list { margin-top: 2.5rem; }
  .service-list article { grid-template-columns: 38px 1fr; padding: 1.2rem 0; }
  .service-list article p { grid-column: 2; }
  .equipment-list { grid-template-columns: 1fr; gap: 0; margin-top: 2.5rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project, .project-large { grid-row: auto; min-height: auto; }
  .project:nth-child(4) { grid-column: auto; }
  .project img, .project-large img { min-height: 0; height: auto; max-height: 350px; aspect-ratio: 1.45 / 1; }
  .project-large img { object-position: 50% 56%; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card { padding: 1.5rem 0 1.75rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.9rem; padding: 2.5rem 0 1.9rem; }
  .footer-brand img { width: 148px; }
  .footer-descriptor { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 1.75rem; }
  .contact-direct { margin-top: .5rem; }
  .contact-whatsapp { width: 100%; }
  .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .whatsapp-float::after { transition: none; } }
