/*
 * Waymont 02 — site styles
 *
 * 01. Colour tokens
 * 02. Spacing tokens
 * 03. Setup
 * 04. Typography
 * 05. Spacing and layout
 * 06. Utilities and controls
 * 07. Header and navigation
 * 08. Homepage
 * 09. Shared cards and content
 * 10. Call to action
 * 11. Interior pages
 * 12. About page
 * 13. Contact page
 * 14. Projects page
 * 15. Products page
 * 16. Expertise page
 * 17. Supporting page components
 * 18. Footer
 * 19. Motion and accessibility
 * 20. Authorised visual-grid helper
 */

/*------------------------------------*\
  #COLOUR-TOKENS
\*------------------------------------*/

:root {
  --ink: #050505;
  --paper: #fff;
  --surface: #f6f5f3;
  --surface-dark: #222;
  --blue: rgb(0, 112, 150);
  --blue-soft: #bbb6ff;
  --visual-grid: 255 216 77;
  --line: #d8d8d4;
  --muted: #555;
}

/*------------------------------------*\
  #SPACING-TOKENS
\*------------------------------------*/

:root {
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 20px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 48px;
  --padding-sm: 16px;
  --padding-md: 15px;
  --padding-lg: 56px;
  --margin-sm: 16px;
  --margin-md: 15px;
  --margin-lg: 56px;
  --page-gutter: 16px;
  --content-gutter: 24px;
  --grid-gap: var(--space-2xs);
  --grid-column-half: calc((100vw - (2 * var(--padding-md)) - (3 * var(--grid-gap))) / 8);
  --nav-item-inline: 18px;
  --wm-height: 72px;
  --copy-width: 72rem;
  --button-block: 16px;
  --button-inline: 24px;
}

@media (min-width: 768px) {
  :root {
    --padding-sm: 24px;
    --padding-md: 30px;
    --padding-lg: 88px;
    --margin-sm: 24px;
    --margin-md: 30px;
    --margin-lg: 88px;
    --page-gutter: 28px;
    --content-gutter: 48px;
    --grid-gap: var(--space-sm);
    --grid-column-half: calc((100vw - (2 * var(--padding-md)) - (7 * var(--grid-gap))) / 16);
  }
}

@media (min-width: 1200px) {
  :root {
    --padding-md: 4.1666666667vw;
    --padding-lg: 112px;
    --margin-md: 4.1666666667vw;
    --margin-lg: 112px;
    --page-gutter: 40px;
    --content-gutter: 72px;
    --grid-column-half: calc((100vw - (2 * var(--padding-md)) - (11 * var(--grid-gap))) / 24);
    --nav-item-inline: 36px;
  }
}

/*------------------------------------*\
  #SETUP
\*------------------------------------*/

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: inherit; }

body {
  background: var(--surface);
  font-size: 1.6rem;
}

body, p, h1, h2, h3, h4, h5, h6 { margin-block-start: 0; }

/*------------------------------------*\
  #TYPOGRAPHY
\*------------------------------------*/

.small-text p {
  font-size: 1.4rem !important;
  line-height: 1.6 !important;
}

p, td, li { font-size: clamp(1.5rem, 2.5vw, 1.7rem); line-height: 1.7; }
p.elementor-heading-title { line-height: 1.7; }
h6 { font-size: 1.4rem; line-height: 2.4rem; text-transform: uppercase; letter-spacing: 1.6px; }
h5, h5.elementor-heading-title { font-size: 1.8rem; line-height: 3.2rem; }
h4 { font-size: 2rem; line-height: 3.2rem; }
h3, h3.elementor-heading-title { font-size: 2.8rem; line-height: 4.2rem; }
h2 { font-size: clamp(2.2rem, 2.8vw, 4.6rem); line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 5.4vw, 5.4rem); line-height: 1.2; }

.large h2 {
  font-size: clamp(2.8rem, 5.4vw, 5.4rem) !important;
  line-height: 1.3 !important;
}

.hero h1,
.hero h2 {
  font-size: 9vw !important;
  line-height: 11vw !important;
}

@media only screen and (min-width: 768px) {
  .hero h1,
  .hero h2 {
    font-size: 7vw !important;
    line-height: 9vw !important;
  }
}

@media only screen and (min-width: 1024px) {
  .hero h1,
  .hero h2 {
    font-size: 7.7rem !important;
    line-height: 8.2rem !important;
  }
}

a { color: inherit; }

/*------------------------------------*\
  #SPACING-AND-LAYOUT
\*------------------------------------*/

.wm-site-shell { margin-inline: auto; max-width: 1680px; width: calc(100% - (2 * var(--page-gutter))); }
.wm-home { max-width: none; overflow-x: clip; width: 100%; }

.wm-section { padding: var(--padding-lg) 0; }

.section-heading {
  gap: var(--space-xs);
  padding-inline: var(--padding-md);
}

.section-heading::after { content: none; }

/*------------------------------------*\
  #UTILITIES-AND-CONTROLS
\*------------------------------------*/

/* Shared square CTA treatment. */
.wm-button.elementor-widget-button .elementor-button {
  background: var(--button-bg, var(--ink));
  border: 0;
  border-radius: 0;
  color: var(--button-color, var(--paper));
  min-height: 48px;
  outline: 0;
  padding: var(--button-block) var(--button-inline);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wm-button.elementor-widget-button .elementor-button:is(:hover, :focus-visible) {
  background: var(--button-hover-bg, var(--blue));
  color: var(--paper);
}

.wm-button.elementor-widget-button .elementor-button:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }
.wm-button.elementor-widget-button .elementor-button:active { transform: scale(0.97); }
.wm-button--primary { --button-bg: var(--blue); --button-hover-bg: var(--ink); }
.wm-button--light,
.wm-button--inverse { --button-bg: var(--paper); --button-color: var(--ink); }

/*------------------------------------*\
  #HEADER-AND-NAVIGATION
\*------------------------------------*/
.wm-header {
  left: var(--padding-md);
  min-height: var(--wm-height);
  position: fixed;
  right: 0;
  top: 0;
  width: calc(100% - var(--padding-md));
  z-index: 100;
}

.wm-header .header-layout {
  gap: 32px;
  min-height: var(--wm-height);
  padding: 0 0 0 var(--grid-column-half);
  width: 100%;
}

body.admin-bar .wm-header { top: 32px; }

.wm-header .logo { flex: 0 0 auto; width: auto; }
.wm-header .logo-link { align-items: center; display: flex; gap: 10px; text-decoration: none; }
.wm-header .logo .wm-icon { flex: 0 0 42px; width: 42px; }
.wm-header .logo .wordmark { flex: 0 0 102px; width: 102px; }

.wm-header .logo img {
  display: block;
  filter: brightness(0) invert(1);
  height: auto;
  width: 100%;
}

.wm-header .nav {
  background: transparent;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
}

.wm-header .nav a,
.wm-header .nav .elementor-item {
  align-items: center;
  border: 0;
  display: flex;
  color: var(--paper);
  min-height: var(--wm-height);
  padding: 0 var(--nav-inline-padding, var(--nav-item-inline));
  transform: none !important;
  transition: background-color 180ms ease, color 180ms ease;
}

.wm-header .nav .elementor-nav-menu--main .elementor-item::before,
.wm-header .nav .elementor-nav-menu--main .elementor-item::after { display: none; }

.wm-header .nav .current-menu-item > a,
.wm-header .nav .current_page_item > a,
.wm-header .nav a:is(:hover, :focus) {
  background: rgb(0 0 0 / 12%);
  color: var(--paper);
  padding: 0 var(--nav-inline-padding, var(--nav-item-inline));
  transform: none !important;
}

.wm-header .nav .elementor-nav-menu--main .elementor-nav-menu > li:last-child > a {
  --nav-inline-padding: var(--padding-md);
  background: var(--paper);
  color: var(--ink);
}

.wm-header .nav .elementor-nav-menu--main .elementor-nav-menu > li:last-child > a:is(:hover, :focus-visible) {
  background: var(--ink);
  color: var(--paper);
}

/* Responsive adjustments. */

