:root {
  --olive: #5e582e;
  --olive-dark: #302d14;
  --sand: #f0e6d1;
  --stone: #d2d3d5;
  --ink: #1c1b16;
  --paper: #fffaf0;
  --white: #ffffff;
  --line: rgba(94, 88, 46, 0.18);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--sand);
  background: rgba(48, 45, 20, 0.78);
  border-bottom: 1px solid rgba(240, 230, 209, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
}

.brand img {
  width: 212px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  background: var(--sand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav a,
.header-cta {
  opacity: 0.9;
}

.nav a:hover,
.header-cta:hover {
  opacity: 1;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  padding: 10px 16px;
  color: var(--olive-dark);
  background: var(--sand);
  font-weight: 700;
}

.social-icon,
.footer-social {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.social-icon {
  width: 42px;
  height: 42px;
  color: var(--sand);
  border: 1px solid rgba(240, 230, 209, 0.34);
  background: rgba(240, 230, 209, 0.08);
}

.social-icon img,
.footer-social img {
  display: none;
}

.social-icon::before,
.footer-social::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("./assets/img/instagram-icon.svg") center / contain no-repeat;
  -webkit-mask: url("./assets/img/instagram-icon.svg") center / contain no-repeat;
}

.social-icon:hover {
  color: var(--olive-dark);
  background: var(--sand);
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(30, 28, 12, 0.9) 0%, rgba(30, 28, 12, 0.58) 42%, rgba(30, 28, 12, 0.34) 100%),
    linear-gradient(180deg, rgba(30, 28, 12, 0.42) 0%, rgba(30, 28, 12, 0.08) 36%, rgba(30, 28, 12, 0.72) 100%),
    radial-gradient(circle at 78% 28%, rgba(240, 230, 209, 0.16), transparent 32%);
  box-shadow: inset 0 -140px 150px rgba(30, 28, 12, 0.54), inset 0 110px 130px rgba(30, 28, 12, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(850px, 100%);
  padding: 138px clamp(20px, 6vw, 76px) 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: currentColor;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 6.25vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.26rem);
  line-height: 1.55;
}

.hero-actions,
.intro-grid,
.brand-cards,
.portfolio-grid,
.location-grid {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: var(--olive-dark);
  background: var(--sand);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.build-icon {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 23px;
  height: 18px;
}

.build-icon::before,
.build-icon::after,
.briefing-submit .build-icon span {
  content: "";
  display: block;
  width: 5px;
  background: currentColor;
}

.build-icon::before {
  height: 8px;
}

.build-icon::after {
  height: 14px;
}

.build-icon {
  background:
    linear-gradient(currentColor 0 0) 16px bottom / 5px 18px no-repeat;
}

.briefing-submit.is-building .build-icon::before {
  animation: buildBlock 0.7s ease-in-out infinite;
}

.briefing-submit.is-building .build-icon::after {
  animation: buildBlock 0.7s 0.12s ease-in-out infinite;
}

.briefing-submit.is-building .build-icon {
  animation: buildPulse 0.7s ease-in-out infinite;
}

@keyframes buildBlock {
  0%,
  100% {
    transform: scaleY(0.58);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes buildPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.band,
.about,
.solutions,
.brand-band,
.project-band,
.portfolio,
.locations,
.seo-faq,
.briefing {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 76px);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(160px, 0.46fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  margin-bottom: 36px;
}

.section-title.compact {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.section-title h2,
.about h2,
.project-copy h2,
.briefing h2 {
  margin-bottom: 0;
  color: var(--olive-dark);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro {
  background: var(--sand);
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.intro-grid article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.42);
}

.intro-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--olive);
  font-weight: 900;
}

.intro-grid h3,
.solution h3,
.brand-cards h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.intro-grid p,
.about-copy p,
.about-facts span,
.solution p,
.brand-cards p,
.portfolio-card p,
.project-copy p,
.briefing p {
  color: rgba(28, 27, 22, 0.72);
  line-height: 1.58;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.48fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-copy {
  max-width: 840px;
  font-size: 1.04rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: grid;
  gap: 12px;
}

.about-facts div {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.about-facts strong {
  display: block;
  margin-bottom: 10px;
  color: var(--olive);
  font-size: 1.7rem;
}

.solutions {
  background: var(--paper);
}

.solution-list {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.solution {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 190px;
  border: 1px solid var(--line);
  background: var(--white);
}

.solution.featured {
  grid-row: span 3;
  grid-template-columns: 1fr;
}

.solution img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: var(--stone);
}

.solution:not(.featured) img {
  padding: 18px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, var(--paper), var(--white));
}

.solution.featured img {
  aspect-ratio: 1.18 / 1;
  min-height: 420px;
  object-position: center bottom;
}

.solution div {
  padding: 24px;
}

.brand-band {
  color: var(--sand);
  background: var(--olive);
}

.brand-band .section-title h2,
.brand-band .eyebrow,
.brand-band p {
  color: currentColor;
}

.brand-cards {
  grid-template-columns: repeat(3, 1fr);
}

.brand-cards article {
  display: grid;
  grid-template-rows: 136px auto 1fr auto;
  align-items: start;
  min-height: 300px;
  padding: 32px;
  color: var(--ink);
  background: var(--sand);
}

.partner-logo {
  align-self: center;
  width: 170px;
  height: 72px;
  margin-bottom: 0;
  object-fit: contain;
  object-position: left center;
}

.partner-logo.cavaletti {
  width: 210px;
}

.partner-logo-box {
  display: grid;
  place-items: center;
  width: 264px;
  height: 112px;
  margin-bottom: 0;
  padding: 18px 22px;
  background: #071a33;
}

.partner-logo.amsouza {
  width: 232px;
  height: 76px;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.brand-cards a {
  display: inline-block;
  margin-top: 16px;
  color: var(--olive);
  font-weight: 900;
}

.project-band {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--white);
}

.project-copy p {
  max-width: 620px;
}

.project-copy h2 + p {
  margin-top: 24px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--olive);
  background: var(--paper);
  font-weight: 700;
}

.project-band figure {
  margin: 0;
}

.project-band img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
}

.portfolio {
  background: var(--paper);
}

.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
}

.portfolio-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.portfolio-card.wide {
  grid-column: span 2;
}

.portfolio-card.tall {
  grid-row: span 2;
}

.portfolio-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-card.wide img {
  aspect-ratio: 16 / 9;
}

.portfolio-card.tall img {
  aspect-ratio: 4 / 5;
}

.portfolio-card div {
  padding: 24px;
}

.portfolio-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.locations {
  background: var(--white);
}

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

.location-card {
  display: grid;
  grid-template-rows: auto 320px;
  min-height: 520px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.location-card div {
  padding: 26px;
}

.location-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.location-card p {
  color: rgba(28, 27, 22, 0.72);
  line-height: 1.55;
}

.location-card a {
  display: inline-block;
  margin-top: 8px;
  color: var(--olive);
  font-weight: 900;
}

.location-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(0.95);
}

.seo-faq {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faq-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.faq-grid h3 {
  margin-bottom: 12px;
  color: var(--olive-dark);
  font-size: 1.16rem;
}

.faq-grid p {
  margin: 0;
  color: rgba(28, 27, 22, 0.72);
  line-height: 1.58;
}

.briefing {
  background:
    linear-gradient(90deg, rgba(94, 88, 46, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(94, 88, 46, 0.08) 1px, transparent 1px),
    var(--sand);
  background-size: 54px 54px;
}

.briefing-panel {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(48, 45, 20, 0.2);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-line {
  margin-top: 22px;
  font-weight: 900;
}

.contact-line a {
  color: var(--olive-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 76px);
  color: var(--sand);
  background: var(--olive-dark);
  font-size: 0.86rem;
}

.footer-links {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--sand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-social {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 230, 209, 0.24);
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(240, 230, 209, 0.22);
  color: var(--sand);
  background: rgba(48, 45, 20, 0.96);
  box-shadow: 0 18px 50px rgba(28, 27, 22, 0.24);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: rgba(240, 230, 209, 0.86);
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--sand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner .button {
  min-width: 92px;
}

.legal-main {
  min-height: 100vh;
  padding: 132px clamp(20px, 6vw, 76px) 76px;
  background: var(--paper);
}

.legal-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-shell h1 {
  margin-bottom: 22px;
  color: var(--olive-dark);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.legal-shell h2 {
  margin: 34px 0 12px;
  color: var(--olive-dark);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.legal-shell p,
.legal-shell li {
  color: rgba(28, 27, 22, 0.76);
  line-height: 1.65;
}

.legal-shell a {
  color: var(--olive-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--olive);
  font-weight: 900;
}

.blog-main {
  min-height: 100vh;
  padding: 132px clamp(20px, 6vw, 76px) 76px;
  background: var(--paper);
}

.blog-hero {
  width: min(1080px, 100%);
  margin: 0 auto 42px;
}

.blog-hero h1 {
  margin-bottom: 18px;
  color: var(--olive-dark);
  font-size: clamp(2.55rem, 5.4vw, 5.4rem);
}

.blog-hero p {
  max-width: 760px;
  color: rgba(28, 27, 22, 0.76);
  font-size: 1.08rem;
  line-height: 1.65;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: var(--white);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-card div {
  padding: 22px;
}

.blog-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h2 {
  margin-bottom: 12px;
  color: var(--olive-dark);
  font-size: 1.24rem;
  line-height: 1.15;
}

.blog-card p {
  margin: 0;
  color: rgba(28, 27, 22, 0.72);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-top: 4px;
  }

  .header-cta {
    display: inline-flex;
  }

  .section-title,
  .intro-grid,
  .about-grid,
  .solution-list,
  .brand-cards,
    .portfolio-grid,
    .location-grid,
    .faq-grid,
    .blog-grid,
  .project-band,
  .briefing-panel {
    grid-template-columns: 1fr;
  }

  .solution.featured {
    grid-row: auto;
  }

  .portfolio-card.wide,
  .portfolio-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .location-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
  }

  .brand {
    min-width: 180px;
  }

  .brand img {
    width: 180px;
    height: 46px;
  }

  .hero {
    display: block;
    min-height: auto;
    color: var(--ink);
    background: var(--paper);
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: 300px;
  }

  .hero-overlay {
    display: block;
    inset: 0 0 auto;
    height: 300px;
    background:
      linear-gradient(180deg, rgba(30, 28, 12, 0.26) 0%, rgba(30, 28, 12, 0.04) 42%, rgba(30, 28, 12, 0.58) 100%),
      radial-gradient(circle at 72% 18%, rgba(240, 230, 209, 0.2), transparent 34%);
    box-shadow: inset 0 -92px 110px rgba(30, 28, 12, 0.48), inset 0 54px 72px rgba(30, 28, 12, 0.26);
    pointer-events: none;
  }

  .hero-content {
    width: 100%;
    padding: 30px 24px 46px;
    color: var(--ink);
  }

  .hero-content h1 {
    color: var(--olive-dark);
    font-size: 2.35rem;
    line-height: 1.03;
  }

  .hero-copy {
    color: rgba(28, 27, 22, 0.76);
    font-size: 1.02rem;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .button.secondary {
    color: var(--olive-dark);
    border-color: var(--line);
  }

  .header-cta {
    display: none;
  }

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

  .solution img,
  .solution.featured img {
    height: auto;
    min-height: 240px;
    aspect-ratio: 1.15 / 1;
  }

  .solution:not(.featured) img {
    padding: 22px;
  }

  .portfolio-card img,
  .portfolio-card.wide img,
  .portfolio-card.tall img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .footer {
    display: grid;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner .button {
    width: 100%;
  }
}
