@font-face {
  font-family: General Sans;
  src: url("../fonts/GeneralSans-Variable.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* Layout/effects overrides – typography and colors come from variables.css */
:root {
  --horizontalmargins: 9vw;
  --spacing-between-title-and-content: 3rem;
  --herobuttonblur: 0;
}

.u-hflex {
  flex-direction: row;
  align-items: flex-start;
  display: flex;
}

.u-grid {
  grid-row-gap: 1rem;
  grid-column-gap: 1rem;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.u-block-container {
  max-width: 58.75rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .u-block-container {
    max-width: 45.5rem;
  }
}

@media screen and (max-width: 767px) {
  .u-block-container {
    max-width: none;
  }
}

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  color: #000;
  letter-spacing: -0.02em;
  padding-bottom: 3rem;
  font-family:
    Google Sans Flex,
    sans-serif;
  font-weight: 400;
  overflow-x: clip;
}

h1 {
  font-weight: 500;
}

h2 {
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
  font-weight: 500;
}

h3 {
  margin-top: 1.25rem;
  margin-bottom: var(--h3-margin-bottom);
  font-size: var(--h3-size);
  line-height: var(--h3-line-height);
  font-weight: var(--h3-weight);
  letter-spacing: var(--h3-letter-spacing);
}

h4 {
  color: #0a0a0a66;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
}

h6 {
  margin-top: 0.625rem;
  margin-bottom: var(--h6-margin-bottom);
  font-family: var(--global-font-family);
  font-size: var(--h6-size);
  line-height: var(--h6-line-height);
  font-weight: var(--h6-weight);
  letter-spacing: var(--h6-letter-spacing);
}

p {
  color: var(--paragrafos);
  font-size: var(--texto-corrido);
  line-height: 1.35;
  font-weight: var(--texto-corrido-weight);
  margin-bottom: 0;
}

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

a:hover {
  color: #000;
}

img {
  object-fit: cover;
  max-width: 100%;
  display: inline-block;
}

.hero {
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 120vh;
  display: flex;
  position: relative;
  overflow: clip;
}

/* Home hero: logo only on white; center in viewport ignoring header; exact 100vh */
.hero--logo-only {
  justify-content: center;
  align-items: center;
  background-color: #fff;
  height: 100vh;
}

.hero--logo-only .hero-logo {
  position: absolute;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 425.2 / 398.79;
}

.hero--logo-only .hero-logo__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Home page only: nudge centered logo slightly lower in viewport */
.page-home .hero--logo-only .hero-logo {
  top: 55vh;
}

/* Hide header logo when logo-only hero is in view (avoid redundancy); smooth fade in on scroll up */
.nav--header-logo-hidden .nav_logo {
  opacity: 0;
  pointer-events: none;
}

.hero-text {
  grid-row-gap: 1rem;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 45rem;
  text-decoration: none;
  display: flex;
}

.hero-text._3 {
  max-width: none;
  margin-bottom: 4rem;
}

.hero-text__heading._2 {
  letter-spacing: 0;
}

.hero-text__heading._2._3 {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background-image: linear-gradient(90deg, #0000000d, #0000);
}

.hero-buttons {
  grid-column-gap: 1.25rem;
  flex: 0 auto;
  justify-content: flex-start;
  align-items: center;
  text-decoration: none;
  display: flex;
}

.hero-buttons._2 {
  align-self: flex-end;
}

.hero-button {
  grid-column-gap: 0.625rem;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
  font-variation-settings: "wght" 448;
  letter-spacing: -0.02em;
  background-color: #ffffff29;
  justify-content: center;
  align-items: center;
  width: 12.5rem;
  height: 3.75rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  transition:
    color 0.2s,
    background-color 0.2s;
  display: flex;
}

.hero-button:hover {
  -webkit-backdrop-filter: blur(4.5px);
  backdrop-filter: blur(4.5px);
  color: #000;
  background-color: #fff;
}

.hero-button.is-white {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #000;
  background-color: #fff;
}

.hero-button.is-white:hover {
  color: #fff;
  background-color: #000;
}

.hero-button.blur {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.hero-content {
  grid-column-gap: 2.5rem;
  grid-row-gap: 2.5rem;
  flex-flow: wrap;
  flex: 0 auto;
  justify-content: space-between;
  align-items: flex-end;
  text-decoration: none;
  display: flex;
}

.hero-content._2 {
  flex-flow: column;
  align-items: stretch;
}

.intro-section {
  padding: 16rem var(--horizontalmargins) var(--horizontalmargins);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* Index: no gap between 100vh hero and first text */
.page-home .intro-section {
  padding-top: 0;
}

.intro-section_text {
  font-size: var(--texto-corrido);
  text-align: center;
  width: 100%;
  max-width: 55ch;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 300;
  overflow-wrap: break-word;
}

.div-block {
  grid-column-gap: 16rem;
  grid-row-gap: 16rem;
  flex-flow: column;
  margin-bottom: 8rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  padding-left: 8rem;
  padding-right: 8rem;
  display: flex;
}

.block-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}

.blocks {
  grid-column-gap: 8rem;
  grid-row-gap: 0rem;
  justify-content: space-between;
  align-self: stretch;
  display: flex;
}

.block__text-frame {
  grid-row-gap: 1.625rem;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-right: auto;
  font-size: 1rem;
  display: flex;
}

.block-title {
  color: #000;
  letter-spacing: -0.03em;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.9;
  text-decoration: none;
}

.block-paragraph {
  width: 100%;
  margin: 0;
  text-align: left;
}

.nav {
  z-index: 99;
  color: #fff;
  background-color: #fff0;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  font-weight: 300;
  font-size: 1.25rem;
  transition: color 0.2s;
  display: flex;
  position: fixed;
  inset: 0% 0% auto;
}

.nav:where(.is-dark) {
  z-index: 1000;
  color: #000;
}

.nav.nav-bright-bg {
  color: #fff;
}

.nav.nav-bright-bg .nav_mobile-menu-button {
  color: #fff;
}

.nav.nav-bright-bg .nav_mobile-menu-button:hover {
  color: #fff;
}

.nav.nav-bright-bg .nav_mobile-menu-button.is-open {
  color: #fff;
}

.nav.nav-bright-bg .nav_mobile-menu-button.is-open:hover {
  color: #fff;
}

.nav.nav-bright-bg .icon {
  color: #fff;
}

.nav.nav-bright-bg.nav-dark {
  color: #000;
}

.nav.nav-bright-bg.nav-dark .nav_mobile-menu-button {
  color: #000;
}

.nav.nav-bright-bg.nav-dark .nav_mobile-menu-button:hover {
  color: #000;
}

.nav.nav-bright-bg.nav-dark .nav_mobile-menu-button.is-open {
  color: #000;
}

.nav.nav-bright-bg.nav-dark .nav_mobile-menu-button.is-open:hover {
  color: #000;
}

.nav.nav-bright-bg.nav-dark .icon {
  color: #000;
}

@media screen and (max-width: 991px) {
  .nav.nav-bright-bg .nav_mobile-menu-button.is-open {
    color: #fff;
  }

  .nav.nav-bright-bg .nav_mobile-menu-button.is-open:hover {
    color: #fff;
  }

  .nav.nav-bright-bg.nav-dark .nav_mobile-menu-button.is-open {
    color: #000;
  }

  .nav.nav-bright-bg.nav-dark .nav_mobile-menu-button.is-open:hover {
    color: #000;
  }
}

.nav_menu-list {
  grid-column-gap: 3rem;
  grid-row-gap: 3rem;
  flex-flow: row;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
}

.nav_right {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  display: flex;
}

.nav_logo-icon {
  align-self: stretch;
  display: inline-flex;
  aspect-ratio: 708 / 584;
}

.icon {
  color: #000;
  vertical-align: middle;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  display: flex;
}

.nav_left {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.nav_container {
  -webkit-backdrop-filter: blur(var(--herobuttonblur));
  backdrop-filter: blur(var(--herobuttonblur));
  background-color: #ddd0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  grid-template-rows: auto;
  grid-template-columns: 1fr;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  width: 100%;
  padding: 2rem 9vw 0.75rem;
  display: flex;
}

.nav_menu {
  background-color: #0000;
  justify-content: center;
  align-self: center;
  align-items: center;
  height: 100%;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  position: static;
}

.nav_mobile-menu-button {
  display: none;
  color: inherit;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  cursor: pointer;
}

.nav_mobile-menu-button:hover {
  color: inherit;
}

.nav_mobile-menu-button.is-open {
  z-index: 2;
  background-color: #0000;
}

.nav_mobile-menu-button.is-open:hover {
  color: #f2f2f299;
}

/* Menu Icon - 2 lines that transform to X */
.menu-icon {
  width: 1.5rem;
  height: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon__line {
  display: block;
  width: 100%;
  height: 0.125rem;
  background-color: currentColor;
  border-radius: 0.0625rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* X transformation when open */
.nav_mobile-menu-button.is-open .menu-icon__line:first-child {
  transform: translateY(0.4375rem) rotate(45deg);
}

.nav_mobile-menu-button.is-open .menu-icon__line:last-child {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

.nav_link {
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.5rem;
  font-weight: 300;
  white-space: nowrap;
  word-break: keep-all;
  color: color-mix(in srgb, currentColor 85%, transparent);
  border-radius: 0;
  flex: none;
  justify-content: flex-start;
  align-items: center;
  text-decoration: none;
  display: flex;
  opacity: 0.7;
}

.nav_link:hover {
  color: inherit;
}

.nav_link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.nav_link.is-current {
  opacity: 1;
  font-weight: 400;
  background-color: #0000;
}

.nav_link.is-open {
  background-color: #0000;
}

.nav_logo {
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.5rem;
  color: inherit;
  justify-content: flex-start;
  align-items: center;
  height: 2.8rem;
  text-decoration: none;
  display: flex;
  transition: opacity 0.3s ease;
}

.nav_logo:hover {
  color: color-mix(in srgb, currentColor 80%, transparent);
}

.nav_logo:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.nav_menu-list-item {
  margin-bottom: 0;
  display: flex;
}

.hero__bckg-image {
  position: relative;
  background-image: linear-gradient(#00000026, #00000026), url("../images/home/RHCalhetaFN3160.webp");
  background-position:
    0 0,
    50% 100%;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  width: 100%;
  height: 100%;
}

.hero__bckg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__bckg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#00000026, #00000026);
  pointer-events: none;
  z-index: 1;
}

.hero__bckg-image.portfolio {
  object-position: 50% 20%;
  background-image: none;
}

.hero__bckg-image.portfolio2 {
  object-position: 50% 20%;
  background-image: linear-gradient(#00000026, #00000026), url("../images/home/RHCalhetaFN3160.webp");
  background-position:
    0 0,
    50% 100%;
  height: 100vh;
}

.block__image-framed {
  box-sizing: border-box;
  aspect-ratio: 318 / 263;
  object-fit: cover;
  width: 50%;
  position: relative;
  overflow: hidden;
}

.image__project-link {
  color: #fff;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.7rem;
  margin-right: 1.7rem;
  font-size: 1rem;
  font-weight: 300;
  display: flex;
  position: absolute;
  inset: auto 0% 0% auto;
}

.image__project-link:hover {
  color: #fff;
}

.project-link__plus-icon {
  width: 1.4em;
  height: 1.4em;
  min-width: 1.4em;
  min-height: 1.4em;
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.4em;
}

.project-link__plus-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

footer,
.footer {
  gap: 3rem;
  color: #0000008a;
  flex-flow: column;
  padding-top: 8rem;
  padding-left: 9vw;
  padding-right: 9vw;
  font-size: 1rem;
  display: flex;
}

footer:where(.is-minimal),
.footer:where(.is-minimal) {
  padding-top: 0;
}

footer:where(.is-minimal) .footer-container,
.footer-container:where(.is-minimal) {
  display: none;
}

.footer-contacts__icon {
  width: 1rem;
  min-width: 1rem;
  flex-shrink: 0;
  opacity: 0.5;
  margin-top: 0.125rem;
}

.footer-contacts__item {
  gap: 1.25rem;
  align-self: stretch;
}

.footer-contacts__item a {
  color: #00000099;
  line-height: 1.2;
  font-weight: 300;
}

.contact-info-list {
  gap: 2rem;
  flex-flow: column;
  margin-top: 2rem;
  margin-bottom: 3rem;
  display: flex;
}

.link {
  color: #444242;
  margin-top: 1rem;
  font-weight: 400;
  text-decoration: underline;
  display: block;
}

.footer-section-title {
  color: #000;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 1.25rem;
}

#footer-grid-recruitment a.link {
  font-size: 1.125rem;
}

#footer-grid-recruitment p {
  font-size: 1.125rem;
}

.footer-year,
.footer-text {
  margin-right: 0.5ch;
  display: inline-block;
  line-height: 1;
}

.footer-copyright {
  font-size: inherit;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .footer-copyright {
    font-size: 1.125rem;
  }

  .footer-year,
  .footer-text {
    font-size: 1.125rem;
  }

  .footer-contacts__item a {
    font-size: 1.125rem;
  }
}

.footer-copyright-icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  margin-right: 0.3ch;
  transform: translateY(-1px);
}

.footer-bottom {
  justify-content: space-between;
  display: flex;
}

.footer-social-links {
  gap: 0.5rem;
}

.footer-socials-icon {
  aspect-ratio: 1;
  opacity: 0.5;
  justify-content: center;
  align-items: center;
  width: 1.8rem;
  transition: color 0.2s;
  display: flex;
}

.footer-madeira-bar {
  display: flex;
  justify-content: flex-end;
}

.footer-madeira-bar__img {
  max-width: 20rem;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.full-screen-div {
  grid-column-gap: 6rem;
  grid-row-gap: 6rem;
  flex-flow: column;
  width: 100%;
  min-height: 100vh;
  padding: 8rem 9vw;
  display: flex;
}

.full-screen-div._2-columns {
  grid-column-gap: 8rem;
  grid-row-gap: 8rem;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  place-items: center;
  height: auto;
  min-height: 100vh;
  display: grid;
}

.full-screen-div._2-columns.image-no-margins-right {
  padding-right: 0;
}

.full-screen-div._2-columns.image-no-margins-right.mission-section {
  min-height: auto;
  padding-top: 4rem;
}

.full-screen-div._2-columns._2 {
  grid-column-gap: 6rem;
  grid-row-gap: 6rem;
  grid-template-columns: 1fr 1fr;
  place-items: center stretch;
}

.full-screen-div.full-screen-div--grey {
  background-color: #f8f8f8;
}

#process.full-screen-div--grey {
  position: relative;
  z-index: 2;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.process-content {
  padding-left: var(--horizontalmargins);
  padding-right: var(--horizontalmargins);
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.process-grey-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc(var(--process-fill-progress, 0) * 25vh);
  background-color: #f8f8f8;
  z-index: 0;
  pointer-events: none;
}

#process .process-content,
#process .process-gallery {
  position: relative;
  z-index: 1;
}

.full-screen-div.team-section {
  padding-top: 6rem;
  grid-column-gap: 0;
  grid-row-gap: 0;
  column-gap: 0;
  row-gap: 0;
}

.full-screen-div.team-section p {
  font-size: var(--texto-corrido);
}

.paragraph--centered.end-of-team-section {
  font-size: var(--texto-corrido);
  margin-bottom: 5rem;
  margin-top: 4rem;
}

.process-step p {
  font-size: var(--texto-corrido);
}

.process-intro p {
  font-size: var(--texto-corrido);
}

.values-item p {
  font-size: var(--texto-corrido);
}

.full-screen-div.founders-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 5rem;
  margin-bottom: 0;
}

.full-screen-div.collective-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  padding-top: 0;
}

.full-screen-div.no-spacing {
  grid-column-gap: 0rem;
  grid-row-gap: 0rem;
  min-height: auto;
  padding-bottom: 0;
}

.heading {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 2.85rem;
  display: inline-block;
}

.value-title {
  font-size: var(--texto-corrido);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.values-list {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  flex-flow: column;
  display: flex;
}

.value-divider {
  opacity: 0.09;
  background-color: #000;
  height: 1px;
}

/* Pinned Values Section */
.values-pinned-section {
  position: relative;
  width: 100%;
  height: 500vh;
  margin-bottom: -5rem;
}

.values-pinned-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 3rem 6rem;
  height: 100vh;
  padding: 4rem 9vw 8rem;
  align-items: start;
  position: sticky;
  top: 0;
}

.values-intro-text {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-self: start;
}


.values-intro-text p {
  font-size: var(--texto-corrido);
}

.values-image-stack {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  left: -9vw;
  width: calc(100% + 9vw);
  aspect-ratio: 1400 / 845;
  overflow: hidden;
  align-self: center;
}

.values-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.values-image.is-active {
  opacity: 1;
}

.values-image--bottom {
  object-position: bottom;
}

.values-image--cover {
  object-fit: cover;
  object-position: center;
}

.values-stack {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  min-height: 12rem;
  align-self: center;
}

.values-item-pinned {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(6rem);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  pointer-events: none;
}

.values-item-pinned.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Scroll down: exiting moves up */
.values-item-pinned.is-exiting-up {
  opacity: 0;
  transform: translateY(-6rem);
}

/* Scroll up: entering comes from above */
.values-item-pinned.is-entering-down {
  transform: translateY(-6rem);
}

/* Scroll up: exiting moves down */
.values-item-pinned.is-exiting-down {
  opacity: 0;
  transform: translateY(6rem);
}

.value-number {
  color: rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.values-item-pinned .value-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.values-item-pinned p {
  font-size: var(--texto-corrido);
  max-width: 45ch;
}

@media screen and (max-width: 991px) {
  .values-pinned-section {
    height: auto;
  }

  .values-pinned-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    padding: 2rem 4rem 4rem;
    height: auto;
    position: relative;
    top: auto;
  }

  .values-intro-text {
    grid-column: 1;
    grid-row: 1;
  }

  .values-image-stack {
    grid-column: 1;
    grid-row: 2;
    left: -4rem;
    width: calc(100% + 4rem);
    aspect-ratio: 16 / 9;
  }

  .values-pinned-section.values-mobile-images .values-image-stack {
    display: none;
  }

  .values-stack {
    grid-column: 1;
    grid-row: 3;
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .values-item-pinned {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
  }

  .values-item-image-wrapper {
    margin-top: 1.25rem;
    overflow: hidden;
    max-height: 60rem;
    opacity: 1;
  }

  .values-item-image {
    width: 100%;
    height: 18rem;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .values-item-pinned[data-value-index="6"] .values-item-image {
    object-position: center 90%;
  }

  .values-item-pinned:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  }

  .values-image {
    opacity: 0;
  }

  .values-image:first-child {
    opacity: 1;
  }
}

@media screen and (max-width: 767px) {
  /* Sobre page mobile - use section-level padding like homepage */
  .page-sobre .full-screen-div {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .page-sobre .full-screen-div._2-columns.image-no-margins-right.mission-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-sobre #mission-text {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .page-sobre #process.full-screen-div--grey {
    padding-left: 0;
    padding-right: 0;
    padding-top: 3rem;
  }

  .page-sobre #process .process-intro {
    text-align: left;
    align-items: flex-start;
  }

  .page-sobre .paragraph--centered.end-of-team-section {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .values-pinned-container {
    padding: 2rem var(--horizontalmargins);
    gap: 1.5rem;
  }

  .values-image-stack {
    left: calc(-1 * var(--horizontalmargins));
    width: calc(100% + var(--horizontalmargins));
  }

  .values-item-pinned {
    padding: 1.5rem 0;
  }

  .values-item-pinned .value-title {
    font-size: 1.25rem;
  }
}

.process-intro {
  text-align: center;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  display: flex;
  margin-bottom: 0;
}

.process-grid {
  grid-column-gap: 2rem;
  grid-row-gap: 3rem;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 1fr;
}

.process-step {
  grid-column-gap: 0.5rem;
  grid-row-gap: 0.75rem;
  color: #0009;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 1rem;
  display: flex;
}

.process-step-number {
  color: #0000004d;
  font-size: 1rem;
  font-weight: 400;
}

.process-step-title {
  color: #000;
  font-size: var(--texto-corrido);
  line-height: 1.2;
  display: block;
}

/* Founders Section */
.founders-intro {
  margin-bottom: 0;
}


.founders-grid {
  width: 100%;
  grid-column-gap: 1.5rem;
  grid-row-gap: 1.5rem;
  grid-template-rows: auto;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
}

.founder-card {
  perspective: 1000px;
  aspect-ratio: 3 / 4;
  width: 100%;
  min-height: 0;
  cursor: pointer;
}

.founder-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.founder-card:hover .founder-card-inner {
  transform: rotateY(180deg);
}

.founder-card-front,
.founder-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0;
  overflow: hidden;
}

.founder-card-front {
  z-index: 2;
  background-color: var(--cinza-claro, #f5f5f5);
}

.founder-card-back {
  z-index: 1;
}

.founder-card-front-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.5rem;
  background: transparent;
  isolation: isolate;
}

.founder-card-front-info::before {
  content: "";
  position: absolute;
  top: -5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(0.35rem);
  -webkit-backdrop-filter: blur(0.35rem);
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.founder-card-front-info .person-name {
  font-size: var(--texto-corrido);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: #fff;
}

.founder-card-front-info .person-role {
  font-size: 1rem;
  opacity: 0.9;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0;
}

.founder-card-back {
  z-index: 1;
  background-color: var(--cinza-claro, #f5f5f5);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem 1.5rem 1.5rem;
  overflow: hidden;
}

.founder-card-back .card-bio {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  overflow-y: auto;
}

.founder-card-back .card-bio p {
  font-size: 1.25rem;
  font-weight: var(--texto-corrido-weight);
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
}

.founder-card-back .card-bio p:last-child {
  margin-bottom: 0;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.person-name {
  margin-top: 0;
  font-size: var(--texto-corrido);
  line-height: 1.5;
}

.person-role {
  opacity: 0.4;
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  margin-bottom: 1.5rem;
}

/* Team Section Intro */
.team-intro {
  margin-bottom: 0;
}

.team-intro p {
  margin-bottom: 0;
}

/* Team Grid */
.team-grid-wrapper {
  width: 100%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Team Flip Cards */
.team-card {
  perspective: 1000px;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0;
  overflow: hidden;
}

.team-card-front {
  z-index: 2;
  background-color: var(--cinza-claro, #f5f5f5);
}

.team-card-front-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem;
  background: transparent;
  isolation: isolate;
}

.team-card-front-info::before {
  content: "";
  position: absolute;
  top: -5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(0.35rem);
  -webkit-backdrop-filter: blur(0.35rem);
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.team-card-front-info .person-name {
  font-size: var(--texto-corrido);
  line-height: 1.3;
  margin-bottom: 0.125rem;
  color: #fff;
}

.team-card-front-info .person-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0;
}

.team-card-front-info .person-role-desde {
  flex-shrink: 0;
}

.team-card-back {
  z-index: 1;
  background-color: var(--cinza-claro, #f5f5f5);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem 1.5rem 1.5rem;
  overflow: hidden;
}

.team-card-back .card-bio {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  overflow-y: auto;
}

.team-card-back .card-bio p {
  font-size: 1rem;
  font-weight: var(--texto-corrido-weight);
  margin-bottom: 0.375rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.45;
}

.team-card-back .card-bio p:last-child {
  margin-bottom: 0;
}

/* Cards with hover-scroll: hide scrollbar, scroll via hover position, keep content top-aligned */
.founder-card.has-hover-scroll .founder-card-back .card-bio,
.team-card.has-hover-scroll .team-card-back .card-bio {
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.founder-card.has-hover-scroll .founder-card-back .card-bio::-webkit-scrollbar,
.team-card.has-hover-scroll .team-card-back .card-bio::-webkit-scrollbar {
  display: none;
}

.team-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Team Grid Responsive - Progressive Enhancement */
@media screen and (min-width: 600px) {
  .team-grid {
    gap: 1.25rem;
  }
  
  .founders-grid {
    gap: 2rem;
  }
  
  .founder-card-back {
    padding: 2rem;
  }
  
}

@media screen and (min-width: 900px) {
  .team-grid {
    gap: 1.5rem;
  }
  
  .founders-grid {
    gap: 2.5rem;
  }
  
  .founder-card-back {
    padding: 2.5rem;
  }
}

@media screen and (min-width: 1200px) {
  .founders-grid {
    gap: 3rem;
  }
}

/* Touch devices: Disable hover flip, use popup instead */
@media (hover: none) and (pointer: coarse) {
  .founder-card:hover .founder-card-inner,
  .team-card:hover .team-card-inner {
    transform: none;
  }
  
  /* Hide the back of the card on mobile - popup shows the content instead */
  .founder-card-back,
  .team-card-back {
    visibility: hidden;
  }
}

/* Team Card Popup - Mobile only */
.team-card-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.team-card-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.team-card-popup__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

.team-card-popup.is-open .team-card-popup__backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.team-card-popup__content {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 90svh;
  background-color: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.team-card-popup.is-open .team-card-popup__content {
  transform: translateY(0);
}

.team-card-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.team-card-popup__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--cinza-claro, #f5f5f5);
}

.team-card-popup__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.team-card-popup__info {
  padding: 1.25rem 1.5rem 0;
}

.team-card-popup__name {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

.team-card-popup__role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.team-card-popup__role-title {
  font-weight: 500;
}

.team-card-popup__role-desde {
  align-self: flex-end;
  font-size: 0.875rem;
  opacity: 0.7;
}

.team-card-popup__bio {
  padding: 1.25rem 1.5rem 2rem;
}

.team-card-popup__bio p {
  font-size: 1rem;
  font-weight: var(--texto-corrido-weight);
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.45;
}

.team-card-popup__bio p:last-child {
  margin-bottom: 0;
}

/* Founder variant - slightly larger */
.team-card-popup.is-founder .team-card-popup__name {
  font-size: 1.75rem;
}

.team-card-popup.is-founder .team-card-popup__bio p {
  font-size: 1.0625rem;
}

.paragraph--centered {
  text-align: center;
}

.paragraph--centered.end-of-team-section {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.mission-description {
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  max-width: 60ch;
}

.person-tenure {
  color: var(--grey-text);
  font-size: var(--texto-corrido);
  font-weight: 300;
}

.paragraph {
  max-width: 72ch;
}

.mission-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: 50% 50%;
  background-image: url("https://d3e54v103j8qbb.cloudfront.net/img/background-image.svg");
  background-position: 0 0;
  background-size: auto;
}

.grid-paragraph {
  font-size: var(--texto-corrido);
  font-weight: 300;
}

/* About intro: full-width grid so images can sit on screen edges */
#about.full-screen-div.no-spacing {
  padding-left: 0;
  padding-right: 0;
}

.about-intro-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.about-intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--horizontalmargins);
  align-items: center;
  width: 100%;
}

.about-intro-block-text {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Text column gets edge padding; image column runs to viewport edge */
.about-intro-block--text-left .about-intro-block-text {
  padding-left: var(--horizontalmargins);
}

.about-intro-block--text-right .about-intro-block-text {
  padding-right: var(--horizontalmargins);
}

.about-intro-block-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.process-gallery {
  width: 100%;
  display: block;
  overflow: hidden;
}

.process-gallery-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.team-photo {
  max-height: 45vw;
  margin-bottom: 5rem;
  overflow: hidden;
}

.floating-nav-menu {
  z-index: 1001;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: #0000;
  border-radius: 0;
  flex-direction: column;
  gap: 2rem 0;
  padding: 0;
  display: flex;
}

.floating-nav-menu:where(.is-horizontal) {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  flex-flow: row;
}

.floating-nav-link {
  color: #fff;
  border-radius: 0;
  padding: 0;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.floating-nav-link:where(.is-horizontal) {
  font-size: 1.5rem;
}

.floating-nav-wrapper {
  z-index: 1000;
  opacity: 1;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: #0000004d;
  justify-content: center;
  align-items: center;
  width: 33.333%;
  transition:
    opacity 0.4s ease-in-out,
    transform;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.floating-nav-wrapper:where(.is-horizontal) {
  width: 100%;
  height: 4rem;
  inset: auto 0% 0%;
}

.editorial-hero {
  background-color: #fff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.editorial-hero:has(.servicos-accordion-item) {
  position: relative;
}

.editorial-bg-layer {
  z-index: 0;
  pointer-events: none;
  inset: 0;
  position: absolute;
}

.editorial-hero .editorial-bg-layer {
  width: 100%;
  height: 100%;
}

.editorial-bg-image {
  opacity: 0;
  object-fit: cover;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
}

/* Serviços background images - full viewport coverage */
.editorial-hero .editorial-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.editorial-titles-container {
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.5rem 3rem;
  min-height: 100vh;
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  position: relative;
}

.editorial-title-wrap {
  transition: opacity 0.4s ease-in-out;
}

.editorial-title {
  color: #000;
  text-align: center;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 9vw, 7.2rem);
  line-height: 1.1;
  transition: color 0.5s ease-in-out;
}

/* Serviços Title Items Styles */
.servicos-title-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.servicos-title-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: inherit;
  transition: color 0.5s ease-in-out;
  position: relative;
  z-index: 2;
}

.servicos-title-button:hover {
  opacity: 1;
}

.servicos-title-item:hover .servicos-title-button .editorial-title {
  color: #fff;
}

.servicos-title-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.5rem;
  border-radius: 0;
}

.servicos-title-button .editorial-title {
  cursor: pointer;
  pointer-events: none;
}

/* Serviços Popup Styles */
.servicos-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.servicos-popup-container {
  position: relative;
  background-color: #fff;
  width: 100%;
  max-width: 70rem;
  aspect-ratio: 708 / 584;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.servicos-popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10001;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.servicos-popup-close:hover {
  opacity: 0.6;
}

.servicos-popup-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.servicos-popup-close svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.servicos-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicos-popup-inner {
  width: 100%;
  max-width: 50rem;
}

.servicos-content-intro {
  color: var(--paragrafos);
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  margin-bottom: 1rem;
  margin-top: 0;
}

.servicos-content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.servicos-content-list li {
  color: var(--paragrafos);
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  line-height: 1.5;
  padding-left: 1.5em;
  position: relative;
}

.servicos-content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background-color: currentColor;
  opacity: 0.4;
}

.editorial-tooltip {
  z-index: 9999;
  opacity: 0;
  -webkit-backdrop-filter: blur(1.15rem);
  backdrop-filter: blur(1.15rem);
  pointer-events: none;
  color: #000;
  text-align: left;
  background-color: #d9d9d980;
  max-width: 44rem;
  padding: 1.5rem 2rem;
  font-size: 2rem;
  line-height: 1.8;
  transition: opacity 0.5s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
}

.portfolio-container {
  margin-left: auto;
  margin-right: auto;
  padding: 0 9vw 5rem;
}

.portfolio-filter-tag {
  color: #ffffff80;
  font-size: var(--texto-corrido);
  white-space: nowrap;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  align-items: center;
  height: 100%;
  padding: 0.5rem 0 0.5rem 0;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  font-family: inherit;
}

.portfolio-filter-tag:hover {
  color: #ffffffb3;
  border: 0;
  outline: 0;
}

.portfolio-filter-tag:active {
  border: 0;
  outline: 0;
}

.portfolio-filter-tag:focus {
  border: 0;
  outline: 0;
}

.portfolio-filter-tag.portfolio-filter-tag-is-active {
  color: #fff;
}

.portfolio-project-image {
  cursor: pointer;
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  height: 18.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.portfolio-project-image:hover {
  transform: scale(1.05);
}

.portfolio-project-image.bottom-aligned {
  object-position: 50% 100%;
}

.portfolio-project-image.center-anchored {
  object-position: 50% 50%;
}

.portfolio-project-image.portfolio-project-image--insular {
  object-position: 50% 70%;
}

.portfolio-grid {
  grid-column-gap: 1.5rem;
  grid-row-gap: 3rem;
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

.portfolio-project-card {
  flex-direction: column;
  display: flex;
}

.portfolio-project-title {
  flex: 1;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.portfolio-filters {
  flex-flow: row;
  flex: 0 auto;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  gap: 3rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  display: inline-flex;
  overflow: hidden;
}

.portfolio-filters__list {
  color: #fff;
  overflow: visible;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-width: fit-content;
  visibility: visible;
  opacity: 1;
  gap: 2.5rem;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 1.5rem;
  position: relative;
  list-style: none;
}

.portfolio-filters__item {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.portfolio-filter-description {
  opacity: 0;
  transition:
    opacity 0.4s ease,
    max-height 0.4s ease;
  color: #000000b3;
  max-height: 0;
  margin: 0 9vw;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  display: block;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.project-card__meta {
  color: #0009;
  font-size: var(--texto-corrido);
  justify-content: space-between;
  align-items: flex-end;
  font-weight: 300;
  display: flex;
}

.floating-nav-button {
  z-index: 1002;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  cursor: pointer;
  background-color: #0000001c;
  border-radius: 0;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  padding: 0.7rem;
  font-size: 3rem;
  font-weight: 300;
  transition: background-color 0.2s;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
}

.floating-nav-button:hover {
  background-color: #00000036;
}

.floating-nav-overlay {
  z-index: 999;
  opacity: 1;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease-in-out;
  display: none;
  position: fixed;
  inset: 0;
}

.projects-meta {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 1rem;
  display: flex;
}

.button-icon {
  max-width: 50%;
  margin-bottom: 6%;
  margin-left: 7%;
}

.projects-hero-wrapper {
  box-sizing: border-box;
  object-fit: cover;
  object-position: 50% 50%;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  overflow: visible;
}

.projects-hero-wrapper.sobre {
  height: 120vh;
  /* No overflow: clip so position: sticky on titles works like portfolio page */
}

.projects-hero-wrapper.sobre .hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sobre Hero Parallax Layers */
.sobre-parallax-layer {
  z-index: 1;
  align-items: flex-start;
  padding-left: 9vw;
  padding-bottom: 15vw;
}

.sobre-parallax-layer--h1 {
  z-index: 1;
  /* Hidden so only one back layer shows "que nasce do lugar." – avoids double opacity on scroll fade */
  visibility: hidden;
}

.sobre-parallax-layer--h2 {
  z-index: 3;
}

/* Back layers only: h1 and "Arquitetura" at 0% opacity; only "que nasce do lugar." visible */
.sobre-parallax-layer:not(.sobre-parallax-layer--front) .hero-name {
  opacity: 0;
}

.sobre-parallax-layer:not(.sobre-parallax-layer--front) .sobre-hero-subtitle-back-first {
  opacity: 0;
}

.sobre-parallax-layer--front {
  z-index: 5;
}

.sobre-parallax-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}

.sobre-parallax-image--h1 {
  z-index: 2;
}

.sobre-parallax-image--h2 {
  z-index: 4;
}

/* Sobre hero: building image in front of title and subtitle */
.sobre-hero-building-in-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  z-index: 6;
}

/* Sobre hero: duplicate titles in front of front image (h1 + "Arquitetura" only) */
.projects-hero-wrapper.sobre .hero-titles-wrapper--front {
  z-index: 5;
  align-items: flex-start;
  padding-left: 9vw;
  padding-bottom: 15vw;
}

.projects-hero-wrapper.sobre .hero-titles-wrapper--front .sobre-hero-subtitle-behind {
  display: none;
}

.hero-bg-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-image-front {
  z-index: 12;
  pointer-events: none;
  min-height: 100vh;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  max-height: 140vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-image-front._2 {
  min-height: auto;
}

.projects-hero-titles {
  z-index: 1;
  color: #fff;
  max-width: calc(100% - 9vw);
  margin-left: 9vw;
  position: sticky;
  top: 9rem;
  container-type: inline-size;
}

.projects-hero-titles.more-space-above {
  top: 20rem;
}

.projects-hero-titles.non-sticky {
  position: static;
}

.projects-hero-titles._2 {
  top: 11rem;
}

.projects-hero-titles.stick-early {
  top: 13rem;
}

.hero-name {
  color: #fff;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 11vw;
  font-weight: 600;
  line-height: 0.8;
}

.hero-name.is--hidden {
  opacity: 0;
}

.hero-name--insular {
  margin-left: -0.73rem;
}

.hero-subtitle--insular {
  margin-left: -0.2rem;
}

.hero-subtitle {
  color: #fff;
  font-size: 4vw;
  font-weight: 500;
  line-height: 1;
}

.hero-subtitle.is--hidden {
  opacity: 0;
}

/* Align subtitle left edge with title (optical alignment for large uppercase + smaller subtitle) */
.projects-hero-titles--subtitle-align-title .hero-subtitle {
  margin-left: 0.9rem;
}

/* Hide hero line-break on desktop so subtitle stays on one line */
@media screen and (min-width: 768px) {
  .sobre-hero-br-mobile {
    display: none;
  }

  /* Hide mobile-only "Tudo" filter on desktop */
  .portfolio-filters__item--mobile-only {
    display: none;
  }

  /* === Portfolio desktop only (min-width: 768px). Mobile uses max-width: 767px overrides elsewhere. === */
  /* Portfolio desktop: allow clicks through titles so filters remain clickable when overlapping */
  .portfolio-hero__titles-wrapper,
  .portfolio-hero__titles-wrapper .portfolio-hero__titles {
    pointer-events: none;
  }

  /* Portfolio desktop: hero stays above section-wrapper so filters remain clickable when scrolling */
  .portfolio-hero {
    z-index: 1;
  }

  /* Portfolio desktop: filters need higher z-index than front titles wrapper (z-index: 13) */
  .portfolio-filters {
    z-index: 20;
  }

  /* Portfolio desktop: fixed space for description (2 lines), text vertically centered, no layout shift */
  .portfolio-section-wrapper {
    padding-top: 7rem;
  }

  .portfolio-filter-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7rem;
    max-height: 7rem;
    margin: 0;
    padding: 0 9vw;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
}

.hero-titles-wrapper {
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
}

.hero-titles-wrapper.hero-titles-wrapper--centered {
  justify-content: center;
  align-items: center;
  display: flex;
}

.hero-titles-wrapper.centered-content {
  display: flex;
}

/* Saccharum project: h2 in front of hero image, h1 behind; same visual position */
.projects-hero-wrapper--split-titles .hero-titles-wrapper--front {
  z-index: 13;
}

/* Saccharum project only: hero titles further down */
.projects-hero-wrapper--titles-lower .hero-titles-wrapper {
  padding-top: 32vh;
}

/* Centered hero: titles positioned higher */
.projects-hero-wrapper--titles-higher .hero-titles-wrapper {
  justify-content: center;
  padding-bottom: 10vh;
}

.hero-titles-wrapper.hero-titles-up .projects-hero-titles {
  transform: translateY(-1.25rem);
}

.projects-meta-wrapper {
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 3rem;
  display: flex;
}

.portfolio-filters__toggle {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.2);
  border: 0;
  border-radius: 0;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-shrink: 0;
  align-self: center;
}

.portfolio-filters__toggle:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.portfolio-filters__toggle:focus {
  outline: 0;
}

.portfolio-filters__toggle .button-icon {
  max-width: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.portfolio-filters {
  /* z-index set in media queries: desktop 20 (above titles), mobile 100 */
  justify-content: flex-start;
  width: 100%;
  padding-left: 9vw;
  display: flex;
  position: absolute;
  inset: auto 0% 2rem;
  overflow: visible;
  align-items: center;
  gap: 0;
}

.container {
  grid-column-gap: 3rem;
  grid-row-gap: 3rem;
  flex-flow: column;
  display: flex;
}

.project-image-horizontal {
  flex: 1;
  max-height: 100vh;
}

.project-image-horizontal.bottom-anchored {
  object-position: 50% 100%;
}

.project-image-horizontal.top-anchored {
  object-position: 50% 0%;
}

.project-image-horizontal.right-anchored {
  object-position: 100% 50%;
}

.project-image-horizontal.full-height {
  height: 100%;
  max-height: none;
}

.project-image-horizontal._100-vh {
  height: 100vh;
}

/* Single image in a horizontal pair: fill cell height with cover */
.project-image-horizontal--fill-height-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.portfolio-filters__panel {
  overflow: hidden;
  width: 0;
  display: flex;
  align-items: center;
  height: 2.5rem;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.2);
}

/* Portfolio filters: initial blur(0), then transition to blur(20px) via class (GSAP cannot animate backdrop-filter) */
.portfolio-filters .portfolio-filters__toggle,
.portfolio-filters .portfolio-filters__panel {
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: -webkit-backdrop-filter 0.6s ease, backdrop-filter 0.6s ease;
}

.portfolio-filters.is-blur-ready .portfolio-filters__toggle,
.portfolio-filters.is-blur-ready .portfolio-filters__panel {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Section Navigation - Sobre page shortcuts */
.section-nav {
  z-index: 10;
  justify-content: flex-start;
  width: 100%;
  padding-left: 9vw;
  display: flex;
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  overflow: visible;
  align-items: center;
  gap: 0;
}

.section-nav__toggle {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.2);
  border: 0;
  border-radius: 0;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-shrink: 0;
  align-self: center;
  transition: background-color 0.2s;
}

.section-nav__toggle:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.section-nav__toggle:focus {
  outline: 0;
}

.section-nav__toggle .button-icon {
  max-width: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.section-nav__panel {
  overflow: hidden;
  width: 0;
  display: flex;
  align-items: center;
  height: 2.5rem;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.2);
}

.section-nav__list {
  color: #fff;
  overflow: visible;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-width: fit-content;
  visibility: visible;
  opacity: 1;
  gap: 2.5rem;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 1.5rem;
  position: relative;
  list-style: none;
}

.section-nav__item {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.section-nav-link {
  color: #ffffff80;
  font-size: var(--texto-corrido);
  white-space: nowrap;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  align-items: center;
  height: 100%;
  padding: 0.5rem 0;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  visibility: visible;
}

.section-nav-link:hover {
  color: #ffffffb3;
  border: 0;
  outline: 0;
}

.section-nav-link:active,
.section-nav-link:focus {
  border: 0;
  outline: 0;
}

.section-nav-link.is-active {
  color: #fff;
}

.portfolio-section-wrapper {
  min-height: 50vh;
  position: relative;
}

.editorial-tooltip-list {
  margin-left: 0;
  padding-left: 1.5em;
  list-style-type: square;
  list-style-position: outside;
}

/* Styles for square bullets tooltip - applied via JavaScript class */
.editorial-tooltip ul,
[data-tooltip] ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.editorial-tooltip ul li[data-square-bullet="true"],
[data-tooltip] ul li[data-square-bullet="true"] {
  list-style: none;
  margin: 0;
  padding-left: 1.2em;
  position: relative;
}

.editorial-tooltip,
[data-tooltip] {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Force nav visible - applied via JavaScript class
 * Using high specificity to override inline styles and other rules
 */
.nav.nav-force-visible,
.nav.nav-force-visible.nav {
  opacity: 1;
  visibility: visible;
}

.projects-imgs-horizontal-wrapper {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: center;
  place-items: center stretch;
  display: grid;
}

/* Horizontal pair: both images same height, cover to fill cell */
@media screen and (min-width: 768px) {
  .projects-imgs-horizontal-wrapper--equal-height .project-image-horizontal {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  /* Saccharum: first image pair (hotel_162 + hotel_036) same height on desktop */
  .projects-imgs-horizontal-wrapper--saccharum-equal-height .project-image-horizontal {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
}

/* Horizontal pair: left ~30%, right ~70%; reduced height */
/* Horizontal pair: left 65%, right 35% */
.projects-imgs-horizontal-wrapper--75-25 {
  grid-template-columns: 65% 35%;
}

.projects-imgs-horizontal-wrapper--75-25 .project-image-horizontal {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.projects-imgs-horizontal-wrapper--cover-contain {
  align-items: stretch;
  height: 70vh;
  grid-template-rows: 1fr;
  grid-template-columns: 30% 1fr;
}

.projects-imgs-horizontal-wrapper--cover-contain .project-image-horizontal--cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

/* Right image (185): fills container height, cover */
.projects-imgs-horizontal-wrapper--cover-contain .project-image-horizontal--contain {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  display: block;
}

.project-image-portrait {
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
  object-position: 50% 50%;
}

.projects-paragraph {
  max-width: 58.75rem;
  margin-left: auto;
  margin-right: auto;
}

.project-body {
  grid-column-gap: 6rem;
  grid-row-gap: 6rem;
  flex-flow: column;
  display: flex;
}

.projects-full-width-image.max-size {
  object-position: 50% 100%;
  max-height: 110vh;
}

.projects-full-width-image._2 {
  object-position: 50% 100%;
  max-height: 100vh;
}

.projects-full-width-image.portrait-cropped {
  object-fit: cover;
  object-position: 50% 90%;
  max-height: 100vh;
  width: 100%;
}

.proximo-projeto-wrapper {
  justify-content: center;
  align-items: center;
  display: flex;
}

.code-embed-2 {
  transform: translate(0.25rem);
}

.proximo-projeto {
  font-size: var(--texto-corrido);
  border-bottom: 1px solid #000;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  flex-direction: row;
  gap: 0.5rem;
  position: relative;
  cursor: pointer;
}

.proximo-projeto > a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.proximo-projeto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.proximo-projeto:hover {
  border-bottom-color: transparent;
}

.proximo-projeto:after {
  transform-origin: 100% 100%;
  content: "";
  background-color: #000;
  width: 100%;
  height: 1px;
  transition: transform 0.6s ease-out;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  opacity: 0;
  z-index: 0;
}

.proximo-projeto:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
  opacity: 1;
}

.proximo-projeto.proximo-projeto-hover {
  border-bottom-color: #0000;
}

.proximo-projeto.proximo-projeto-hover:after {
  transform-origin: 0 100%;
  transform: scaleX(1);
}

.hero-titles {
  z-index: 1;
  color: #fff;
  width: 100%;
  margin-left: 9vw;
  position: sticky;
  top: 9rem;
  container-type: inline-size;
}

/* Sobre hero: sticky titles like portfolio page */
.projects-hero-wrapper.sobre .hero-titles.sobre {
  position: sticky;
  top: 9rem;
  z-index: 1;
  margin-left: 0;
}

.portfolio-hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  /* No overflow: clip so position: sticky on titles can work like project page */
}

.image-12 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Same structure as project page (calheta-hills): full-height wrapper + sticky titles */
.portfolio-hero__titles-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 28vh;
}

.portfolio-hero__titles {
  color: #fff;
  position: sticky;
  top: 9rem;
  z-index: 1;
  max-width: calc(100% - 9vw);
  margin-left: 9vw;
  container-type: inline-size;
}

.portfolio-hero__titles.front {
  z-index: 2;
}

/* Subtitle in front of the hero front image: wrapper above image z-index */
.portfolio-hero__titles-wrapper--front {
  z-index: 13;
}

/* Spacer h1 in front layer: keeps layout, not visible */
.portfolio-hero__titles-wrapper--front .portfolio-hero__spacer-title {
  visibility: hidden;
}

/* Main block subtitle: behind image, invisible (subtitle shown in front layer) */
.portfolio-hero__subtitle-behind {
  visibility: hidden;
}

.hero__content-wrap {
  flex-flow: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100vh;
  padding-bottom: 4rem;
  padding-left: 9vw;
  padding-right: 9vw;
  display: flex;
  position: absolute;
  inset: 0%;
  z-index: 2;
}

.hero-background-image {
  min-height: 100vh;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  max-height: 140vh;
  display: block;
}

.premios-e-noticias {
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  width: 100%;
  max-width: 58.75rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
}

/* Single column when only Notícias (no Prémios): noticias fills full width */
.premios-e-noticias:not(:has(.premios)) {
  grid-template-columns: 1fr;
}

.premio {
  grid-column-gap: 0.9rem;
  grid-row-gap: 0.9rem;
  font-size: var(--texto-corrido);
  border: 1px solid #0000;
  flex-flow: column;
  padding: 1.5rem;
  line-height: 1;
  transition: border-color 0.2s;
  display: flex;
}

.premio:hover {
  border-color: #000;
}

.premio-title {
  line-height: 1.2;
}

.premio-description {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.2;
}

.premio-date {
  color: #929292;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.2;
  display: inline-flex;
}

.premios-wrapper {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: column;
  display: flex;
}

.heading-4 {
  margin-bottom: 1em;
  padding-left: 1.5rem;
  font-size: 1.56rem;
  font-weight: 400;
}

.noticias-wrapper {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: column;
  display: flex;
}

.noticia {
  grid-column-gap: 0.9rem;
  grid-row-gap: 0.9rem;
  font-size: var(--texto-corrido);
  border: 1px solid #0000;
  flex-flow: column;
  padding: 1.5rem;
  line-height: 1;
  transition: border-color 0.2s;
  display: flex;
}

.noticia:hover {
  border-color: #000;
}

/* Contactos: hide page until map iframe has loaded */
body.contactos-wait-for-map {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body:not(.contactos-wait-for-map) {
  transition: opacity 0.25s ease;
}

.contactos-map {
  width: 100%;
  min-height: 20rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-subtitle-2 {
  margin-bottom: 1rem;
  font-size: 4vw;
  font-weight: 500;
  line-height: 1;
}

.hero-subtitle-2.is--hidden {
  opacity: 0;
}

.form {
  background-color: #f8f8f8;
  padding: 2.5rem;
}

.contacts__left-column {
  color: var(--paragrafos);
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.heading-5 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.text-field {
  border: 1px #000;
  margin-bottom: 0;
  padding: 1.7rem 1.4rem;
  font-size: 1.1rem;
  font-weight: 300;
  width: 100%;
  display: block;
}

.flex-block-3 {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: column;
  align-items: stretch;
  margin-bottom: 2rem;
}

.submit-button {
  background-color: #000;
  width: 100%;
}

.text-field-2 {
  resize: vertical;
  border: 1px #000;
  min-height: 8rem;
  margin-bottom: 0;
  padding: 1rem 1.4rem 1.7rem;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  width: 100%;
  display: block;
}

.contact-section {
  grid-column-gap: 3rem;
  grid-row-gap: 4rem;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  min-height: calc(100vh - 2rem);
  padding-top: 8rem;
  padding-left: 9vw;
  padding-right: 9vw;
  padding-bottom: 2rem;
  display: grid;
  box-sizing: border-box;
}

.flex-block-4 {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  color: #000;
  flex-flow: column;
  grid-template-rows: auto;
  grid-template-columns: 1rem 1fr;
  grid-auto-columns: 1fr;
  align-items: start;
  display: grid;
}

.contactos-icon {
  width: 1rem;
  min-width: 1rem;
  flex-shrink: 0;
  color: var(--paragrafos);
  /* Center icon with first line of text (line-height 1.35, icon 1rem) */
  padding-top: 0.175em;
}

.text-block-6 {
  color: #000;
  font-weight: 400;
}

.link-3 {
  color: #000;
  font-size: inherit;
  letter-spacing: 0;
  display: inline-block;
  transition: transform 0.2s ease;
}

.link-3:hover {
  transform: translateX(0.25rem);
}

a.link-3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1.35;
  cursor: pointer;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  width: 1em;
  height: 1em;
  margin-left: auto;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease 0.15s;
  flex-shrink: 0;
}

.link-arrow svg {
  width: 100%;
  height: auto;
}

a.link-3:hover .link-arrow {
  opacity: 1;
  transform: translateX(0.35rem);
}

.footer-contacts {
  gap: 0.5rem;
  flex-flow: column;
  display: flex;
}

.divider {
  opacity: 0.13;
  background-color: #000;
  height: 1px;
  margin-bottom: 3rem;
}

.flex-block-5 {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  flex-flow: row;
  margin-top: 2rem;
}

.footer-container__grid-flex {
  gap: 6rem;
  grid-template-columns: repeat(3, 1fr);
  justify-items: start;
  width: 100%;
  display: grid;
}


@media screen and (max-width: 991px) {
  h1 {
    font-size: var(--h1-size);
  }

  h2 {
    font-size: var(--h2-size);
  }

  h3 {
    font-size: var(--h3-size);
  }

  h4 {
    font-size: var(--h4-size);
  }

  h5 {
    font-size: var(--h5-size);
  }

  h6 {
    font-size: var(--h6-size);
  }

  p {
    font-size: var(--text-size);
  }

  .nav {
    height: auto;
  }

  .nav_container {
    position: relative;
    z-index: 2;
  }

  .nav_left {
    position: relative;
    z-index: 3;
  }

  /* Logo turns dark when menu is open */
  .nav_container:has(.nav_mobile-menu-button.is-open) .nav_logo {
    color: #000;
  }

  .nav_menu-list {
    flex-flow: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transform: translateY(1rem);
    transition: transform 0.3s ease;
  }

  .nav_right {
    color: #000;
  }

  .nav_menu,
  .nav-shell[data-collapse="medium"] .nav-shell__menu {
    display: flex;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav_menu[data-nav-menu-open],
  .nav-shell[data-collapse="medium"] .nav-shell__menu[data-nav-menu-open] {
    opacity: 1;
    visibility: visible;
  }

  .nav_menu[data-nav-menu-open] .nav_menu-list {
    transform: translateY(0);
  }

  .nav_mobile-menu-button {
    display: flex;
    color: inherit;
    background-color: #0000;
    align-self: center;
    z-index: 2;
  }

  .nav_mobile-menu-button.is-open {
    color: #000;
    background-color: #0000;
  }

  .nav_mobile-menu-button.is-open:hover {
    color: #000;
  }

  .nav:not(.is-dark) .nav_mobile-menu-button.is-open {
    color: #000;
  }

  .nav_link {
    color: #000;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.5;
  }

  .nav_link.is-current {
    opacity: 1;
    font-weight: 500;
  }

  .nav_link:hover {
    color: #000;
    background-color: #0000;
    opacity: 0.6;
  }

  .nav_link.is-current:hover,
  .nav_link.is-open {
    background-color: #0000;
  }

  .nav_link.is-current:hover {
    opacity: 1;
  }

  .nav_menu-list-item {
    flex-flow: column;
    margin-bottom: 0;
    text-align: center;
  }

  .svg {
    color: inherit;
  }

  .nav.is-dark .svg {
    color: #000;
  }

  .editorial-titles-container {
    row-gap: 1.125rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .servicos-popup-container {
    max-width: calc(100% - 2rem);
    margin: 1rem;
  }

  .servicos-popup-content {
    padding: 2rem 1.5rem;
  }

  .servicos-content-list {
    gap: 0.625rem;
  }

  .servicos-content-list li {
    font-size: var(--text-size);
  }

  .contacts__left-column .flex-block-5 {
    justify-content: flex-end;
  }

  .contact-section {
    grid-row-gap: 1.5rem;
  }

  .contact-info-list {
    margin-top: 0;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: var(--h1-size);
  }

  h2,
  h3,
  h4 {
    font-size: 1.4rem;
  }

  h5 {
    font-size: var(--h5-size);
  }

  h6 {
    font-size: var(--h6-size);
  }

  p {
    font-size: 1.1rem;
  }

  .page-home p {
    font-size: 1.25rem;
  }

  /* === HOMEPAGE MOBILE LAYOUT === */

  /* Hero - optimized for mobile viewport */
  .hero {
    height: 100svh;
    min-height: 32rem;
  }

  .hero--logo-only .hero-logo {
    max-width: 14rem;
  }

  .projects-hero-wrapper.sobre {
    height: 120svh;
    min-height: 32rem;
  }

  /* Sobre hero titles: 20svh from top on mobile instead of vertically centered; sticky kept */
  .page-sobre .hero-titles-wrapper.hero-titles-wrapper--centered {
    justify-content: flex-start;
    padding-top: 40svh;
  }

  /* Sobre hero titles sticky on mobile, lower top than desktop */
  .page-sobre .projects-hero-wrapper.sobre .hero-titles.sobre {
    top: 5rem;
  }

  .hero__content-wrap {
    height: 100svh;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .page-home .hero__content-wrap {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .hero-text._3 {
    margin-bottom: 2rem;
  }

  .hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
  }

  /* Hero buttons - stack vertically with proper tap targets */
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-buttons._2 {
    align-self: stretch;
  }

  .hero-button {
    width: 100%;
    min-height: 3.5rem;
    font-size: 1.125rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Intro section - same horizontal margins as header; no top gap on index */
  .page-home .intro-section {
    padding-top: 0;
    padding-bottom: 3rem;
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .intro-section_text {
    font-size: 1.125rem;
    line-height: 1.2;
    color: #0000008a;
    text-align: left;
  }

  .intro-section_text br {
    display: none;
  }

  /* Blocks container - no horizontal padding so content images are edge-to-edge */
  .page-home .div-block {
    gap: 6rem;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 4rem;
    min-width: 0;
  }

  footer,
  .footer {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .footer-contacts {
    font-size: 1.25rem;
    color: #0000008a;
  }

  .footer-contacts__item a {
    font-size: 1.125rem;
    color: #00000099;
  }

  /* Individual blocks - vertical layout */
  .blocks {
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
  }

  /* Left blocks: reverse order so text appears before image on mobile */
  .blocks.left {
    flex-direction: column-reverse;
  }

  .blocks.right {
    flex-direction: column;
  }

  /* Block images - full width on mobile; min-width: 0 so flex item can shrink and avoid overflow */
  .block__image-framed {
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
  }

  /* Block text - proper spacing; horizontal padding only on homepage so images stay edge-to-edge */
  .block__text-frame {
    align-items: flex-start;
    padding: 0;
    gap: 1rem;
  }

  .page-home .block__text-frame {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
    min-width: 0;
  }

  .block-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .block-paragraph {
    font-size: 1.125rem;
    line-height: 1.2;
    color: #0000008a;
  }

  /* Project link overlay on images */
  .image__project-link {
    margin-bottom: 1rem;
    margin-right: 1rem;
    font-size: 1.125rem;
  }

  /* === END HOMEPAGE MOBILE === */

  /* === PORTFOLIO PAGE HERO MOBILE (styled like project hero, e.g. Calheta Hills) === */
  .portfolio-hero {
    min-height: 100svh;
  }

  .portfolio-hero .hero-bg-image {
    object-position: 50% 50%;
  }

  .portfolio-hero__titles {
    margin-left: var(--horizontalmargins);
    margin-right: var(--horizontalmargins);
    max-width: calc(100% - 2 * var(--horizontalmargins));
  }

  .portfolio-hero .image-12 {
    z-index: 12;
    min-height: 100vh;
    object-position: 50% 50%;
  }

  /* === PORTFOLIO PROJECT PAGE MOBILE === */
  .projects-meta-wrapper {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .projects-meta {
    font-size: 1rem;
  }

  .projects-paragraph {
    font-size: 1.125rem;
    line-height: 1.2;
    color: #0000008a;
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  /* Stack 2-column images vertically on mobile */
  .projects-imgs-horizontal-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-image-horizontal {
    width: 100%;
    max-width: 100%;
  }

  /* News and awards: single column on mobile for readability */
  .premios-e-noticias {
    grid-template-columns: 1fr;
  }

  .proximo-projeto {
    font-size: 1.2rem;
  }

  /* === SOBRE PAGE MOBILE LAYOUT === */

  /* Content paragraphs: same typography as footer “Estamos sempre à procura” text */
  .page-sobre #about p,
  .page-sobre #mission-text p,
  .page-sobre .values-intro-text p,
  .page-sobre .values-item-pinned p,
  .page-sobre .process-intro p,
  .page-sobre .process-step p,
  .page-sobre .founder-card-back .card-bio p,
  .page-sobre .team-intro p,
  .page-sobre .team-card-back .card-bio p,
  .page-sobre .paragraph--centered.end-of-team-section {
    font-size: 1.125rem;
    color: #0000008a;
    line-height: 1.2;
  }

  /* About intro - on mobile match original: text only, no images, section padding */
  .page-sobre #about.full-screen-div.no-spacing {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .about-intro-block-image {
    display: none;
  }

  .about-intro-grid {
    gap: 2rem;
  }

  .about-intro-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-intro-block--text-right .about-intro-block-text {
    order: -1;
  }

  .about-intro-block-text {
    gap: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .grid-paragraph {
    font-size: 1.25rem;
    line-height: 1.6;
  }

  /* Mission section - stack vertically with text first */
  .full-screen-div._2-columns.image-no-margins-right.mission-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 0 0;
  }

  #mission-text {
    padding: 0 var(--horizontalmargins) 2rem;
  }

  #mission-text .heading {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .mission-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }

  .mission-description {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: none;
  }

  /* Founders section - adjust spacing */
  .full-screen-div.founders-section {
    padding-top: 4rem;
    padding-bottom: 3rem;
    padding-left: 0;
    padding-right: 0;
  }

  .founders-intro {
    margin-bottom: 1.5rem;
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .founders-intro .heading {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .founder-card-front-info {
    padding: 0.5rem 0.75rem;
  }

  .founder-card-front-info .person-name {
    font-size: var(--texto-corrido);
  }

  .founder-card-front-info .person-role {
    font-size: 1rem;
  }

  .founder-card-back {
    padding: 0.5rem 0.75rem 0.75rem;
  }

  .founder-card-back .card-bio p {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
  }

  /* Team collective section */
  .full-screen-div.collective-section {
    padding-top: 3rem;
    padding-left: 0;
    padding-right: 0;
  }

  .team-intro {
    margin-bottom: 1.5rem;
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .team-intro .heading {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .team-intro p {
    font-size: 1.25rem;
    line-height: 1.6;
  }

  /* Team grid - 2 columns on mobile, edge-to-edge */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .team-card-front-info {
    padding: 0.5rem 0.75rem;
  }

  /* Use desktop font sizes on mobile */
  .team-card-front-info .person-name {
    font-size: var(--texto-corrido);
  }

  .team-card-front-info .person-role {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 1rem;
  }

  .team-card-front-info .person-role-title {
    text-align: left;
  }

  .team-card-front-info .person-role-desde {
    align-self: flex-end;
    font-size: 0.875rem;
    opacity: 0.7;
  }

  .team-card-back {
    padding: 0.5rem 0.75rem 0.75rem;
  }

  .team-card-back .card-bio p {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
  }

  /* End of team section paragraph */
  .paragraph--centered.end-of-team-section {
    font-size: var(--texto-corrido);
    line-height: 1.5;
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 0 var(--horizontalmargins);
  }

  .paragraph--centered.end-of-team-section br {
    display: none;
  }

  /* Process section adjustments */
  .process-content {
    gap: 2rem;
  }

  .process-intro .heading {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .process-intro p {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .process-step {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
  }

  .process-step:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  }

  .process-step-number {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .process-step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Process step titles: same style as value titles (Colaboração, Intemporalidade, etc.) on mobile */
  .page-sobre .process-step-title {
    font-weight: 500;
  }

  .process-step p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .process-gallery {
    margin-top: 0;
  }

  /* === END SOBRE PAGE MOBILE === */

  .full-screen-div {
    padding: 2rem;
  }

  .process-grid {
    grid-row-gap: 3rem;
    flex-flow: column;
    display: flex;
  }

  .editorial-titles-container {
    gap:3rem 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .servicos-popup-overlay {
    padding: 1rem;
  }

  .servicos-popup-container {
    max-width: calc(100% - 2rem);
    margin: 0.5rem;
  }

  .servicos-popup-content {
    padding: 1.5rem 1rem;
  }

  .servicos-popup-close {
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
  }

  .servicos-content-list {
    gap: 0.5rem;
  }

  .servicos-content-intro {
    font-size: var(--text-size);
  }

  footer,
  .footer {
    padding-top: 4rem;
  }

  .footer-container__grid-flex {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  /* Footer copyright - same font style as “Estamos sempre à procura…” (#footer-grid-recruitment p), centered */
  .footer-copyright {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    font-size: 1.125rem;
    font-weight: var(--texto-corrido-weight);
    color: var(--paragrafos);
    line-height: 1.35;
  }

  .footer-year,
  .footer-text {
    font-size: 1.125rem;
    font-weight: var(--texto-corrido-weight);
    color: var(--paragrafos);
    line-height: 1.35;
  }

  /* Override .page-home p specificity for footer copyright */
  .page-home .footer-year,
  .page-home .footer-text {
    font-size: 1.125rem;
  }

  #footer-grid-recruitment {
    justify-self: start;
  }

  #footer-grid-socials {
    justify-self: center;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-madeira-bar {
    margin-top: 3.5rem;
    justify-content: center;
  }

  #footer-grid-socials .footer-social-links {
    justify-content: center;
    gap: 1rem;
  }

  /* Footer social buttons much larger on mobile for easier tap targets */
  .footer-socials-icon {
    width: 2rem;
  }

  .footer-socials-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .footer-socials-icon svg path {
    stroke-width: 1;
  }

  .contact-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-row-gap: 1.5rem;
    height: auto;
    padding-top: 7rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  #contact-intro {
    grid-area: 1 / 1 / 2 / 2;
    padding-left: 9vw;
    padding-right: 9vw;
  }

  #contact-details {
    grid-area: 2 / 1 / 3 / 2;
    padding-left: 9vw;
    padding-right: 9vw;
  }

  #contact-map {
    grid-area: 3 / 1 / 4 / 2;
    min-height: 18rem;
  }

  .hero-subtitle-2 {
    font-size: 2rem;
    font-weight: 600;
  }

  .contact-info-list {
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 0;
  }

  .contact-info-list .contactos-icon {
    margin-top: -3px;
  }

  /* Body text: same as Sobre/footer on mobile */
  #contact-intro .paragraph-2,
  .contact-info-list .link-3,
  #contact-hours-text {
    font-size: 1.125rem;
    line-height: 1.2;
    color: #0000008a;
  }

  .contacts__left-column {
    justify-content: flex-start;
    gap: 1rem;
  }

  .contact-section ~ footer #footer-grid-socials,
  .contact-section ~ footer .grid__element-flex:first-child {
    display: none;
  }

  /* Section nav - mobile: opens upward as unified container */
  .section-nav {
    padding-left: 2rem;
    bottom: 1.5rem;
    flex-direction: column-reverse;
    align-items: flex-start;
    width: auto;
    right: auto;
  }

  .section-nav__toggle {
    width: 3rem;
    height: 3rem;
    align-self: flex-start;
  }

  .section-nav__toggle .button-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .section-nav__panel {
    width: auto;
    min-width: 3rem;
    height: auto;
    flex-direction: column;
    margin-bottom: 0;
    white-space: normal;
    overflow: hidden;
  }

  .section-nav__list {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
    align-items: flex-start;
    height: auto;
    min-height: auto;
  }

  .section-nav__item {
    opacity: 1;
  }

  /* Portfolio grid - single column on mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio cards - shorter with fixed proportion on mobile only */
  .portfolio-project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 2;
    object-fit: cover;
    object-position: 50% 50%;
  }

  /* Portfolio filters - mobile: same as section-nav (sobre), floating, above hero */
  .portfolio-filters {
    position: fixed;
    left: 0;
    bottom: 1.5rem;
    padding-left: 2rem;
    flex-direction: column-reverse;
    align-items: flex-start;
    width: auto;
    right: auto;
    z-index: 100;
  }

  .portfolio-filters__toggle {
    width: 3rem;
    height: 3rem;
    align-self: flex-start;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.2);
    border: 0;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    display: inline-flex;
    transition: background-color 0.2s;
  }

  .portfolio-filters__toggle:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }

  .portfolio-filters__toggle .button-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .portfolio-filters__panel {
    width: auto;
    min-width: 3rem;
    height: auto;
    flex-direction: column;
    margin-bottom: 0;
    white-space: normal;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.2);
  }

  .portfolio-filters__list {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
    align-items: flex-start;
    height: auto;
    min-height: auto;
  }

  .portfolio-filters__item {
    opacity: 1;
  }

  /* Filter description: normal flow on mobile so it sits above the grid instead of overlapping */
  .portfolio-filter-description {
    position: static;
    margin-left: var(--horizontalmargins);
    margin-right: var(--horizontalmargins);
  }
}

@media screen and (max-width: 479px) {
  .nav_mobile-menu-button.is-open {
    color: inherit;
  }

  /* === HOMEPAGE SMALL MOBILE (< 480px) === */

  .hero__content-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .page-home .hero__content-wrap {
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .hero-subtitle {
    font-size: 1.75rem;
  }

  .hero-button {
    min-height: 3.25rem;
    font-size: 1.125rem;
  }

  .page-home .intro-section {
    padding-top: 0;
    padding-bottom: 2.5rem;
    padding-left: var(--horizontalmargins);
    padding-right: var(--horizontalmargins);
  }

  .intro-section_text {
    font-size: 1.125rem;
    line-height: 1.2;
    color: #0000008a;
    text-align: left;
  }

  .intro-section_text br {
    display: none;
  }

  .page-home .div-block {
    gap: 5rem;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .blocks {
    gap: 1.25rem;
  }

  .block-title {
    font-size: 1.375rem;
  }

  .block-paragraph {
    font-size: 1.125rem;
    line-height: 1.2;
    color: #0000008a;
  }

  /* === END HOMEPAGE SMALL MOBILE === */

  /* === SOBRE PAGE SMALL MOBILE (< 480px) === */

  /* Content paragraphs: same typography as footer “Estamos sempre à procura” text */
  .page-sobre #about p,
  .page-sobre #mission-text p,
  .page-sobre .values-intro-text p,
  .page-sobre .values-item-pinned p,
  .page-sobre .process-intro p,
  .page-sobre .process-step p,
  .page-sobre .founder-card-back .card-bio p,
  .page-sobre .team-intro p,
  .page-sobre .team-card-back .card-bio p,
  .page-sobre .paragraph--centered.end-of-team-section {
    font-size: 1.125rem;
    color: #0000008a;
    line-height: 1.2;
  }

  /* About intro refinements */
  .about-intro-grid {
    gap: 1.5rem;
  }

  .about-intro-block {
    gap: 1rem;
  }

  .grid-paragraph {
    font-size: 1.25rem;
  }

  /* Mission section */
  #mission-text {
    padding: 0 var(--horizontalmargins) 1.5rem;
  }

  #mission-text .heading {
    font-size: 1.375rem;
  }

  .mission-description {
    font-size: 1.25rem;
  }

  /* Founders section */
  .full-screen-div.founders-section {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .founders-intro .heading {
    font-size: 1.375rem;
  }

  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }

  .founder-card-front-info {
    padding: 0.25rem 0.5rem;
  }

  .founder-card-front-info .person-name {
    font-size: var(--texto-corrido);
  }

  .founder-card-front-info .person-role {
    font-size: 1rem;
  }

  .founder-card-back {
    padding: 0.375rem 0.5rem 0.5rem;
  }

  .founder-card-back .card-bio p {
    font-size: 0.625rem;
    line-height: 1.3;
    margin-bottom: 0.125rem;
  }

  /* Team collective section */
  .full-screen-div.collective-section {
    padding-top: 2.5rem;
  }

  .team-intro .heading {
    font-size: 1.375rem;
  }

  .team-intro p {
    font-size: 1.25rem;
  }

  /* Team grid smaller spacing */
  .team-grid {
    gap: 0.375rem;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }

  .team-card-front-info {
    padding: 0.25rem 0.5rem;
  }

  /* Keep desktop font sizes on smaller mobile too */
  .team-card-front-info .person-name {
    font-size: var(--texto-corrido);
  }

  .team-card-front-info .person-role {
    font-size: 1rem;
  }

  .team-card-front-info .person-role-desde {
    font-size: 0.875rem;
  }

  .team-card-back {
    padding: 0.375rem 0.5rem 0.5rem;
  }

  .team-card-back .card-bio p {
    font-size: 0.625rem;
    line-height: 1.3;
    margin-bottom: 0.125rem;
  }

  /* End of team section paragraph */
  .paragraph--centered.end-of-team-section {
    font-size: var(--texto-corrido);
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }

  /* Process section */
  .full-screen-div.full-screen-div--grey {
    padding: 1.5rem var(--horizontalmargins);
  }

  .page-sobre #process.full-screen-div--grey {
    padding-left: 0;
    padding-right: 0;
    padding-top: 3rem;
  }

  .process-intro .heading {
    font-size: 1.375rem;
  }

  .process-intro p {
    font-size: 1.25rem;
  }

  .process-step-title {
    font-size: 1.125rem;
  }

  /* Process step titles: same style as value titles on small mobile */
  .page-sobre .process-step-title {
    font-weight: 500;
    margin-bottom: 1rem;
  }

  .process-step p {
    font-size: 0.9375rem;
  }

  /* Values section smaller padding */
  .values-pinned-container {
    padding: 1.5rem var(--horizontalmargins);
    gap: 1.25rem;
  }

  .values-image-stack {
    left: -1rem;
    width: calc(100% + 1rem);
  }

  .values-intro-text .heading {
    font-size: 1.375rem;
  }

  .values-intro-text p {
    font-size: 1.25rem;
  }

  .values-item-pinned .value-title {
    font-size: 1.125rem;
  }

  .values-item-pinned p {
    font-size: 0.9375rem;
  }

  /* === END SOBRE PAGE SMALL MOBILE === */

  .section-nav {
    padding-left: 1rem;
    bottom: 1rem;
  }

  .section-nav__list {
    gap: 0.875rem;
    padding: 0.875rem 1rem;
  }

  .portfolio-filters {
    padding-left: 1rem;
    bottom: 1rem;
  }

  .portfolio-filters__list {
    gap: 0.875rem;
    padding: 0.875rem 1rem;
  }
}

#footer-grid-recruitment {
  justify-self: center;
}

@media screen and (min-width: 768px) {
  #footer-grid-socials {
    justify-self: end;
    text-align: right;
    padding-top: calc(1rem * 1.2 + 1rem);
  }

  #footer-grid-socials .footer-social-links {
    justify-content: flex-end;
  }
}

/* Footer desktop-only: contact link size, hovers, title spacing, socials Y-align */
@media screen and (min-width: 992px) {
  .footer-section-title {
    margin-bottom: 1.5rem;
  }

  .footer-contacts__item a {
    font-size: 1.125rem;
  }

  .footer-contacts__item a:hover {
    color: #000;
  }

  .footer-contacts__item:hover .footer-contacts__icon {
    opacity: 1;
  }

  .footer-socials-icon:hover {
    opacity: 1;
  }

  #footer-grid-socials {
    align-self: stretch;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .footer-madeira-bar {
    margin-top: auto;
  }
}

#mission-text {
  justify-self: stretch;
}

#mission-image.about-mission-image {
  align-self: stretch;
}

#project-image-secondary,
#project-image-tertiary {
  align-self: stretch;
}

#project-image-dual-left,
#project-image-dual-right {
  grid-area: span 1 / span 1 / span 1 / span 1;
}

#contact-email,
#contact-phone,
#contact-address {
  grid-area: span 1 / span 1 / span 1 / span 1;
  cursor: pointer;
}

/* Show pointer over the icon when the row is a link (icon is sibling, not the link) */
.contact-info-list .flex-block-4:has(a.link-3) .contactos-icon {
  cursor: pointer;
}

#contact-hours {
  align-self: flex-start;
}

#contact-hours-icon {
  grid-area: span 1 / span 1 / span 1 / span 1;
}

#contact-hours-text {
  grid-area: span 1 / span 1 / span 1 / span 1;
}

@media screen and (min-width: 768px) {
  #contact-intro {
    grid-area: 1 / 1 / 2 / 2;
  }

  #contact-details {
    max-width: 68%;
    grid-area: 2 / 1 / 3 / 2;
  }

  #contact-map {
    grid-area: 1 / 2 / 3 / 3;
  }
}

#contact-map iframe {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

#contact-map:hover iframe {
  transform: scale(1.03);
}

/* ==========================================================================
   SERVIÇOS PAGE - New Design
   ========================================================================== */

.servicos-page {
  position: relative;
  min-height: 100vh;
  background-color: #fff;
  overflow: hidden;
}

.servicos-page footer {
  position: relative;
  z-index: 15;
  background-color: #fff;
}

/* Background Layer */
.servicos-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #fff;
  overflow: hidden;
  pointer-events: none;
  height: 100vh;
}

.servicos-bg-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicos-bg-image.is-active {
  opacity: 0.4;
  transform: scale(1);
}

.servicos-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicos-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.4));
  pointer-events: none;
}

