/* Dark editorial split: workspace details left, photography right. */
.edc-managed-offices {
  padding: var(--edc-section-v) var(--edc-space-gutter);
  background: var(--edc-obsidian);
  background-image: radial-gradient(ellipse at 100% 45%, rgba(242, 184, 27, 0.05), transparent 65%);
  color: var(--edc-warm-white);
}
@media (min-width: 1024px) {
  .edc-managed-offices { padding-left: var(--edc-section-h); padding-right: var(--edc-section-h); }
}
.edc-managed-offices__inner {
  max-width: var(--edc-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.edc-managed-offices__left { min-width: 0; }
.edc-managed-offices__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}
.edc-managed-offices__head .edc-eyebrow {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--edc-solar-gold);
  box-shadow: none;
  font-size: 10px;
  letter-spacing: 0.2em;
}
.edc-managed-offices__head .edc-eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 0;
  box-shadow: none;
}
.edc-managed-offices__headline {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--edc-warm-white);
  margin: 0;
}
.edc-managed-offices__accent { display: block; color: var(--edc-solar-gold); }
.edc-managed-offices__subhead {
  max-width: 46ch;
  font-family: var(--edc-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(250, 248, 244, 0.68);
  margin: 0;
}

/* Open feature rows keep the copy compact and give the photos room. */
.edc-managed-offices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  min-width: 0;
}
.edc-managed-offices__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 12px;
  row-gap: 8px;
  padding: 22px 0;
  border-top: 1px solid rgba(250, 248, 244, 0.15);
}
.edc-managed-offices__number {
  grid-row: 1 / span 2;
  font-family: var(--edc-font-body);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.5;
  color: var(--edc-solar-gold);
  margin-top: 3px;
}
.edc-managed-offices__title {
  grid-column: 2;
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--edc-warm-white);
  margin: 0;
}
.edc-managed-offices__body {
  grid-column: 2;
  font-family: var(--edc-font-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250, 248, 244, 0.62);
  margin: 0;
}

/* Three separate frames: a large office photo and two detail photos. */
.edc-managed-offices__gallery {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.edc-managed-offices__gallery::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 8px;
  width: 100%;
  aspect-ratio: 3 / 2;
  box-sizing: border-box;
  border: 2px solid var(--edc-solar-gold);
  border-radius: 20px;
  pointer-events: none;
  transition: transform var(--edc-dur-medium) var(--edc-ease);
}
.edc-managed-offices__gallery::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-top: 3px solid var(--edc-solar-gold);
  border-right: 3px solid var(--edc-solar-gold);
  border-top-right-radius: 8px;
  pointer-events: none;
}
.edc-managed-offices__gallery-dots {
  position: absolute;
  bottom: -20px;
  left: -12px;
  width: 132px;
  height: 96px;
  background-image: radial-gradient(rgba(242, 184, 27, 0.6) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  pointer-events: none;
}
.edc-managed-offices__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--edc-warm-white);
  border-radius: 16px;
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.5);
  transition: transform var(--edc-dur-medium) var(--edc-ease),
              box-shadow var(--edc-dur-medium) var(--edc-ease);
}
.edc-managed-offices__photo:first-of-type { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.edc-managed-offices__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--edc-ease);
}
.edc-managed-offices__photo:nth-of-type(2) img { object-position: center 65%; }
@media (hover: hover) and (pointer: fine) {
  .edc-managed-offices__gallery:hover::before { transform: translate(-4px, -4px); }
  .edc-managed-offices__gallery:hover .edc-managed-offices__photo:first-of-type { transform: translate(2px, 2px); }
  .edc-managed-offices__gallery:hover .edc-managed-offices__photo:not(:first-of-type) { transform: translateY(-4px); }
  .edc-managed-offices__gallery:hover .edc-managed-offices__photo img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .edc-managed-offices__gallery::before,
  .edc-managed-offices__photo,
  .edc-managed-offices__photo img { transition: none; transform: none !important; }
}
@media (min-width: 1024px) {
  .edc-managed-offices__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; }
}
@media (max-width: 1023px) {
  .edc-managed-offices__left { display: contents; }
  .edc-managed-offices__head { grid-row: 1; margin-bottom: 0; }
  .edc-managed-offices__gallery { grid-row: 2; }
  .edc-managed-offices__grid { grid-row: 3; }
}
@media (max-width: 599px) {
  .edc-managed-offices__inner { gap: 32px; }
  .edc-managed-offices__grid { grid-template-columns: minmax(0, 1fr); }
  .edc-managed-offices__card { padding: 20px 0; }
  .edc-managed-offices__title { font-size: 17px; }
  .edc-managed-offices__body { font-size: 14px; }
  .edc-managed-offices__gallery { gap: 12px; }
}
