/* Static-site additions that sit on top of the original theme styles. */
.static-form .form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(232, 198, 30, 0.45);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.static-form .form-status.is-visible { display: block; }
.static-form .form-status a { color: var(--color-primary, #e8c61e); text-decoration: underline; }
.static-form .form-status.is-error { border-color: #dc3232; }
.static-form .cf-submit { cursor: pointer; }
.static-form.is-sending .cf-submit { opacity: 0.65; pointer-events: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Search page */
.search-page { padding: clamp(3rem, 8vw, 7rem) 0; }
.search-page h1 { font-family: var(--font-heading, "Neue Montreal"), sans-serif; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.95; text-transform: uppercase; margin: 0 0 2rem; }
.search-page .searchform { max-width: 680px; }
.search-page .ms-search-widget { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid currentColor; padding-bottom: 0.5rem; }
.search-page .search-field { flex: 1; background: transparent; border: 0; color: inherit; font-size: clamp(1.1rem, 2vw, 1.5rem); padding: 0.75rem 0; outline: 0; }
.search-page .ms-search--btn { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: var(--color-primary, #e8c61e); cursor: pointer; position: relative; }
.search-page .ms-search--btn::before { content: ""; position: absolute; inset: 14px; border: 2px solid #111; border-radius: 50%; }
.search-page .ms-search--btn::after { content: ""; position: absolute; width: 2px; height: 7px; background: #111; transform: rotate(-45deg); left: 27px; top: 28px; }
.search-results { margin-top: 3rem; display: grid; gap: 1rem; max-width: 900px; }
.search-result { display: block; padding: 1.25rem 1.5rem; border: 1px solid rgba(128,128,128,0.28); border-radius: 14px; transition: border-color .25s ease, transform .25s ease; }
.search-result:hover { border-color: var(--color-primary, #e8c61e); transform: translateY(-2px); }
.search-result h2 { font-family: var(--font-heading, "Neue Montreal"), sans-serif; font-size: 1.35rem; margin: 0 0 0.35rem; }
.search-result p { margin: 0; opacity: 0.75; }
.search-empty { opacity: 0.7; }

/* Cart */
.cart-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  background: var(--color-primary, #e8c61e); color: #111; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .25s ease;
}
.cart-fab:hover { transform: translateY(-3px) scale(1.04); }
.cart-fab svg { width: 24px; height: 24px; }
.cart-fab__count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 999px; background: #111; color: #e8c61e;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.cart-overlay {
  position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; z-index: 9600; top: 0; right: 0; height: 100%; width: min(430px, 92vw);
  background: #171918; color: #fff; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .38s cubic-bezier(.22,.61,.36,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.45);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.cart-drawer__head h2 { font-family: var(--font-heading, "Neue Montreal"), sans-serif; font-size: 1.5rem; margin: 0; }
.cart-close { background: transparent; border: 0; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; display: grid; align-content: start; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #222; }
.cart-item h3 { font-size: 0.98rem; margin: 0 0 0.35rem; font-family: var(--font-heading, "Neue Montreal"), sans-serif; }
.cart-item__meta { font-size: 0.8rem; opacity: .7; }
.cart-qty { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }
.cart-qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; }
.cart-remove { background: transparent; border: 0; color: #e8c61e; font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-empty { opacity: .65; font-size: .95rem; }
.cart-drawer__foot { padding: 1.25rem 1.5rem 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }
.cart-checkout { width: 100%; border: 0; border-radius: 40px; background: var(--color-primary, #e8c61e); color: #111; font-weight: 700; padding: 1rem 1.25rem; cursor: pointer; }
.cart-note { font-size: .78rem; opacity: .6; margin: .8rem 0 0; line-height: 1.45; }
@media (max-width: 480px) {
  .cart-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* Keep the original theme's horizontal clipping consistent at every width. */
html, body { overflow-x: clip; }

.ms-slider--img > a.ms-service-slide { display: block; width: 100%; height: 100%; }

.mpg-active { color: var(--color-primary) !important; }
.search-result { position: relative; }
.search-result__type {
  display: inline-block;
  margin-top: .55rem;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.mpg-map-link { position: relative; display: block; border-radius: 20px; overflow: hidden; }
.mpg-map-link img { width: 100%; height: auto; display: block; }
.mpg-map-link span {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .8rem; border-radius: 999px;
  background: var(--color-primary, #e8c61e); color: #111;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}

/* Accessibility: lift secondary text and decorative headings in dark mode. */
html[data-theme="dark"], [data-theme="dark"] { --color-contrast-medium: #a9a9ab; }
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-0335480 .sitex-heading-title,
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-28d9834 .sitex-heading-title,
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-3fb2266 .sitex-heading-title,
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-4ad65f4 .sitex-heading-title,
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-4e02cb2 .sitex-heading-title,
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-a0ceddd .sitex-heading-title { color: #b8b8b8; }
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-99f9d71 .sitex-heading-title,
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-99f9d71 .sitex-heading-title a { color: #fff; }
[data-theme="dark"] .sitex-element-8c1bc3c .sitex-heading-title { color: #b8b8b8; }
[data-theme="dark"] .sitex-913 .sitex-element.sitex-element-8c1bc3c .sitex-heading-title { color: #b8b8b8 !important; }
.e-font-icon-svg, .e-font-icon-svg * { font-family: inherit !important; }

/* Sidebar headings were h5 in the original theme; keep that visual scale after semantic h2/h3 changes. */
.text-divider h2, .text-divider h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* Unified page-title typography — matches the homepage hero. */
:root { --mpg-page-title-size: clamp(2.8rem, 6vw, 5rem); }
.ms-sp--title,
.page-header__title,
.search-page h1,
.mpg-page-hero h1,
.mpg-subhero h1,
.ms-single-product_title {
  font-family: "Neue Montreal", sans-serif !important;
  font-size: var(--mpg-page-title-size) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: normal !important;
}
.ms-sp--title, .page-header__title, .search-page h1, .mpg-page-hero h1, .mpg-subhero h1 { text-transform: uppercase; }

/* Search: editorial results list, no rounded boxes. */
.search-page h1 em { font-family: "Neue Montreal", sans-serif; font-style: normal; color: inherit; }
.search-page .search-field { font-family: Inter, sans-serif; }
.search-page .mpg-lede { max-width: 620px; margin: 0 0 2rem; color: var(--color-contrast-medium); line-height: 1.65; }
.search-results {
  display: grid;
  gap: 0;
  max-width: 1040px;
  margin-top: 2.4rem;
  border-top: 1px solid var(--color-contrast-lower);
}
.search-result {
  display: block;
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-contrast-lower);
  border-radius: 0;
  background: transparent;
  transition: none;
}
.search-result:hover { transform: none; border-color: var(--color-contrast-lower); }
.search-result h2 {
  font-family: "Neue Montreal", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .45rem;
}
.search-result:hover h2 { color: var(--color-primary); }
.search-result p { color: var(--color-contrast-medium); line-height: 1.6; margin: 0; max-width: 78ch; }
.search-result__type {
  display: inline-block;
  margin-top: .55rem;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.search-page { padding-bottom: clamp(2rem, 5vw, 4rem); }

/* Email ordering and universal back-to-top. */
.mpg-email-order { display: inline-flex; margin-top: .9rem; color: var(--color-primary); font-weight: 600; text-decoration: none; font-size: .9rem; }
.mpg-email-order:hover { text-decoration: underline; }
.cart-checkout--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); margin-top: .6rem; }
.mpg-back-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 9000;
  display: none; padding: .6rem .9rem; border-radius: 999px;
  border: 1px solid var(--color-contrast-lower); background: var(--color-bg);
  color: var(--color-contrast-higher); font-size: .72rem; text-decoration: none;
}
.mpg-back-top.is-visible { display: inline-flex; }

/* Shared Mokko-style "Have a project in mind?" panel. */
.mpg-project-cta { padding: clamp(3rem, 7vw, 7rem) 0; }
.mpg-project-cta__inner {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: 38px;
  background: var(--color-contrast-lower);
  text-align: center;
}
.mpg-project-cta h2 {
  font-family: "Neue Montreal", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.mpg-project-cta p { max-width: 620px; margin: 0 auto; color: var(--color-contrast-medium); line-height: 1.7; }
.mpg-cta-email {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.8rem;
  font-family: "Neue Montreal", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mpg-cta-email:hover { color: var(--color-contrast-higher); }
@media (max-width: 767px) {
  .mpg-project-cta__inner { width: calc(100% - 28px); border-radius: 26px; }
}

.sitex-element-eb8104a .sitex-heading-title {
  font-family: "Neue Montreal", sans-serif !important;
  font-size: var(--mpg-page-title-size) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: normal !important;
}

/* Mokko container width for shop and single product. */
.shopkit-shop .container, .single-product .container { max-width: 1240px; }
.single-product .ms-single-bottom {
  width: min(1240px, calc(100% - 48px));
  margin: 3rem auto 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 36px;
  background: var(--color-contrast-lower);
}
@media (max-width: 767px) {
  .single-product .ms-single-bottom { width: calc(100% - 28px); border-radius: 24px; }
}
.ms-service-slide, .ms-slider { cursor: pointer; }

/* Theme-black surfaces and footer-matched CTA. */
:root { --mpg-deep: #111312; --mpg-panel: rgba(149,149,149,.07); }
.mpg-project-cta__inner { background: var(--mpg-panel) !important; border: 1px solid rgba(255,255,255,.05); }
.ms-slider--cont, .ms-slider--overlay { pointer-events: none; }
.ms-slider--img a { pointer-events: auto; }

/* Developer access switch: only active when enabled in access-control.js. */
html.mpg-access-open, html.mpg-access-open body, html.mpg-access-open * {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Personalized service section. */
.mpg-personalized { padding: clamp(3rem, 7vw, 7rem) 0; }
.mpg-personalized__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 38px;
  background: rgba(149,149,149,.07);
  border: 1px solid rgba(255,255,255,.05);
}
.mpg-personalized h2 { font-family: "Neue Montreal", sans-serif; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; margin: 0 0 1rem; }
.mpg-personalized__intro > p { color: var(--color-contrast-medium); line-height: 1.7; margin: 0 0 1rem; }
.mpg-personalized__note { color: var(--color-primary) !important; font-size: .9rem; }
.mpg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mpg-field { display: block; margin: 0; }
.mpg-field--full { grid-column: 1 / -1; }
.mpg-personalized .form-control {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.28);
  color: #fff; font: inherit; font-size: 15px;
}
.mpg-personalized textarea.form-control { min-height: 140px; resize: vertical; }
.mpg-personalized .form-control::placeholder { color: #8c8c8c; }
.mpg-personalized .form-control:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; border-color: transparent; }
.mpg-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.mpg-form-privacy { color: var(--color-contrast-medium); font-size: .75rem; }
.mpg-personalized .form-status { margin-top: 12px; color: var(--color-primary); font-size: .88rem; line-height: 1.5; }
@media (max-width: 900px) {
  .mpg-personalized__inner { grid-template-columns: 1fr; padding: 2rem; }
}
@media (max-width: 540px) {
  .mpg-form-grid { grid-template-columns: 1fr; }
}

/* Keep the back-to-top control clear of the cart button. */
.back-to-top { left: 22px !important; right: auto !important; bottom: 22px !important; }
@media (max-width: 480px) { .back-to-top { left: 14px !important; bottom: 14px !important; } }


/* Homepage Why Us points. */
.mpg-why-points > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.mpg-why-points .mpg-why-point {
  background: rgba(149,149,149,.07);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.mpg-why-points .mpg-why-point .sitex-image-box-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; height: 100%; }
.mpg-why-points .mpg-why-point .sitex-image-box-img {
  width: 64px; height: 64px; margin: 0; border-radius: 50%;
  background: rgba(232,198,30,.12); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 64px;
}
.mpg-why-points .mpg-why-point .sitex-image-box-img img { width: 38px !important; height: 38px !important; object-fit: contain; margin: 0; }
.mpg-why-points .mpg-why-point .sitex-image-box-title { font-family: "Neue Montreal", sans-serif; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.15; margin: 0 0 .7rem; }
.mpg-why-points .mpg-why-point .sitex-image-box-description { color: var(--color-contrast-medium); line-height: 1.65; margin: 0; }
@media (max-width: 767px) { .mpg-why-points > .e-con-inner { grid-template-columns: 1fr; } }

/* Sidebar close control stays available on desktop too. */
.mpg-sidebar-close { display: inline-flex !important; align-items: center; justify-content: center; margin-left: auto; border: 0; background: transparent; color: var(--color-contrast-higher); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Ensure slider images are the click target, not the transformed wrapper. */
.sitex-element-972d114 { pointer-events: none; }
.sitex-element-972d114 .ms-slider, .sitex-element-972d114 .ms-slider--img, .sitex-element-972d114 .ms-service-slide { pointer-events: auto; }
.ms-slider--img { position: relative; z-index: 2; }
.ms-service-slide { position: relative; z-index: 3; }


.mpg-why-points .mpg-why-point .sitex-image-box-img {
  width: 64px !important; min-width: 64px !important; max-width: 64px !important;
  height: 64px !important; flex: 0 0 64px !important;
}


/* Form anti-spam field. */
.mpg-verification { margin-top: 4px; }
.mpg-verification__label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--color-contrast-medium); font-size: .82rem; }
.mpg-verification__input { max-width: 150px; min-height: 44px !important; }
.mpg-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.mpg-personalized .mpg-verification .form-control { max-width: 170px; }

/* Solid borders removed from panels, media and ghost buttons. */
.mpg-personalized__inner,
.mpg-why-points .mpg-why-point,
.mpg-project-shot a,
.single-product .ms-single-bottom,
.mpg-shop-filter-toggle,
.mpg-portfolio-btn--ghost,
.mpg-btn--ghost { border-color: transparent !important; }
.mpg-personalized .form-control { border-color: transparent !important; background: rgba(255,255,255,.065); }

/* Keep back-to-top on the right; lift the cart above it. */
.back-to-top { right: 22px !important; left: auto !important; bottom: 22px !important; }
.cart-fab { bottom: 84px; }
@media (max-width: 480px) {
  .back-to-top { right: 14px !important; left: auto !important; bottom: 14px !important; }
  .cart-fab { right: 14px; bottom: 78px; }
}

/* Black icon backgrounds in the homepage Why Us cards. */
.mpg-why-points .mpg-why-point .sitex-image-box-img { background: #111 !important; border: 0 !important; }

/* JSON-managed client logos appended to the homepage logo strip. */
.mpg-client-logos { display: contents; }
.mpg-client-logo img { width: 100%; height: auto; max-height: 70px; object-fit: contain; }


/* Light theme: form fields and personalised note remain legible. */
body[data-theme="light"] .mpg-personalized .form-control {
  background: #f2f2f2 !important;
  color: #111 !important;
}
body[data-theme="light"] .mpg-personalized .form-control::placeholder { color: #666 !important; }
body[data-theme="light"] .mpg-personalized .form-control:focus { outline-color: #111; }
.mpg-personalized__note { color: var(--color-contrast-higher) !important; font-weight: 700; }
body[data-theme="light"] .mpg-personalized__note { color: #111 !important; }
body[data-theme="dark"] .mpg-personalized__note { color: #fff !important; }

/* Light theme: the homepage service slider sits on the light page with no dark
   card. The artwork is white line-art on transparency, so invert it to render
   as black line-art and stay visible. */
body[data-theme="light"] .ms-slider--img {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}
body[data-theme="light"] .ms-slider--img img {
  border-radius: 0;
  filter: invert(1);
}

body[data-theme="light"] form[data-static-form] .form-control {
  background: #f2f2f2 !important;
  color: #111 !important;
}
body[data-theme="light"] form[data-static-form] .form-control::placeholder { color: #666 !important; }

/* Remove visible control outlines while keeping clear field surfaces. */
form[data-static-form] .form-control { border-color: transparent !important; }








.cart-fab[hidden] { display: none !important; }




/* Light-mode desktop header keeps a visible surface at all times. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    background: rgba(255,255,255,.96) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
  }
  body[data-theme="light"] .main-header__inner a {
    color: #111;
  }
}



/* Desktop light mode: keep the dark brand header instead of a white strip. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    background: rgba(13,15,14,.97) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
    color: #fff;
  }
  body[data-theme="light"] .main-header__inner a,
  body[data-theme="light"] .main-header__inner .main-header__nav a,
  body[data-theme="light"] .main-header__inner .ms_theme_mode,
  body[data-theme="light"] .main-header__inner .header__search-icon {
    color: #fff !important;
  }
  body[data-theme="light"] .main-header__inner .logo-light { display: block !important; }
  body[data-theme="light"] .main-header__inner .logo-dark { display: none !important; }
  body[data-theme="light"] .main-header__inner .theme-toggle,
  body[data-theme="light"] .main-header__inner .check { color: #fff; }
}

/* Final light desktop header: clean white surface, black logo and navigation. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    background: #fff !important;
    box-shadow: none !important;
    color: #111 !important;
  }
  body[data-theme="light"] .main-header__inner a,
  body[data-theme="light"] .main-header__inner .main-header__nav a,
  body[data-theme="light"] .main-header__inner .ms_theme_mode,
  body[data-theme="light"] .main-header__inner .header__search-icon {
    color: #111 !important;
  }
  body[data-theme="light"] .main-header__inner .logo-dark {
    display: block !important;
    opacity: 1 !important;
  }
  body[data-theme="light"] .main-header__inner .logo-light {
    display: none !important;
    opacity: 0 !important;
  }
}

/* Full-width, flush light header while scrolling. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    padding-left: clamp(24px, 4vw, 60px) !important;
    padding-right: clamp(24px, 4vw, 60px) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    transform: none !important;
  }
}

/* Contained light desktop header: not full width, no top gap, rounded lower edge. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    width: min(1320px, calc(100% - 120px)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
    border-radius: 0 0 32px 32px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

/* Original light layout with a frosted-glass header surface. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    background: rgba(255,255,255,.62) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-radius: 0 0 32px 32px !important;
    box-shadow: none !important;
  }
}

/* Match the live light-mode glass header exactly. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    width: min(1320px, calc(100% - 120px)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    top: 14.5px !important;
    padding: 8px 24px !important;
    transform: translateY(10px) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    isolation: isolate;
  }
  body[data-theme="light"] .main-header__inner::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    border-radius: 40px !important;
    background: rgba(255,255,255,.7) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
  }
}

/* Stable clipped glass layer; header content always sits above it. */
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    isolation: isolate;
  }
  body[data-theme="light"] .main-header__inner > * {
    position: relative;
    z-index: 2;
  }
  body[data-theme="light"] .main-header__inner::after {
    z-index: 0 !important;
    border-radius: 40px !important;
    background: rgba(255,255,255,.70) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
  }
}

/* Real clipped glass layer, not a pseudo-element. */
body[data-theme="light"] .main-header__inner::after { display: none !important; }
.mpg-header-glass { display: none; }
@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner { isolation: isolate; }
  body[data-theme="light"] .mpg-header-glass {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(255,255,255,.70);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: none;
  }
  body[data-theme="light"] .main-header__inner > * { position: relative; z-index: 2; }
  body[data-theme="light"] .main-header__inner > .mpg-header-glass { z-index: 0; }
}

@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner > .mpg-header-glass {
    position: absolute !important;
    inset: 0 !important;
  }
}

@media (min-width: 1024px) {
  body[data-theme="light"] .main-header__inner {
    border-radius: 40px !important;
    overflow: hidden !important;
  }
}
