.internal-page {
  background: #fff
}

.internal-header {
  transform: none;
  background: rgba(8, 42, 34, .94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .12)
}

.inner-hero {
  height: 64vh;
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden
}

.inner-hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.7s ease, transform 7s linear
}

.inner-hero-slide.active {
  opacity: 1;
  transform: scale(1)
}

.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 35, 28, .88), rgba(8, 47, 38, .56) 55%, rgba(8, 47, 38, .38))
}

.inner-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 84px
}

.inner-hero-content .eyebrow {
  color: var(--gold);
  margin-bottom: 16px
}

.inner-hero-content h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .9;
  font-weight: 500
}

.inner-hero-content>p:last-child {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 650px;
  margin-top: 25px;
  color: rgba(255, 255, 255, .78)
}

.about-office {
  background: #f5f2e9
}

.about-office-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 100px;
  align-items: center
}

.about-office-copy h2 {
  color: var(--green);
  margin-bottom: 30px
}

.about-office-copy>p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
  margin-top: 18px
}

.about-office-copy blockquote {
  font-family: "Questa";
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--green);
  border-left: 2px solid var(--gold);
  padding-left: 25px;
  margin-top: 38px
}

.about-office-visual {
  position: relative;
  padding-bottom: 80px
}

.about-main-image {
  height: 690px;
  background: url('https://images.unsplash.com/photo-1497366753845-f200968a6e72?auto=format&fit=crop&w=1400&q=88') center/cover;
  box-shadow: var(--shadow)
}

.about-caption {
  position: absolute;
  right: -35px;
  bottom: 0;
  background: var(--green);
  color: #fff;
  padding: 34px 40px;
  width: 390px;
  border-top: 3px solid var(--gold)
}

.about-caption span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .65rem;
  color: var(--gold);
  margin-bottom: 12px
}

.about-caption strong {
  font-family: "Questa";
  font-size: 20px;
  line-height: 1.15;
  font-weight: 500
}

.office-gallery {
  background: var(--cream)
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery-item {
  border: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  min-height: 0px;
  padding: 0;
  background-color: var(--green);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item:nth-child(6),
.gallery-item:nth-child(7) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(8) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(9),
.gallery-item:nth-child(10) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(11) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(12) {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 33, 27, .82));
  transition: background .45s ease;
}

.gallery-item::before {
  content: "+";
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .65);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease, background .35s ease;
}

.gallery-item:hover::after {
  background: linear-gradient(180deg, rgba(7, 42, 34, .14), rgba(7, 42, 34, .88));
}

.gallery-item:hover::before {
  opacity: 1;
  transform: translateY(0);
  background: rgba(7, 42, 34, .36);
}

.gallery-item span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 3;
  color: #fff;
  font-size: .69rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .14em;
  transform: translateY(4px);
  transition: transform .35s ease;
}

.gallery-item:hover span {
  transform: translateY(0);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 23, 19, .95);
  z-index: 100;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: .35s
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible
}

.lightbox-image {
  width: min(82vw, 1200px);
  height: min(78vh, 760px);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: .3s
}

.lightbox-close {
  right: 30px;
  top: 30px
}

.lightbox-prev {
  left: 30px;
  top: 50%
}

.lightbox-next {
  right: 30px;
  top: 50%
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green)
}

.office-practices {
  background: var(--green);
  color: #fff
}

.office-practices-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 110px;
  align-items: start
}

.office-practices-intro {
  position: sticky;
  top: 150px
}

.office-practices-intro h2 {
  margin: 18px 0 25px
}

.office-practices-intro>p:last-child {
  color: rgba(255, 255, 255, .68);
  line-height: 1.85
}

.practice-list {
  border-top: 1px solid rgba(255, 255, 255, .24)
}

.practice-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  font-family: "Questa";
  font-size: 20px;
  transition: .35s
}

.practice-list a b {
  font-family: Montserrat;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
  transition: .35s
}

.practice-list a:hover {
  padding-left: 22px;
  color: var(--gold)
}

.practice-list a:hover b {
  transform: translateX(8px)
}

.people {
  background: #fff;
  overflow: hidden
}

.people-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end
}

.people-head h2 {
  color: var(--green)
}

.people-nav {
  display: flex;
  gap: 10px
}

.people-nav button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  font-size: 1.15rem;
  cursor: pointer;
  transition: .3s
}

.people-nav button:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green)
}

.people-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 42px 0 34px
}

.people-filters button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 10px 17px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: .3s
}

.people-filters button.active,
.people-filters button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff
}

.people-viewport {
  overflow: hidden
}

.people-track {
  display: flex;
  gap: 24px;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1)
}

.person-card {
  flex: 0 0 calc((100% - 72px)/4);
  min-width: 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .35s, transform .35s
}

.person-card.is-hidden {
  display: none
}

.person-image {
  display: block;
  height: 430px;
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  filter: grayscale(100%);
  transition: .5s
}

