.page-hero,
.story-panel {
  min-width: 0;
}

body[data-page] {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body[data-page] main {
  flex: 1 0 auto;
}

body[data-page] [data-site-footer] {
  margin-top: auto;
}

.page-hero {
  padding: var(--space-12) 0 var(--space-8);
}

.page-hero__panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 247, 242, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-6);
  overflow: hidden;
}

.page-hero__panel > .page-hero__media:only-child {
  min-height: 360px;
}

.page-hero__content {
  display: grid;
  gap: var(--space-4);
  padding: clamp(28px, 4vw, 52px);
}

.page-hero__media {
  aspect-ratio: 16 / 5;
}

.page-hero__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 249, 244, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.story-panel__lead {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.story-panel__text {
  color: var(--text-soft);
  display: grid;
  gap: var(--space-4);
  font-size: 1.05rem;
}

.service-card {
  display: grid;
  gap: var(--space-4);
  min-height: 100%;
}

.service-card__index {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.service-card__icon {
  align-items: center;
  background: rgba(14, 109, 40, 0.08);
  border-radius: 18px;
  color: var(--brand);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.service-card__icon img {
  display: block;
  height: 46px;
  width: 46px;
}

.service-card__copy {
  color: var(--text-soft);
}

.contact-panel__cta {
  display: grid;
  gap: var(--space-4);
}

.contact-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 12px 18px;
}

.contact-pill span:first-child {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-layout {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.detail-gallery {
  display: grid;
  gap: var(--space-4);
}

.detail-gallery__image {
  aspect-ratio: 1 / 0.78;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-gallery__thumbs {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-gallery__thumb {
  aspect-ratio: 1 / 0.78;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail-gallery__nav {
  background: transparent;
  border: 0;
  display: none;
  padding: 0;
}

.detail-gallery__counter {
  display: none;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-8);
}

.detail-card__copy {
  color: var(--text-soft);
}

.project-pagination {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: clamp(36px, 5vw, 72px);
  width: 100%;
}

.project-pagination__link {
  align-items: center;
  color: var(--brand);
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  gap: 8px;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.project-pagination__link--next {
  margin-left: auto;
  text-align: right;
}

.project-pagination__link:hover {
  color: #084f1d;
}

.project-pagination__link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 5px;
}

.empty-state {
  color: var(--text-soft);
  font-size: 1.05rem;
  padding: var(--space-8);
  text-align: center;
}

@media (max-width: 1080px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  .page-hero {
    border-bottom: 1px solid var(--brand);
    border-top: 1px solid var(--brand);
    padding: 0;
  }

  .page-hero__panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .page-hero__panel:not(:has(.page-hero__media)) {
    display: block;
  }

  .page-hero__content {
    align-content: center;
    min-height: 360px;
    padding: 72px 56px 72px max(64px, calc((100vw - var(--container)) / 2));
  }

  .page-hero__media {
    aspect-ratio: auto;
    min-height: 360px;
  }

  .page-title {
    color: var(--brand);
    font-size: clamp(3.8rem, 5vw, 5.7rem);
    letter-spacing: 0;
    line-height: 0.86;
    max-width: 760px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .page-copy {
    color: #000000;
    font-size: 1.08rem;
    line-height: 1.5;
    max-width: 560px;
  }

  .story-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .story-panel__body {
    border-left: 1px solid var(--brand);
    border-right: 1px solid var(--brand);
    padding: 72px 64px;
  }

  .story-panel__lead {
    color: var(--brand);
    font-size: clamp(4rem, 4.8vw, 5.8rem);
    letter-spacing: 0;
    line-height: 0.8;
  }

  .story-panel__text {
    color: #000000;
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.55;
    text-align: justify;
  }

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

  .service-card {
    background: transparent;
    border: 1px solid var(--brand);
    border-radius: 0;
    display: block;
    min-height: 430px;
    padding: 32px;
  }

  .service-card__index {
    color: var(--brand);
    display: block;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 44px;
  }

  .service-card__icon {
    background: transparent;
    border-radius: 0;
    display: flex;
    height: 68px;
    justify-content: flex-start;
    margin-bottom: 42px;
    width: 68px;
  }

  .service-card__icon img {
    height: 68px;
    width: 68px;
  }

  .service-card__title {
    color: var(--brand);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.9;
    margin-bottom: 24px;
  }

  .service-card__copy {
    color: #000000;
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.45;
    text-align: justify;
  }

  body[data-template="projetos-list"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  body[data-template="projetos-list"] main {
    flex: 1 0 auto;
  }

  body[data-template="projetos-list"] .page-hero {
    border: 0;
    padding: 0;
  }

  body[data-template="projetos-list"] .page-hero__panel {
    display: grid;
    gap: clamp(20px, 3vw, 38px);
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-template="projetos-list"] .page-hero__content {
    align-items: center;
    border-bottom: 2px solid var(--brand);
    border-top: 2px solid var(--brand);
    display: flex;
    height: clamp(52px, 5.7vw, 71px);
    justify-self: center;
    min-height: 0;
    padding: 0 clamp(24px, 4vw, 50px);
    width: min(var(--site-content), 1254px);
  }

  body[data-template="projetos-list"] .page-hero .eyebrow {
    color: var(--brand);
    font-size: clamp(1.65rem, 2.25vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-template="projetos-list"] .page-title,
  body[data-template="projetos-list"] .page-copy {
    display: none;
  }

  body[data-template="projetos-list"] .page-hero__media {
    aspect-ratio: auto;
    height: clamp(145px, 21.2vw, 290px);
    min-height: 0;
    width: 100%;
  }

  body[data-template="projetos-list"] .page-hero__media img {
    object-position: center center;
  }

  body[data-template="projetos-list"] .section {
    padding: clamp(25px, 3.65vw, 50px) 0 clamp(27px, 4vw, 55px);
  }

  body[data-template="projetos-list"] .projects-grid {
    column-gap: clamp(8px, 1.15vw, 16px);
    row-gap: clamp(18px, 2.4vw, 34px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - clamp(52px, 7.6vw, 104px));
  }

  body[data-template="projetos-list"] .project-card {
    border: 0;
    border-radius: 0;
    padding: 0;
    position: relative;
  }

  body[data-template="projetos-list"] .project-card__image {
    aspect-ratio: auto;
    height: clamp(149px, 21.8vw, 298px);
  }

  body[data-template="projetos-list"] .project-card__body {
    background: transparent;
    display: block;
    height: auto;
    padding: clamp(8px, 1.1vw, 14px) 0 0;
    text-align: left;
  }

  body[data-template="projetos-list"] .project-card__meta,
  body[data-template="projetos-list"] .project-card__body p {
    display: none;
  }

  body[data-template="projetos-list"] .project-card__title {
    color: var(--brand);
    font-size: 0;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-template="projetos-list"] .project-card__title::before {
    content: attr(data-list-title);
    font-size: clamp(0.78rem, 1vw, 1.15rem);
  }

  body[data-template="projetos-list"] .project-card__link {
    font-size: 0;
    inset: 0;
    position: absolute;
  }

  body[data-template="projetos-list"] .site-footer {
    margin-top: 0;
  }

  body[data-template="projeto-detail"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  body[data-template="projeto-detail"] main {
    flex: 1 0 auto;
  }

  body[data-template="projeto-detail"] .page-hero {
    border-bottom: 0;
    border-top: 1px solid var(--brand);
    padding: 0;
  }

  body[data-template="projeto-detail"] .page-hero__panel,
  body[data-template="projeto-detail"] .detail-layout {
    display: block;
    width: min(calc(100% - clamp(212px, 30.8vw, 424px)), 954px);
  }

  body[data-template="projeto-detail"] .page-hero__content {
    display: block;
    min-height: 0;
    padding: clamp(26px, 3.8vw, 52px) 0 clamp(22px, 2.75vw, 38px);
  }

  body[data-template="projeto-detail"] .page-hero .eyebrow {
    display: none;
  }

  body[data-template="projeto-detail"] .page-title {
    color: var(--brand);
    font-size: clamp(1.8rem, 2.85vw, 3.55rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.94;
    margin-bottom: clamp(8px, 1vw, 14px);
    max-width: 100%;
  }

  body[data-template="projeto-detail"] .page-copy {
    color: var(--brand);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.1vw, 2.65rem);
    font-weight: 500;
    line-height: 0.96;
    max-width: 760px;
    text-transform: uppercase;
  }

  body[data-template="projeto-detail"] .section {
    padding: 0 0 clamp(46px, 7vw, 96px);
  }

  body[data-template="projeto-detail"] .detail-gallery {
    display: block;
    margin-bottom: clamp(30px, 3.2vw, 44px);
  }

  body[data-template="projeto-detail"] .detail-gallery__image {
    aspect-ratio: 16 / 9;
    background: #111713;
    border-radius: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
  }

  body[data-template="projeto-detail"] .detail-gallery__image > img {
    display: block;
    height: 100%;
    object-fit: contain;
    transition: opacity 180ms ease;
    width: 100%;
  }

  body[data-template="projeto-detail"] .detail-gallery__nav {
    align-items: center;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-family: var(--font-body);
    font-size: clamp(2.2rem, 3vw, 3.5rem);
    font-weight: 300;
    height: clamp(36px, 4vw, 56px);
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(36px, 4vw, 56px);
    z-index: 1;
  }

  body[data-template="projeto-detail"] .detail-gallery__nav:hover {
    background: var(--brand);
    border-color: var(--brand);
  }

  body[data-template="projeto-detail"] .detail-gallery__nav:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }

  body[data-template="projeto-detail"] .detail-gallery__nav--prev {
    left: clamp(22px, 3vw, 38px);
  }

  body[data-template="projeto-detail"] .detail-gallery__nav--next {
    right: clamp(22px, 3vw, 38px);
  }

  body[data-template="projeto-detail"] .detail-gallery__thumbs {
    display: grid;
    gap: clamp(8px, 1vw, 14px);
    grid-auto-columns: clamp(104px, 10vw, 142px);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: clamp(10px, 1.1vw, 16px) 0 8px;
    scrollbar-color: var(--brand) rgba(14, 109, 40, 0.12);
    scrollbar-width: thin;
    scroll-snap-type: inline proximity;
  }

  body[data-template="projeto-detail"] .detail-gallery__thumb {
    aspect-ratio: 4 / 3;
    background: #111713;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    opacity: 0.62;
    overflow: hidden;
    padding: 0;
    scroll-snap-align: start;
    transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
  }

  body[data-template="projeto-detail"] .detail-gallery__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  body[data-template="projeto-detail"] .detail-gallery__thumb:hover,
  body[data-template="projeto-detail"] .detail-gallery__thumb.is-active {
    border-color: var(--brand);
    opacity: 1;
  }

  body[data-template="projeto-detail"] .detail-gallery__thumb.is-active {
    transform: translateY(-2px);
  }

  body[data-template="projeto-detail"] .detail-gallery__thumb:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }

  body[data-template="projeto-detail"] .detail-gallery__counter {
    background: rgba(0, 0, 0, 0.58);
    bottom: 16px;
    color: #ffffff;
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin: 0;
    padding: 7px 11px;
    position: absolute;
    right: 16px;
    z-index: 1;
  }

  body[data-template="projeto-detail"] .detail-card:first-child {
    display: none;
  }

  body[data-template="projeto-detail"] [data-project-details] {
    display: grid;
    gap: clamp(16px, 2vw, 28px);
    max-width: 780px;
  }

  body[data-template="projeto-detail"] .detail-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body[data-template="projeto-detail"] .detail-card + .detail-card {
    padding-top: 0;
  }

  body[data-template="projeto-detail"] .detail-card__title {
    color: #000000;
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.05vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: clamp(3px, 0.5vw, 7px);
  }

  body[data-template="projeto-detail"] .detail-card__copy {
    color: #000000;
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 0.9vw, 1.05rem);
    font-weight: 500;
    line-height: 1.35;
  }

  body[data-template="projeto-detail"] .project-pagination {
    border-top: 1px solid rgba(14, 109, 40, 0.28);
    margin-top: clamp(42px, 5vw, 68px);
    padding-top: clamp(20px, 2.2vw, 30px);
  }

  body[data-template="projeto-detail"] .project-pagination__link {
    font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  }

  .detail-layout {
    align-items: start;
    gap: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    width: 100%;
  }

  .detail-gallery {
    gap: 0;
  }

  .detail-gallery__image {
    border-radius: 0;
    min-height: 520px;
  }

  .detail-gallery__thumbs {
    gap: 0;
  }

  .detail-gallery__thumb {
    border: 0;
    border-radius: 0;
  }

  .detail-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--brand);
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 28px;
  }

  .detail-card + .detail-card {
    padding-top: 28px;
  }

  .detail-card__title {
    color: var(--brand);
    font-size: 2rem;
    letter-spacing: 0;
    line-height: 0.9;
    margin-bottom: 12px;
  }

  .detail-card__copy {
    color: #000000;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
  }

  .contact-panel {
    border-radius: 0;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .contact-panel__body {
    align-content: center;
    padding-left: max(64px, calc((100vw - var(--container)) / 2));
  }

  .contact-panel__title {
    font-size: clamp(4.4rem, 5.4vw, 6.4rem);
    letter-spacing: 0;
    line-height: 0.82;
  }

  .contact-panel__copy {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.45;
    max-width: 520px;
  }

  .contact-pill {
    background: transparent;
    border-color: rgba(253, 206, 53, 0.5);
    border-radius: 0;
    width: fit-content;
  }

  body[data-page="quem-somos"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  body[data-page="quem-somos"] main {
    flex: 1 0 auto;
  }

  body[data-page="quem-somos"] .page-hero {
    border: 0;
    padding: clamp(6px, 0.7vw, 8px) 0 0;
  }

  body[data-page="quem-somos"] .page-hero__panel {
    display: grid;
    gap: clamp(24px, 3vw, 38px);
    grid-template-columns: 1fr;
    width: min(var(--site-content), 1254px);
  }

  body[data-page="quem-somos"] .page-hero__content {
    align-items: center;
    border-bottom: 2px solid var(--brand);
    border-top: 2px solid var(--brand);
    display: flex;
    height: clamp(52px, 5.7vw, 71px);
    min-height: 0;
    padding: 0 clamp(24px, 4vw, 50px);
  }

  body[data-page="quem-somos"] .page-hero .eyebrow {
    color: var(--brand);
    font-size: clamp(1.65rem, 2.25vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-page="quem-somos"] .page-title,
  body[data-page="quem-somos"] .page-copy {
    display: none;
  }

  body[data-page="quem-somos"] .page-hero__media {
    aspect-ratio: auto;
    height: auto;
    justify-self: center;
    min-height: 0;
    width: calc(100% - clamp(48px, 8vw, 100px));
  }

  body[data-page="quem-somos"] .page-hero__media img {
    aspect-ratio: 1154 / 384;
    object-position: center center;
  }

  body[data-page="quem-somos"] .section {
    padding: clamp(24px, 2.4vw, 32px) 0 clamp(52px, 8vw, 96px);
  }

  body[data-page="quem-somos"] .story-panel {
    overflow: visible;
    width: calc(min(var(--site-content), 1254px) - clamp(48px, 8vw, 100px));
  }

  body[data-page="quem-somos"] .story-panel__body {
    border: 0;
    display: block;
    padding: 0;
  }

  body[data-page="quem-somos"] .story-panel__lead {
    color: var(--brand);
    font-size: clamp(1.25rem, 1.55vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: clamp(18px, 2vw, 26px);
    text-transform: none;
  }

  body[data-page="quem-somos"] .story-panel__lead {
    font-size: 0;
  }

  body[data-page="quem-somos"] .story-panel__lead::before {
    content: attr(data-desktop-title);
    font-size: clamp(1.25rem, 1.55vw, 1.75rem);
  }

  body[data-page="quem-somos"] .story-panel__text {
    color: #000000;
    display: grid;
    font-size: clamp(0.85rem, 0.95vw, 1rem);
    gap: clamp(10px, 1.2vw, 14px);
    line-height: 1.4;
    max-width: 1020px;
    text-align: left;
  }

  body[data-page="quem-somos"] .site-footer {
    margin-top: 0;
  }

  body[data-page="quem-somos"] .site-footer__inner {
    height: 68px;
    min-height: 68px;
    padding-left: max(48px, calc((100vw - 1156px) / 2));
    padding-right: max(48px, calc((100vw - 1156px) / 2));
  }

  body[data-page="quem-somos"] .site-footer__inner p {
    font-size: 1.13rem;
  }

  body[data-page="quem-somos"] .social-link {
    font-size: 1.75rem;
    height: 28px;
    width: 28px;
  }

  body[data-page="servicos"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  body[data-page="servicos"] main {
    flex: 1 0 auto;
  }

  body[data-page="servicos"] .page-hero {
    border: 0;
    padding: clamp(6px, 0.7vw, 8px) 0 0;
  }

  body[data-page="servicos"] .page-hero__panel {
    display: block;
    width: min(var(--site-content), 1254px);
  }

  body[data-page="servicos"] .page-hero__content {
    align-items: center;
    border-bottom: 2px solid var(--brand);
    border-top: 2px solid var(--brand);
    display: flex;
    height: clamp(52px, 5.7vw, 71px);
    min-height: 0;
    padding: 0 clamp(24px, 4vw, 50px);
  }

  body[data-page="servicos"] .page-hero .eyebrow {
    color: var(--brand);
    font-size: clamp(1.65rem, 2.25vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-page="servicos"] .page-title,
  body[data-page="servicos"] .page-copy {
    display: none;
  }

  body[data-page="servicos"] .section {
    padding: clamp(24px, 2.8vw, 36px) 0 clamp(52px, 8vw, 96px);
  }

  body[data-page="servicos"] .services-grid {
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(var(--site-content), 1254px);
  }

  body[data-page="servicos"] .service-card {
    border-width: 2px;
    min-height: clamp(360px, 32vw, 430px);
    padding: clamp(22px, 2.55vw, 32px);
  }

  body[data-page="servicos"] .service-card + .service-card {
    border-left: 0;
  }

  body[data-page="servicos"] .service-card__index {
    margin-bottom: clamp(32px, 3.5vw, 44px);
  }

  body[data-page="servicos"] .service-card__icon {
    margin-bottom: clamp(30px, 3.4vw, 42px);
  }

  body[data-page="servicos"] .service-card__title {
    font-size: clamp(1.45rem, 1.62vw, 1.85rem);
    font-weight: 700;
    line-height: 0.88;
    min-height: 3.3em;
  }

  body[data-page="servicos"] .service-card__copy {
    font-size: clamp(0.86rem, 0.9vw, 0.98rem);
    line-height: 1.42;
    text-align: justify;
  }

  body[data-page="servicos"] .service-card__copy[data-desktop-copy] {
    font-size: 0;
  }

  body[data-page="servicos"] .service-card__copy[data-desktop-copy]::before {
    content: attr(data-desktop-copy);
    font-size: clamp(0.86rem, 0.9vw, 0.98rem);
  }

  body[data-page="servicos"] .site-footer {
    margin-top: 0;
  }

  body[data-template="contato"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  body[data-template="contato"] main {
    flex: 1 0 auto;
  }

  body[data-template="contato"] .page-hero {
    border: 0;
    padding: clamp(6px, 0.7vw, 8px) 0 0;
  }

  body[data-template="contato"] .contact-panel {
    background: transparent;
    border-radius: 0;
    color: #000000;
    display: grid;
    gap: 0 clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.95fr);
    min-height: 0;
    overflow: visible;
    width: min(var(--site-content), 1254px);
  }

  body[data-template="contato"] .contact-panel__body {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    padding: 0;
  }

  body[data-template="contato"] .contact-panel .eyebrow {
    align-items: center;
    border-bottom: 2px solid var(--brand);
    border-top: 2px solid var(--brand);
    color: var(--brand);
    display: flex;
    font-size: clamp(1.65rem, 2.25vw, 2.5rem);
    font-weight: 800;
    grid-column: 1 / -1;
    height: clamp(52px, 5.7vw, 71px);
    justify-self: stretch;
    letter-spacing: 0;
    line-height: 1;
    padding: 0;
    text-transform: uppercase;
  }

  body[data-template="contato"] .contact-panel .eyebrow::before {
    content: "";
    width: clamp(24px, 4vw, 50px);
  }

  body[data-template="contato"] .contact-panel__title {
    align-self: start;
    color: var(--brand);
    font-size: clamp(1.65rem, 1.95vw, 2.3rem);
    font-weight: 800;
    grid-column: 1;
    grid-row: 2;
    letter-spacing: 0;
    line-height: 0.82;
    margin: clamp(12px, 1.5vw, 20px) 0 clamp(26px, 2.7vw, 36px) clamp(24px, 4vw, 50px);
    max-width: 300px;
  }

  body[data-template="contato"] .contact-panel__copy {
    display: none;
  }

  body[data-template="contato"] .contact-panel__cta {
    align-self: start;
    display: grid;
    gap: 0;
    grid-column: 1;
    grid-row: 3;
    margin-left: clamp(24px, 4vw, 50px);
  }

  body[data-template="contato"] .contact-pill {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #000000;
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    min-height: 0;
    padding: 0;
    text-transform: uppercase;
    width: fit-content;
  }

  body[data-template="contato"] .contact-pill span:first-child {
    color: #000000;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
  }

  body[data-template="contato"] .contact-pill span:first-child::after {
    content: ": ";
  }

  body[data-template="contato"] .contact-pill span:last-child {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  body[data-template="contato"] .contact-panel .btn {
    align-self: start;
    background: var(--brand);
    border-radius: 999px;
    color: var(--accent);
    font-size: clamp(0.78rem, 0.72vw, 0.9rem);
    grid-column: 2;
    grid-row: 2 / span 2;
    justify-content: center;
    letter-spacing: 0;
    margin-top: clamp(84px, 6.2vw, 96px);
    min-height: clamp(54px, 5vw, 64px);
    padding: 12px clamp(42px, 5vw, 72px);
    width: min(100%, 292px);
  }

  body[data-template="contato"] .contact-panel__media {
    display: none;
  }

  body[data-template="contato"] .site-footer {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .page-hero {
    border-bottom: 1px solid var(--brand);
    border-top: 1px solid var(--brand);
    height: 56px;
    padding: 0;
  }

  .page-hero__panel,
  .contact-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
  }

  .page-hero__media,
  .page-copy,
  .page-hero .eyebrow {
    display: none;
  }

  .page-hero__content {
    padding: 0 45px;
  }

  .page-title {
    color: var(--brand);
    font-size: 24px;
    height: 56px;
    letter-spacing: 0;
    line-height: 56px;
    overflow: hidden;
    white-space: nowrap;
  }

  body[data-page="quem-somos"] .page-hero,
  body[data-page="projetos"] .page-hero {
    margin-bottom: 41px;
  }

  body[data-page="quem-somos"] .page-hero {
    border: 0;
    height: auto;
    margin-bottom: 0;
  }

  body[data-page="quem-somos"] .page-hero__content {
    align-items: center;
    border-bottom: 1px solid var(--brand);
    border-top: 1px solid var(--brand);
    display: flex;
    height: 39px;
    padding: 0 32px;
  }

  body[data-page="quem-somos"] .page-hero .eyebrow {
    color: var(--brand);
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-page="quem-somos"] .page-title {
    display: none;
  }

  body[data-page="quem-somos"] .page-hero__media {
    aspect-ratio: 2.067 / 1;
    display: block;
    height: auto;
    width: 100%;
  }

  body[data-page="quem-somos"] .page-hero__media img {
    object-position: center;
  }

  body[data-page="quem-somos"] .section {
    padding: 20px 0 28px;
  }

  body[data-page="quem-somos"] .story-panel__body {
    padding: 0 32px;
  }

  body[data-page="quem-somos"] .story-panel__lead {
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    line-height: 14px;
    margin-bottom: 18px;
    width: 190px;
  }

  body[data-page="quem-somos"] .story-panel__text {
    color: #111111;
    font-family: var(--font-body);
    font-size: 9px;
    gap: 18px;
    line-height: 13px;
    text-align: justify;
  }

  body[data-page="servicos"] .page-hero__content {
    align-items: center;
    display: flex;
    height: 62px;
    padding: 0 47px;
  }

  body[data-page="servicos"] {
    --header-height: 157px;
  }

  body[data-page="servicos"] .page-hero {
    height: 62px;
  }

  body[data-page="servicos"] .page-hero .eyebrow {
    color: var(--brand);
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-page="servicos"] .page-title {
    display: none;
  }

  body[data-page="projetos"] .page-hero__content {
    align-items: center;
    display: flex;
    height: 62px;
    padding: 0 47px;
  }

  body[data-page="projetos"] {
    --header-height: 157px;
  }

  body[data-page="projetos"] .page-hero {
    height: 62px;
  }

  body[data-page="projetos"] .page-hero .eyebrow {
    color: var(--brand);
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
  }

  body[data-page="projetos"] .page-title {
    display: none;
  }

  body[data-page="projetos"] .projects-grid {
    justify-items: center;
    width: 100%;
  }

  body[data-page="projetos"] .project-card {
    margin: 0 auto;
  }

  body[data-page="projetos"] .project-card__image,
  body[data-page="projetos"] .project-card__image img {
    width: 100%;
  }

  body[data-page="projetos"] .project-card__image img {
    object-position: center;
  }

  body[data-page="projetos"] .project-card__body {
    padding: 0 10px;
    text-align: left;
  }

  body[data-page="projetos"] .project-card__title {
    color: #f3f3f3;
    font-size: 0;
  }

  body[data-page="projetos"] .project-card__title::before {
    color: #f3f3f3;
    content: attr(data-list-title);
    font-size: 11px;
    line-height: 25px;
  }

  .story-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .story-panel__body {
    display: block;
    padding: 0 47px 44px;
  }

  .story-panel__lead {
    color: var(--brand);
    font-size: 24px;
    letter-spacing: 0;
    line-height: 24px;
    margin-bottom: 31px;
    width: 256px;
  }

  .story-panel__text {
    color: #000000;
    display: grid;
    gap: 18px;
    font-size: 16px;
    line-height: 18px;
    text-align: justify;
  }

  .services-grid {
    gap: 21px;
    justify-items: center;
    padding: 40px 0 47px;
  }

  .service-card {
    background: transparent;
    border: 1px solid var(--brand);
    border-radius: 0;
    color: var(--brand);
    display: block;
    height: 331px;
    padding: 14px 24px 0;
    width: 354px;
  }

  .service-card__index {
    color: var(--brand);
    display: block;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 37px;
    margin-bottom: 22px;
  }

  .service-card__icon {
    background: transparent;
    border-radius: 0;
    display: flex;
    height: 59px;
    justify-content: flex-start;
    margin-bottom: 23px;
    width: 59px;
  }

  .service-card__icon img {
    height: 59px;
    width: 59px;
  }

  .service-card__title {
    color: var(--brand);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 20px;
    margin-bottom: 18px;
    width: 298px;
  }

  .service-card__copy {
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    text-align: justify;
    width: 274px;
  }

  .projects-grid {
    gap: 14px;
    justify-items: center;
    padding: 6px 0 62px;
  }

  .project-card {
    border: 0;
    border-radius: 0;
    height: 176px;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 295px;
  }

  .project-card__image {
    height: 151px;
  }

  .project-card__body {
    background: var(--brand);
    bottom: 0;
    color: var(--accent);
    display: block;
    height: 25px;
    left: 0;
    padding: 0;
    position: absolute;
    right: 0;
    text-align: center;
  }

  .project-card__meta,
  .project-card__body p {
    display: none;
  }

  .project-card__link {
    font-size: 0;
    inset: -151px 0 0;
    position: absolute;
    z-index: 2;
  }

  .project-card__title {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 25px;
  }

  .detail-layout {
    display: block;
    padding: 0 47px 42px;
  }

  .detail-gallery {
    gap: 0;
    margin-bottom: 24px;
  }

  .detail-gallery__image {
    border-radius: 0;
    height: 176px;
  }

  .detail-gallery__thumbs {
    display: none;
  }

  .detail-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 18px;
  }

  .detail-card .badge {
    display: none;
  }

  .detail-card__title {
    color: var(--brand);
    font-size: 20px;
    letter-spacing: 0;
    line-height: 20px;
    margin-bottom: 8px;
  }

  .detail-card__copy {
    color: #000000;
    font-size: 16px;
    line-height: 18px;
    text-align: justify;
  }

  body[data-page="contato"] .page-hero {
    border-bottom: 0;
    height: auto;
  }

  .contact-panel {
    color: #000000;
    min-height: 586px;
    padding: 71px 47px 0;
  }

  .contact-panel__body {
    display: block;
    padding: 0;
  }

  .contact-panel .eyebrow {
    color: var(--brand);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 37px;
    margin-bottom: 49px;
  }

  .contact-panel__title {
    color: var(--brand);
    font-size: 24px;
    letter-spacing: 0;
    line-height: 23px;
    margin-bottom: 22px;
    width: 207px;
  }

  .contact-panel__copy {
    color: var(--brand);
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 56px;
    width: 251px;
  }

  .contact-panel__cta {
    display: none;
  }

  .contact-panel .btn {
    background: var(--brand);
    color: var(--accent);
    height: 46px;
    width: 245px;
  }

  .contact-panel__media {
    display: none;
  }

  .detail-gallery__thumbs {
    grid-template-columns: 1fr;
  }

  /* Página de detalhe do projeto — composição mobile conforme o layout. */
  body[data-template="projeto-detail"] {
    --header-height: 112px;
  }

  body[data-template="projeto-detail"] .page-hero {
    border: 0;
    height: auto;
    margin-bottom: 0;
  }

  body[data-template="projeto-detail"] .page-hero__panel,
  body[data-template="projeto-detail"] .detail-layout {
    display: block;
    width: 100%;
  }

  body[data-template="projeto-detail"] .page-hero__content {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  body[data-template="projeto-detail"] .page-hero .eyebrow {
    display: none;
  }

  body[data-template="projeto-detail"] .page-title {
    align-items: center;
    border-bottom: 1px solid var(--brand);
    border-top: 1px solid var(--brand);
    color: var(--brand);
    display: flex;
    font-size: 18px;
    font-weight: 800;
    height: 49px;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    padding: 0 43px;
  }

  body[data-template="projeto-detail"] .page-copy {
    color: var(--brand);
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.22;
    margin: 0;
    max-width: 300px;
    padding: 23px 43px 22px;
    text-transform: uppercase;
  }

  body[data-template="projeto-detail"] .section {
    padding: 0 0 22px;
  }

  body[data-template="projeto-detail"] .detail-layout {
    padding: 0 43px;
  }

  body[data-template="projeto-detail"] .detail-gallery {
    display: block;
    margin: 0 0 23px;
  }

  body[data-template="projeto-detail"] .detail-gallery__image {
    aspect-ratio: 5 / 3;
    border-radius: 0;
    height: auto;
    overflow: hidden;
    position: relative;
  }

  body[data-template="projeto-detail"] .detail-gallery__thumbs,
  body[data-template="projeto-detail"] .detail-card:first-child {
    display: none;
  }

  body[data-template="projeto-detail"] .detail-gallery__nav--prev,
  body[data-template="projeto-detail"] .detail-gallery__nav--next {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 300;
    height: 38px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    z-index: 1;
  }

  body[data-template="projeto-detail"] .detail-gallery__nav--prev {
    left: 5px;
  }

  body[data-template="projeto-detail"] .detail-gallery__nav--next {
    right: 5px;
  }

  body[data-template="projeto-detail"] [data-project-details] {
    display: grid;
    gap: 20px;
    max-width: none;
  }

  body[data-template="projeto-detail"] .detail-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body[data-template="projeto-detail"] .detail-card__title {
    color: #000000;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 7px;
  }

  body[data-template="projeto-detail"] .detail-card__copy {
    color: #000000;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
    text-align: left;
  }

  /* Página de contato — composição mobile conforme o layout. */
  body[data-template="contato"] .page-hero {
    border: 0;
    height: auto;
    padding: 0;
  }

  body[data-template="contato"] .contact-panel {
    color: #000000;
    min-height: calc(100dvh - var(--header-height) - 68px);
    padding: 0;
    width: 100%;
  }

  body[data-template="contato"] .contact-panel__body {
    display: block;
    padding: 0;
  }

  body[data-template="contato"] .contact-panel .eyebrow {
    align-items: center;
    border-bottom: 1px solid var(--brand);
    border-top: 1px solid var(--brand);
    color: var(--brand);
    display: flex;
    font-size: 18px;
    font-weight: 800;
    height: 49px;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    padding: 0 43px;
    text-transform: uppercase;
  }

  body[data-template="contato"] .contact-panel__title {
    color: var(--brand);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 46px 43px 22px;
    width: 220px;
  }

  body[data-template="contato"] .contact-panel__copy,
  body[data-template="contato"] .contact-panel__media {
    display: none;
  }

  body[data-template="contato"] .contact-panel__cta {
    display: grid;
    gap: 7px;
    margin: 0 43px;
  }

  body[data-template="contato"] .contact-pill {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #000000;
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    min-height: 0;
    padding: 0;
    text-transform: uppercase;
  }

  body[data-template="contato"] .contact-pill span:first-child,
  body[data-template="contato"] .contact-pill span:last-child {
    color: #000000;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    line-height: inherit;
  }

  body[data-template="contato"] .contact-pill span:first-child::after {
    content: ": ";
  }

  body[data-template="contato"] .contact-panel .btn {
    background: var(--brand);
    color: var(--accent);
    display: inline-flex;
    font-size: 11px;
    height: 40px;
    margin: 21px 43px 0;
    padding: 0;
    width: 245px;
  }
}
