:root {
  --heo-navy: #082c45;
  --heo-blue: #124d6b;
  --heo-teal: #007f7c;
  --heo-teal-dark: #006b69;
  --heo-sky: #d8f0f3;
  --heo-gold: #e8b43f;
  --heo-coral: #d96b47;
  --heo-paper: #f7f5ef;
  --heo-white: #ffffff;
  --heo-ink: #203743;
  --heo-muted: #627783;
  --heo-rule: #d6e0e5;
  --heo-shadow: 0 18px 50px rgba(6, 47, 77, 0.13);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: 0.18em; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--heo-gold); outline-offset: 3px; }
.wp-site-blocks { padding: 0; }
.heo-main { margin-block-start: 0; }

.heo-site-header {
  position: relative;
  z-index: 100;
  background: var(--heo-white);
  box-shadow: 0 3px 16px rgba(6, 47, 77, 0.06);
}
.heo-site-header.is-scrolled { box-shadow: 0 8px 28px rgba(4,39,63,.14); }
.heo-contact-strip {
  min-height: 34px;
  padding: 0.35rem clamp(1.25rem, 4vw, 3rem);
  color: var(--heo-sky);
  background: var(--heo-navy);
}
.heo-contact-strip p { margin: 0; }
.heo-contact-strip a { color: inherit; text-decoration: none; }
.heo-contact-strip .has-small-font-size { font-size: 0.9rem !important; }
.heo-contact-strip .wp-block-button__link {
  min-height: auto;
  padding: 0.35rem 0.7rem;
  font-size: 0.88rem;
  color: var(--heo-navy);
  background: var(--heo-gold);
}
.heo-navigation-row {
  min-height: 72px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.heo-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(225px, 17vw, 255px);
  height: auto;
  overflow: visible;
  line-height: 0;
}
.heo-brand-logo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  transform: none;
}
.heo-wordmark { gap: 0.75rem; }
.heo-wordmark .wp-block-site-logo img { border-radius: 0; }
.heo-wordmark .wp-block-site-title { margin: 0; font-size: clamp(1.2rem, 1vw + .7rem, 1.4rem) !important; line-height: 1.1; }
.heo-wordmark .wp-block-site-title a { color: var(--heo-navy); text-decoration: none; }
.heo-wordmark .wp-block-site-tagline {
  margin: 0.15rem 0 0;
  color: var(--heo-muted);
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.heo-primary-navigation { font-size: 0.94rem; }
.heo-primary-navigation .wp-block-navigation-item__content { color: var(--heo-ink); text-decoration: none; }
.heo-primary-navigation .wp-block-navigation-item__content:hover,
.heo-primary-navigation .current-menu-item > .wp-block-navigation-item__content { color: var(--heo-teal); }
.heo-primary-navigation .wp-block-navigation__submenu-container {
  min-width: 280px !important;
  padding: 0.75rem !important;
  border: 0 !important;
  border-top: 4px solid var(--heo-teal) !important;
  box-shadow: var(--heo-shadow);
}
.heo-primary-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.78rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.heo-primary-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: #eef8f8;
}

.heo-cinematic-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 32%, rgba(0, 167, 162, 0.62), transparent 27%),
    linear-gradient(118deg, #03243b 0%, #073f62 60%, #9c4d3a 125%);
}
.heo-cinematic-hero::before,
.heo-cinematic-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.heo-cinematic-hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.heo-cinematic-hero::after {
  right: -8rem;
  bottom: -11rem;
  width: 32rem;
  height: 32rem;
  border: 5rem solid rgba(242, 190, 67, 0.16);
  border-radius: 50%;
}
.heo-cinematic-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.heo-cinematic-hero .wp-block-cover__image-background { object-position: center center; }
.heo-quick-routes { padding-top: 2.2rem; padding-bottom: 2.6rem; background: var(--heo-white); border-bottom: 1px solid var(--heo-rule); box-shadow: 0 10px 30px rgba(5,37,57,.08); }
.heo-quick-heading { margin-bottom: 1.2rem; }
.heo-quick-heading h2,
.heo-quick-heading p { margin: 0; }
.heo-quick-grid { gap: .65rem; }
.heo-quick-grid .wp-block-column { display: flex; }
.heo-quick-grid a { display: flex; width: 100%; min-height: 120px; flex-direction: column; justify-content: space-between; padding: 1rem; color: var(--heo-navy); background: var(--heo-paper); border: 1px solid transparent; text-decoration: none; transition: .2s ease; }
.heo-quick-grid a:hover { transform: translateY(-4px); background: var(--heo-white); border-color: var(--heo-teal); box-shadow: 0 10px 30px rgba(5,37,57,.08); }
.heo-quick-grid b { color: var(--heo-coral); font-family: Georgia, "Times New Roman", serif; }
.heo-quick-grid span { font-size: .78rem; font-weight: 800; line-height: 1.3; }
.heo-quick-grid i { align-self: flex-end; color: var(--heo-teal); font-style: normal; }
.heo-hero-columns { min-height: 650px; }
.heo-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.heo-eyebrow::before { width: 2rem; height: 2px; content: ""; background: currentColor; }
.heo-hero-title { max-width: 780px; letter-spacing: -0.055em; }
.heo-hero-summary { max-width: 670px; }
.heo-hero-actions .is-style-outline .wp-block-button__link { color: var(--heo-white); border-color: rgba(255,255,255,.55); }
.heo-hero-index { border-left: 1px solid rgba(255,255,255,.28); }
.heo-index-item {
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.heo-index-item p { margin: 0; }
.heo-index-item p:first-child { font-size: 0.72rem; font-weight: 800; }
.heo-index-item a { color: inherit; text-decoration: none; }

.heo-statement,
.heo-story-section,
.heo-process-section,
.heo-insights-section { padding-top: clamp(3.5rem, 7vw, 6.5rem); padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.heo-statement h2 { max-width: 780px; letter-spacing: -0.04em; }
.heo-section-label { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.heo-impact-band { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.heo-impact-band .wp-block-column { padding: 0.5rem 1.25rem; border-right: 1px solid rgba(255,255,255,.15); }
.heo-impact-band .wp-block-column:last-child { border-right: 0; }
.heo-impact-band h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.heo-impact-band p { margin: 0.25rem 0 0; }

.heo-story-heading { margin-top: 0.75rem; margin-bottom: 1.75rem; }
.heo-story-grid { gap: 0; }
.heo-story-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 1.65rem;
}
.heo-story-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  content: "";
  border: 2.2rem solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.heo-story-card h3 { position: relative; z-index: 1; max-width: 300px; margin-top: 4.5rem; }
.heo-story-card p { position: relative; z-index: 1; }
.heo-story-card a { color: var(--heo-white); font-weight: 700; }

.heo-service-directory { gap: 0; margin-block-start: 0; }
.heo-directory-intro { padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem); }
.heo-directory-links { padding: 0; }
.heo-numbered-services { margin: 0; padding: 0; list-style: none; counter-reset: heo-services; }
.heo-numbered-services li {
  counter-increment: heo-services;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 84px;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--heo-rule);
}
.heo-numbered-services li::before {
  content: counter(heo-services, decimal-leading-zero);
  color: var(--heo-coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.heo-numbered-services a { color: var(--heo-navy); font-weight: 800; text-decoration: none; }
.heo-numbered-services a::after { float: right; content: "↗"; color: var(--heo-teal); }

.heo-process-grid { margin-top: 2rem; }
.heo-process-step {
  padding: 1.3rem;
  background: var(--heo-white);
  border-top: 4px solid var(--heo-teal);
}
.heo-process-step > p:first-child { font-weight: 800; }

.heo-content-card {
  height: 100%;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid var(--heo-teal);
}
.heo-content-card .wp-block-post-title { margin-top: 0.7rem; }
.heo-content-card .wp-block-post-title a { color: var(--heo-navy); text-decoration: none; }
.heo-content-card .wp-block-post-terms a { color: var(--heo-coral); font-weight: 700; text-decoration: none; }

.heo-contact-cta { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.heo-contact-cta .is-style-outline .wp-block-button__link { color: var(--heo-white); border-color: rgba(255,255,255,.5); }
.heo-content-shell { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.heo-page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 52vw, 580px);
  display: grid;
  align-content: end;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 82% 28%, rgba(0,143,140,.5), transparent 26%),
    linear-gradient(118deg, #03243b 0%, #073f62 64%, #173e5e 100%) !important;
}
.heo-page-hero::before,
.heo-page-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.heo-page-hero::before {
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(112deg, transparent 15%, rgba(255,255,255,.08) 15.2%, transparent 15.5%),
    radial-gradient(ellipse at 78% 65%, transparent 0 27%, rgba(255,255,255,.1) 27.2% 27.6%, transparent 27.8% 100%);
}
.heo-page-hero::after {
  right: -9rem;
  bottom: -13rem;
  width: 34rem;
  height: 34rem;
  border: 5rem solid rgba(242,190,67,.12);
  border-radius: 50%;
}
.heo-page-hero > * { position: relative; z-index: 1; width: 100%; }
.heo-breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; color: var(--heo-sky); font-size: .78rem; }
.heo-breadcrumbs a { color: var(--heo-white); text-decoration: none; }
.heo-breadcrumbs a:hover { text-decoration: underline; }
.heo-page-hero h1,
.heo-page-hero .wp-block-query-title { max-width: 1050px; margin-bottom: .6rem; letter-spacing: -.055em; line-height: .95; }
.heo-page-hero .wp-block-term-description { max-width: 720px; }
.heo-page-main .heo-content-shell > .wp-block-post-content > .heo-kicker:first-child { margin-top: 0; }
.heo-page-main .wp-block-post-content > .has-lead-font-size { max-width: 850px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); color: var(--heo-blue); }
.heo-page-main .wp-block-post-content h2 { margin-top: clamp(2.4rem, 5vw, 4.5rem); color: var(--heo-navy); letter-spacing: -.025em; }
.heo-page-main .wp-block-post-content h3 { color: var(--heo-blue); }
.heo-page-main .wp-block-post-content > p,
.heo-page-main .wp-block-post-content > ul,
.heo-page-main .wp-block-post-content > ol { max-width: 780px; }
.heo-page-main .wp-block-post-content li { margin-bottom: .55rem; }
.heo-service-hero { padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.heo-service-hero h1 { max-width: 980px; }
.heo-service-hero .wp-block-post-excerpt { max-width: 700px; }
.heo-service-overview { max-width: 1120px; }
.heo-service-scope { margin-top: clamp(2rem, 4vw, 4rem); margin-bottom: clamp(3rem, 6vw, 5.5rem); gap: 0 !important; }
.heo-service-scope > .wp-block-column { padding: clamp(1.5rem, 4vw, 3rem); }
.heo-service-scope > .wp-block-column:first-child { color: var(--heo-white); background: var(--heo-blue); }
.heo-service-scope > .wp-block-column:first-child h3 { color: var(--heo-white); }
.heo-service-scope > .wp-block-column:last-child { background: var(--heo-paper); border-top: 4px solid var(--heo-gold); }
.heo-mini-process { gap: .75rem; margin-top: 1.8rem; margin-bottom: 3rem; }
.heo-mini-process > .wp-block-column { padding: 1.2rem; background: #edf7f7; border-top: 4px solid var(--heo-teal); }
.heo-mini-process strong { color: var(--heo-navy); }
.heo-person-card,
.heo-gallery-card { height: 100%; padding-bottom: 1rem; background: var(--heo-white); border-bottom: 3px solid var(--heo-teal); }
.heo-person-card h3,
.heo-person-card p,
.heo-gallery-card h3,
.heo-gallery-card p { padding-inline: 1rem; }
.heo-faq-item { padding: 1.5rem 0; border-bottom: 1px solid var(--heo-rule); }
.heo-faq-item h3 { margin: 0 0 .6rem; }
.heo-faq-item p { margin: 0; }
.heo-related-services { margin-top: clamp(3rem, 7vw, 6rem); padding-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--heo-rule); }
.heo-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.heo-related-grid article { padding: 1.4rem; background: var(--heo-paper); border-top: 4px solid var(--heo-teal); }
.heo-related-grid h3 { margin-top: 0; }
.heo-related-grid h3 a { color: var(--heo-navy); text-decoration: none; }
.heo-text-link { color: var(--heo-teal); font-weight: 800; text-decoration: none; }
.heo-not-found { min-height: 60vh; display: grid; align-content: center; }

.heo-enquiry-form {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--heo-white);
  border: 1px solid var(--heo-rule);
  box-shadow: 0 18px 50px rgba(6,47,77,.08);
}
.heo-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.heo-enquiry-form p { margin-top: 0; margin-bottom: 1.1rem; }
.heo-enquiry-form label { display: block; margin-bottom: 0.4rem; color: var(--heo-navy); font-size: 0.9rem; font-weight: 800; }
.heo-enquiry-form input:not([type="checkbox"]),
.heo-enquiry-form select,
.heo-enquiry-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--heo-ink);
  background: var(--heo-white);
  border: 1px solid #a9b7c1;
  border-radius: 2px;
  font: inherit;
}
.heo-enquiry-form input:focus,
.heo-enquiry-form select:focus,
.heo-enquiry-form textarea:focus { outline: 3px solid rgba(10,143,150,.28); border-color: var(--heo-teal); }
.heo-consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.heo-consent input { margin-top: 0.25rem; }
.heo-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.heo-form-notice { margin-bottom: 1rem; padding: 1rem 1.15rem; border-left: 4px solid; }
.heo-form-notice.is-success { color: #075f38; background: #e9f8ef; border-color: #168350; }
.heo-form-notice.is-error { color: #8a2e2e; background: #fff0ef; border-color: var(--heo-coral); }

.heo-site-footer { padding-top: 3.8rem; padding-bottom: 1rem; }
.heo-site-footer a { color: var(--heo-sky); text-decoration: none; }
.heo-footer-links { margin: 0; padding: 0; list-style: none; }
.heo-footer-links li { margin: 0.45rem 0; }
.heo-footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); }
.heo-footer-bottom p { margin: 0; }
.heo-footer-credit strong { color: var(--heo-white); font-weight: 800; }

