#header {
    transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
/* Once the page is scrolled (js/site.js adds .is-scrolled) the transparent header gets a light,
   frosted backdrop: the logo is dark and otherwise disappears over the dark Services section. */
#header.is-scrolled {
    background-color: rgba(222, 222, 222, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Contact form submit button while the message is being sent (js/site.js adds .is-submitting) */
.sd[data-s-814cf21a-4d88-402f-99ab-808ab954d092].is-submitting,
.sd[data-s-814cf21a-4d88-402f-99ab-808ab954d092].is-submitting:hover {
  background: #cb6a69ff;
  box-shadow: none;
  opacity: 0.7;
  cursor: progress;
}
.sd[data-s-814cf21a-4d88-402f-99ab-808ab954d092].is-submitting::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: kumo-spin 0.7s linear infinite;
}
@keyframes kumo-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sd[data-s-814cf21a-4d88-402f-99ab-808ab954d092].is-submitting::after { animation-duration: 2s; }
}

/* Headings (SEO/GEO): page and section titles use <h1>-<h3> instead of Studio's <p>/<div>.
   Keep the original look: a heading inherits size and weight like the element it replaced
   (the element's own data-s rule still sets them). Rich-text titles keep their inner <p>s
   (<h1 class="richText sd"><p>…</p></h1>) so the page CSS (`.sd[data-s-…] > p`) still applies. */
:where(.render-canvas) :where(h1, h2, h3, h4, h5, h6):where(.sd, .sd-heading-wrap) { font-size: inherit; font-weight: inherit; }
/* A heading wrapped around a title image (alt text = heading text) must not create a box. */
:where(.render-canvas) .sd-heading-wrap { display: contents; }

/* Header button (Site settings → General → Header button label): the design sized its text for "Contact"
   (width: 67px). Let it fit any label on one line. */
.sd[data-s-df4fa812-7f13-4d9e-9391-baae8e9f3af3] { width: auto; white-space: nowrap; }
