/* Reference composition: a readable 3 + 2 list, never a clipped marquee. */
.essence-motto {
  padding: 80px clamp(24px, 3vw, 64px);
  background: color-mix(in srgb, var(--wp--preset--color--essence-teal, #1c7783) 18%, white);
  color: var(--wp--preset--color--essence-navy, #003459);
}
.essence-motto h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.15;
  text-wrap: balance;
}
.essence-motto .essence-motto__items {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font: 400 clamp(18px, 1.4vw, 24px)/1.45 var(--font-body);
}
.essence-motto__items > li {
  grid-column: span 8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 64px;
  padding: 16px 24px;
  margin: 0;
  text-align: center;
  text-wrap: balance;
  border-right: 2px solid currentColor;
}
.essence-motto__items > li:first-child { grid-column: span 9; }
.essence-motto__items > li:nth-child(3) { grid-column: span 7; }
.essence-motto__items > li:nth-child(4) { grid-column: 5 / span 7; }
.essence-motto__items > li:nth-child(5) { grid-column: 12 / span 9; border-right: 0; }

/* Keep the reference's left/right anchors; tighten the vertical handoff. */
.essence-footer { padding-top: 64px; padding-bottom: 0; text-align: left; }
.essence-footer .essence-footer__columns {
  max-width: none;
  margin: 0 0 16px;
  gap: 64px;
  align-items: flex-start;
}
.essence-footer .essence-footer__columns > .wp-block-column { min-width: 0; text-align: left; }
.essence-footer .essence-footer__logo { margin: 0 0 24px; }
.essence-footer .essence-footer__intro { max-width: 456px; margin: 0 0 20px; }
.essence-footer .essence-footer__claim { margin: 0; }
.essence-footer .essence-footer__contact { width: 285px; max-width: 100%; margin: 0 0 0 auto; text-align: right; }
.essence-footer .essence-footer__contact .wp-block-buttons { margin: 24px 0 0; }
.essence-footer .essence-footer__contact-inline { margin: 0 0 24px; font-size: 14px; line-height: 2; text-align: left; }
.essence-footer__contact-inline a { white-space: nowrap; }
.essence-footer__contact-inline .essence-contact-separator { padding: 0 10px; }
.essence-footer .essence-footer__links { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 32px; }
.essence-footer .essence-footer-navigation { flex: 1; min-width: 0; }
.essence-footer .essence-footer-navigation,
.essence-footer .essence-footer-navigation .wp-block-navigation__container { justify-content: flex-start; }
.essence-footer .essence-footer-navigation .wp-block-navigation__container { gap: 12px 20px; }
.essence-footer .wp-block-social-links { flex-shrink: 0; justify-content: flex-end; margin: 0; }
.essence-footer .essence-footer__legal { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; max-width: none; margin: 0; }
.essence-footer .essence-footer__legal p { text-align: left; margin: 0; }
.essence-footer .essence-footer__legal p:last-child { text-align: right; margin: 0; }

@media (min-width: 782px) and (max-width: 1199px) {
  .essence-motto__items > li,
  .essence-motto__items > li:first-child,
  .essence-motto__items > li:nth-child(3) { grid-column: span 12; }
  .essence-motto__items > li:nth-child(2n) { border-right: 0; }
  .essence-motto__items > li:nth-child(4) { grid-column: span 12; }
  .essence-motto__items > li:nth-child(5) { grid-column: 7 / span 12; }
}
@media (max-width: 781px) {
  .essence-motto { padding: 56px 24px; }
  .essence-motto h2 { margin-bottom: 24px; }
  .essence-motto .essence-motto__items { display: block; max-width: 440px; font-size: 17px; }
  .essence-motto__items > li { min-height: 0; padding: 16px 8px; border: 0; }
  .essence-motto__items > li + li { border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent); }
  .essence-footer .essence-footer__columns { gap: 32px; margin-bottom: 24px; }
  .essence-footer .essence-footer__columns > .wp-block-column { text-align: center; }
  .essence-footer .essence-footer__logo { margin: 0 auto 24px; }
  .essence-footer .essence-footer__intro { margin-inline: auto; }
  .essence-footer .essence-footer__contact { margin: 0 auto; text-align: center; }
  .essence-footer .essence-footer__contact-inline { text-align: center; line-height: 2.2; }
  .essence-footer__contact-inline .essence-contact-separator { display: block; height: 0; overflow: hidden; }
  .essence-footer .essence-footer__links { flex-direction: column; gap: 24px; margin-bottom: 32px; }
  .essence-footer .essence-footer-navigation,
  .essence-footer .essence-footer-navigation .wp-block-navigation__container { justify-content: center; }
  .essence-footer .wp-block-social-links { justify-content: center; }
  .essence-footer .essence-footer__legal { grid-template-columns: 1fr; gap: 20px; }
  .essence-footer .essence-footer__legal p,
  .essence-footer .essence-footer__legal p:last-child { text-align: center; }
}