@media (max-width: 1023px) {
  .wm-header .nav { background: transparent; display: block !important; flex: 0 0 auto; opacity: 1 !important; padding: 0; position: absolute; right: var(--content-gutter); top: 17px; visibility: visible !important; z-index: 2; }

  .wm-header .nav .elementor-nav-menu--main { display: none !important; }

  body .wm-header .nav .elementor-menu-toggle { align-items: center; background: var(--paper); border-radius: 0; color: var(--ink); display: flex !important; height: 48px !important; justify-content: center; opacity: 1 !important; visibility: visible !important; width: 48px !important; }

  .wm-header .nav .elementor-menu-toggle svg { display: block !important; fill: currentColor; height: 20px; width: 20px; }

  .wm-header .nav .elementor-nav-menu--dropdown { background: var(--paper); margin-top: 14px; }

  .wm-header .nav .elementor-nav-menu--dropdown a { color: var(--ink); padding: 16px 20px !important; }

  .wm-header .nav .elementor-nav-menu--dropdown a:is(:hover, :focus-visible) { background: #efefed; color: var(--blue); }
}

@media (max-width: 767px) {
  body.admin-bar .wm-header { top: 46px; }

  .wm-header .header-layout { align-items: center; }

  .wm-header .logo .wm-icon { flex-basis: 34px; width: 34px; }

  .wm-header .logo .wordmark { flex-basis: 88px; width: 88px; }
}

/*------------------------------------*\
  #HOMEPAGE
\*------------------------------------*/

/*------------------------------------*\
  #HOME-HERO
\*------------------------------------*/
.wm-hero {
  --hero-control-gap: 80px;
  --hero-height: max(620px, calc(100svh - (var(--wm-height) * 2)));
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --padding-top: 0;
  isolation: isolate;
  min-height: var(--hero-height);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.wm-hero .kinetic-grid { display: none; }

.wm-hero .hero-slides,
.wm-hero .hero-slide,
.wm-hero .hero-slide .elementor-widget-container,
.wm-hero .hero-slide img {
  display: block;
  height: var(--hero-height);
  min-height: 0;
  width: 100%;
}

.wm-hero .hero-slides {
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --padding-top: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}
.wm-hero .hero-slide {
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wm-hero .hero-slide:first-child { position: relative; }
.wm-hero .hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.wm-hero .hero-slides::after {
  background: linear-gradient(90deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 16%) 54%, rgb(0 0 0 / 48%) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}
.wm-hero .hero-slide img { object-fit: cover; }

.wm-hero .content {
  bottom: var(--wm-height);
  gap: 0;
  justify-content: flex-end;
  left: var(--content-gutter);
  position: absolute;
  right: var(--content-gutter);
  top: calc(var(--wm-height) + var(--padding-md));
  width: auto;
  z-index: 2;
}

.wm-hero .title {
  margin-bottom: auto;
  max-width: 760px;
}

.wm-hero .title .elementor-heading-title strong { color: inherit; }
.wm-hero .hero-info {
  align-self: flex-end;
  gap: 22px;
  margin-right: calc(var(--content-gutter) * -1);
  max-width: 760px;
  min-width: 0;
  width: min(48vw, 760px);
}
.wm-hero .hero-info > .text {
  --container-widget-flex-grow: 0;
  --container-widget-width: 420px;
  align-self: flex-start;
  max-width: 420px !important;
  width: min(100%, 420px);
}

.wm-hero .text strong { color: inherit; }
.wm-hero .wm-button { align-self: flex-start; --button-bg: var(--paper); --button-color: var(--ink); --button-hover-bg: var(--ink); }

.wm-hero .hero-controls {
  bottom: 0;
  min-height: var(--wm-height);
  position: absolute;
  right: 0;
  width: min(48vw, 760px);
  z-index: 3;
}

.wm-hero .hero-controls .elementor-widget-container { height: 100%; }
.wm-hero .hero-control-panel {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) auto;
  height: var(--wm-height);
  min-height: var(--wm-height);
  padding: 0 var(--padding-md) 0 36px;
}
.wm-hero .hero-progress { align-items: center; display: flex; gap: 18px; }
.wm-hero .hero-progress button {
  appearance: none;
  background: #c9c9c9;
  border: 0;
  cursor: pointer;
  height: 6px;
  padding: 0;
  transition: background-color 180ms ease, flex-grow 360ms ease;
  width: 52px;
}
.wm-hero .hero-progress button.is-active { background: var(--ink); flex-grow: 1; }
.wm-hero .hero-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 64px;
}
.wm-hero .hero-toggle svg { display: block; fill: currentColor; height: 22px; width: 22px; }
.wm-hero .hero-toggle-icon {
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66% 100%);
  display: block;
  height: 18px;
  width: 12px;
}
.wm-hero .hero-progress button:focus-visible,
.wm-hero .hero-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .wm-hero .hero-slide,
  .wm-hero .hero-progress button { transition: none; }
}

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-hero .content {
      column-gap: var(--grid-gap);
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
      grid-template-rows: minmax(0, 1fr) auto;
      left: 0;
      padding: 0 var(--padding-md);
      right: 0;
    }

  .wm-hero .title {
      align-self: end;
      grid-column: 1 / 6;
      grid-row: 1;
      padding-bottom: var(--padding-sm);
      max-width: none;
    }

  .wm-hero .hero-info {
      grid-column: 5 / -1;
      grid-row: 2;
      margin-right: 0;
      max-width: none;
      padding: 0 0 var(--hero-control-gap);
      width: auto;
    }

  .wm-hero .hero-controls {
      left: 0;
      right: 0;
      width: 100%;
    }

  .wm-hero .hero-controls .elementor-widget-container {
      display: grid;
      gap: var(--grid-gap);
      grid-template-columns: repeat(8, minmax(0, 1fr));
      padding-inline: var(--padding-md);
    }

  .wm-hero .hero-control-panel {
      grid-column: 5 / -1;
      margin-right: calc(var(--padding-md) * -1);
    }
}

@media (min-width: 1024px) {
  .wm-hero .content,
  .wm-hero .hero-controls .elementor-widget-container {
      grid-template-columns: repeat(12, minmax(0, 1fr));
    }

  .wm-hero .title { grid-column: 1 / 8; }

  .wm-hero .hero-info,
  .wm-hero .hero-control-panel { grid-column: 8 / -1; }
}

@media (max-width: 767px) {
  .wm-hero { --hero-height: max(576px, calc(100svh - (var(--wm-height) * 2))); padding: 0; }

  .wm-hero .hero-slides,
  .wm-hero .hero-slide,
  .wm-hero .hero-slide .elementor-widget-container,
  .wm-hero .hero-slide img { height: var(--hero-height); min-height: 0; }

  .wm-hero .content { left: 40px; max-width: calc(100% - 68px); overflow: hidden; right: 28px; }

  .wm-hero .title { margin-left: 0; }

  .wm-hero .hero-info { align-self: flex-start; gap: 14px; margin-right: 0; max-width: 288px; width: 100%; }

  .wm-hero .hero-info > .text {
      --container-widget-width: 26ch;
      max-width: 26ch !important;
      width: min(100%, 26ch);
    }

  .wm-hero .text .elementor-heading-title { overflow-wrap: anywhere; }

  .wm-hero .wm-button { align-self: flex-start; }

  .wm-hero .hero-controls { width: 100%; }

  .wm-hero .hero-control-panel { gap: var(--space-md); padding-left: 22px; }

  .wm-hero .hero-progress { gap: 10px; }

  .wm-hero .hero-progress button { height: 5px; width: 28px; }
}

/*------------------------------------*\
  #HOME-OVERVIEW
\*------------------------------------*/
.wm-overview {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1fr;
  min-height: 520px;
  padding: var(--padding-lg) var(--padding-md);
  width: 100%;
}

.wm-overview .wm-eyebrow { align-self: start; }
.wm-overview h2.elementor-heading-title {
  max-width: 980px;
}

.wm-overview .wm-button { --button-bg: var(--blue); --button-color: var(--paper); --button-hover-bg: var(--ink); }

.wm-standards {
  min-height: var(--wm-height);
  padding-inline: var(--padding-md);
  width: 100%;
}

.wm-standards .standard {
  border: 0;
  flex: 1 1 100%;
  justify-content: flex-start;
  padding: 18px 12px;
}

.wm-standards .standard + .standard { border-top: 1px solid rgb(255 255 255 / 24%); }
.wm-standards .icon { display: none; }
/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-overview {
      align-content: start;
      column-gap: var(--grid-gap);
      grid-template-columns: repeat(8, minmax(0, 1fr));
      min-height: 620px;
      padding: calc(var(--padding-lg) * 1.25) var(--padding-md);
    }

  .wm-overview .wm-eyebrow { grid-column: 1 / 3; grid-row: 1; justify-self: start; }

  .wm-overview > :not(.wm-eyebrow):not(.wm-button) { align-self: start; grid-column: 3 / -1; grid-row: 1; }

  .wm-overview > .wm-button { align-self: end; grid-column: 1 / 3; grid-row: 1; justify-self: start; }

  .wm-standards { height: var(--wm-height); }

  .wm-standards .standard { flex-basis: 20%; justify-content: center; padding-block: 0; }

  .wm-standards .standard + .standard { border-left: 1px solid rgb(255 255 255 / 24%); border-top: 0; }
}

@media (min-width: 1024px) {
  .wm-overview { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .wm-overview .wm-eyebrow,
  .wm-overview > .wm-button { grid-column: 1 / 4; }

  .wm-overview > :not(.wm-eyebrow):not(.wm-button) { grid-column: 4 / 12; }
}

/*------------------------------------*\
  #SHARED-CARDS-AND-CONTENT
\*------------------------------------*/

/* Shared cards and listing surfaces. */
.wm-home .card-grid,
.benefit-grid,
.office-grid,
.contact-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-auto-rows: auto;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding-inline: var(--padding-md);
}

.wm-home .card-grid::before,
.wm-home .card-grid::after,
.benefit-grid::before,
.benefit-grid::after,
.office-grid::before,
.office-grid::after,
.contact-grid::before,
.contact-grid::after,
.wm-feature .wm-feature-slide::before,
.wm-feature .wm-feature-slide::after,
.wm-footer .columns::before,
.wm-footer .columns::after,
.split-section::before,
.split-section::after,
.single-layout::before,
.single-layout::after {
  display: none;
}

.wm-card,
.wm-loop-card,
.benefit,
.office,
.contact-card {
  background: var(--paper);
  border: 0;
  min-width: 0;
  overflow: hidden;
}