.person-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 39, 31, .25))
}

.person-card:hover .person-image {
  filter: grayscale(0);
  transform: translateY(-4px)
}

.person-card>div {
  padding: 22px 3px 26px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: .82rem;
  line-height: 1.55
}

.person-card span {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--gold)
}

.person-card h3 {
  font-size: 1.7rem;
  color: var(--green);
  margin: 7px 0;
  line-height: 1.08;
  overflow-wrap: break-word
}

.person-card>div>a {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green)
}

.person-one {
  background-image: url('https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=800&q=88')
}

.person-two {
  background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=800&q=88')
}

.person-three {
  background-image: url('https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&w=800&q=88')
}

.person-four {
  background-image: url('https://images.unsplash.com/photo-1556157382-97eda2d62296?auto=format&fit=crop&w=800&q=88')
}

.person-five {
  background-image: url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=800&q=88')
}

.person-six {
  background-image: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=800&q=88')
}

@media(max-width:1000px) {
  .inner-hero {
    height: 58vh
  }

  .about-office-grid,
  .office-practices-grid {
    grid-template-columns: 1fr;
    gap: 60px
  }

  .about-office-visual {
    max-width: 720px
  }

  .about-caption {
    right: 20px
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
    grid-auto-flow: dense;
  }

  .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    grid-column: span 2 !important;
  }

  .office-practices-intro {
    position: static
  }

  .person-card {
    flex-basis: calc((100% - 24px)/2)
  }
}

@media(max-width:640px) {
  .inner-hero {
    height: 68vh;
    min-height: 540px
  }

  .inner-hero-content {
    padding-top: 64px
  }

  .inner-hero-content h1 {
    font-size: 3.8rem
  }

  .about-office-grid {
    gap: 42px
  }

  .about-main-image {
    height: 480px
  }

  .about-caption {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -45px 18px 0
  }

  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 10px
  }

  .gallery-item {
    display: block;
    flex: 0 0 86%;
    height: 360px;
    min-height: 360px;
    grid-column: auto !important;
    grid-row: auto !important;
    scroll-snap-align: start;
  }

  .office-practices-grid {
    gap: 42px
  }

  .practice-list a {
    font-size: 1.45rem;
    padding: 21px 2px
  }

  .people-head {
    align-items: flex-start
  }

  .people-head h2 {
    font-size: 2.65rem
  }

  .people-nav {
    margin-top: 4px
  }

  .people-nav button {
    width: 42px;
    height: 42px
  }

  .people-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-top: 30px
  }

  .people-filters button {
    white-space: nowrap
  }

  .person-card {
    flex-basis: 86%
  }

  .person-image {
    height: 430px
  }

  .lightbox-image {
    width: 88vw;
    height: 68vh
  }

  .lightbox-prev {
    left: 10px
  }

  .lightbox-next {
    right: 10px
  }

  .lightbox-close {
    right: 15px;
    top: 15px
  }
}

/* Ajustes V2 — navegação refinada em galeria e equipe */
.inner-hero .scroll-cue {
  left: 50%;
  right: auto;
  transform: translateX(-50%)
}

.people-head {
  align-items: flex-end
}

.people-nav-bottom {
  justify-content: center;
  margin-top: 34px
}

.people-nav button:disabled {
  opacity: .35;
  cursor: not-allowed;
  background: #fff;
  color: var(--muted);
  border-color: var(--line)
}

.gallery-mobile-controls {
  display: none
}

.scroll-progress,
.filter-scroll-progress {
  position: relative;
  height: 2px;
  background: rgba(16, 54, 47, .15);
  overflow: visible
}

.scroll-progress span,
.filter-scroll-progress span {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  min-width: 42px;
  background: var(--gold);
  transform: translateY(-50%);
  cursor: grab;
  touch-action: none;
  transition: left .15s ease, width .2s ease
}

.scroll-progress span:active,
.filter-scroll-progress span:active {
  cursor: grabbing
}

.filter-scroll-progress {
  display: none
}

@media(max-width:640px) {
  .inner-hero .scroll-cue {
    left: 50%;
    right: auto;
    transform: translateX(-50%)
  }

  .gallery-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px
  }

  .gallery-grid::-webkit-scrollbar {
    display: none
  }

  .gallery-mobile-controls {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 14px;
    align-items: center;
    margin-top: 20px
  }

  .gallery-mobile-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--green);
    font-size: 1.1rem;
    cursor: pointer;
    transition: .3s
  }

  .gallery-mobile-controls button:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green)
  }

  .people-head {
    display: block
  }

  .people-filters {
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 14px;
    padding-bottom: 2px
  }

  .people-filters::-webkit-scrollbar {
    display: none
  }

  .filter-scroll-progress {
    display: block;
    margin: 0 0 28px
  }

  .people-nav-bottom {
    margin-top: 24px
  }

  .people-nav-bottom button {
    width: 46px;
    height: 46px
  }
}