.heo-whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--heo-white);
  background: #087c72;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(6,47,77,.25);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}
.heo-whatsapp-float:focus-visible { outline: 3px solid var(--heo-gold); outline-offset: 3px; }
.heo-back-to-top { position: fixed; z-index: 89; right: 1.45rem; bottom: 5.25rem; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--heo-rule); border-radius: 50%; color: var(--heo-navy); background: var(--heo-white); box-shadow: 0 10px 30px rgba(5,37,57,.08); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; cursor: pointer; }
.heo-back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

@media (min-width: 1100px) {
  .heo-services-menu > .wp-block-navigation__submenu-container {
    left: 50% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    width: min(650px, 75vw) !important;
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .heo-primary-navigation { order: 3; }
  .heo-brand-logo { width: 235px; height: auto; }
  .heo-wordmark .wp-block-site-tagline { display: none; }
  .heo-impact-band .wp-block-columns { flex-wrap: wrap !important; }
  .heo-impact-band .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
}

@media (max-width: 781px) {
  .heo-contact-strip {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: clamp(.75rem, 5vw, 1.5rem);
    padding-inline: .75rem;
  }
  .heo-contact-strip .has-small-font-size { font-size: .8rem !important; }
  .heo-navigation-row { min-height: 68px; }
  .heo-hero-columns { min-height: 650px; }
  .heo-hero-index { margin-top: 2rem; border-left: 0; }
  .heo-index-item { padding-left: 0; }
  .heo-impact-band .wp-block-column { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .heo-story-card { min-height: 240px; }
  .heo-story-card h3 { margin-top: 2.5rem; }
  .heo-service-directory { flex-wrap: wrap !important; }
  .heo-service-directory > .wp-block-column { flex-basis: 100% !important; }
  .heo-process-grid { gap: 0.75rem; }
  .heo-site-footer .wp-block-columns { flex-wrap: wrap !important; }
  .heo-site-footer .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
  .heo-contact-cta .wp-block-buttons { justify-content: flex-start !important; }
  .heo-form-grid { grid-template-columns: 1fr; }
  .heo-related-grid { grid-template-columns: 1fr; }
  .heo-quick-grid { flex-wrap: wrap !important; }
  .heo-quick-grid > .wp-block-column { flex-basis: calc(33.333% - .65rem) !important; }
}

@media (max-width: 520px) {
  .heo-wordmark .wp-block-site-title,
  .heo-wordmark .wp-block-site-tagline { display: none; }
  .heo-hero-title { font-size: clamp(3.1rem, 15vw, 4.4rem) !important; }
  .heo-impact-band .wp-block-column,
  .heo-site-footer .wp-block-column { flex-basis: 100% !important; }
  .heo-numbered-services li { grid-template-columns: 2.4rem 1fr; padding-inline: 1.1rem; }
  .heo-whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .heo-whatsapp-float { width: 52px; height: 52px; justify-content: center; padding: 0; }
  .heo-quick-grid > .wp-block-column { flex-basis: calc(50% - .65rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* JHU 150-inspired HEO colour system: Heritage, Medium and Spirit Blue. */
:root {
  --heo-navy: #002d72;
  --heo-blue: #0077d8;
  --heo-teal: #0077d8;
  --heo-teal-dark: #002d72;
  --heo-sky: #68ace5;
  --heo-gold: #68ace5;
  --heo-coral: #0077d8;
  --heo-paper: #f0f0f0;
  --heo-white: #ffffff;
  --heo-ink: #31261d;
  --heo-muted: #5b6770;
  --heo-rule: #d9d9d9;
  --heo-shadow: 0 18px 50px rgba(0, 45, 114, 0.14);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-color: var(--heo-blue); }
.heo-site-header { box-shadow: 0 3px 16px rgba(0,45,114,.09); }
.heo-site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0,45,114,.16); }
.heo-cinematic-hero::before {
  background: linear-gradient(90deg, rgba(0,25,68,.98) 0%, rgba(0,45,114,.92) 38%, rgba(0,45,114,.42) 72%, rgba(0,45,114,.14) 100%);
}
.heo-cinematic-hero::after,
.heo-page-hero::after { border-color: rgba(104,172,229,.16); }
.heo-page-hero {
  background: radial-gradient(circle at 83% 28%, rgba(104,172,229,.60), transparent 28%), linear-gradient(120deg, var(--heo-navy), var(--heo-blue)) !important;
}
.heo-enquiry-form input:focus,
.heo-enquiry-form select:focus,
.heo-enquiry-form textarea:focus { outline-color: rgba(0,119,216,.22); border-color: var(--heo-blue); }
.heo-whatsapp-float { background: var(--heo-blue); }

/* Alignment and responsive rhythm shared across Gutenberg and Tailwind layers. */
.heo-navigation-row,
.heo-hero-columns,
.heo-quick-heading,
.heo-quick-grid,
.heo-content-shell,
.heo-site-footer > .wp-block-columns,
.heo-footer-bottom {
  width: min(100%, 1240px);
  margin-inline: auto !important;
}
.heo-navigation-row { gap: clamp(1rem, 2.5vw, 3rem); }
.heo-wordmark { flex: 0 0 auto; }
.heo-primary-navigation { min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
.heo-primary-navigation .wp-block-navigation__container { column-gap: clamp(.65rem, 1.15vw, 1.25rem); row-gap: .4rem; }
.heo-primary-navigation > .wp-block-navigation-item > .wp-block-navigation-item__content { padding-block: .65rem; white-space: nowrap; }
.heo-quick-heading { align-items: end; }
.heo-quick-grid { align-items: stretch !important; }
.heo-quick-grid > .wp-block-column,
.heo-process-grid > .wp-block-column,
.heo-story-grid > .wp-block-column { height: auto; }
.heo-content-card { display: flex; flex-direction: column; align-items: stretch; }
.heo-content-card .wp-block-post-excerpt { margin-top: auto; }
.heo-enquiry-form { max-width: 900px; margin-inline: auto; }

@media (max-width: 1180px) {
  .heo-primary-navigation { font-size: .84rem; }
  .heo-primary-navigation .wp-block-navigation__container { column-gap: .65rem; }
  .heo-navigation-row { gap: 1rem; }
}

@media (max-width: 781px) {
  .heo-navigation-row,
  .heo-hero-columns,
  .heo-quick-heading,
  .heo-quick-grid,
  .heo-content-shell,
  .heo-site-footer > .wp-block-columns,
  .heo-footer-bottom { width: 100%; }
  .heo-quick-heading { align-items: start; }
}

/* Content-rich page system and media-ready states. */
.heo-service-overview,
.heo-media-readiness,
.heo-editorial-grid,
.heo-faq-item,
.heo-gallery-card {
  width: min(100%, 1240px);
  margin-inline: auto !important;
}
.heo-editorial-grid {
  gap: clamp(.8rem, 1.6vw, 1.35rem);
  align-items: stretch !important;
  margin-block: 1.75rem 3rem;
}
.heo-editorial-grid > .wp-block-column { display: flex; min-width: 0; }
.heo-editorial-card {
  width: 100%;
  height: 100%;
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  background: var(--heo-white);
  border: 1px solid var(--heo-rule);
  border-top: 4px solid var(--heo-blue);
  box-shadow: 0 10px 28px rgba(0,45,114,.07);
}
.heo-editorial-card h3 { margin-top: 0; margin-bottom: .65rem; font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.heo-editorial-card p { margin-top: 0; color: var(--heo-muted); }
.heo-media-readiness {
  margin-block: 3.5rem 1rem !important;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--heo-paper), var(--heo-white));
  border-left: 6px solid var(--heo-sky);
}
.heo-media-readiness > h2 { max-width: 800px; margin-top: .35rem; }
.heo-media-readiness > p { max-width: 820px; color: var(--heo-muted); }
.heo-media-grid { margin-bottom: 0; }
.heo-media-grid .heo-editorial-card { box-shadow: none; border-top-color: var(--heo-sky); }
.heo-designed-empty {
  grid-column: 1 / -1;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background: var(--heo-paper);
  border: 1px dashed rgba(0,45,114,.32);
}
.heo-designed-empty h3 { max-width: 680px; margin: 0 auto .7rem; }
.heo-designed-empty p { max-width: 700px; margin: 0 auto; color: var(--heo-muted); }
.heo-gallery-card { height: 100%; overflow: hidden; background: var(--heo-white); border: 1px solid var(--heo-rule); }
.heo-gallery-card > :not(.wp-block-post-featured-image) { margin-inline: 1.15rem; }
.heo-gallery-card > :last-child { margin-bottom: 1.25rem; }
.heo-faq-item { margin-bottom: .85rem; padding: 1.25rem 1.4rem; background: var(--heo-white); border: 1px solid var(--heo-rule); }
.heo-faq-item h3 { margin-top: 0; }
.heo-service-scope { align-items: stretch !important; }
.heo-service-scope > .wp-block-column { padding: clamp(1.4rem, 3vw, 2.2rem); }
.heo-service-scope > .wp-block-column:first-child { color: var(--heo-white); background: var(--heo-navy); }
.heo-service-scope > .wp-block-column:first-child h3 { color: var(--heo-white); }
.heo-service-scope > .wp-block-column:last-child { background: var(--heo-paper); border-top: 4px solid var(--heo-sky); }

@media (max-width: 781px) {
  .heo-editorial-grid { flex-wrap: wrap !important; }
  .heo-editorial-grid > .wp-block-column { flex-basis: calc(50% - .7rem) !important; }
  .heo-media-readiness { border-left-width: 4px; }
}

@media (max-width: 520px) {
  .heo-editorial-grid > .wp-block-column { flex-basis: 100% !important; }
  .heo-editorial-grid { margin-bottom: 2rem; }
}

/* Responsive stability: predictable type, wrapping and header behaviour. */
body {
  font-size: clamp(1rem, .2vw + .96rem, 1.1rem);
}
.wp-block-heading,
.wp-block-post-title,
.wp-block-query-title {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}
.has-small-font-size { font-size: clamp(.875rem, .2vw + .84rem, .95rem) !important; }
.has-large-font-size { font-size: clamp(1.125rem, .5vw + 1rem, 1.35rem) !important; }
.has-x-large-font-size { font-size: clamp(1.8rem, 3vw, 2.8rem) !important; }
.has-hero-font-size { font-size: clamp(2.75rem, 5.5vw, 5.6rem) !important; }
.heo-hero-title {
  max-width: 12ch;
  font-size: clamp(2.75rem, 5.5vw, 5.6rem) !important;
  line-height: .98;
}
.heo-hero-summary { font-size: clamp(1.08rem, .65vw + .95rem, 1.4rem) !important; }
.heo-quick-heading h2 { font-size: clamp(1.65rem, 2.5vw, 2.5rem) !important; }
.heo-quick-grid span { font-size: clamp(.875rem, .18vw + .84rem, .95rem); }
.heo-navigation-row,
.heo-primary-navigation,
.heo-primary-navigation .wp-block-navigation__container,
.heo-wordmark { min-width: 0; }
.heo-primary-navigation .wp-block-navigation__container { flex-wrap: wrap; justify-content: flex-end; }
.heo-site-footer .wp-block-column { min-width: 0; }
.wp-block-button__link { white-space: normal; text-align: center; }

@media (max-width: 1180px) and (min-width: 1021px) {
  .heo-navigation-row {
    min-height: 70px;
    flex-wrap: nowrap !important;
    padding-top: .3rem;
    padding-bottom: .3rem;
  }
  .heo-brand-logo { width: 220px; }
  .heo-wordmark { flex: 0 0 auto; }
  .heo-primary-navigation {
    order: initial;
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-end;
  }
  .heo-primary-navigation .wp-block-navigation__container {
    width: auto;
    justify-content: flex-end;
    column-gap: .65rem;
  }
  .heo-primary-navigation > .wp-block-navigation-item > .wp-block-navigation-item__content {
    padding-block: .4rem;
  }
  .heo-quick-grid,
  .heo-process-grid,
  .heo-mini-process { flex-wrap: wrap !important; }
  .heo-quick-grid > .wp-block-column { flex-basis: calc(33.333% - .65rem) !important; }
  .heo-process-grid > .wp-block-column,
  .heo-mini-process > .wp-block-column { flex-basis: calc(50% - .75rem) !important; }
}

@media (max-width: 1020px) and (min-width: 601px) {
  .heo-quick-grid,
  .heo-process-grid,
  .heo-mini-process { flex-wrap: wrap !important; }
  .heo-quick-grid > .wp-block-column { flex-basis: calc(33.333% - .65rem) !important; }
  .heo-process-grid > .wp-block-column,
  .heo-mini-process > .wp-block-column { flex-basis: calc(50% - .75rem) !important; }
}

@media (max-width: 781px) {
  .heo-cinematic-hero {
    min-height: auto !important;
    padding-top: clamp(3rem, 8vw, 4.5rem);
    padding-bottom: clamp(3rem, 8vw, 4.5rem);
  }
  .heo-hero-columns { min-height: 0; }
  .heo-hero-title { max-width: 13ch; }
  .heo-page-hero {
    min-height: clamp(300px, 70vw, 430px);
    padding-top: clamp(3.5rem, 10vw, 5rem);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }
  .heo-page-hero h1,
  .heo-page-hero .wp-block-query-title {
    line-height: 1.02;
    letter-spacing: -.035em;
  }
  .heo-quick-grid > .wp-block-column { flex-basis: calc(50% - .65rem) !important; }
  .heo-story-grid,
  .heo-service-scope { gap: 1rem !important; }
  .heo-contact-cta { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

@media (max-width: 600px) {
  .heo-contact-strip {
    min-height: 40px;
    gap: .45rem;
    padding-inline: 1rem;
  }
  .heo-contact-strip .wp-block-buttons { margin: 0; }
  .heo-navigation-row {
    min-height: 66px;
    flex-wrap: nowrap !important;
    gap: .75rem;
  }
  .heo-wordmark { flex: 1 1 auto; max-width: calc(100% - 54px); }
  .heo-wordmark .wp-block-site-title {
    display: block;
    overflow: hidden;
    font-size: clamp(.95rem, 4vw, 1.12rem) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .heo-wordmark .wp-block-site-tagline { display: none; }
  .heo-primary-navigation {
    order: initial;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-open {
    display: flex;
    padding: .55rem;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container {
    z-index: 9999;
    padding: 1.25rem;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-content,
  .heo-primary-navigation .wp-block-navigation__container {
    align-items: flex-start !important;
    width: 100%;
  }
  .heo-primary-navigation .wp-block-navigation__submenu-container {
    min-width: 0 !important;
    width: 100% !important;
    padding: .25rem 0 .4rem 1rem !important;
    border-top: 0 !important;
    box-shadow: none;
  }
  .heo-hero-title,
  .has-hero-font-size { font-size: clamp(2.45rem, 12vw, 3.5rem) !important; }
  .heo-hero-summary { font-size: 1.05rem !important; line-height: 1.55; }
  .heo-hero-actions,
  .heo-contact-cta .wp-block-buttons { width: 100%; }
  .heo-hero-actions .wp-block-button,
  .heo-contact-cta .wp-block-button { width: 100%; }
  .heo-hero-actions .wp-block-button__link,
  .heo-contact-cta .wp-block-button__link { width: 100%; box-sizing: border-box; }
  .heo-quick-grid > .wp-block-column { flex-basis: 100% !important; }
  .heo-quick-grid a { min-height: 104px; }
  .heo-process-grid > .wp-block-column,
  .heo-mini-process > .wp-block-column { flex-basis: 100% !important; }
  .heo-directory-intro { padding: 2.5rem 1.25rem; }
  .heo-numbered-services li { min-height: 72px; }
  .heo-content-shell { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .heo-site-footer { padding-top: 2.75rem; }
  .heo-footer-bottom { gap: .6rem; }
  .heo-whatsapp-float { right: .85rem; bottom: .85rem; }
  .heo-back-to-top { right: 1.15rem; bottom: 4.8rem; }
}

@media (min-width: 1680px) {
  .heo-navigation-row,
  .heo-hero-columns,
  .heo-quick-heading,
  .heo-quick-grid,
  .heo-content-shell,
  .heo-site-footer > .wp-block-columns,
  .heo-footer-bottom { width: min(calc(100% - 6rem), 1320px); }
  .heo-hero-title,
  .has-hero-font-size { font-size: 5.6rem !important; }
}

/* Container-safe editorial grids for content pages. */
.heo-page-main .wp-block-post-content > .alignwide,
.heo-service-page .wp-block-post-content > .alignwide {
  position: relative;
  left: 50%;
  width: min(calc(100vw - clamp(2.5rem, 8vw, 6rem)), 1240px);
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%);
}
.heo-editorial-grid.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem) !important;
  align-items: stretch;
}
.heo-editorial-grid.wp-block-columns > .wp-block-column {
  display: flex;
  width: auto;
  min-width: 0;
  flex-basis: auto !important;
  margin: 0 !important;
}
.heo-editorial-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.heo-editorial-card h3,
.heo-editorial-card p {
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .heo-page-main .wp-block-post-content > .alignwide,
  .heo-service-page .wp-block-post-content > .alignwide {
    width: calc(100vw - 2rem);
  }
  .heo-editorial-grid.wp-block-columns { grid-template-columns: 1fr; }
}

/* Unified page geometry and vertical rhythm. */
.heo-page-hero > .heo-breadcrumbs,
.heo-page-hero > .heo-eyebrow,
.heo-page-hero > .wp-block-post-terms,
.heo-page-hero > .wp-block-post-title,
.heo-page-hero > .wp-block-query-title,
.heo-page-hero > .wp-block-term-description,
.heo-page-hero > .wp-block-post-excerpt,
.heo-page-hero > .wp-block-buttons {
  box-sizing: border-box;
  width: min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 1120px);
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.heo-page-hero > .wp-block-post-excerpt p,
.heo-page-hero > .wp-block-term-description p { max-width: 760px; }
.heo-page-hero > .wp-block-post-title,
.heo-page-hero > .wp-block-query-title {
  font-size: clamp(2.75rem, 5vw, 5.25rem) !important;
  line-height: 1;
}
.heo-service-hero {
  min-height: clamp(390px, 42vw, 540px);
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.heo-service-page .heo-content-shell {
  box-sizing: border-box;
  width: min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 1240px);
  max-width: 1240px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.heo-service-page .wp-block-post-content {
  width: 100%;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.heo-service-page .wp-block-post-content > .heo-service-overview {
  position: static;
  left: auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto !important;
  transform: none;
}
.heo-service-overview > * {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.heo-service-overview > .heo-kicker { margin-top: 0 !important; margin-bottom: .65rem; }
.heo-service-overview > .heo-kicker + h2 { margin-top: 0; }
.heo-service-overview > h2 {
  max-width: 900px;
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}
.heo-service-overview > .has-lead-font-size,
.heo-service-overview > p { max-width: 900px; }
.heo-service-overview > .heo-service-scope {
  width: 100%;
  max-width: 1120px;
  margin-top: clamp(2rem, 4vw, 3.5rem) !important;
  margin-bottom: clamp(3rem, 5vw, 4.5rem) !important;
}
.heo-service-overview > .heo-mini-process {
  width: 100%;
  max-width: 1120px;
  margin-top: 1.5rem !important;
  margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}
.heo-service-overview > details {
  width: 100%;
  max-width: 1120px;
  margin-top: 0 !important;
  padding: 1.1rem 0;
  border-top: 1px solid var(--heo-rule);
  border-bottom: 1px solid var(--heo-rule);
}
.heo-service-overview > .wp-block-shortcode {
  width: 100%;
  max-width: 1120px;
  margin-top: 1.5rem !important;
}
.heo-whatsapp-button { display: inline-flex; align-items: center; min-height: 46px; }
.heo-related-services {
  box-sizing: border-box;
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: clamp(3.5rem, 6vw, 5rem) auto 0 !important;
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
}
.heo-related-services > .heo-kicker { margin: 0 0 .5rem; }
.heo-related-services > h2 { margin: 0 0 1.5rem; }
.heo-related-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.heo-related-grid article {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
}
.heo-related-grid article > .heo-text-link { margin-top: auto; }

@media (max-width: 781px) {
  .heo-page-hero > .heo-breadcrumbs,
  .heo-page-hero > .heo-eyebrow,
  .heo-page-hero > .wp-block-post-terms,
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > .wp-block-term-description,
  .heo-page-hero > .wp-block-post-excerpt,
  .heo-page-hero > .wp-block-buttons,
  .heo-service-page .heo-content-shell {
    width: calc(100% - 2rem);
  }
  .heo-service-hero { min-height: 340px; }
  .heo-service-page .heo-content-shell {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
  .heo-service-overview > h2 { margin-top: 2.75rem; }
  .heo-service-scope > .wp-block-column { padding: 1.4rem; }
  .heo-related-services { margin-top: 3.5rem !important; }
}

/* 1.4.4: consistent archives, embedded patterns and mobile navigation. */
.heo-service-directory,
.heo-contact-cta {
  box-sizing: border-box;
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), 1240px);
  max-width: 1240px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.heo-service-directory { margin-top: clamp(1rem, 3vw, 2.5rem) !important; }
.heo-contact-cta {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.heo-contact-cta > .wp-block-columns {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto !important;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.heo-contact-cta h2 { max-width: 14ch; margin-top: 0 !important; }
.heo-contact-cta p { max-width: 650px; }
.heo-contact-cta .wp-block-buttons { gap: .75rem; }

.heo-page-main .wp-block-post-content > .heo-service-directory,
.heo-page-main .wp-block-post-content > .heo-contact-cta {
  position: relative;
  left: 50%;
  width: min(calc(100vw - clamp(2rem, 6vw, 5rem)), 1240px);
  max-width: 1240px;
  transform: translateX(-50%);
}

.heo-service-area-shell { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.heo-service-area-query { width: 100%; max-width: 1240px !important; }
.heo-service-area-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.heo-service-area-query .wp-block-post-template > li {
  display: flex;
  min-width: 0;
  margin: 0;
}
.heo-service-area-card {
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  background: var(--heo-white);
  border: 1px solid var(--heo-rule);
  border-top: 4px solid var(--heo-blue);
  box-shadow: 0 10px 28px rgba(0,45,114,.07);
}
.heo-service-area-card .wp-block-post-title {
  margin: 0 0 .8rem !important;
  text-align: left !important;
  font-size: clamp(1.25rem, 1.65vw, 1.55rem) !important;
}
.heo-service-area-card .wp-block-post-excerpt {
  display: flex;
  height: 100%;
  flex-direction: column;
  margin: 0;
}
.heo-service-area-card .wp-block-post-excerpt__excerpt { margin: 0 0 1.25rem; }
.heo-service-area-card .wp-block-post-excerpt__more-text { margin: auto 0 0; }
.heo-service-area-card .wp-block-post-excerpt__more-link { font-weight: 700; }

@media (max-width: 900px) {
  .heo-service-area-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .heo-service-directory,
  .heo-contact-cta,
  .heo-page-main .wp-block-post-content > .heo-service-directory,
  .heo-page-main .wp-block-post-content > .heo-contact-cta {
    width: calc(100% - 2rem);
  }
  .heo-contact-cta > .wp-block-columns { gap: 1.25rem; }
  .heo-contact-cta h2 { max-width: 12ch; }
  .heo-service-area-query .wp-block-post-template { grid-template-columns: 1fr; }

  .heo-navigation-row { min-height: 76px; flex-wrap: nowrap !important; }
  .heo-brand-logo { width: min(190px, calc(100vw - 102px)); height: auto; }
  .heo-primary-navigation { order: initial; flex: 0 0 auto; width: auto; }
  .heo-primary-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .heo-primary-navigation .wp-block-navigation__responsive-container-open { display: flex !important; }

  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100vw;
    height: 100dvh;
    padding: 1rem 1.25rem 2rem !important;
    color: var(--heo-ink) !important;
    background: var(--heo-white) !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-dialog,
  .heo-primary-navigation .wp-block-navigation__responsive-container-content {
    width: 100%;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-close {
    top: .8rem;
    right: .9rem;
    padding: .6rem;
    color: var(--heo-navy);
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-content {
    align-items: stretch !important;
    padding-top: 3.5rem !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    display: block;
    width: 100%;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    box-sizing: border-box;
    width: 100%;
    padding: .8rem .25rem;
    border-bottom: 1px solid var(--heo-rule);
    text-align: left;
    font-size: 1rem;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    position: static !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 0 .45rem .8rem !important;
    color: var(--heo-ink) !important;
    background: transparent !important;
    border: 0 !important;
    transform: none !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: .68rem .25rem;
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* Responsive hero framing: preserve the subject and keep all content inside the banner. */
.heo-cinematic-hero {
  min-height: clamp(560px, 46vw, 760px) !important;
  height: auto;
  background-color: var(--heo-navy);
  background-image: url("../images/heo-hero-abstract-v2.webp") !important;
  background-position: 54% center;
  background-size: cover;
  background-repeat: no-repeat;
}
.heo-cinematic-hero .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  opacity: 0;
}
.heo-cinematic-hero .heo-hero-columns {
  min-height: inherit;
  box-sizing: border-box;
}

@media (max-width: 1180px) {
  .heo-cinematic-hero { background-position: 62% center; }
  .heo-cinematic-hero .wp-block-cover__image-background { object-position: 62% center; }
}

@media (max-width: 781px) {
  .heo-cinematic-hero {
    min-height: 0 !important;
    height: auto;
    overflow: hidden;
  }
  .heo-cinematic-hero .heo-hero-columns { min-height: 0; }
  .heo-cinematic-hero { background-position: 68% center; }
  .heo-cinematic-hero .wp-block-cover__image-background { object-position: 68% center; }
}

@media (max-width: 430px) {
  .heo-cinematic-hero { background-position: 72% center; }
  .heo-cinematic-hero .wp-block-cover__image-background { object-position: 72% center; }
}

/* Global responsive contract: compact headings, fluid content and safe media. */
html { -webkit-text-size-adjust: 100%; }
body,
.wp-site-blocks,
.heo-page-main,
.heo-service-page { min-width: 0; }
img,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}
.wp-block-image,
.wp-block-video,
.wp-block-embed,
.wp-block-group,
.wp-block-column,
.wp-block-columns,
.wp-block-query,
.wp-block-post-template,
.wp-block-post { min-width: 0; }
.wp-block-embed__wrapper { max-width: 100%; overflow: hidden; }
.wp-block-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { min-width: 640px; }
.wp-block-buttons { flex-wrap: wrap !important; }
.wp-element-button,
.wp-block-button__link { max-width: 100%; white-space: normal; text-align: center; }
input,
select,
textarea,
button { max-width: 100%; }
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a { overflow-wrap: break-word; }

.heo-page-hero {
  min-height: 0 !important;
  row-gap: clamp(.38rem, .8vw, .65rem);
  padding-top: clamp(1.15rem, 2.1vw, 1.75rem) !important;
  padding-bottom: clamp(1.15rem, 2.1vw, 1.75rem) !important;
}
.heo-page-hero > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.heo-page-hero > .heo-breadcrumbs { margin-bottom: .1rem !important; }
.heo-page-hero > .wp-block-post-title,
.heo-page-hero > .wp-block-query-title,
.heo-page-hero > h1 {
  font-size: clamp(2.15rem, 3.2vw, 3.45rem) !important;
  line-height: 1.02;
}
.heo-page-hero > p:not(.heo-eyebrow),
.heo-page-hero > .wp-block-post-excerpt,
.heo-page-hero > .wp-block-term-description {
  max-width: 760px;
  font-size: clamp(.98rem, 1.25vw, 1.16rem) !important;
  line-height: 1.5;
}
.heo-service-hero {
  min-height: 0 !important;
  padding-top: clamp(1.4rem, 2.8vw, 2.25rem) !important;
  padding-bottom: clamp(1.4rem, 2.8vw, 2.25rem) !important;
}
.heo-content-shell {
  box-sizing: border-box;
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), 1240px);
  padding-top: clamp(1.75rem, 3.5vw, 3.25rem);
  padding-bottom: clamp(2rem, 4vw, 3.75rem);
}

.wp-block-post-template.is-layout-grid,
.heo-service-area-query .wp-block-post-template,
.heo-related-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)) !important;
}
.heo-editorial-grid,
.heo-process-grid,
.heo-story-grid,
.heo-quick-grid { gap: clamp(.85rem, 2vw, 1.5rem) !important; }
.heo-content-card,
.heo-gallery-card,
.heo-faq-item { max-width: 100%; }

.heo-showcase-section,
.heo-showcase-viewport,
.heo-showcase-track,
.heo-showcase-slide,
.heo-showcase-frame,
.heo-showcase-open { box-sizing: border-box; max-width: 100%; }
.heo-showcase-image {
  width: 100%;
  height: clamp(280px, 46vw, 600px);
  max-height: 70vh;
  object-fit: contain;
}
.heo-showcase-heading { flex-wrap: wrap; }
.heo-showcase-controls { max-width: 100%; }
.heo-showcase-dots { max-width: 100%; }
.heo-media-lightbox-image { max-width: 100%; max-height: calc(100dvh - 8rem); }

@media (max-width: 1180px) {
  .heo-navigation-row { width: calc(100% - 2rem); }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open { max-width: 100vw; }
}

@media (max-width: 781px) {
  .heo-page-hero {
    row-gap: .38rem;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 { font-size: clamp(1.9rem, 7.5vw, 2.75rem) !important; }
  .heo-content-shell { width: calc(100% - 2rem); }
  .wp-block-columns:not(.is-not-stacked-on-mobile) { gap: 1rem !important; }
  .heo-showcase-heading { flex-direction: column; align-items: stretch; gap: .9rem; }
  .heo-showcase-controls { align-self: stretch; justify-content: space-between; }
  .heo-showcase-image { height: min(105vw, 520px); max-height: 68vh; min-height: 250px; }
  .heo-showcase-caption { padding-inline: .15rem; text-align: left; }
}

@media (max-width: 480px) {
  .heo-navigation-row { width: calc(100% - 1.25rem); }
  .heo-page-hero > .heo-breadcrumbs,
  .heo-page-hero > .heo-eyebrow,
  .heo-page-hero > .wp-block-post-terms,
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > .wp-block-term-description,
  .heo-page-hero > .wp-block-post-excerpt,
  .heo-page-hero > .wp-block-buttons,
  .heo-page-hero > p {
    width: calc(100% - 1.5rem);
  }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 { font-size: clamp(1.72rem, 9vw, 2.25rem) !important; }
  .heo-breadcrumbs { gap: .35rem; font-size: .72rem; }
  .heo-eyebrow { font-size: .7rem !important; }
  .heo-content-shell { width: calc(100% - 1.25rem); }
  .heo-showcase-awards,
  .heo-showcase-gallery { padding: .55rem; }
  .heo-showcase-awards .heo-showcase-frame { padding: .65rem; }
  .heo-showcase-image { height: min(112vw, 460px); min-height: 230px; }
  .heo-showcase-controls button { width: 40px; height: 40px; }
  .heo-showcase-controls span { min-width: 3.5rem; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .heo-page-hero { padding-block: .75rem !important; }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 { font-size: clamp(1.7rem, 5vw, 2.5rem) !important; }
  .heo-showcase-image { height: 58vh; min-height: 210px; }
  .heo-media-lightbox-image { max-height: calc(100dvh - 4rem); }
}

/* Classified awards and gallery showcase. */
.heo-showcase-shell,
.heo-showcase-shell > .wp-block-shortcode,
.heo-media-showcase { width: 100%; max-width: none; }
.heo-media-showcase {
  display: grid;
  gap: clamp(4rem, 8vw, 7rem);
}
.heo-showcase-section { min-width: 0; }
.heo-showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.heo-showcase-heading > div:first-child { max-width: 760px; }
.heo-showcase-heading h2 { margin: .25rem 0 .65rem; }
.heo-showcase-heading p:last-child { margin-bottom: 0; color: var(--heo-muted); }
.heo-showcase-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .6rem;
}
.heo-showcase-controls button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--heo-white);
  background: var(--heo-navy);
  border: 1px solid var(--heo-navy);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.heo-showcase-controls button:hover,
.heo-showcase-controls button:focus-visible {
  color: var(--heo-navy);
  background: var(--heo-sky);
  transform: translateY(-2px);
}
.heo-showcase-controls button:disabled { opacity: .35; cursor: default; transform: none; }
.heo-showcase-controls span { min-width: 4.25rem; text-align: center; font-weight: 700; color: var(--heo-navy); }
.heo-showcase-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}
.heo-showcase-viewport::-webkit-scrollbar { display: none; }
.heo-showcase-viewport:focus-visible { box-shadow: 0 0 0 3px rgba(0,119,216,.22); }
.heo-showcase-track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.heo-showcase-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
.heo-showcase-frame {
  position: relative;
  width: min(100%, 920px);
  margin-inline: auto;
  overflow: hidden;
  background: var(--heo-white);
}
.heo-showcase-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}
.heo-showcase-image {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 500px);
  object-fit: contain;
  background: #f7f9fb;
  transition: transform .35s ease, filter .35s ease;
}
.heo-showcase-open:hover .heo-showcase-image,
.heo-showcase-open:focus-visible .heo-showcase-image { transform: scale(1.018); filter: brightness(.9); }
.heo-showcase-zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .48rem .7rem;
  color: var(--heo-white);
  background: rgba(0,45,114,.9);
  opacity: 0;
  font-size: .82rem;
  font-weight: 700;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.heo-showcase-open:hover .heo-showcase-zoom,
.heo-showcase-open:focus-visible .heo-showcase-zoom { opacity: 1; transform: none; }
.heo-showcase-caption { width: min(100%, 920px); margin-inline: auto; padding: 1.15rem .15rem 0; }
.heo-showcase-caption h3 { margin: 0 0 .35rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.heo-showcase-caption p { margin: 0; color: var(--heo-muted); }

.heo-showcase-awards {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(145deg, #fffdf6, #f6f0df);
  border: 1px solid #d9c89a;
  box-shadow: 0 20px 50px rgba(0,45,114,.08);
}
.heo-showcase-awards .heo-showcase-frame {
  padding: clamp(.8rem, 2vw, 1.15rem);
  background: linear-gradient(145deg, #d7b765, #fff1bc 44%, #ad8430);
  border: 1px solid #9e792a;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.42), 0 14px 30px rgba(72,49,7,.18);
}
.heo-showcase-awards .heo-showcase-open {
  padding: .65rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,45,114,.12);
}
.heo-showcase-awards .heo-showcase-image { background: #fff; }
.heo-showcase-awards .heo-kicker { color: #81631f; }

.heo-showcase-gallery .heo-showcase-frame {
  padding: 6px;
  background: linear-gradient(135deg, var(--heo-blue), var(--heo-teal));
  box-shadow: 0 16px 34px rgba(0,45,114,.15);
}
.heo-showcase-gallery .heo-showcase-open { background: var(--heo-navy); }
.heo-showcase-gallery .heo-showcase-image { background: #eef4f7; }
.heo-showcase-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.35rem;
}
.heo-showcase-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #b8c7d2;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.heo-showcase-dots button[aria-current="true"] { width: 28px; background: var(--heo-blue); border-radius: 999px; }

.heo-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  color: var(--heo-white);
  background: rgba(1,16,35,.96);
}
.heo-media-lightbox[hidden] { display: none; }
.heo-media-lightbox-figure { min-width: 0; margin: 0; text-align: center; }

/* Compact inner-page rhythm and presentation-grade media framing. */
.heo-page-hero {
  box-sizing: border-box;
  min-height: clamp(220px, 14vw, 260px) !important;
  align-content: center;
  padding-top: clamp(1.5rem, 2.5vw, 2rem) !important;
  padding-bottom: clamp(1.5rem, 2.5vw, 2rem) !important;
}
.heo-page-hero > .heo-breadcrumbs { margin-bottom: .85rem !important; }
.heo-page-hero > p {
  box-sizing: border-box;
  width: min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 1120px);
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.heo-page-hero > p:last-child { margin-bottom: 0; }
.heo-page-hero > .wp-block-post-title,
.heo-page-hero > .wp-block-query-title,
.heo-page-hero > h1 {
  font-size: clamp(2.35rem, 4vw, 4rem) !important;
  line-height: .98;
}
.heo-service-hero { min-height: clamp(250px, 22vw, 320px) !important; }
.heo-content-shell {
  padding-top: clamp(2.25rem, 4vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 4.5vw, 4rem);
}
.heo-showcase-shell { max-width: 1180px !important; }
.heo-media-showcase { gap: 0; }
.heo-showcase-heading { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.heo-showcase-frame { width: min(100%, 980px); isolation: isolate; }
.heo-showcase-caption { width: min(100%, 980px); padding-top: 1.25rem; text-align: center; }
.heo-showcase-caption h3 { color: var(--heo-navy); }
.heo-showcase-image { height: clamp(340px, 42vw, 610px); }

.heo-showcase-awards {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 10% 5%, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(145deg, #fffdf7, #f4ead0);
  border: 1px solid #cfb66e;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(46,34,7,.14);
}
.heo-showcase-awards .heo-showcase-frame {
  padding: clamp(1rem, 2.5vw, 1.6rem);
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255,255,255,.75), transparent 22% 78%, rgba(255,255,255,.58)),
    linear-gradient(135deg, #8f6720 0%, #f8df91 22%, #b1832d 50%, #ffe9a8 78%, #8c631d 100%);
  border: 3px solid #7e5a18;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 4px #f7dda0,
    inset 0 0 0 8px rgba(92,61,10,.55),
    inset 0 0 28px rgba(255,255,255,.8),
    0 22px 45px rgba(50,34,4,.24);
}
.heo-showcase-awards .heo-showcase-frame::before {
  position: absolute;
  inset: 10px;
  z-index: 2;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255,251,221,.95);
  box-shadow: 0 0 0 1px rgba(87,57,8,.55);
}
.heo-showcase-awards .heo-showcase-open {
  padding: clamp(.75rem, 1.7vw, 1.15rem);
  background: #fffdf8;
  border: 1px solid rgba(76,50,8,.5);
  box-shadow: 0 0 0 5px #fff8e6, 0 0 0 6px rgba(101,72,17,.4);
}
.heo-showcase-awards .heo-showcase-image { background: #fffdf8; }

.heo-showcase-gallery {
  padding: clamp(1rem, 2.5vw, 2rem);
  background: linear-gradient(145deg, #f8fbfe, #edf6f7);
  border: 1px solid #c9dce8;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,45,114,.11);
}
.heo-showcase-gallery .heo-showcase-frame {
  padding: 10px;
  overflow: visible;
  background: linear-gradient(135deg, #002d72, #0077d8 46%, #008f8c 100%);
  border: 1px solid #002657;
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(0,45,114,.24), inset 0 0 0 2px rgba(255,255,255,.32);
}
.heo-showcase-gallery .heo-showcase-open {
  padding: clamp(.55rem, 1.25vw, .9rem);
  background: #fff;
  border: 1px solid rgba(0,45,114,.22);
  border-radius: 9px;
  box-shadow: inset 0 0 0 4px #f3f8fb;
}
.heo-showcase-gallery .heo-showcase-image { background: #f8fbfd; border-radius: 5px; }
.heo-showcase-controls button { border-radius: 50%; box-shadow: 0 7px 18px rgba(0,45,114,.16); }

@media (max-width: 781px) {
  .heo-page-hero {
    min-height: 205px !important;
    padding-top: 1.4rem !important;
    padding-bottom: 1.4rem !important;
  }
  .heo-service-hero { min-height: 235px !important; }
  .heo-showcase-heading { align-items: flex-start; }
  .heo-showcase-image { height: clamp(280px, 76vw, 500px); }
}

@media (max-width: 600px) {
  .heo-page-hero { min-height: 185px !important; }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 { font-size: clamp(2rem, 10vw, 3rem) !important; }
  .heo-showcase-awards,
  .heo-showcase-gallery { padding: .75rem; border-radius: 10px; }
  .heo-showcase-awards .heo-showcase-frame { padding: .8rem; }
  .heo-showcase-gallery .heo-showcase-frame { padding: 6px; border-radius: 10px; }
  .heo-showcase-caption { text-align: left; }
}
.heo-media-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 9rem);
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 20px 70px rgba(0,0,0,.48);
}
.heo-media-lightbox figcaption { margin-top: .85rem; font-weight: 700; }
.heo-media-lightbox button {
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--heo-white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4);
  cursor: pointer;
  font-size: 1.35rem;
}
.heo-media-lightbox button:hover,
.heo-media-lightbox button:focus-visible { background: var(--heo-blue); }
.heo-media-lightbox-close { position: absolute; top: 1rem; right: 1rem; }
.is-heo-lightbox-open { overflow: hidden; }

@media (max-width: 700px) {
  .heo-showcase-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .heo-showcase-controls { align-self: stretch; justify-content: space-between; }
  .heo-showcase-slide { flex-basis: 100%; }
  .heo-showcase-image { height: min(112vw, 500px); }
  .heo-showcase-awards { padding: 1rem; }
  .heo-media-lightbox { grid-template-columns: 42px minmax(0, 1fr) 42px; padding: 4rem .5rem 1rem; }
  .heo-media-lightbox button { width: 42px; height: 42px; }
  .heo-media-lightbox-image { max-height: calc(100vh - 8rem); }
}

/* Use the compact navigation on tablets and small laptops as well as phones. */
@media (max-width: 1180px) {
  .heo-navigation-row {
    min-height: 70px;
    flex-wrap: nowrap !important;
    gap: .75rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
  }
  .heo-wordmark { flex: 1 1 auto; min-width: 0; }
  .heo-brand-logo { width: min(210px, calc(100vw - 110px)); height: auto; }
  .heo-primary-navigation {
    order: initial;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-open {
    display: flex !important;
    padding: .55rem;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100vw;
    height: 100dvh;
    padding: 1rem 1.25rem 2rem !important;
    color: var(--heo-ink) !important;
    background: var(--heo-white) !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-dialog,
  .heo-primary-navigation .wp-block-navigation__responsive-container-content {
    width: 100%;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-close {
    top: .8rem;
    right: .9rem;
    padding: .6rem;
    color: var(--heo-navy);
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-content {
    align-items: stretch !important;
    padding-top: 3.5rem !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    display: block;
    width: 100%;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    box-sizing: border-box;
    width: 100%;
    padding: .8rem .25rem;
    border-bottom: 1px solid var(--heo-rule);
    text-align: left;
    font-size: 1rem;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    position: static !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 0 .45rem .8rem !important;
    color: var(--heo-ink) !important;
    background: transparent !important;
    border: 0 !important;
    transform: none !important;
  }
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: .68rem .25rem;
    font-size: 1rem;
    line-height: 1.45;
  }
}

@media (max-width: 600px) {
  .heo-brand-logo { width: min(180px, calc(100vw - 102px)); }
}

/* Use the available desktop width for clearer brand and navigation alignment. */
@media (min-width: 1181px) {
  .heo-navigation-row {
    width: calc(100% - clamp(3rem, 8vw, 9rem));
    max-width: 1640px !important;
    margin-inline: auto !important;
  }
  .heo-primary-navigation {
    font-size: 1.05rem;
    font-weight: 700;
  }
  .heo-primary-navigation .wp-block-navigation__container {
    column-gap: clamp(.85rem, 1.3vw, 1.45rem);
  }
}

/* Keep full-width sections flush with every viewport edge. */
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
body {
  --wp--style--root--padding-left: 0px;
  --wp--style--root--padding-right: 0px;
}
.wp-site-blocks {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 600px) {
  .heo-cinematic-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }
  .heo-cinematic-hero .wp-block-cover__image-background {
    object-position: 68% center;
  }
  .heo-hero-title,
  .has-hero-font-size {
    max-width: 100%;
    font-size: clamp(2.35rem, 10vw, 3rem) !important;
    line-height: 1 !important;
  }
  .heo-eyebrow {
    gap: .5rem;
    font-size: .78rem !important;
    letter-spacing: .08em;
  }
  .heo-hero-index { display: grid; }
  .heo-whatsapp-float {
    width: auto;
    height: auto;
    min-height: 46px;
    padding: .7rem .9rem;
  }
  .heo-whatsapp-float span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .heo-whatsapp-float span:last-child {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .heo-cinematic-hero { background-position: 72% center; }
  .heo-cinematic-hero .wp-block-cover__image-background { object-position: 72% center; }
}

/* Final viewport layer kept last so WordPress preset styles cannot re-expand pages. */
.heo-page-hero {
  box-sizing: border-box;
  min-height: 0 !important;
  row-gap: clamp(.38rem, .8vw, .65rem);
  padding-top: clamp(1.15rem, 2.1vw, 1.75rem) !important;
  padding-bottom: clamp(1.15rem, 2.1vw, 1.75rem) !important;
}
.heo-page-hero > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.heo-page-hero > .heo-breadcrumbs { margin-bottom: .1rem !important; }
.heo-page-hero > .wp-block-post-title,
.heo-page-hero > .wp-block-query-title,
.heo-page-hero > h1 {
  font-size: clamp(2.15rem, 3.2vw, 3.45rem) !important;
  line-height: 1.02;
}
.heo-page-hero > p:not(.heo-eyebrow),
.heo-page-hero > .wp-block-post-excerpt,
.heo-page-hero > .wp-block-term-description {
  max-width: 760px;
  font-size: clamp(.98rem, 1.25vw, 1.16rem) !important;
  line-height: 1.5;
}
.heo-service-hero {
  min-height: 0 !important;
  padding-top: clamp(1.4rem, 2.8vw, 2.25rem) !important;
  padding-bottom: clamp(1.4rem, 2.8vw, 2.25rem) !important;
}
.heo-content-shell {
  box-sizing: border-box;
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), 1240px);
  padding-top: clamp(1.75rem, 3.5vw, 3.25rem);
  padding-bottom: clamp(2rem, 4vw, 3.75rem);
}
.wp-block-post-template.is-layout-grid,
.heo-service-area-query .wp-block-post-template,
.heo-related-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)) !important; }
.heo-showcase-section,
.heo-showcase-viewport,
.heo-showcase-track,
.heo-showcase-slide,
.heo-showcase-frame,
.heo-showcase-open { box-sizing: border-box; max-width: 100%; }
.heo-showcase-heading { flex-wrap: wrap; }
.heo-showcase-image {
  width: 100%;
  height: clamp(280px, 46vw, 600px);
  max-height: 70vh;
  object-fit: contain;
}
.heo-media-lightbox-image { max-width: 100%; max-height: calc(100dvh - 8rem); }

@media (max-width: 781px) {
  .heo-page-hero { row-gap: .38rem; padding-block: 1rem !important; }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 { font-size: clamp(1.9rem, 7.5vw, 2.75rem) !important; }
  .heo-content-shell { width: calc(100% - 2rem); }
  .heo-showcase-heading { flex-direction: column; align-items: stretch; gap: .9rem; }
  .heo-showcase-controls { align-self: stretch; justify-content: space-between; }
  .heo-showcase-image { height: min(105vw, 520px); max-height: 68vh; min-height: 250px; }
}

@media (max-width: 480px) {
  .heo-page-hero > .heo-breadcrumbs,
  .heo-page-hero > .heo-eyebrow,
  .heo-page-hero > .wp-block-post-terms,
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > .wp-block-term-description,
  .heo-page-hero > .wp-block-post-excerpt,
  .heo-page-hero > .wp-block-buttons,
  .heo-page-hero > p { width: calc(100% - 1.5rem); }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 { font-size: clamp(1.72rem, 9vw, 2.25rem) !important; }
  .heo-content-shell { width: calc(100% - 1.25rem); }
  .heo-showcase-image { height: min(112vw, 460px); min-height: 230px; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .heo-page-hero { padding-block: .75rem !important; }
  .heo-showcase-image { height: 58vh; min-height: 210px; }
}

/* Responsive design system v1.8: safe type, compact rhythm and visible routes. */
*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; }
body,
.wp-site-blocks,
.heo-main { min-width: 0; overflow-wrap: break-word; }

img,
svg,
video,
canvas,
iframe { max-width: 100%; height: auto; }

main :where(h1, h2, h3, h4, h5, h6, p, li, a, span),
.heo-site-footer :where(h2, h3, p, li, a) {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.heo-page-hero > *,
.heo-content-shell,
.heo-navigation-row,
.heo-site-footer > *,
.heo-statement > *,
.heo-story-section > *,
.heo-process-section > *,
.heo-insights-section > *,
.heo-contact-cta > *,
.heo-impact-band > * {
  box-sizing: border-box;
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), 1240px);
  max-width: 1240px;
  margin-inline: auto !important;
}

.heo-page-hero {
  overflow: hidden;
  padding-block: clamp(1.2rem, 2.4vw, 2rem) !important;
}
.heo-page-hero > .wp-block-post-title,
.heo-page-hero > .wp-block-query-title,
.heo-page-hero > h1 {
  max-width: 1120px;
  padding-block: .08em;
  font-size: clamp(2rem, 3.25vw, 3.5rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.heo-page-hero > .heo-breadcrumbs {
  gap: .35rem .55rem;
  margin-bottom: .2rem !important;
  line-height: 1.45;
}
.heo-page-hero > .heo-eyebrow {
  line-height: 1.4;
  letter-spacing: .09em;
}

.heo-cinematic-hero { min-height: 0 !important; }
.heo-cinematic-hero .wp-block-cover__inner-container { width: 100%; }
.heo-hero-columns {
  min-height: clamp(500px, 42vw, 650px) !important;
  align-items: center !important;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.heo-hero-columns > .wp-block-column { min-width: 0; }
.heo-hero-title,
.has-hero-font-size {
  line-height: 1.08 !important;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.heo-hero-summary { margin-top: 1rem; line-height: 1.55; }
.heo-hero-actions { margin-top: 1.35rem; }
.heo-hero-index { display: grid; min-width: 0; }
.heo-index-item { min-width: 0; }
.heo-index-item a { display: block; padding-block: .1rem; line-height: 1.4; overflow-wrap: anywhere; }

.heo-quick-routes { padding-block: clamp(1.35rem, 3vw, 2.4rem); }
.heo-quick-heading { margin-bottom: .9rem; }
.heo-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.55rem, 1.2vw, .9rem) !important;
}
.heo-quick-grid > .wp-block-column { min-width: 0; }
.heo-quick-grid a {
  min-height: 96px;
  padding: .85rem;
  line-height: 1.35;
}

.heo-statement,
.heo-story-section,
.heo-process-section,
.heo-insights-section { padding-block: clamp(2.25rem, 5vw, 4.5rem); }
.heo-story-card {
  min-height: clamp(230px, 24vw, 300px);
  height: auto;
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
}
.heo-story-card h3 { margin-top: clamp(1.5rem, 4vw, 4rem); }
.heo-process-grid { gap: clamp(.65rem, 1.4vw, 1rem); margin-top: 1.35rem; }
.heo-process-step { min-width: 0; padding: clamp(1rem, 2vw, 1.3rem); }
.heo-directory-intro { padding: clamp(2rem, 4.5vw, 4rem) clamp(1.25rem, 3.5vw, 3rem); }
.heo-numbered-services a { overflow-wrap: anywhere; }
.heo-contact-cta { padding-block: clamp(2rem, 4vw, 3.25rem); }

.wp-block-button,
.wp-block-button__link { max-width: 100%; }
.wp-block-button__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1rem;
  line-height: 1.35;
  white-space: normal;
}
.wp-block-table { width: 100%; overflow-x: auto; }
.wp-block-table table { width: max(100%, 640px); }

.heo-primary-navigation .wp-block-navigation-item__content {
  max-width: 100%;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .heo-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heo-story-grid,
  .heo-process-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heo-story-grid > .wp-block-column,
  .heo-process-grid > .wp-block-column { flex-basis: auto !important; }
}

@media (max-width: 781px) {
  .heo-page-hero > *,
  .heo-content-shell,
  .heo-navigation-row,
  .heo-site-footer > *,
  .heo-statement > *,
  .heo-story-section > *,
  .heo-process-section > *,
  .heo-insights-section > *,
  .heo-contact-cta > *,
  .heo-impact-band > * { width: calc(100% - 2rem); }

  .heo-page-hero { padding-block: 1rem !important; }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 {
    width: calc(100% - 2rem);
    font-size: clamp(1.85rem, 7.2vw, 2.75rem) !important;
    line-height: 1.14 !important;
  }
  .heo-eyebrow::before { width: 1.35rem; flex: 0 0 1.35rem; }

  .heo-hero-columns {
    min-height: 0 !important;
    flex-direction: column;
    align-items: stretch !important;
    padding-block: clamp(2.5rem, 8vw, 4rem);
  }
  .heo-hero-columns > .wp-block-column { flex-basis: auto !important; width: 100%; }
  .heo-hero-index {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: .5rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(255,255,255,.28);
    border-left: 0;
  }
  .heo-index-item {
    align-content: start;
    padding: .7rem;
    border-right: 1px solid rgba(255,255,255,.15);
    border-bottom: 0;
  }
  .heo-index-item:last-child { border-right: 0; }

  .heo-service-directory { flex-direction: column; }
  .heo-service-directory > .wp-block-column { flex-basis: auto !important; width: 100%; }
  .heo-contact-cta .wp-block-columns,
  .heo-site-footer .wp-block-columns { gap: 1.25rem; }
  .heo-contact-cta .wp-block-column,
  .heo-site-footer .wp-block-column { flex-basis: 100% !important; }
  .heo-contact-cta .wp-block-buttons { justify-content: flex-start; }
  .heo-content-shell { padding-block: clamp(1.5rem, 5vw, 2.5rem); }
  .heo-showcase-image { min-height: 0; height: min(92vw, 500px); }
}

@media (max-width: 520px) {
  .heo-page-hero > *,
  .heo-content-shell,
  .heo-navigation-row,
  .heo-site-footer > *,
  .heo-statement > *,
  .heo-story-section > *,
  .heo-process-section > *,
  .heo-insights-section > *,
  .heo-contact-cta > *,
  .heo-impact-band > * { width: calc(100% - 1.25rem); }

  .heo-contact-strip {
    justify-content: center !important;
    gap: .25rem .6rem;
    padding-inline: .6rem;
  }
  .heo-contact-strip a { min-height: 34px; display: inline-flex; align-items: center; }
  .heo-navigation-row { min-height: 62px; }
  .heo-brand-logo { width: min(174px, calc(100vw - 88px)); }

  .heo-hero-title,
  .has-hero-font-size {
    font-size: clamp(2.05rem, 10.8vw, 2.8rem) !important;
    line-height: 1.1 !important;
  }
  .heo-hero-actions,
  .heo-hero-actions .wp-block-button,
  .heo-hero-actions .wp-block-button__link { width: 100%; }
  .heo-hero-index { grid-template-columns: 1fr; }
  .heo-index-item {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: .6rem;
    padding: .62rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  .heo-quick-grid,
  .heo-story-grid,
  .heo-process-grid { grid-template-columns: minmax(0, 1fr); }
  .heo-quick-grid a { min-height: 78px; }
  .heo-story-card { min-height: 215px; }
  .heo-impact-band .wp-block-column { padding: .75rem 0; }
  .heo-numbered-services li { min-height: 0; padding: .85rem .9rem; }

  .heo-showcase-heading { gap: .7rem; }
  .heo-showcase-controls { gap: .35rem; }
  .heo-showcase-controls button { width: 40px; height: 40px; }
  .heo-showcase-controls span { min-width: 0; }
  .heo-showcase-awards,
  .heo-showcase-gallery { padding: .55rem; }
  .heo-showcase-awards .heo-showcase-frame { padding: .6rem; }
  .heo-showcase-gallery .heo-showcase-frame { padding: 5px; }
  .heo-showcase-awards .heo-showcase-open,
  .heo-showcase-gallery .heo-showcase-open { padding: .45rem; }
  .heo-showcase-image { height: min(105vw, 430px); min-height: 0; }
  .heo-showcase-caption { padding-top: .8rem; }

  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
  .heo-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .heo-contact-strip { font-size: .75rem; }
  .heo-page-hero > .wp-block-post-title,
  .heo-page-hero > .wp-block-query-title,
  .heo-page-hero > h1 { font-size: 1.75rem !important; }
  .heo-eyebrow { font-size: .7rem !important; letter-spacing: .06em; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .heo-hero-columns { min-height: 0 !important; padding-block: 1.75rem; }
  .heo-hero-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .heo-showcase-image { min-height: 0; height: 56vh; }
}

/* Live responsive audit: protect content, expose every route and tighten page rhythm. */
.heo-page-hero {
  height: auto !important;
  max-height: none !important;
  grid-auto-rows: max-content;
  padding-inline: clamp(1rem, 4vw, 3rem) !important;
}
.heo-page-hero > * {
  width: 100% !important;
  max-width: 1240px;
  min-width: 0;
  margin-inline: auto !important;
}
.heo-page-hero > :where(.wp-block-post-title, .wp-block-query-title, h1) {
  padding: .06em 0 .1em;
  overflow: visible;
}

.heo-cinematic-hero,
.heo-cinematic-hero .wp-block-cover__inner-container,
.heo-hero-columns {
  height: auto !important;
  max-height: none !important;
}
.heo-hero-index { display: grid !important; }
.heo-index-item p:first-child {
  width: max-content;
  min-width: 2ch;
  white-space: nowrap;
}

.heo-story-card,
.heo-process-step,
.heo-service-area-card,
.heo-faq-item,
.heo-related-grid article {
  height: auto;
  max-height: none;
}
.heo-story-card { overflow: clip; }
.heo-story-card :where(h2, h3, p, a) { max-width: 100%; }

.heo-main > :where(.wp-block-group, .wp-block-columns):not(.heo-cinematic-hero):not(.heo-page-hero) {
  scroll-margin-top: 6rem;
}
.heo-content-shell > :first-child,
.heo-content-shell .wp-block-post-content > :first-child { margin-block-start: 0; }
.heo-content-shell > :last-child,
.heo-content-shell .wp-block-post-content > :last-child { margin-block-end: 0; }

@media (max-width: 781px) {
  .heo-page-hero {
    align-content: center;
    padding: 1rem !important;
  }
  .heo-page-hero > :where(.wp-block-post-title, .wp-block-query-title, h1) {
    width: 100% !important;
    font-size: clamp(1.85rem, 7.4vw, 2.7rem) !important;
  }
  .heo-page-hero > :where(p, .wp-block-post-excerpt, .wp-block-term-description) {
    line-height: 1.45;
  }
  .heo-cinematic-hero { overflow: clip; }
  .heo-hero-columns { gap: 1.25rem; }
  .heo-hero-index {
    width: 100%;
    margin-block: .15rem 0;
  }
  .heo-story-card {
    min-height: 0;
    padding: 1.2rem;
  }
  .heo-story-card h3 { margin-top: 1.25rem; }
  .heo-statement,
  .heo-story-section,
  .heo-process-section,
  .heo-insights-section { padding-block: clamp(1.8rem, 6vw, 3rem); }
}

@media (max-width: 520px) {
  .heo-page-hero { padding: .85rem .75rem !important; }
  .heo-page-hero > :where(.heo-breadcrumbs, .heo-eyebrow, .wp-block-post-title, .wp-block-query-title, h1, p, .wp-block-post-excerpt, .wp-block-term-description) {
    width: 100% !important;
  }
  .heo-hero-columns { padding-block: 1.65rem; }
  .heo-hero-index {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-top: .35rem;
  }
  .heo-index-item { min-height: 0; }
  .heo-index-item:nth-child(odd) {
    padding-right: .65rem;
    border-right: 1px solid rgba(255,255,255,.15);
  }
  .heo-index-item:nth-child(even) { padding-left: .65rem; }
  .heo-index-item a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }
  .heo-content-shell { padding-block: 1.35rem 2rem; }
  .heo-quick-routes { padding-block: 1.15rem; }
  .heo-directory-intro { padding: 1.35rem 1rem; }
  .heo-contact-cta { padding-block: 1.6rem; }
}

@media (min-width: 360px) and (max-width: 520px) {
  .heo-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
  .heo-hero-actions .wp-block-button,
  .heo-hero-actions .wp-block-button__link { width: auto; }
  .heo-hero-actions .wp-block-button__link {
    height: 100%;
    padding-inline: .65rem;
    font-size: .82rem;
  }
  .heo-hero-summary { font-size: 1rem !important; }
}

@media (max-width: 340px) {
  .heo-page-hero { padding-inline: .625rem !important; }
  .heo-page-hero > :where(.wp-block-post-title, .wp-block-query-title, h1) { font-size: 1.65rem !important; }
  .heo-hero-title,
  .has-hero-font-size { font-size: 1.95rem !important; }
  .heo-hero-index { grid-template-columns: minmax(0, 1fr) !important; }
  .heo-index-item:nth-child(odd),
  .heo-index-item:nth-child(even) {
    padding-inline: 0;
    border-right: 0;
  }
  .heo-contact-strip { gap: .15rem .45rem; }
}