.wm-card { border-top: 4px solid var(--blue); transition: background-color 220ms ease, transform 220ms ease; }
.wm-card:is(:hover, :focus-within) { background: #ecebe7; transform: translateY(-6px); }

.wm-card > .wm-icon {
  background: none;
  border-radius: 0;
  margin: var(--margin-sm) var(--margin-sm) 0;
  padding: 0;
}

.wm-card > .wm-icon img { filter: saturate(180%); }

.wm-card .media .elementor-widget-container,
.wm-card .media img,
.wm-loop-card .media,
.wm-loop-card .media .elementor-widget-container,
.wm-loop-card .media img {
  display: block;
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.wm-card .content,
.wm-loop-card .content {
  flex: 1;
  gap: 14px;
  min-width: 0;
  padding: var(--padding-sm);
}

.wm-card .content > .wm-button,
.wm-loop-card .content > .wm-button { margin-top: auto; padding-top: var(--padding-sm); }

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-home .card-grid.two-columns,
  .benefit-grid,
  .office-grid,
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*------------------------------------*\
  #HOME-EXPERTISE
\*------------------------------------*/

.wm-expertise {
  overflow: hidden;
  padding: 0;
}

.wm-expertise .section-heading {
  min-height: 360px;
  padding: var(--padding-lg) var(--padding-md);
}

.wm-expertise .wm-section-title .elementor-heading-title { max-width: 720px; }

.expertise-stories { gap: 0; padding: 0; }
.expertise-stories > .expertise-label { padding: var(--padding-md); }
.expertise-story {
  border-top: 1px solid rgb(255 255 255 / 34%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 620px;
  padding: 0;
}
.expertise-story .content { gap: 28px; justify-content: center; padding: var(--padding-lg) var(--padding-md); }
.expertise-story .title .elementor-heading-title { max-width: 700px; }
.expertise-story .text { max-width: 600px; }
.expertise-story .media,
.expertise-story .media .elementor-widget-container,
.expertise-story .media img { display: block; height: 100%; min-height: 420px; width: 100%; }
.expertise-story .media { border-top: 1px solid rgb(255 255 255 / 34%); padding: var(--padding-sm); }
.expertise-story .media img { object-fit: cover; }
.expertise-pagination { display: none; }

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-expertise .section-heading {
      column-gap: var(--grid-gap);
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
      min-height: 420px;
    }

  .wm-expertise .section-heading > * { grid-column: 1 / 6; }

  .expertise-story {
      column-gap: var(--grid-gap);
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }

  .expertise-story .content { grid-column: 1 / 5; padding-right: 0; }

  .expertise-story .media { border-left: 1px solid rgb(255 255 255 / 34%); border-top: 0; grid-column: 5 / -1; padding: var(--padding-md); }
}

@media (min-width: 1024px) {
  .wm-expertise .section-heading,
  .expertise-story { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .wm-expertise .section-heading > * { grid-column: 1 / 8; }

  .expertise-story .content { grid-column: 1 / 7; }

  .expertise-story .media { grid-column: 8 / -1; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .wm-expertise { overflow: visible; }

  .wm-expertise .expertise-stories {
      background: var(--blue);
      display: grid;
      grid-template: 1fr / 1fr;
      height: calc((100svh - var(--wm-height)) * var(--expertise-track-length, 3.5));
      overflow: visible;
      position: relative;
    }

  .wm-expertise .expertise-story {
      --expertise-media-scale: 1;
      --expertise-media-y: 100%;
      align-self: start;
      background: transparent;
      grid-area: 1 / 1;
      height: calc(100svh - var(--wm-height));
      min-height: calc(100svh - var(--wm-height));
      overflow: hidden;
      padding-inline: var(--padding-md);
      pointer-events: none;
      position: sticky;
      top: var(--wm-height);
    }

  .wm-expertise .expertise-stories > .expertise-label {
      align-self: start;
      box-sizing: border-box;
      grid-area: 1 / 1;
      height: calc(100svh - var(--wm-height));
      margin: 0;
      padding: var(--padding-md) 0 0 var(--padding-md);
      pointer-events: none;
      position: sticky;
      top: var(--wm-height);
      width: 100%;
      z-index: 6;
    }

  .wm-expertise .expertise-story .content > * {
      opacity: 0;
      transition: opacity 360ms ease-out;
      will-change: opacity;
    }

  .wm-expertise .expertise-story .content {
      padding-left: 0;
    }

  .wm-expertise .expertise-story.is-active .content > * {
      opacity: 1;
      transition-delay: 220ms;
      transition-duration: 760ms;
      transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
    }

  .wm-expertise .expertise-story .media {
      border-left: 0;
      clip-path: inset(var(--padding-md) 0 var(--padding-md) 0);
      overflow: hidden;
      padding: 0;
      position: relative;
    }

  .wm-expertise .expertise-pagination {
      bottom: var(--padding-md);
      display: flex;
      flex-direction: column;
      gap: var(--grid-gap);
      height: auto;
      left: calc(58.3333333333% - (var(--padding-md) * 0.1666666667) - (var(--grid-gap) * 0.4166666667));
      pointer-events: none;
      position: absolute;
      top: var(--padding-md);
      transform: translateX(-100%);
      width: 6px;
      z-index: 5;
    }

  .wm-expertise .expertise-pagination span {
      background: rgb(255 255 255 / 48%);
      flex: 0 0 52px;
      opacity: 0.72;
      transition:
        background-color 420ms cubic-bezier(0.65, 0, 0.35, 1),
        flex-basis 760ms cubic-bezier(0.65, 0, 0.35, 1),
        opacity 420ms cubic-bezier(0.65, 0, 0.35, 1);
      will-change: flex-basis;
      width: 6px;
    }

  .wm-expertise .expertise-pagination span.is-active {
      background: var(--paper);
      flex-basis: calc(100% - 104px - (var(--grid-gap) * 2));
      opacity: 1;
    }

  .wm-expertise .expertise-story .media .elementor-widget-container {
      transform: translateY(var(--expertise-media-y)) scale(var(--expertise-media-scale));
      transform-origin: center;
      will-change: transform;
    }

  .wm-expertise .expertise-story.is-active { pointer-events: auto; }

  body.admin-bar .wm-expertise .expertise-story { top: calc(var(--wm-height) + 32px); }

  body.admin-bar .wm-expertise .expertise-stories > .expertise-label { top: calc(var(--wm-height) + 32px); }

  .wm-expertise .expertise-story:nth-child(1) { z-index: 3; }

  .wm-expertise .expertise-story:nth-child(2) { z-index: 2; }

  .wm-expertise .expertise-story:nth-child(3) { z-index: 1; }
}

/*------------------------------------*\
  #FEATURED-PROJECT
\*------------------------------------*/
.wm-feature {
  --feature-height: calc(var(--wm-height) * 9);
  overflow: hidden;
  padding: 0 var(--padding-sm);
  position: relative;
}

.wm-home .wm-feature .project-carousel.elementor-widget-loop-carousel {
  --arrow-prev-left-align: 100%;
  --arrow-prev-left-position: -104px;
  --arrow-prev-top-align: 100%;
  --arrow-prev-top-position: 0px;
  --arrow-prev-caption-spacing: 0px;
  --arrow-prev-translate-x: 0%;
  --arrow-prev-translate-y: 0%;
  --arrow-next-right-align: 0%;
  --arrow-next-right-position: 0px;
  --arrow-next-top-align: 100%;
  --arrow-next-top-position: 0px;
  --arrow-next-caption-spacing: 0px;
  --arrow-next-translate-x: 0%;
  --arrow-next-translate-y: 0%;
  min-width: 0;
  width: 100%;
}
.wm-feature .swiper-slide { height: auto; }

.wm-feature .wm-feature-slide {
  background: var(--paper);
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  height: 100%;
  padding: 0;
}

.wm-feature .media,
.wm-feature .media .elementor-widget-container,
.wm-feature .media img {
  display: block;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}

.wm-feature .content {
  background: var(--ink);
  gap: var(--space-lg);
  padding: var(--padding-md);
  position: relative;
  z-index: 2;
}

.wm-feature .wm-eyebrow { align-self: flex-start; }
.wm-feature .wm-button { --button-bg: var(--paper); --button-color: var(--ink); --button-hover-bg: var(--ink); }
.wm-feature::after { content: none; }
.wm-feature .project-carousel .elementor-swiper-button { display: none; }
.wm-feature .swiper-pagination {
  align-items: center;
  background: var(--surface);
  bottom: 0;
  display: flex;
  gap: 18px;
  height: var(--wm-height);
  left: 0;
  padding: 0 var(--padding-md);
  text-align: left;
  width: 100%;
}
.wm-feature .swiper-pagination .swiper-pagination-bullet {
  background: #c9c9c9;
  border-radius: 0;
  flex: 0 0 52px;
  height: 6px;
  margin: 0;
  opacity: 1;
  transition: background-color 180ms ease, flex-grow 360ms ease;
  width: 52px;
}
.wm-feature .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--ink);
  flex-grow: 1;
}
.wm-feature .swiper-pagination .swiper-pagination-bullet:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-feature {
      margin-left: var(--padding-md);
      padding-inline: 0;
      width: calc(100% - var(--padding-md));
    }

  .wm-feature .wm-feature-slide {
      column-gap: var(--grid-gap);
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }

  .wm-feature .media,
  .wm-feature .media .elementor-widget-container,
  .wm-feature .media img { min-height: var(--feature-height); }

  .wm-feature .media {
      grid-column: 1 / 5;
      grid-row: 1;
      position: relative;
      width: 100%;
      z-index: 1;
    }

  .wm-feature .media::after {
      background: rgb(5 5 5 / 58%);
      content: "";
      inset: 0;
      pointer-events: none;
      position: absolute;
      z-index: 1;
    }

  .wm-feature .content {
      align-self: center;
      grid-column: 5 / -1;
      grid-row: 1;
      margin: var(--margin-md) 0;
      padding: var(--padding-md) var(--padding-md) calc(var(--padding-md) + var(--wm-height));
    }

  .wm-feature .swiper-pagination {
      bottom: 0 !important;
      left: calc(50vw + (var(--grid-gap) * 0.5) - var(--padding-md));
      right: 0;
      top: auto !important;
      transform: none;
      width: auto;
    }
}

@media (min-width: 1024px) {
  .wm-feature .wm-feature-slide { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .wm-feature .media { grid-column: 1 / 7; }

  .wm-feature .content {
      grid-column: 7 / -1;
      padding-left: calc((100vw - (8 * var(--padding-md)) + var(--grid-gap)) / 12);
    }

  .wm-feature .swiper-pagination {
      left: calc((14 * var(--grid-column-half)) + (7 * var(--grid-gap)));
    }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  body:not(.elementor-editor-active) .wm-feature { overflow: visible; }

  body:not(.elementor-editor-active) .wm-feature::after {
      background: var(--ink);
      content: "";
      display: block;
      height: var(--wm-height);
      inset: 0 auto auto calc(var(--padding-md) * -1);
      pointer-events: none;
      position: absolute;
      width: var(--padding-md);
      z-index: 6;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel {
      min-height: var(--feature-height);
      position: relative;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper,
  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-wrapper {
      height: var(--feature-height);
      min-height: var(--feature-height);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper {
      overflow: visible;
      position: relative;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-wrapper {
      transform: none !important;
      transition: none !important;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide {
      height: var(--feature-height) !important;
      inset: 0;
      margin: 0 !important;
      pointer-events: none;
      position: absolute;
      transform: none !important;
      width: 100% !important;
      z-index: 1;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-prev { z-index: 2; }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-active {
      pointer-events: auto;
      z-index: 3;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .wm-feature-slide {
      background: transparent;
      height: var(--feature-height);
      position: relative;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .content {
      background: transparent;
      position: static;
      z-index: 3;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .wm-eyebrow {
      bottom: 0;
      height: max-content;
      left: calc(var(--padding-md) * -0.5);
      opacity: 0;
      pointer-events: none;
      position: absolute;
      top: auto;
      transform: translateX(-50%) rotate(180deg);
      transition: opacity 260ms ease;
      width: max-content;
      writing-mode: vertical-rl;
      z-index: 6;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-active .wm-eyebrow {
      opacity: 1;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .content > :not(.wm-eyebrow) {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 420ms ease, transform 620ms cubic-bezier(.22, 1, .36, 1);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-prev .content > :not(.wm-eyebrow) {
      transform: translateY(-8px);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-active .content > :not(.wm-eyebrow) {
      opacity: 1;
      transform: translateY(0);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-active .content > :nth-child(2) { transition-delay: 70ms; }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-active .content > :nth-child(3) { transition-delay: 120ms; }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-active .content > :nth-child(4) { transition-delay: 170ms; }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .media {
      grid-column: 1 / -1;
      grid-row: 1;
      overflow: hidden;
      width: 100%;
      z-index: 1;
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .media,
  body:not(.elementor-editor-active) .wm-feature .project-carousel .media .elementor-widget-container,
  body:not(.elementor-editor-active) .wm-feature .project-carousel .media img {
      height: var(--feature-height) !important;
      min-height: var(--feature-height);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .media img {
      transform: translateX(102%);
      transition: transform 850ms cubic-bezier(.76, 0, .24, 1);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-prev .media img {
      transform: translateX(-12%);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-slide-active .media img {
      transform: translateX(0);
    }

  body:not(.elementor-editor-active) .wm-feature .project-carousel .swiper-pagination { z-index: 5; }
}

/*------------------------------------*\
  #HOME-PRODUCTS
\*------------------------------------*/

.wm-site-shell.wm-home .wm-section.wm-products,
body.wm-page--projects .wm-interior > .wm-products {
  overflow: hidden;
  padding-block: var(--padding-lg);
  position: relative;
}

body.wm-page--projects .wm-interior > .wm-products {
  --container-widget-width: 100vw;
  --width: 100vw;
  flex: 0 0 auto;
  margin-left: calc(50% - 50vw);
  max-width: none;
  width: 100vw;
}

.wm-products .section-heading { min-height: 300px; padding-inline: var(--padding-md); }
.wm-products .wm-section-title .elementor-heading-title { max-width: 740px; }
.wm-products .card-grid.three-columns {
  background: var(--ink);
  counter-reset: product;
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
  padding-inline: var(--padding-md);
}
.wm-products .product-card {
  --product-image-offset: calc(var(--wm-height) * 0.5);
  background: var(--ink);
  border: 0;
  counter-increment: product;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.wm-products a.product-card {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.wm-products a.product-card:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}
.wm-products .product-card::before {
  align-items: center;
  background: var(--surface-dark);
  color: var(--paper);
  content: "0" counter(product);
  display: flex;
  height: var(--wm-height);
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: var(--wm-height);
  z-index: 3;
}
.wm-products .product-card:is(:hover, :focus-visible) { background: var(--ink); transform: none; }
.wm-products .product-card .media,
.wm-products .product-card .media .elementor-widget-container,
.wm-products .product-card .media img { display: block; width: 100%; }
.wm-products .product-card .media {
  aspect-ratio: auto;
  background: var(--ink);
  box-sizing: border-box;
  height: calc(var(--wm-height) * 4);
  min-width: 0;
  overflow: hidden;
  padding: var(--product-image-offset) 0 0 var(--product-image-offset);
  position: relative;
  width: 100%;
}
.wm-products .product-card .media::before {
  background: var(--surface-dark);
  content: "";
  height: 78%;
  left: 0;
  position: absolute;
  top: 0;
  width: calc(75% - (var(--grid-gap) / 4));
}
.wm-products .product-card .media .elementor-widget-container {
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}
.wm-products .product-card .media img {
  height: 100%;
  object-fit: cover;
  scale: 1.001;
  transition: scale 600ms cubic-bezier(.2,.75,.25,1), filter 300ms ease;
}
.wm-products .product-card .content {
  background: var(--ink);
  gap: var(--padding-sm);
  min-height: calc(var(--wm-height) * 3);
  padding: var(--padding-sm) 0;
}
.wm-products .product-card .card-link {
  margin-top: auto;
  padding-top: var(--padding-sm);
}
.wm-products .product-card .card-link .elementor-heading-title {
  align-items: center;
  display: inline-flex;
  gap: 18px;
  margin: 0;
}
.wm-products .product-card .card-link .elementor-heading-title::after {
  background: currentColor;
  content: "";
  flex: 0 0 22px;
  height: 22px;
  -webkit-mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
  width: 22px;
}
.wm-products .product-card:is(:hover, :focus-visible) .card-link .elementor-heading-title::after { transform: translateX(10px); }
.wm-products .product-card:is(:hover, :focus-visible) .media img { filter: saturate(1.1); scale: 1.05; }

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-products .section-heading {
      column-gap: var(--grid-gap);
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }

  .wm-products .section-heading > * { grid-column: 1 / 6; }

  .wm-products .card-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .wm-site-shell.wm-home .wm-section.wm-products::before {
      background: var(--blue);
      content: "";
      height: var(--wm-height);
      left: calc(50% + (var(--grid-gap) * 0.5));
      position: absolute;
      right: 0;
      top: 0;
    }

  .wm-products .section-heading { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .wm-products .section-heading > * { grid-column: 1 / 8; }

  .wm-products .card-grid.three-columns { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .wm-products .product-card { grid-column: span 4; }
}

/*------------------------------------*\
  #HOME-CAREERS
\*------------------------------------*/

.wm-careers {
  overflow: hidden;
  padding-block: var(--padding-lg);
}
.wm-careers .section-heading { padding-bottom: clamp(16px, 2vw, 24px); }
.wm-careers .card-grid { gap: 0; }
.wm-home .wm-careers .card-grid > .wm-card {
  background-color: var(--ink);
  border: 0;
  cursor: pointer;
  isolation: isolate;
  min-height: clamp(390px, 35vw, 560px);
  position: relative;
  text-decoration: none;
  transform: none;
}
.wm-home .wm-careers .card-grid > .wm-card:first-child {
  background-image: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/careers-open-positions.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}
.wm-home .wm-careers .card-grid > .wm-card:nth-child(2) { background-color: var(--blue); }
.wm-careers .wm-card > .wm-icon {
  display: none;
}
.wm-careers .wm-card:nth-child(2)::after {
  background: rgb(255 255 255 / 10%);
  bottom: -14%;
  content: "";
  height: min(72%, 420px);
  -webkit-mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/logo-mark.svg") center / contain no-repeat;
  mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/logo-mark.svg") center / contain no-repeat;
  pointer-events: none;
  position: absolute;
  right: -4%;
  width: min(58%, 380px);
  z-index: -1;
}
.wm-careers .wm-card .content {
  gap: 18px;
  height: 100%;
  padding: clamp(32px, 4vw, 64px);
  position: relative;
  z-index: 1;
}
.wm-careers .wm-card .title { max-width: 11ch; }
.wm-careers .wm-card .text { max-width: 42ch; }
.wm-careers .wm-card .content > .card-link {
  margin-top: auto;
  padding-top: clamp(64px, 9vw, 140px);
}
.wm-careers .card-link .elementor-heading-title {
  align-items: center;
  display: inline-flex;
  gap: 18px;
  margin: 0;
}
.wm-careers .card-link .elementor-heading-title::after {
  background: currentColor;
  content: "";
  flex: 0 0 22px;
  height: 22px;
  -webkit-mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
  width: 22px;
}
.wm-home .wm-careers .card-grid > .wm-card:is(:hover, :focus-within) {
  background-color: #202020;
  transform: none;
}
.wm-home .wm-careers .card-grid > .wm-card:nth-child(2):is(:hover, :focus-within) {
  background-color: color-mix(in srgb, var(--blue) 88%, white);
}
.wm-careers .wm-card:is(:hover, :focus-visible) .card-link .elementor-heading-title::after { transform: translateX(10px); }
.wm-careers .wm-card:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: -3px; }

@media (min-width: 768px) {
  .wm-home .wm-careers .card-grid.two-columns { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-careers .section-heading {
      column-gap: var(--grid-gap);
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }

  .wm-careers .section-heading > * { grid-column: 1 / 6; }
}

@media (min-width: 1024px) {
  .wm-careers .section-heading { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .wm-careers .section-heading > * { grid-column: 1 / 8; }
}

/*------------------------------------*\
  #CALL-TO-ACTION
\*------------------------------------*/

.wm-cta {
  isolation: isolate;
  margin: 0;
  min-height: 480px;
  overflow: hidden;
  padding: calc(var(--padding-lg) * 1.25) var(--padding-md);
  position: relative;
  width: 100%;
}

.wm-interior .wm-cta {
  --container-widget-width: 100vw;
  --width: 100vw;
  flex: 0 0 auto;
  left: 0;
  margin-left: calc(50% - 50vw);
  max-width: none;
  min-width: 100vw;
  position: relative;
  width: 100vw;
}

.wm-site-shell .wm-cta::before {
  --wm-cta-mark-size: max(1100px, 300vw);
  background: rgb(255 255 255 / 9%);
  content: "";
  height: var(--wm-cta-mark-size);
  left: 50%;
  -webkit-mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/logo-mark.svg") center / contain no-repeat;
  mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/logo-mark.svg") center / contain no-repeat;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--wm-cta-mark-size);
  z-index: -1;
}

.wm-cta > * { position: relative; z-index: 1; }

.wm-cta h2.elementor-heading-title { max-width: 1000px; text-align: center; }
.wm-cta .text { max-width: 620px; text-align: center; }
.wm-cta > .wm-button { margin-top: 20px; }

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-cta { min-height: 560px; }

  .wm-site-shell .wm-cta::before { --wm-cta-mark-size: min(185vw, 3200px); }
}

/*------------------------------------*\
  #INTERIOR-PAGES
\*------------------------------------*/
.wm-interior { background: transparent; overflow: visible; }

body.wm-page--expertise {
  --wm-expertise-nav-height: calc(var(--wm-height) + 24px);
  background: var(--paper);
  padding-bottom: 0;
}

body.wm-page--expertise .wm-interior { overflow: visible; }

body.wm-page--expertise .wm-cta {
  --width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
  min-width: 100vw;
  width: 100vw;
}

body.wm-page--expertise .wm-page-hero {
  background-image: none;
  margin-left: calc(50% - 50vw);
  padding-bottom: calc(var(--padding-lg) + var(--wm-height));
  width: 100vw;
}

body.wm-page--expertise .wm-page-hero .text {
  bottom: 0;
  left: var(--content-gutter);
  max-width: none !important;
  position: absolute;
  right: auto;
  width: min(420px, calc(100% - (2 * var(--content-gutter))));
}

/*------------------------------------*\
  #PAGE-HEROES
\*------------------------------------*/

.wm-page-hero {
  background-image: none;
  gap: var(--space-md);
  margin-left: calc(50% - 50vw);
  min-height: 500px;
  padding: calc(var(--wm-height) + var(--padding-lg)) var(--content-gutter) calc(var(--padding-lg) + var(--wm-height));
  position: relative;
  width: 100vw;
}

.wm-single-hero {
  background-image: none;
  gap: var(--space-lg);
  min-height: clamp(430px, 56svh, 620px);
  padding: calc(var(--wm-height) + var(--padding-lg)) var(--content-gutter) var(--padding-lg);
  position: relative;
}

.wm-page-hero .title .elementor-heading-title {
  max-width: 1100px;
}

.wm-single-hero .title { margin-top: auto; max-width: 10ch; }

.wm-single-hero .title .elementor-heading-title { max-width: none; }

.wm-page-hero .text {
  background: var(--ink);
  bottom: 0;
  left: var(--content-gutter);
  max-width: none !important;
  padding: 18px 22px;
  position: absolute;
  right: auto;
  width: min(420px, calc(100% - (2 * var(--content-gutter))));
}

.wm-single-hero .text {
  align-self: flex-end;
  max-width: min(100%, 560px);
  padding: 0;
}

.wm-single-hero .text p:last-child { margin-bottom: 0; }

/*------------------------------------*\
  #ABOUT-PAGE
\*------------------------------------*/
html:has(body.wm-page--about),
body.wm-page--about {
  background: var(--ink);
}

body.wm-page--about .elementor .split-section.e-con {
  --e-con-grid-template-rows: auto;
  gap: var(--padding-md);
  grid-template-rows: auto;
  margin-left: calc(50% - 50vw);
  padding: var(--padding-lg) var(--content-gutter);
  width: 100vw;
}

body.wm-page--about .split-section .section-heading {
  gap: var(--space-2xs);
}

body.wm-page--about .split-section .wm-section-title .elementor-heading-title {
  max-width: 680px;
}

body.wm-page--about .split-section .prose {
  align-self: end;
  max-width: 680px;
}

body.wm-page--about .split-section .prose p {
  margin: 0;
}

body.wm-page--about .split-section .prose p + p {
  margin-top: 24px;
}

body.wm-page--about .elementor .office-grid.e-con {
  display: block;
  margin-left: calc(50% - 50vw);
  overflow: clip;
  padding: 0;
  width: 100vw;
}

body.wm-page--about .office {
  background: var(--ink);
  border: 0;
  color: var(--paper);
  isolation: isolate;
  justify-content: flex-end;
  min-height: 78svh;
  overflow: clip;
  padding: 0;
  position: relative;
  width: 100%;
}

body.wm-page--about .office::after {
  background: linear-gradient(90deg, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 48%) 44%, rgb(0 0 0 / 8%) 78%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

body.wm-page--about .office > .media {
  height: 116%;
  inset: -8% 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

body.wm-page--about .office > .media .elementor-widget-container,
body.wm-page--about .office > .media img {
  display: block;
  height: 100%;
  width: 100%;
}

body.wm-page--about .office > .media img {
  object-fit: cover;
  transform: translate3d(0, var(--office-parallax-y, 0), 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
}

body.wm-page--about .office > .content {
  align-self: stretch;
  gap: var(--space-md);
  justify-content: flex-end;
  min-height: inherit;
  padding: var(--padding-lg) var(--content-gutter);
  position: relative;
  width: min(760px, 100%);
  z-index: 2;
}

body.wm-page--about .office .wm-section-title .elementor-heading-title,
body.wm-page--about .office .elementor-widget-text-editor {
  color: inherit;
}

body.wm-page--about .office .text {
  color: rgb(255 255 255 / 82%);
  max-width: 620px;
}

body.wm-page--about .elementor .wm-history.e-con {
  gap: var(--padding-md);
  margin-left: calc(50% - 50vw);
  padding: var(--padding-lg) var(--content-gutter);
  width: 100vw;
}

body.wm-page--about .wm-history > .section-heading {
  gap: var(--space-2xs);
  padding: 0;
}

body.wm-page--about .elementor .history-grid.e-con {
  --display: flex;
  --e-con-grid-template-rows: auto;
  display: flex;
  flex-flow: row nowrap;
  gap: var(--grid-gap);
  margin-right: calc(-1 * var(--content-gutter));
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 0 var(--content-gutter) 24px 0;
  scroll-padding-inline: 0 var(--content-gutter);
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--blue) rgb(0 0 0 / 10%);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  width: calc(100% + var(--content-gutter));
}

body.wm-page--about .history-grid::-webkit-scrollbar {
  height: 4px;
}

body.wm-page--about .history-grid::-webkit-scrollbar-track {
  background: rgb(0 0 0 / 10%);
}

body.wm-page--about .history-grid::-webkit-scrollbar-thumb {
  background: var(--blue);
}

body.wm-page--about .history-item {
  border-top: 1px solid rgb(0 0 0 / 22%);
  flex: 0 0 min(82vw, 520px);
  gap: var(--space-lg);
  justify-content: space-between;
  min-height: calc(var(--wm-height) * 3);
  padding-top: 20px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.wm-page--about .history-item .text {
  max-width: 36ch;
}

body.wm-page--about .history-item .text p {
  margin: 0;
}

body.wm-page--about .elementor .wm-team.e-con {
  display: flex;
  gap: var(--space-xl);
  margin-left: calc(50% - 50vw);
  padding: var(--padding-lg) var(--padding-md);
  width: 100vw;
}

body.wm-page--about .wm-team > .section-heading {
  gap: var(--space-2xs);
  padding: 0;
}

body.wm-page--about .elementor .wm-team > .prose {
  align-self: auto;
  margin: 0;
  max-width: 76rem;
}

body.wm-page--about .wm-team > .wm-loop-grid {
  padding: 0;
}

body.wm-page--about .wm-team .elementor-loop-container {
  display: grid;
  gap: var(--padding-lg);
  grid-template-columns: 1fr !important;
}

body.wm-page--about .wm-team .team-card {
  background-color: #4a4949 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

body.wm-page--about .wm-team .team-card .content {
  padding: 40px 0 0;
}

body.wm-page--about .wm-team .team-card .prose p {
  margin: 0 0 1.2em;
}

body.wm-page--about .elementor > .elementor-widget-template {
  --width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
  min-width: 100vw;
  width: 100vw;
}

/* Responsive adjustments. */

@media (min-width: 1024px) {
  body.wm-page--about .elementor .office-grid.e-con {
      background: var(--paper);
    }

  body.wm-page--about .office {
      background: var(--paper);
      color: var(--ink);
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

  body.wm-page--about .office::after {
      display: none;
    }

  body.wm-page--about .office > .media {
      height: 100%;
      inset: 0 0 0 50%;
      overflow: hidden;
      width: 50%;
    }

  body.wm-page--about .office > .content {
      grid-column: 1;
      min-height: 100%;
      padding: var(--padding-lg) var(--padding-md);
      width: 100%;
    }

  body.wm-page--about .office .text {
      color: var(--muted);
    }

  body.wm-page--about .elementor .split-section.e-con {
      column-gap: var(--grid-gap);
      grid-template-columns: repeat(12, minmax(0, 1fr));
    }

  body.wm-page--about .split-section > .section-heading {
      grid-column: 1 / 7;
    }

  body.wm-page--about .split-section > .prose {
      grid-column: 7 / 12;
    }

  body.wm-page--about .history-item {
      flex-basis: calc((100% - var(--content-gutter) - var(--grid-gap)) / 2);
    }

  body.wm-page--about .wm-team .elementor-loop-container {
      display: grid;
      grid-template-columns: 1fr !important;
    }

  body.wm-page--about .elementor .wm-team.e-con {
      column-gap: var(--grid-gap);
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      row-gap: var(--space-xl);
    }

  body.wm-page--about .wm-team > .section-heading,
  body.wm-page--about .wm-team > .prose {
      grid-column: 1 / 8;
      max-width: none;
    }

  body.wm-page--about .wm-team > .wm-loop-grid {
      grid-column: 1 / -1;
    }

  body.wm-page--about .wm-team .e-loop-item {
      grid-column: 1 / -1;
    }

  body.wm-page--about .wm-team .team-card {
      align-items: stretch;
      display: grid;
      column-gap: var(--grid-gap);
      grid-template-columns: repeat(12, minmax(0, 1fr));
      grid-template-rows: auto auto;
      min-height: min(820px, calc(100svh - var(--wm-height)));
      padding: var(--padding-lg) 0 0;
      row-gap: clamp(36px, 5vw, 80px);
    }

  body.wm-page--about .wm-team .team-card .media {
      align-self: stretch;
      grid-column: 8 / 13;
      grid-row: 1 / 3;
    }

  body.wm-page--about .wm-team .team-card .content {
      display: contents;
    }

  body.wm-page--about .wm-team .team-card .title {
      align-self: end;
      grid-column: 1 / 8;
      grid-row: 1;
    }

  body.wm-page--about .wm-team .team-card .meta {
      grid-column: 1 / 3;
      grid-row: 2;
    }

  body.wm-page--about .wm-team .team-card .prose {
      grid-column: 3 / 8;
      grid-row: 2;
    }

  body.wm-page--about .wm-team .team-card .media,
  body.wm-page--about .wm-team .team-card .media .elementor-widget-container,
  body.wm-page--about .wm-team .team-card .media img {
      height: 100%;
      min-height: 680px;
    }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  body.wm-page--about .elementor .office-grid.e-con {
      display: grid;
      grid-template: 1fr / 1fr;
      height: calc((100svh - var(--wm-height)) * 2.35);
      overflow: visible;
    }

  body.wm-page--about .office {
      background: transparent;
      grid-area: 1 / 1;
      height: calc(100svh - var(--wm-height));
      min-height: 640px;
      position: sticky;
      top: var(--wm-height);
      z-index: 1;
    }

  body.admin-bar.wm-page--about .office {
      top: calc(var(--wm-height) + 32px);
    }

  body.wm-page--about .office:first-child {
      --office-content-opacity: 1;
    }

  body.wm-page--about .office + .office {
      --office-content-opacity: 0;
      z-index: 2;
    }

  body.wm-page--about .office > .media {
      will-change: transform;
    }

  body.wm-page--about .office + .office > .media {
      transform: translate3d(0, var(--office-media-y, 100%), 0);
    }

  body.wm-page--about .office > .content {
      opacity: var(--office-content-opacity);
      will-change: opacity;
    }
}

/*------------------------------------*\
  #CONTACT-PAGE
\*------------------------------------*/

body.wm-page--contact .wm-page-hero {
  align-content: end;
  display: grid;
  min-height: clamp(500px, 64svh, 680px);
  padding-bottom: var(--padding-lg);
}

body.wm-page--contact .wm-page-hero .text {
  background: transparent;
  bottom: auto;
  left: auto;
  max-width: 560px !important;
  padding: 0;
  position: static;
  width: auto;
}

body.wm-page--contact .contact-grid {
  align-items: stretch;
  gap: 0;
  grid-template-columns: 1fr;
  margin-left: calc(50% - 50vw);
  min-height: 0;
  padding: var(--padding-lg) var(--content-gutter);
  width: 100vw;
}

body.wm-page--contact .contact-card {
  background: transparent;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 28%);
  gap: var(--space-md);
  min-height: 0;
  overflow: visible;
  padding: var(--space-xl) 0;
}

body.wm-page--contact .contact-card .wm-section-title {
  margin-bottom: var(--space-sm);
}

body.wm-page--contact .contact-card .label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2xs);
  text-transform: uppercase;
}

body.wm-page--contact .contact-card p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  body.wm-page--contact .wm-page-hero {
    column-gap: var(--grid-gap);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  body.wm-page--contact .wm-page-hero .wm-eyebrow {
    grid-column: 1 / 5;
    grid-row: 1;
  }

  body.wm-page--contact .wm-page-hero .title {
    align-self: end;
    grid-column: 1 / 9;
    grid-row: 2;
  }

  body.wm-page--contact .wm-page-hero .text {
    align-self: end;
    grid-column: 9 / 13;
    grid-row: 2;
  }

  body.wm-page--contact .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.wm-page--contact .contact-card { padding: var(--space-xl); }
  body.wm-page--contact .contact-card:first-child { padding-left: 0; }
  body.wm-page--contact .contact-card:last-child { padding-right: 0; }
  body.wm-page--contact .contact-card + .contact-card { border-left: 1px solid rgb(255 255 255 / 28%); }
}

/*------------------------------------*\
  #PROJECTS-PAGE
\*------------------------------------*/
html:has(body.wm-page--projects),
body.wm-page--projects {
  background: var(--ink);
}

body.wm-page--projects .wm-interior {
  background: var(--paper);
}

.wm-listing { gap: var(--space-2xl); }
body.wm-page--projects .wm-listing {
  flex: 0 0 auto;
  gap: 0;
  margin-left: calc(50% - 50vw);
  max-width: none;
  min-width: 100vw;
  padding-bottom: 0;
  padding-top: 0;
  position: relative;
  width: 100vw;
}
body.wm-page--projects .wm-listing::before {
  background: var(--ink);
  content: "";
  height: var(--wm-height);
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100vw;
  z-index: 0;
}
body.wm-page--projects .wm-listing > .section-heading { display: none; }
body.wm-page--projects .wm-listing > .wm-loop-grid.wm_project {
  padding-inline: 0;
  padding-inline-end: var(--padding-md);
  padding-inline-start: var(--content-gutter);
  position: relative;
  z-index: 1;
}
.wm-loop-grid.wm_project .elementor-loop-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.wm-loop-grid.wm_project .e-loop-item { grid-column: span 4; }
.wm-loop-grid.wm_project .e-loop-item,
.wm-loop-grid.wm_project .e-loop-item > .elementor,
.wm-loop-grid.wm_project .project-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative;
}
.wm-loop-grid.wm_project a.project-card {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}
.wm-loop-grid.wm_project a.project-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 6px;
}
.wm-loop-grid.wm_project .project-card .media {
  overflow: hidden;
}
.wm-loop-grid.wm_project .project-card .media,
.wm-loop-grid.wm_project .project-card .media .elementor-widget-container,
.wm-loop-grid.wm_project .project-card .media img {
  height: clamp(300px, 24vw, 420px);
}
.wm-loop-grid.wm_project .project-card .media img {
  scale: 1.001;
  transition: filter 300ms ease, scale 600ms cubic-bezier(.2,.75,.25,1);
}
.wm-loop-grid.wm_project .project-card .title .elementor-heading-title {
  transition: color 220ms ease;
}
.wm-loop-grid.wm_project .project-card .content {
  align-self: flex-end;
  background: var(--paper);
  margin-top: calc(-1 * var(--wm-height));
  padding: var(--padding-sm);
  position: relative;
  width: 100%;
  z-index: 2;
}
.wm-loop-grid.wm_project .project-card > .project-arrow {
  align-self: flex-start;
  align-items: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 20%);
  border-radius: 50%;
  display: flex;
  height: var(--wm-height);
  justify-content: center;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: background-color 220ms ease;
  width: var(--wm-height);
  z-index: 3;
}
.wm-loop-grid.wm_project .project-card .project-arrow .elementor-widget-container {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}
.wm-loop-grid.wm_project .project-card .project-arrow .elementor-heading-title {
  display: block;
  height: 100%;
  min-height: 100%;
  overflow: visible;
  padding: 0;
  position: relative;
  text-indent: -9999px;
  white-space: nowrap;
  width: 100%;
}
.wm-loop-grid.wm_project .project-card .project-arrow .elementor-heading-title::before,
.wm-loop-grid.wm_project .project-card .project-arrow .elementor-heading-title::after {
  background: currentColor;
  content: "";
  height: 28px;
  left: 50%;
  -webkit-mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  position: absolute;
  top: 50%;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
  width: 28px;
}
.wm-loop-grid.wm_project .project-card .project-arrow .elementor-heading-title::before {
  transform: translate(-50%, -50%);
}
.wm-loop-grid.wm_project .project-card .project-arrow .elementor-heading-title::after {
  transform: translate(calc(-50% - var(--wm-height)), -50%);
}
.wm-loop-grid.wm_project .project-card:is(:hover, :focus-visible) {
  transform: translateY(-6px);
}
.wm-loop-grid.wm_project .project-card:is(:hover, :focus-visible) .media img {
  filter: saturate(1.08);
  scale: 1.035;
}
.wm-loop-grid.wm_project .project-card:is(:hover, :focus-visible) .title .elementor-heading-title {
  color: var(--blue);
}
.wm-loop-grid.wm_project .project-card:is(:hover, :focus-visible) .project-arrow .elementor-heading-title::before {
  transform: translate(calc(-50% + var(--wm-height)), -50%);
}
.wm-loop-grid.wm_project .project-card:is(:hover, :focus-visible) .project-arrow .elementor-heading-title::after {
  transform: translate(-50%, -50%);
}

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-loop-grid.wm_project .elementor-loop-container { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }

  .wm-loop-grid.wm_project .e-loop-item { grid-column: span 4; }
}

@media (min-width: 1024px) {
  .wm-loop-grid.wm_project .elementor-loop-container { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

  .wm-loop-grid.wm_project .e-loop-item { grid-column: span 6; }

  .wm-loop-grid.wm_project .project-card {
      --project-card-column: calc((100% - (5 * var(--grid-gap))) / 6);
      --project-arrow-gap: calc(
        (100vw - var(--content-gutter) - var(--padding-md) + var(--grid-gap) - (12 * var(--wm-height))) / 24
      );
    }

  .wm-loop-grid.wm_project .project-card .content {
      width: calc((5 * var(--project-card-column)) + (4 * var(--grid-gap)));
    }

  .wm-loop-grid.wm_project .project-card > .project-arrow {
      left: var(--project-arrow-gap);
      position: absolute;
      top: calc(clamp(300px, 24vw, 420px) - var(--wm-height) - var(--project-arrow-gap));
    }
}

/*------------------------------------*\
  #PRODUCTS-PAGE
\*------------------------------------*/
html:has(body.wm-page--products),
body.wm-page--products {
  background: var(--ink);
}

body.wm-page--products .wm-interior {
  background: var(--paper);
}

body.wm-page--products .wm-listing {
  flex: 0 0 auto;
  gap: 0;
  margin-left: calc(50% - 50vw);
  max-width: none;
  min-width: 100vw;
  padding: 0 0 calc(var(--wm-height) * .5);
  position: relative;
  width: 100vw;
}

body.wm-page--products .wm-listing::before {
  background: var(--paper);
  content: "";
  height: var(--wm-height);
  inset: 0 auto auto 0;
  pointer-events: none;
  position: absolute;
  width: 100vw;
  z-index: 0;
}

body.wm-page--products .wm-listing > .section-heading { display: none; }

body.wm-page--products .wm-listing > .wm-loop-grid.wm_product {
  padding-inline-end: var(--padding-md);
  padding-inline-start: var(--content-gutter);
  position: relative;
  z-index: 1;
}

.wm-loop-grid.wm_product .elementor-loop-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.wm-loop-grid.wm_product .e-loop-item { grid-column: span 4; }

.wm-loop-grid.wm_product .e-loop-item,
.wm-loop-grid.wm_product .e-loop-item > .elementor,
.wm-loop-grid.wm_product .product-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wm-loop-grid.wm_product .product-card {
  gap: 0;
  overflow: visible;
}

.wm-loop-grid.wm_product .product-card .media {
  overflow: hidden;
}

.wm-loop-grid.wm_product .product-card .media,
.wm-loop-grid.wm_product .product-card .media .elementor-widget-container,
.wm-loop-grid.wm_product .product-card .media img {
  height: clamp(280px, 20vw, 360px);
}

.wm-loop-grid.wm_product .product-card .media img {
  scale: 1.001;
  transition: filter 300ms ease, scale 600ms cubic-bezier(.2,.75,.25,1);
}

.wm-loop-grid.wm_product .product-card .content {
  align-self: flex-end;
  background: var(--paper);
  margin-top: calc(-1 * var(--wm-height));
  min-height: calc(var(--wm-height) * 3);
  padding: var(--padding-sm);
  position: relative;
  width: 100%;
  z-index: 2;
}

.wm-loop-grid.wm_product .product-card .title .elementor-heading-title {
  transition: color 220ms ease;
}

.wm-loop-grid.wm_product .product-card:is(:hover, :focus-within) .media img {
  filter: saturate(1.08);
  scale: 1.035;
}

.wm-loop-grid.wm_product .product-card:is(:hover, :focus-within) .title .elementor-heading-title {
  color: var(--blue);
}

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-loop-grid.wm_product .elementor-loop-container { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }

  .wm-loop-grid.wm_product .e-loop-item { grid-column: span 4; }
}

@media (min-width: 1024px) {
  .wm-loop-grid.wm_product .elementor-loop-container { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

  .wm-loop-grid.wm_product .e-loop-item { grid-column: span 4; }
}

/*------------------------------------*\
  #EXPERTISE-PAGE
\*------------------------------------*/

body.wm-page--expertise .wm-listing {
  margin-left: calc(var(--content-gutter) - var(--page-gutter));
  padding: 0;
  position: relative;
  width: calc(100vw - var(--content-gutter));
}
body.wm-page--expertise .wm-listing::before {
  background: var(--surface);
  content: "";
  height: var(--wm-height);
  left: calc(-1 * var(--content-gutter));
  pointer-events: none;
  position: absolute;
  top: 0;
  width: var(--content-gutter);
  z-index: 3;
}
body.wm-page--expertise .wm-listing > .section-heading { display: none; }
.wm-loop-grid { padding-inline: var(--content-gutter); }
.wm-loop-grid .elementor-loop-container { gap: var(--grid-gap); }
.expertise-grid { padding-inline: 0; }
.expertise-grid .elementor-loop-container { gap: var(--wm-height) 0; }

.expertise-section { border-top: 1px solid var(--line); overflow: hidden; }
body.wm-page--expertise .expertise-section {
  border-top: 0;
  gap: 0;
  padding: 0;
}
.expertise-section .media-column {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.expertise-section .media { height: 100%; inset: 0; position: absolute; width: 100%; }
.expertise-section .media .elementor-widget-container,
.expertise-section .media img { display: block; height: 100%; object-fit: cover; width: 100%; }

.expertise-section .related-project-card {
  bottom: 0;
  left: 0;
  max-width: 100%;
  position: absolute;
  z-index: 1;
}

.related-project {
  background: var(--paper);
  display: block;
  padding: 16px 18px;
  text-decoration: none;
}

.related-project .wm-eyebrow { display: block; margin-bottom: 6px; }
.related-project .title { display: block; }
.related-project:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.expertise-section .content {
  gap: 18px;
  min-width: 0;
  padding: var(--padding-lg) var(--padding-md);
}

.expertise-section .text p { margin: 0; }
.expertise-section .text p + p { margin-top: 24px; }

/*------------------------------------*\
  #EXPERTISE-CAROUSEL
\*------------------------------------*/
body .elementor .wm-expertise-alt.elementor-element.e-con {
  background: linear-gradient(to bottom, var(--surface) 0 50%, var(--paper) 50% 100%);
  margin-left: calc(var(--page-gutter) * -1);
  overflow-x: clip;
  overflow-y: visible;
  padding: 0 0 var(--padding-lg) var(--content-gutter);
  width: 100vw;
}

.expertise-alt-heading {
  border-top: 0;
  gap: var(--space-2xs);
  margin-right: var(--content-gutter);
  padding-top: var(--wm-height);
}

.elementor .wm-expertise-alt .expertise-alt-carousel {
  flex-shrink: 0;
  margin-left: 0;
  max-width: none !important;
  padding-top: 0;
  position: relative;
  width: calc(100% + (var(--content-gutter) * 2)) !important;
}

.elementor .wm-expertise-alt .expertise-alt-carousel.elementor-widget-loop-carousel {
  --arrow-prev-left-align: 100%;
  --arrow-prev-left-position: calc(-128px - (var(--content-gutter) * 3));
  --arrow-prev-top-align: 0%;
  --arrow-prev-top-position: calc((-1 * var(--wm-height)) + 7px);
  --arrow-prev-translate-x: 0%;
  --arrow-prev-translate-y: 0%;
  --arrow-next-right-align: 0%;
  --arrow-next-right-position: calc(var(--content-gutter) * 3);
  --arrow-next-top-align: 0%;
  --arrow-next-top-position: calc((-1 * var(--wm-height)) + 7px);
  --arrow-next-translate-x: 0%;
  --arrow-next-translate-y: 0%;
}

.expertise-alt-carousel .swiper-slide { height: auto; }
.expertise-alt-carousel .elementor-loop-container {
  align-items: stretch;
  overflow: visible;
}
.expertise-alt-carousel .e-loop-item,
.expertise-alt-carousel .e-loop-item > .elementor,
.expertise-alt-carousel .e-loop-item > .elementor > .elementor-element { height: 100%; }

.expertise-alt-card {
  background: var(--ink);
  color: var(--paper);
  gap: 28px;
  min-height: calc(var(--wm-height) * 7);
  overflow: hidden;
  padding: 36px;
  position: relative;
}

.expertise-alt-card::after {
  background: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/logo-mark.svg") center / contain no-repeat;
  bottom: -74px;
  content: "";
  height: 280px;
  opacity: .07;
  pointer-events: none;
  position: absolute;
  right: -58px;
  transform: rotate(45deg);
  width: 280px;
}

.expertise-alt-card > * { position: relative; z-index: 1; }
.expertise-alt-card .number .elementor-heading-title {
  align-items: center;
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.expertise-alt-card .title { margin-top: auto; }
.expertise-alt-card .title .elementor-heading-title {
  color: inherit;
}
.expertise-alt-card .text .elementor-widget-container { color: inherit; opacity: .72; }
.expertise-alt-card .expertise-alt-link { align-self: flex-start; }
.expertise-alt-card .expertise-alt-link .elementor-button {
  background: transparent;
  color: inherit;
  padding: 0;
}
.expertise-alt-card .expertise-alt-link .elementor-button:hover,
.expertise-alt-card .expertise-alt-link .elementor-button:focus-visible { background: transparent; color: inherit; }

.expertise-alt-carousel .e-loop-item-60 .expertise-alt-card { background: var(--blue); }
.expertise-alt-carousel .e-loop-item-58 .expertise-alt-card,
.expertise-alt-carousel .e-loop-item-61 .expertise-alt-card { background: var(--paper); color: var(--ink); }

.expertise-alt-carousel .elementor-swiper-button {
  --wm-carousel-arrow-size: 56px;
  align-items: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 78%);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  box-shadow: 0 4px 12px rgb(0 0 0 / 6%);
  height: var(--wm-carousel-arrow-size);
  justify-content: center;
  opacity: 1 !important;
  overflow: hidden;
  position: relative;
  transition: background-color 220ms ease;
  width: var(--wm-carousel-arrow-size);
}

.expertise-alt-carousel .elementor-swiper-button svg { display: none; }

.expertise-alt-carousel .elementor-swiper-button::before,
.expertise-alt-carousel .elementor-swiper-button::after {
  background: var(--ink);
  content: "";
  height: 28px;
  left: 50%;
  -webkit-mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  mask: url("/wp-content/plugins/waymont-hmgcc-site/assets/images/arrow-right.svg") center / contain no-repeat;
  position: absolute;
  top: 50%;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
  width: 28px;
}

.expertise-alt-carousel .elementor-swiper-button-next::before {
  transform: translate(-50%, -50%);
}
.expertise-alt-carousel .elementor-swiper-button-next::after {
  transform: translate(calc(-50% - var(--wm-carousel-arrow-size)), -50%);
}
.expertise-alt-carousel .elementor-swiper-button-next:is(:hover, :focus-visible)::before {
  transform: translate(calc(-50% + var(--wm-carousel-arrow-size)), -50%);
}
.expertise-alt-carousel .elementor-swiper-button-next:is(:hover, :focus-visible)::after {
  transform: translate(-50%, -50%);
}

.expertise-alt-carousel .elementor-swiper-button-prev::before {
  transform: translate(-50%, -50%) rotate(180deg);
}
.expertise-alt-carousel .elementor-swiper-button-prev::after {
  transform: translate(calc(-50% + var(--wm-carousel-arrow-size)), -50%) rotate(180deg);
}
.expertise-alt-carousel .elementor-swiper-button-prev:is(:hover, :focus-visible)::before {
  transform: translate(calc(-50% - var(--wm-carousel-arrow-size)), -50%) rotate(180deg);
}
.expertise-alt-carousel .elementor-swiper-button-prev:is(:hover, :focus-visible)::after {
  transform: translate(-50%, -50%) rotate(180deg);
}

.expertise-alt-carousel .elementor-swiper-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .wm-expertise-alt { padding-inline: var(--padding-sm); }
  .expertise-alt-heading { margin-right: 0; }
  .wm-expertise-alt .expertise-alt-carousel { margin-left: 0; max-width: 100% !important; width: 100% !important; }
  .wm-expertise-alt .expertise-alt-carousel.elementor-widget-loop-carousel {
    --arrow-prev-left-position: -128px;
    --arrow-prev-top-position: 24px;
    --arrow-next-right-position: 0px;
    --arrow-next-top-position: 24px;
  }
  .expertise-alt-card { min-height: calc(var(--wm-height) * 6); padding: 28px; }
}

/* Responsive adjustments. */

@media (min-width: 768px) {
  .expertise-section .media-column { aspect-ratio: 3 / 2; }

  .expertise-grid .e-loop-item:nth-child(even) .expertise-section .media-column { order: 2; }
}

@media (min-width: 1024px) {
  body.wm-page--expertise .expertise-section {
      --expertise-grid-column: calc(
        (100vw - (2 * var(--content-gutter)) - (11 * var(--grid-gap))) / 12
      );
      column-gap: var(--grid-gap);
      grid-template-columns:
        repeat(11, minmax(0, var(--expertise-grid-column)))
        minmax(0, 1fr);
    }

  body.wm-page--expertise .expertise-section > .media-column,
  body.wm-page--expertise .expertise-section > .content {
      grid-row: 1;
    }

  body.wm-page--expertise .expertise-section > .media-column {
      aspect-ratio: auto;
      height: 100%;
    }

  body.wm-page--expertise .expertise-grid .e-loop-item:nth-child(odd) .media-column,
  body.wm-page--expertise .expertise-grid .e-loop-item:nth-child(even) .content {
      grid-column: 1 / 7;
      order: 0;
    }

  body.wm-page--expertise .expertise-grid .e-loop-item:nth-child(odd) .content,
  body.wm-page--expertise .expertise-grid .e-loop-item:nth-child(even) .media-column {
      grid-column: 7 / -1;
      order: 0;
    }
}

/*------------------------------------*\
  #SUPPORTING-PAGE-COMPONENTS
\*------------------------------------*/

.wm-loop-card.position-row { border-top: 8px solid var(--blue); gap: var(--space-lg); padding: 24px 28px; }
.wm-loop-card.position-row .content { gap: 2px; padding: 0; }

/*------------------------------------*\
  #EXPERTISE-SECTION-NAVIGATION
\*------------------------------------*/
body.wm-page--expertise .wm-expertise-navigation-widget {
  --container-widget-width: 100vw;
  --width: 100vw;
  bottom: 0;
  margin: var(--wm-height) 0 0 calc(-1 * var(--content-gutter));
  max-width: none;
  min-width: 100vw;
  position: sticky;
  width: 100vw;
  z-index: 90;
}

.wm-expertise-section-nav {
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  background:
    linear-gradient(115deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 68%)),
    radial-gradient(circle at 18% 0%, rgb(255 255 255 / 90%), transparent 42%);
  border-bottom: 1px solid rgb(5 5 5 / 10%);
  border-top: 1px solid rgb(255 255 255 / 92%);
  box-shadow: 0 -18px 55px rgb(5 5 5 / 10%), inset 0 1px 0 rgb(255 255 255 / 75%);
  color: var(--ink);
  left: calc((100vw - 100%) / -2);
  min-height: var(--wm-expertise-nav-height);
  overflow: hidden;
  position: relative;
  width: 100vw;
}

.wm-expertise-section-nav::before {
  background: linear-gradient(105deg, transparent 0 28%, rgb(255 255 255 / 45%) 42%, transparent 58% 100%);
  content: "";
  inset: 0;
  opacity: .55;
  pointer-events: none;
  position: absolute;
}

.wm-expertise-section-nav ol {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(var(--wm-expertise-nav-count), minmax(0, 1fr));
  list-style: none;
  margin: 0;
  min-height: inherit;
  padding: 0 var(--content-gutter);
  position: relative;
  z-index: 1;
}

.wm-expertise-section-nav li { min-width: 0; }

.wm-expertise-section-nav a {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: flex-end;
  min-height: inherit;
  opacity: .42;
  padding: 18px 0 16px;
  text-decoration: none;
  transition: opacity 220ms ease;
}

.wm-expertise-section-nav a:is(:hover, :focus-visible),
.wm-expertise-section-nav a[aria-current="location"] { color: var(--blue); opacity: 1; }

.wm-expertise-section-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.wm-expertise-section-nav .label {
  align-items: baseline;
  display: flex;
  gap: 7px;
  min-width: 0;
}

.wm-expertise-section-nav .number { flex: 0 0 auto; }
.wm-expertise-section-nav .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wm-expertise-section-nav .track {
  background: rgb(5 5 5 / 14%);
  display: block;
  height: 4px;
  overflow: hidden;
  width: 100%;
}

.wm-expertise-section-nav .progress {
  background: var(--blue);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms ease;
  width: 100%;
}

.wm-expertise-section-nav a[aria-current="location"] .progress { transform: scaleX(1); }

body.wm-page--expertise button.wm-visual-grid-toggle {
  bottom: calc(var(--wm-expertise-nav-height) + 16px);
}

.expertise-grid .e-loop-item { scroll-margin-top: var(--wm-height); }

@media (max-width: 767px) {
  body.wm-page--expertise { --wm-expertise-nav-height: 84px; }

  .wm-expertise-section-nav { left: 0; right: 0; }
  .wm-expertise-section-nav ol {
    grid-template-columns: repeat(var(--wm-expertise-nav-count), minmax(150px, 1fr));
    overflow-x: auto;
    padding-inline: var(--padding-sm);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .wm-expertise-section-nav ol::-webkit-scrollbar { display: none; }
  .wm-expertise-section-nav li { scroll-snap-align: start; }
  .wm-expertise-section-nav a { gap: 10px; padding-block: 14px 12px; }
}
.wm-loop-card.team-card .media,
.wm-loop-card.team-card .media .elementor-widget-container,
.wm-loop-card.team-card .media img { height: 340px; }

.wm-loop-card.team-card .media img {
  object-fit: cover;
  object-position: center 18%;
  width: 100%;
}

.wm-benefits { gap: var(--space-xl); padding-top: var(--padding-lg); }

.benefit,
.office,
.contact-card { border-top: 8px solid var(--blue); gap: var(--space-sm); padding: 32px; }

.split-section,
.single-layout {
  display: grid;
  gap: var(--space-2xl);
  grid-auto-rows: auto;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding-inline: var(--content-gutter);
}

.split-section .section-heading { padding-inline: 0; }
.prose { max-width: 780px; }
.prose h2, .prose h3 { margin-top: 48px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.wm-single {
  max-width: none;
  overflow: clip;
  width: 100%;
}

.wm-single-image,
.wm-single-image .elementor-widget-container,
.wm-single-image img {
  display: block;
  height: clamp(420px, 52vw, 760px);
  object-fit: cover;
  width: 100%;
}

.wm-single-image {
  margin-left: var(--content-gutter);
  width: calc(100% - var(--content-gutter));
}

body .single-layout.e-con.e-grid {
  align-items: start;
  grid-auto-rows: auto;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.single-layout .prose,
.single-layout .facts { min-width: 0; }

.facts {
  align-self: start;
  gap: 0;
  padding: var(--space-xl);
}

.facts > .wm-section-title { margin-bottom: var(--space-sm); }
.facts .fact { border-top: 1px solid var(--line); gap: 2px; padding-block: 16px; }
.facts .fact p { margin: 0; }

.wm-legal .legal-content { gap: var(--space-xl); max-width: 920px; padding-inline: var(--content-gutter); }
.wm-legal .legal-section { border-top: 1px solid var(--line); gap: var(--space-xs); padding-top: 32px; }

/* Responsive adjustments. */

@media (min-width: 1024px) {
  .wm-benefits .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

  .split-section { grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); }

  body .single-layout.e-con.e-grid {
    column-gap: var(--grid-gap);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto;
    row-gap: 0;
  }

  .single-layout .prose { grid-column: 1 / 8; }

  .single-layout .facts {
    grid-column: 9 / 13;
    position: sticky;
    top: calc(var(--wm-height) + var(--space-lg));
  }
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/
.wm-footer.wm-site-shell { max-width: none; width: 100%; }

.wm-footer .columns {
  display: grid;
  gap: 0;
  grid-auto-rows: auto;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding-inline: var(--padding-md);
}

.wm-footer .column {
  border-bottom: 1px solid rgb(255 255 255 / 28%);
  gap: var(--space-2xs);
  padding: 40px var(--content-gutter);
}

.wm-footer .column p { margin: 0; }
.wm-footer a { transition: color 180ms ease; }
.wm-footer a:is(:hover, :focus-visible) { color: var(--blue-soft); }

.wm-footer .bottom {
  background: var(--ink);
  border: 0;
  gap: var(--space-sm);
  padding: 24px var(--padding-md);
}

/* Responsive adjustments. */

@media (min-width: 768px) {
  .wm-footer .columns { grid-template-columns: repeat(8, minmax(0, 1fr)); }

  .wm-footer .column { grid-column: span 4; }

  .wm-footer .column:nth-child(odd) { border-right: 1px solid rgb(255 255 255 / 28%); }
}

@media (min-width: 1024px) {
  .wm-footer .columns { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .wm-footer .column { border-bottom: 0; border-right: 1px solid rgb(255 255 255 / 28%); grid-column: span 3; padding: 72px 40px; }

  .wm-footer .column:last-child { border-right: 0; }
}

/*------------------------------------*\
  #MOTION-AND-ACCESSIBILITY
\*------------------------------------*/

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wm-button .elementor-button, .wm-card { transition: none; }
  .wm-card:is(:hover, :focus-within) { transform: none; }
  .wm-products .product-card .media img { transition: none; }
  .wm-feature .swiper-pagination .swiper-pagination-bullet { transition: none; }
  .wm-careers .card-link .elementor-heading-title::after,
  .wm-products .card-link .elementor-heading-title::after { transition: none; }
  .wm-loop-grid.wm_project a.project-card,
  .wm-loop-grid.wm_project .project-card .media img,
  .wm-loop-grid.wm_project .project-card .title .elementor-heading-title,
  .wm-loop-grid.wm_project .project-card > .project-arrow,
  .wm-loop-grid.wm_project .project-card .project-arrow .elementor-heading-title::before,
  .wm-loop-grid.wm_project .project-card .project-arrow .elementor-heading-title::after { transition: none; }
  .expertise-alt-carousel .elementor-swiper-button,
  .expertise-alt-carousel .elementor-swiper-button::before,
  .expertise-alt-carousel .elementor-swiper-button::after { transition: none; }
  .wm-expertise-section-nav a,
  .wm-expertise-section-nav .progress { transition: none; }
}

/*------------------------------------*\
  #AUTHORISED-VISUAL-GRID
\*------------------------------------*/

/* Capability-restricted visual grid. */
.wm-visual-grid {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 120ms ease;
  z-index: 99998;
}

.wm-grid-visible .wm-visual-grid { opacity: 1; }

.wm-visual-grid .columns {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 100%;
  padding-inline: var(--padding-md);
  width: 100%;
}

.wm-visual-grid .columns span {
  background: rgb(var(--visual-grid) / 7%);
  border-inline: 1px solid rgb(var(--visual-grid) / 42%);
}

.wm-visual-grid .columns span:nth-child(n + 5) { display: none; }

body button.wm-visual-grid-toggle {
  align-items: center;
  appearance: none;
  background: var(--ink);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 0;
  bottom: 16px;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 16px;
  width: 40px;
  z-index: 99999;
}

body button.wm-visual-grid-toggle[aria-pressed="true"] { background: var(--blue); }
body button.wm-visual-grid-toggle:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }

@media (min-width: 768px) {
  .wm-visual-grid .columns { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .wm-visual-grid .columns span:nth-child(n + 5) { display: block; }
  .wm-visual-grid .columns span:nth-child(n + 9) { display: none; }
}

@media (min-width: 1024px) {
  .wm-visual-grid .columns { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .wm-visual-grid .columns span:nth-child(n) { display: block; }
}
