.office-profile {
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-paper), var(--color-brand-steel-50));
}

.office-profile__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  border-top: 0.35rem solid var(--color-brand-orange-500);
  background: linear-gradient(135deg, var(--color-paper), var(--color-brand-warm-50));
  padding: clamp(1.1rem, 3vw, 2.5rem);
}

.office-profile__code,
.office-profile__profile,
.office-profile__title,
.office-profile__business {
  min-width: 0;
}

.office-profile__code {
  display: grid;
  align-content: start;
  gap: 1rem;
  border-right: 1px solid var(--color-brand-steel-200);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.office-profile__code .eyebrow,
.office-profile__code h2,
.office-profile__code p,
.office-profile__title h3,
.office-profile__title p,
.office-profile__business h4,
.office-profile__business p,
.office-profile__stats,
.office-profile__facts {
  margin: 0;
}

.office-profile__code h2 {
  max-width: 14ch;
  color: var(--color-brand-graphite-950);
  font-size: var(--text-h3);
  line-height: 1.05;
}

.office-profile__code > p:not(.eyebrow) {
  max-width: 48ch;
  color: var(--color-brand-graphite-700);
  font-size: var(--text-lede);
  line-height: 1.5;
}

.office-profile__code .button {
  justify-self: start;
}

.office-profile__profile {
  display: grid;
  align-content: start;
  gap: clamp(0.95rem, 2vw, 1.35rem);
}

.office-profile__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.office-profile__mark {
  --number-badge-size: 3rem;
}

.office-profile__title {
  display: grid;
  gap: 0.55rem;
}

.office-profile__title h3 {
  max-width: 18ch;
  color: var(--color-brand-graphite-950);
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.office-profile__title > p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--color-brand-graphite-600);
  line-height: 1.55;
}

.office-profile__business {
  display: grid;
  gap: 0.45rem;
  border-block: 1px solid var(--color-brand-steel-200);
  padding-block: 0.9rem;
}

.office-profile__business p {
  color: var(--color-brand-orange-900);
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
}

.office-profile__business h4 {
  max-width: 30ch;
  color: var(--color-brand-graphite-950);
  font-size: 1.15rem;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.office-profile__stats,
.office-profile__facts {
  display: grid;
  gap: 0.7rem;
}

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

.office-profile__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-profile__stats div,
.office-profile__facts div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.35rem;
  border: 1px solid var(--color-brand-steel-200);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  padding: 0.8rem;
}

.office-profile__stats dt,
.office-profile__facts dt {
  color: var(--color-brand-graphite-500);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.office-profile__stats dd,
.office-profile__facts dd {
  margin: 0;
  color: var(--color-brand-graphite-800);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.office-profile__stats dd {
  font-size: 1rem;
}

.office-profile__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-brand-graphite-800);
  font-weight: 600;
  text-decoration: none;
}

.office-profile__link:hover {
  color: var(--color-brand-graphite-950);
}

.office-profile__actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .office-profile__panel {
    grid-template-columns: 1fr;
  }

  .office-profile__code {
    border-right: 0;
    border-bottom: 1px solid var(--color-brand-steel-200);
    padding-right: 0;
    padding-bottom: 1.35rem;
  }

  .office-profile__code h2 {
    max-width: 18ch;
  }
}

@media (max-width: 700px) {
  .office-profile__stats,
  .office-profile__facts {
    grid-template-columns: 1fr;
  }

  .office-profile__header {
    grid-template-columns: 1fr;
  }

  .office-profile__mark {
    --number-badge-size: 2.85rem;
  }
}