/* Service List View */
.servicos-list-view {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 6rem 2rem;
}

.servicos-list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .servicos-list-container {
    gap: 2rem;
  }
}

/* Service Item */
.servicos-item {
  position: relative;
  cursor: pointer;
  text-align: center;
}

.servicos-item-index {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.35);
  transition: color 0.3s ease;
  transform: translateX(-100%);
  padding-right: 0.75rem;
}

@media screen and (min-width: 768px) {
  .servicos-item-index {
    font-size: 1.25rem;
    top: 1rem;
  }
}

.servicos-item:hover .servicos-item-index {
  color: rgba(0, 0, 0, 0.7);
}

.servicos-item-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}

.servicos-item-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.5rem;
}

.servicos-item-title {
  font-size: clamp(2.5rem, 10vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #000;
  margin: 0;
  transition: letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicos-item:hover .servicos-item-title {
  letter-spacing: -0.01em;
  transform: scale(1.03);
}

.servicos-item-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 0;
  overflow: hidden;
  opacity: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease;
}

.servicos-item:hover .servicos-item-subtitle {
  height: 2rem;
  opacity: 1;
  padding-top: 1rem;
}

/* Service Detail View */
.servicos-detail-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background-color: #fff;
}

.servicos-detail-view[aria-hidden="false"] {
  display: block;
}

