/* Majestic Glass — one continuous architectural atmosphere.
 * Outer surfaces reveal the shared field only after its geometry is ready.
 * Original content, photography, cards, forms and links remain in place.
 */
html:root body.mg34-ready {
  position: relative;
  isolation: isolate;
  background: #f6f8f5 !important;
}
/* The older body decoration used white glows and a dotted grid. It belonged
 * behind opaque sections and must not show through the continuous field. */
html:root body.mg34-ready::before {
  content: none !important;
  display: none !important;
}
html:root body #mg34-tone-field {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  z-index: -2;
  pointer-events: none;
  background-color: #f6f8f5;
  background-repeat: no-repeat;
}
html:root body #mg34-continuum {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  visibility: hidden;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.16) 35%, rgba(0,0,0,.4) 60%, #000 85%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.16) 35%, rgba(0,0,0,.4) 60%, #000 85%);
}
html:root body.mg34-ready #mg34-continuum { visibility: visible; }
html:root body.mg34-ready .mg34-flow-shell,
html:root body.mg34-ready .mg34-flow-section:not(.mg34-photo-surface),
html:root body.mg34-ready #majestic-homepage[data-mg-hierarchy="3"] > :is(.hero,.section),
html:root body.mg34-ready .mg-ui-legacy > .mg-ui-section:not(.mg34-photo-surface),
html:root body.mg34-ready .mg-ui-legacy > .mg-ui-strip.mg-ui-dark,
html:root body.mg34-ready .mg-cb > :is(.mg-cb-hero,.mg-cb-dark,.mg-cb-section,.mg-cb-final,.mg-cb-trust),
html:root body.mg34-ready .elementor-8391 :is(#mg-journal-hero,#mg-journal-content,.elementor-element-309d2bf,.elementor-element-31a6b77),
html:root body.mg34-ready footer.elementor-location-footer.elementor-136 :is(.elementor-element-3d43f1ce,.elementor-element-e773170) {
  background: transparent !important;
}
/* Match the native application pages to the shared, spacious hero rhythm;
 * the extra clear space gives their tonal transition room to breathe. */
html:root body.mg34-ready .mg-app .mg-app-hero { padding-block: 48px 72px; }
html:root body.mg34-ready .mg-app .mg-app-jump {
  padding-block: 32px 24px;
  background: transparent !important;
  border-bottom-color: transparent;
}
html:root body.mg34-ready .mg-ui-legacy .mg-ui-hero h1.mg-ui-heading {
  text-transform: none !important;
}
html:root body.mg34-ready h1 .mg34-word-gap-before { margin-inline-start: .22em; }
html:root body.mg34-ready h1 .mg34-word-gap-after { margin-inline-end: .22em; }
/* The shared header is in normal sticky flow. Older archive templates still
 * have a negative hero margin intended for an overlapping header. */
html:root body.mg34-ready .mg-ui-legacy > .mg-ui-hero {
  margin-block-start: 0 !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg32-light :is(h2.mg-ui-heading,h3.mg-ui-heading) {
  color: #172c29 !important;
}
/* Legacy wave separators cut across the shared glass field. Their purely
 * decorative shapes are replaced by the field's continuous tonal fades. */
html:root body.mg34-ready .mg34-flow-section .elementor-shape[aria-hidden="true"] {
  display: none !important;
}
/* Compact proof and project facts: small supporting icons should never
 * inherit the large white boxes used for substantive service cards. */
html:root body.mg34-ready .mg-ui-legacy .mg34-proof-grid,
html:root body.mg34-ready .mg-ui-legacy .mg34-project-meta-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 16px 0 0 !important;
  margin: 0 !important;
  align-items: start !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-proof-grid > .e-con {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: initial !important;
  background: transparent !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-project-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px 0 !important;
  gap: 24px 32px !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-wrapper {
  display: flex !important;
  align-items: flex-start !important;
  flex-direction: row !important;
  gap: 12px !important;
  text-align: left !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-icon {
  flex: 0 0 26px !important;
  width: 26px !important;
  margin: 3px 0 0 !important;
  line-height: 1 !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon,
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item svg {
  width: 26px !important;
  height: 26px !important;
  font-size: 26px !important;
  color: #72a85d !important;
  fill: currentColor !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-content {
  min-width: 0;
  flex: 1 1 auto;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-title,
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-title span {
  display: block !important;
  margin: 0 0 4px !important;
  min-height: 0 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
  color: #172c21 !important;
  text-transform: none !important;
  overflow-wrap: normal !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-proof-grid .elementor-icon-box-title,
html:root body.mg34-ready .mg-ui-legacy .mg34-proof-grid .elementor-icon-box-title span {
  font-size: 21px !important;
  white-space: nowrap;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-title::before,
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-title::after {
  content: none !important;
  display: none !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-description {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #4c5b51 !important;
}
html:root body.mg34-ready .mg-ui-legacy :is(.mg-ui-hero,.mg-ui-dark,.mg32-dark) .mg34-detail-item :is(.elementor-icon-box-title,.elementor-icon-box-title span) {
  color: #f4f7f3 !important;
}
html:root body.mg34-ready .mg-ui-legacy :is(.mg-ui-hero,.mg-ui-dark,.mg32-dark) .mg34-detail-item .elementor-icon-box-description {
  color: #ccd8d0 !important;
}
html:root body.mg34-ready .mg-ui-legacy :is(.mg-ui-hero,.mg-ui-dark,.mg32-dark) .mg34-detail-item .elementor-icon-box-description a {
  color: #c2dfb7 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html:root body.mg34-ready .mg-ui-legacy :is(.mg-ui-hero,.mg-ui-dark,.mg32-dark) .mg34-detail-item :is(.elementor-icon,svg) {
  color: #a0c891 !important;
}
html:root body.mg34-ready .mg-ui-legacy .mg34-project-meta-section {
  display: flex !important;
}
@media (max-width: 1024px) {
  html:root body.mg34-ready .mg-ui-legacy .mg34-project-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  html:root body.mg34-ready .mg-ui-legacy .mg34-proof-grid,
  html:root body.mg34-ready .mg-ui-legacy .mg34-project-meta-grid {
    gap: 18px 18px !important;
  }
  html:root body.mg34-ready .mg-ui-legacy .mg34-detail-item .elementor-icon-box-wrapper { gap: 9px !important; }
  html:root body.mg34-ready .mg-ui-legacy .mg34-project-meta-grid .elementor-icon-box-title,
  html:root body.mg34-ready .mg-ui-legacy .mg34-project-meta-grid .elementor-icon-box-title span { font-size: 14px !important; }
}
html:root body.mg34-ready .mg32-atmosphere,
html:root body.mg34-ready #majestic-homepage[data-mg-hierarchy="3"] > .hero > .hero-shade {
  display: none !important;
}
/* Section boundaries are tonal changes in the common field, not rules or
 * repeated boxed gradients. Internal table/card dividers remain untouched. */
html:root body.mg34-ready .mg34-flow-section {
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
html:root body.mg34-ready footer.elementor-location-footer.elementor-136 .elementor-element-e773170 {
  border-top-color: rgba(202,226,214,.1) !important;
}

/* A single, large sheet has one reflection clock from header to footer.
 * The quiet left-side mask protects the reading column on every page. */
html:root body #mg34-continuum .mg34-glass-sheet {
  display: block;
  position: absolute;
  width: clamp(1000px, 112vw, 1800px);
  height: 125%;
  top: -12%;
  right: -18%;
  opacity: .26;
  background: var(--mg32-glass-art) right center / cover no-repeat;
  -webkit-mask: var(--mg32-glass-art) right center / cover no-repeat;
  mask: var(--mg32-glass-art) right center / cover no-repeat;
  animation: mg34-glass-drift 28s ease-in-out infinite alternate;
  transform-origin: right center;
}
html:root body #mg34-continuum::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246,248,245,.025), transparent 52%);
  pointer-events: none;
}
html:root body #mg34-continuum .mg34-light-pass {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -42%;
  width: 50%;
  background: linear-gradient(108deg, transparent 12%, rgba(202,231,218,.04) 32%, rgba(234,250,242,.64) 47%, rgba(255,255,255,.95) 50%, rgba(211,237,224,.16) 57%, transparent 75%);
  mix-blend-mode: screen;
  animation: mg34-light-flow 17s cubic-bezier(.4,0,.35,1) infinite;
  animation-delay: -5s;
  will-change: transform;
}
html:root body #mg34-continuum .mg34-ambient-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mg34-pointer-x, 74%) var(--mg34-pointer-y, 34%), rgba(185,218,203,.055), transparent 75%);
}

/* Feather photographs into the same field without masking any content.
 * Elementor's photograph and tint remain beneath this decorative veil. */
html:root body .mg34-photo-veil {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 100px, transparent calc(100% - 130px), #000 100%);
  mask-image: linear-gradient(180deg, #000 0, transparent 100px, transparent calc(100% - 130px), #000 100%);
}
html:root body.mg34-ready .mg34-photo-surface > :is(.e-con-inner,.mg-app-shell,.mg-cb-container,.page-width) {
  position: relative;
  z-index: 2;
}

/* Give the existing crown and wordmark more room on larger displays. */
@media (min-width: 1100px) {
  html:root body.mg34-ready header.elementor-location-header.elementor-25 .elementor-element-3c26008 {
    flex: 0 0 212px !important;
    width: 212px !important;
  }
  html:root body.mg34-ready header.elementor-location-header.elementor-25 .elementor-element-34455f9c {
    width: 192px !important;
    max-width: 100%;
  }
  html:root body.mg34-ready header.elementor-location-header.elementor-25 .elementor-element-34455f9c img {
    width: 192px !important;
    height: auto;
  }
  html:root body.mg34-ready footer.elementor-location-footer img[alt="Majestic Glass logo"] {
    width: 220px;
    max-width: 100%;
    height: auto;
  }
}
@media (min-width: 1600px) {
  html:root body.mg34-ready header.elementor-location-header.elementor-25 .elementor-element-3c26008 {
    flex-basis: 244px !important;
    width: 244px !important;
  }
  html:root body.mg34-ready header.elementor-location-header.elementor-25 .elementor-element-34455f9c,
  html:root body.mg34-ready header.elementor-location-header.elementor-25 .elementor-element-34455f9c img {
    width: 224px !important;
  }
}
@media (max-width: 1024px) {
  html:root body #mg34-continuum .mg34-glass-sheet {
    width: 1200px;
    right: -360px;
    opacity: .22;
  }
}
@media (max-width: 767px) {
  html:root body.mg34-ready .mg-app .mg-app-hero { padding-block: 32px 48px; }
  html:root body.mg34-ready .mg-app .mg-app-jump { padding-block: 24px; }
  html:root body #mg34-continuum {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.18) 50%, rgba(0,0,0,.72));
    mask-image: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.18) 50%, rgba(0,0,0,.72));
  }
  html:root body #mg34-continuum .mg34-glass-sheet {
    width: 1000px;
    right: -530px;
    opacity: .18;
    animation: none;
  }
  html:root body #mg34-continuum .mg34-light-pass { animation-duration: 23s; }
  html:root body #mg34-continuum .mg34-ambient-light { display: none; }
  html:root body .mg34-photo-veil {
    -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 65px, transparent calc(100% - 80px), #000 100%);
    mask-image: linear-gradient(180deg, #000 0, transparent 65px, transparent calc(100% - 80px), #000 100%);
  }
}
html:root body.mg32-motion-paused #mg34-continuum :is(.mg34-glass-sheet,.mg34-light-pass) {
  animation-play-state: paused !important;
}
@keyframes mg34-glass-drift {
  from { transform: translate3d(0,-1.2%,0) rotate(-.25deg); }
  to { transform: translate3d(-1.2%,1.2%,0) rotate(.25deg); }
}
@keyframes mg34-light-flow {
  0% { transform: translate3d(5%,0,0); opacity: .2; }
  30% { opacity: .66; }
  62% { opacity: .88; }
  100% { transform: translate3d(350%,0,0); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body #mg34-continuum :is(.mg34-glass-sheet,.mg34-light-pass) {
    animation: none !important;
    transform: none !important;
  }
  html:root body #mg34-continuum .mg34-light-pass { opacity: .25; }
}
@media print {
  html:root body #mg34-continuum,
  html:root body #mg34-tone-field,
  html:root body .mg34-photo-veil { display: none !important; }
}
