.office {
  position: relative;
  padding: clamp(56px, 6vw, 84px) 0;
  overflow: clip;
  scroll-margin-top: 0;
  background:
    radial-gradient(circle at 91% 12%, rgba(193, 233, 104, 0.2), transparent 30rem),
    radial-gradient(circle at 7% 88%, rgba(72, 85, 43, 0.06), transparent 24rem),
    linear-gradient(145deg, #fbfaf5 0%, #f1f4e7 100%);
  color: var(--color-ink);
}

.office__layout {
  display: grid;
  grid-template-areas:
    "copy"
    "gallery"
    "details";
  gap: clamp(26px, 5vw, 44px);
}

.office__copy,
.office-gallery,
.office__details {
  min-width: 0;
}

.office__copy {
  grid-area: copy;
}

.office__copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 11.2px;
  color: var(--color-brand-olive);
  font-family: var(--font-sans);
  font-size: 0.8208rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.office__copy .eyebrow::after {
  width: clamp(64px, 10vw, 120px);
  height: 1px;
  background: var(--color-brand-lime);
  content: "";
}

.office__copy h2 {
  max-width: 12.5ch;
  margin: 0 0 clamp(18px, 3vw, 26px);
  color: var(--color-brand-olive-dark);
  font-family: var(--font-sans);
  font-size: clamp(2.65rem, 10.5vw, 4.1rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

.office__copy h2 em {
  display: block;
  color: #79a61f;
  font-style: normal;
  font-weight: inherit;
}

.office__lead,
.office__support {
  max-width: 52ch;
  margin: 0;
  line-height: 1.55;
}

.office__lead {
  color: #3f473a;
  font-size: clamp(1rem, 3.8vw, 1.08rem);
  font-weight: 520;
}

.office__support {
  padding-left: 14px;
  margin-top: 14px;
  border-left: 2px solid var(--color-brand-lime);
  color: #687064;
  font-size: clamp(0.9rem, 3.4vw, 0.98rem);
}

.office-gallery {
  position: relative;
  grid-area: gallery;
  width: 100%;
}

.office-gallery__track {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(72, 85, 43, 0.1);
  border-radius: 18px;
  background: #e7eadc;
  box-shadow: 0 30px 72px rgba(38, 45, 28, 0.14);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.office-gallery__track::-webkit-scrollbar {
  display: none;
}

.office-gallery__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.office-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.office-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% - 27px);
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(25, 35, 17, 0.82);
  color: #fffdf8;
  box-shadow: 0 8px 24px rgba(21, 29, 16, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.office-gallery__arrow:hover:not(:disabled) {
  background: var(--color-brand-lime);
  color: var(--color-brand-olive-dark);
  transform: translateY(-50%) scale(1.035);
}

.office-gallery__arrow:disabled {
  opacity: 0.34;
  cursor: default;
}

.office-gallery__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.office-gallery__arrow--previous {
  left: 14px;
}

.office-gallery__arrow--next {
  right: 14px;
}

.office-gallery__meta {
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 2px 0;
}

.office-gallery__context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #5d6758;
  font-size: 0.78rem;
  line-height: 1.35;
}

.office-gallery__context i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--color-brand-lime);
  box-shadow: 0 0 0 4px rgba(193, 233, 104, 0.18);
}

.office-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-gallery__dots button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.office-gallery__dots button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9c9bd;
  content: "";
  transform: translate(-50%, -50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.office-gallery__dots button[aria-current="true"]::before {
  background: #789c27;
  transform: translate(-50%, -50%) scale(1.45);
}

.office-gallery__counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: rgba(72, 85, 43, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.office-gallery__counter strong {
  color: var(--color-brand-olive-dark);
  font-size: 0.92rem;
  font-weight: 720;
}

.office__details {
  display: grid;
  grid-area: details;
  gap: 22px;
}

.office__differentials {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.office__differentials li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0;
  color: var(--color-brand-olive-dark);
  font-size: 0.94rem;
  font-weight: 680;
  line-height: 1.32;
}

.office__differentials li > span {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 8px;
  place-items: center;
  border-radius: 9px;
  background: rgba(193, 233, 104, 0.3);
  color: #607b20;
}

.office__differentials svg,
.office__privacy svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.office__cta {
  width: fit-content;
  min-height: 56px;
  padding-inline: 22px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 740;
}

.office__cta > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.office__cta svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.office__action {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 0;
}

.office__privacy {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 36rem;
  margin: 0;
  color: #657064;
  font-size: 0.82rem;
  line-height: 1.45;
}

.office__privacy > span {
  display: grid;
  width: 22px;
  height: 22px;
  color: #789c27;
}

@media (min-width: 720px) {
  .office__copy h2 {
    max-width: 12ch;
    font-size: clamp(3.6rem, 8vw, 4.7rem);
  }

  .office-gallery {
    max-width: 680px;
    justify-self: center;
  }

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

  .office__differentials li {
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: center;
    padding: 0 14px 0 0;
  }

  .office__differentials li + li {
    padding-left: 14px;
    border-left: 1px solid rgba(72, 85, 43, 0.1);
  }

  .office__action {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .office__cta {
    min-width: 220px;
  }
}

@media (min-width: 1024px) {
  .office__layout {
    grid-template-areas:
      "copy gallery"
      "details gallery";
    grid-template-columns: minmax(420px, 0.92fr) minmax(430px, 1.08fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: clamp(52px, 6vw, 84px);
    row-gap: clamp(28px, 3vw, 38px);
  }

  .office__copy {
    align-self: end;
    padding-top: clamp(6px, 1.2vw, 18px);
  }

  .office__copy h2 {
    max-width: 12.5ch;
    font-size: clamp(3.1rem, 4.1vw, 4.05rem);
  }

  .office__lead {
    font-size: clamp(0.94rem, 1.02vw, 1.04rem);
  }

  .office__support {
    font-size: clamp(0.88rem, 0.94vw, 0.96rem);
  }

  .office-gallery {
    align-self: center;
    max-width: 600px;
  }

  .office-gallery__track {
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .office__details {
    align-self: end;
  }

  .office__differentials li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding-right: 10px;
    font-size: clamp(0.72rem, 0.85vw, 0.84rem);
  }

  .office__differentials li > span {
    width: 36px;
    height: 36px;
  }

  .office__privacy {
    max-width: 30ch;
  }
}

@media (max-width: 560px) {
  .office-gallery__meta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .office-gallery__context {
    grid-column: 1 / -1;
    padding-top: 2px;
  }

  .office-gallery__dots {
    justify-content: flex-start;
  }

  .office__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .office-gallery__track {
    scroll-behavior: auto;
  }

  .office-gallery__arrow:hover:not(:disabled) {
    transform: translateY(-50%);
  }
}

.office-gallery > .office__support { max-width: none; margin-top: 18px; }
.office__privacy > span { align-self: center; }