/* Hide scrollbars inside popup as soon as it opens (not after animation) */
.servicos-detail-view[aria-hidden="false"] .servicos-detail-content,
.servicos-detail-view[aria-hidden="false"] .servicos-gallery-scroll,
.servicos-detail-view[aria-hidden="false"] .servicos-detail.is-active {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.servicos-detail-view[aria-hidden="false"] .servicos-detail-content::-webkit-scrollbar,
.servicos-detail-view[aria-hidden="false"] .servicos-gallery-scroll::-webkit-scrollbar,
.servicos-detail-view[aria-hidden="false"] .servicos-detail.is-active::-webkit-scrollbar {
  display: none;
}

.servicos-detail {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background-color: #fff;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .servicos-detail {
    flex-direction: row;
  }
}

.servicos-detail.is-active {
  display: flex;
}

/* Service Detail Content (Left Panel) */
.servicos-detail-content {
  position: relative;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

@media screen and (max-width: 767px) {
  .servicos-detail-content {
    border: none;
    flex: 1 1 auto;
    padding-left: 0;
    padding-right: 0;
  }

  .servicos-detail-header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .servicos-detail-footer {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (min-width: 768px) {
  .servicos-detail-content {
    width: 50%;
    flex: 0 0 auto;
    min-height: 0;
    height: 100vh;
    padding: 4rem;
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}

@media screen and (min-width: 1024px) {
  .servicos-detail-content {
    width: 40%;
  }
}

.servicos-detail-header {
  padding-top: 2rem;
}

@media screen and (min-width: 768px) {
  .servicos-detail-header {
    padding-top: 0;
  }
}

.servicos-detail-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.4);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.servicos-detail-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #000;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

.servicos-detail-description {
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  color: var(--paragrafos);
  line-height: 1.5;
  max-width: 30rem;
  margin: 0 0 3rem 0;
}

.servicos-detail-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #000;
  margin: 2rem 0 0.75rem 0;
  line-height: 1.2;
}

.servicos-detail-header .servicos-detail-description:last-of-type {
  margin-bottom: 3rem;
}

@media screen and (max-width: 767px) {
  .servicos-detail-description {
    margin-bottom: 1rem;
  }

  .servicos-detail-subtitle {
    margin-top: 1.5rem;
  }
}

/* Service Detail List */
.servicos-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.servicos-detail-list li {
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  color: var(--paragrafos);
  line-height: 1.4;
}

.servicos-detail-list--header {
  text-align: left;
  align-items: flex-start;
  margin: 0 0 2rem 0;
  padding: 0;
  list-style: none;
}

.servicos-detail-list--header li {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #000;
  line-height: 1.2;
}

/* Service Detail Footer */
.servicos-detail-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 auto;
}

.servicos-detail-list-wrap {
  width: 100%;
  padding: 0;
  margin-top: auto;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .servicos-detail-footer {
    margin-top: 0;
  }
}

@media screen and (max-width: 767px) {
  /* Bullet list: same X as description (2rem from viewport), left-aligned */
  .servicos-detail-list-wrap {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
  }

  .servicos-detail-list {
    text-align: left;
    align-items: flex-start;
  }

  /* Footer: center the CTA; reduced space above list */
  .servicos-detail-footer {
    align-items: center;
    margin-top: 0.5rem;
  }

  .servicos-detail-cta {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  /* Inline gallery (mobile): edge-to-edge (no side padding), 5rem height, spacing between images */
  .servicos-detail-gallery-inline {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 0;
  }

  .servicos-detail-gallery-inline .servicos-gallery-scroll {
    height: auto;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .servicos-detail-gallery-inline .servicos-gallery-item {
    width: 100%;
    height: 5rem;
    min-height: 5rem;
  }

  .servicos-detail-gallery-inline .servicos-gallery-item a {
    display: block;
    height: 100%;
  }

  .servicos-detail-gallery-inline .servicos-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 5rem;
    max-height: 5rem;
    aspect-ratio: auto;
    object-fit: cover;
  }

  /* Project-specific object-position must apply in inline gallery too */
  .servicos-detail[data-service="arquitetura"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--calheta-hills-arquitetura {
    object-position: 50% 99%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--balneum-interiores {
    object-position: 50% 100%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--memorhia-village-interiores {
    object-position: 50% 120%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--savoy-monumentalis-interiores {
    object-position: 50% 290%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--restaurante-o-classico-interiores {
    object-position: 50% 180%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--afa-interiores {
    object-position: 50% 71%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--pau-de-lume-interiores {
    object-position: 50% 92%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--apartamento-rf-interiores {
    object-position: 50% 80%;
  }

  .servicos-detail[data-service="interiores"] .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--saccharum-interiores {
    object-position: 50% 280%;
  }

  .servicos-detail[data-service="interiores"].is-active .servicos-detail-gallery-inline .servicos-gallery-item img.servicos-gallery-img--madeira-legacy-interiores {
    aspect-ratio: 2 / 1;
    object-position: 50% 100%;
  }

  .servicos-detail-gallery-inline .servicos-gallery-item figcaption {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Inline gallery: visible on mobile only; hidden on desktop (sidebar gallery used instead) */
@media screen and (min-width: 768px) {
  .servicos-detail-gallery-inline {
    display: none;
  }
}

/* Service Detail CTA */
.servicos-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #000;
  text-decoration: none;
  font-size: var(--texto-corrido);
  font-weight: var(--texto-corrido-weight);
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-top: 3rem;
  margin-bottom: 2rem;
  transition: opacity 0.2s ease;
  align-self: flex-end;
}

@media screen and (max-width: 767px) {
  .servicos-detail-cta {
    margin-top: 2rem;
    padding-top: 0;
    align-self: center;
  }
}

.servicos-detail-cta:hover {
  opacity: 0.6;
}

.servicos-detail-cta-arrow {
  transition: transform 0.3s ease;
}

.servicos-detail-cta:hover .servicos-detail-cta-arrow {
  transform: translateX(0.25rem);
}

/* Service Detail Close Buttons */
.servicos-detail-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.2s ease;
}

.servicos-detail-close:hover {
  color: #000;
}

.servicos-detail-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.servicos-detail-close--mobile {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 10;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}

@media screen and (max-width: 767px) {
  .servicos-detail-close--mobile {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 110;
  }
}

.servicos-detail-close--mobile:hover {
  color: #000;
}

.servicos-detail-close--mobile svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Service Detail Gallery (Right Panel) */
.servicos-detail-gallery {
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .servicos-detail-gallery {
    display: none;
  }

  .servicos-detail.is-active {
    overflow-y: auto;
    overflow-x: hidden;
  }
}

@media screen and (min-width: 768px) {
  .servicos-detail-gallery {
    width: 50%;
    height: 100vh;
  }
}

@media screen and (min-width: 1024px) {
  .servicos-detail-gallery {
    width: 60%;
  }
}

.servicos-gallery-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .servicos-gallery-scroll {
    padding: 2rem;
    gap: 2rem;
  }
}

.servicos-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.servicos-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicos-gallery-item img {
  object-position: 50% 80%;
}

.servicos-detail[data-service="arquitetura"] .servicos-gallery-item img.servicos-gallery-img--calheta-hills-arquitetura {
  object-position: 50% 99%;
}

.servicos-detail[data-service="arquitetura"] .servicos-gallery-item img.servicos-gallery-img--insular-arquitetura {
  object-position: top;
}

.servicos-detail[data-service="arquitetura"] .servicos-gallery-item img.servicos-gallery-img--alto-lido-arquitetura {
  object-position: 50% 80%;
}

.servicos-detail[data-service="arquitetura"] .servicos-gallery-item img.servicos-gallery-img--casa-branca-arquitetura {
  object-position: 50% 280%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--balneum-interiores {
  object-position: 50% 100%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--memorhia-village-interiores {
  object-position: 50% 120%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--savoy-monumentalis-interiores {
  object-position: 50% 290%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--restaurante-o-classico-interiores {
  object-position: 50% 180%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--afa-interiores {
  object-position: 50% 71%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--pau-de-lume-interiores {
  object-position: 50% 92%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--apartamento-rf-interiores {
  object-position: 50% 80%;
}

.servicos-detail[data-service="interiores"] .servicos-gallery-item img.servicos-gallery-img--saccharum-interiores {
  object-position: 50% 280%;
}

.servicos-detail[data-service="interiores"].is-active .servicos-gallery-item img.servicos-gallery-img--madeira-legacy-interiores {
  aspect-ratio: 2 / 1;
  object-position: 50% 220%;
}

@media screen and (min-width: 768px) {
  .servicos-gallery-item img {
    aspect-ratio: 16 / 9;
  }
}

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

.servicos-gallery-item figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.8);
}

/* Animations for Service Detail View */
/* Note: clip-path is controlled by GSAP, do not set it in CSS */

/* Hide header and footer when detail is open, prevent scroll */
.servicos-page:has(.servicos-detail-view[aria-hidden="false"]) footer {
  visibility: hidden;
  pointer-events: none;
}

body:has(.servicos-detail-view[aria-hidden="false"]) header.nav {
  visibility: hidden;
  pointer-events: none;
}

body:has(.servicos-detail-view[aria-hidden="false"]) {
  overflow: hidden;
}

/* Service List hidden state */
.servicos-list-view.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  filter: blur(10px);
  pointer-events: none;
}
