/* =====================================================================
   THEME: the 2026 restyle, loaded on every public page after style.css
   and pages.css. Restyles the shared header, footer, type and buttons.
   Colour tokens live at the top of this file (--mk-navy is the blue).
   index.html also loads home.css.
   ===================================================================== */

:root {
  --mk-bg: #0b0b0e;
  --mk-bg2: #141419;
  --mk-bg3: #1c1c23;
  --mk-line: rgba(255, 255, 255, 0.12);
  --mk-ink: #f4f4f6;
  --mk-mute: #b5b5c4;
  --mk-amber: #e6a84a;
  --mk-amber2: #ffde9b;
  --mk-amber-ink: #e6a84a;
  /* Accent blue: one place to change it. Muted steel slate. */
  --mk-navy: #2b3a4a;
  --mk-navy2: #18212b;
  --mk-navy-rgb: 43, 58, 74;
  /* Header colours match the live JKF site */
  --mk-head-top: #0c0c12;
  --mk-head-bot: #15151f;
  --mk-pad: clamp(20px, 5vw, 72px);
  --mk-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mk-body: "Barlow", system-ui, sans-serif;
  --mk-clip: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --ts: 1;
}

/* main.js sets --text-scale (default 1.2 = "normal"); px sizes below use --ts */
html.pref-text-scale {
  --ts: calc(var(--text-scale, 1.2) / 1.2);
}

html.pref-theme-light {
  --mk-bg: #f5f4f0;
  --mk-bg2: #ebe9e3;
  --mk-bg3: #ffffff;
  --mk-line: rgba(0, 0, 0, 0.12);
  --mk-ink: #16161a;
  --mk-mute: #4a4a52;
  --mk-amber-ink: #8a5b12;
}

html.pref-high-contrast {
  --mk-bg: #000;
  --mk-bg2: #000;
  --mk-bg3: #000;
  --mk-line: rgba(255, 255, 255, 0.6);
  --mk-ink: #fff;
  --mk-mute: #fff;
  --mk-amber: #ffd166;
  --mk-amber2: #ffd166;
  --mk-amber-ink: #ffd166;
}

/* ---------- Type ---------- */
body {
  font-family: var(--mk-body);
}

h1, h2, h3, h4 {
  font-family: var(--mk-head);
  letter-spacing: 0.01em;
}

h1, h2 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}

h3, h4 {
  font-weight: 700;
}

/* ---------- Buttons: clipped corners, condensed caps ---------- */
.btn,
.hero-btn {
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(18px * var(--ts));
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 0;
  clip-path: var(--mk-clip);
  box-shadow: none;
}

.btn-primary,
.hero-btn-primary {
  background: var(--mk-amber);
  border-color: var(--mk-amber);
  color: #141219;
}

.btn-primary:hover,
.hero-btn-primary:hover {
  background: var(--mk-amber2);
  border-color: var(--mk-amber2);
  color: #141219;
}

.btn-secondary,
.hero-btn-secondary {
  background: transparent;
  color: var(--mk-ink);
  border: 0;
  clip-path: none;
  padding-inline: 2px;
  border-bottom: 2px solid var(--mk-amber);
}

.btn-secondary:hover,
.hero-btn-secondary:hover {
  color: var(--mk-amber2);
  border-color: var(--mk-amber2);
}

/* ---------- Header ---------- */
.site-header,
.site-header.header-scrolled,
body.page-gallery .site-header,
body.page-contact .site-header,
body.page-help .site-header,
body.page-gallery .site-header.header-scrolled,
body.page-contact .site-header.header-scrolled,
body.page-help .site-header.header-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0;
  /* live style.css pins gallery/contact/help headers to 48px; match the other pages */
  height: auto;
  background: linear-gradient(to bottom, var(--mk-head-top), var(--mk-head-bot));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--mk-line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header .header-inner,
.site-header.header-scrolled .header-inner,
body.page-gallery .header-inner,
body.page-contact .header-inner,
body.page-help .header-inner {
  max-width: none;
  min-height: 68px;
  padding: 0 var(--mk-pad);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .main-nav,
.site-header.header-scrolled .main-nav {
  width: auto;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.mk-nav-mark,
.mk-nav-acts {
  display: flex !important;
}

.mk-nav-mark {
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--mk-ink);
  text-decoration: none;
  font-family: var(--mk-head);
  font-weight: 800;
  font-size: calc(17px * var(--ts));
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mk-nav-mark img {
  height: 40px;
  width: auto;
}

.site-header .nav-menu {
  width: auto;
  gap: clamp(14px, 2.2vw, 30px);
  justify-content: flex-end;
  align-items: center;
}

.site-header .nav-item-help {
  margin-left: 0;
  position: static;
}

.site-header .nav-link {
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(17px * var(--ts));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-ink);
  opacity: 0.86;
  padding: 8px 0;
}

.site-header .nav-link:hover,
.site-header .nav-link-active {
  color: var(--mk-amber2);
  opacity: 1;
}

.site-header .nav-link::after {
  background: var(--mk-amber);
}

.mk-nav-acts {
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.mk-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mk-ink);
  text-decoration: none;
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(17px * var(--ts));
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mk-nav-call svg {
  width: 18px;
  height: 18px;
  fill: var(--mk-amber);
}

.mk-nav-call:hover {
  color: var(--mk-amber2);
}

.mk-nav-quote {
  display: inline-flex;
  align-items: center;
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(16px * var(--ts));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 18px;
  background: var(--mk-amber);
  color: #141219;
  clip-path: var(--mk-clip);
}

.mk-nav-quote:hover {
  background: var(--mk-amber2);
}

/* Room is tight between 769 and 1180: drop the number text, keep the icon */
@media (max-width: 1180px) {
  .mk-nav-call span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .mk-nav-mark span {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header .header-inner,
  .site-header.header-scrolled .header-inner {
    justify-content: flex-start !important;
    gap: 14px;
    min-height: 60px;
  }
  .mk-nav-mark {
    order: 1;
    margin-right: auto;
  }
  .mk-nav-mark img {
    height: 34px;
  }
  .mk-nav-acts {
    order: 2;
    gap: 14px;
  }
  .site-header .main-nav,
  .site-header.header-scrolled .main-nav {
    order: 3;
    flex: 0 0 auto;
    position: static;
  }
  .mk-nav-quote {
    padding: 10px 14px;
    font-size: calc(15px * var(--ts));
  }
  .site-header .nav-toggle,
  .site-header.header-scrolled .nav-toggle {
    background: transparent;
    border: 1px solid var(--mk-line);
    border-radius: 0;
    width: 44px;
    height: 44px;
  }
  .site-header .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    width: auto;
    min-width: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--mk-line);
    background: var(--mk-head-bot);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    padding: 8px var(--mk-pad) 18px;
    align-items: stretch;
    text-align: left;
    gap: 0;
  }
  .site-header .nav-menu li {
    border-bottom: 1px solid var(--mk-line);
  }
  .site-header .nav-menu .nav-link {
    display: block;
    padding: 14px 0;
    font-size: calc(24px * var(--ts));
  }
  .site-header .nav-link::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .mk-nav-quote {
    padding: 9px 11px;
    font-size: calc(14px * var(--ts));
  }
  .mk-nav-acts {
    gap: 10px;
  }
}

/* Light + high contrast header */
html.pref-theme-light {
  --mk-head-top: #f7f7f7;
  --mk-head-bot: #ededed;
}
html.pref-theme-light .site-header,
html.pref-theme-light .site-header.header-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
html.pref-theme-light .mk-nav-mark img {
  filter: invert(1) brightness(0);
}
html.pref-theme-light .site-header .nav-toggle-bar {
  background: #16161a;
}
@media (max-width: 768px) {
  html.pref-theme-light .site-header .nav-menu {
    background: var(--mk-head-bot);
  }
}
html.pref-theme-light .mk-nav-call svg {
  fill: var(--mk-amber-ink);
}
html.pref-high-contrast {
  --mk-head-top: #000;
  --mk-head-bot: #000;
}
html.pref-high-contrast .site-header {
  border-bottom-color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--mk-bg2);
  border-top: 1px solid var(--mk-line);
  color: var(--mk-mute);
  padding: 0 0 22px;
  font-family: var(--mk-body);
}

.mk-foot-top {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 34px var(--mk-pad) 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--mk-line);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(var(--mk-navy-rgb), 0.55), transparent 60%),
    transparent;
}

.mk-foot-logos {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mk-foot-logos img {
  height: 46px;
  width: auto;
}

.mk-foot-logos .mk-foot-main {
  height: 62px;
}

.mk-foot-line {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--mk-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: calc(26px * var(--ts));
  line-height: 1;
  color: var(--mk-ink);
  white-space: normal;
}

.mk-foot-quote {
  display: inline-flex;
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(18px * var(--ts));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 26px;
  background: var(--mk-amber);
  color: #141219;
  clip-path: var(--mk-clip);
}

.mk-foot-quote:hover {
  background: var(--mk-amber2);
}

.site-footer .footer-container {
  max-width: none;
  padding: 0 var(--mk-pad);
}

.footer-col h4 {
  font-family: var(--mk-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mk-amber);
  font-size: calc(17px * var(--ts));
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--mk-amber2);
}

.site-footer .social-link--contact {
  border-radius: 0;
}

html.pref-theme-light .site-footer {
  background: var(--mk-bg2);
  color: var(--mk-mute);
}
html.pref-theme-light .footer-col h4,
html.pref-theme-light .footer-col a {
  color: var(--mk-amber-ink);
}
html.pref-theme-light .site-footer .social-link {
  background: var(--mk-bg);
  border-color: var(--mk-line);
  color: var(--mk-amber-ink);
}
html.pref-theme-light .mk-foot-logos img {
  filter: invert(1) brightness(0);
}
html.pref-theme-light .mk-foot-top {
  background: radial-gradient(ellipse at 0% 0%, rgba(var(--mk-navy-rgb), 0.14), transparent 60%);
}
html.pref-high-contrast .site-footer,
html.pref-high-contrast .mk-foot-top {
  background: #000;
}

/* Once the band wraps, stack it and centre everything */
@media (max-width: 900px) {
  .mk-foot-top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
  }
  .mk-foot-top > * {
    max-width: 100%;
    box-sizing: border-box;
  }
  .mk-foot-logos {
    justify-content: center;
    flex-wrap: wrap;
  }
  .mk-foot-line { flex: 0 0 auto; }
  .mk-foot-quote { justify-content: center; }
}

/* Footer details on tablets/phones: the live CSS shrinks the whole block with
   transform: scale(0.68) and splits it left/right. Stack it, centred, full size. */
@media (max-width: 980px) {
  .site-footer .footer-container {
    transform: none !important;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    justify-items: center;
    row-gap: 22px;
    text-align: center;
  }
  .site-footer .footer-contact,
  .site-footer .footer-contact-center,
  .site-footer .footer-hours {
    grid-column: 1 !important;
    grid-row: auto !important;
    text-align: center !important;
  }
  .site-footer .footer-contact { order: 1; }
  .site-footer .footer-contact-center { order: 2; }
  .site-footer .footer-hours { order: 3; }
  .site-footer .footer-contact-grid {
    grid-template-columns: auto auto !important;
    justify-content: center;
    column-gap: 40px;
  }
  .site-footer .footer-contact-item,
  .site-footer .footer-contact-item:last-child {
    align-items: center !important;
    text-align: center !important;
  }
  .site-footer .footer-col h4 { font-size: calc(17px * var(--ts)); }
  .site-footer .footer-col p,
  .site-footer .footer-col a,
  .site-footer .footer-contact-grid p { font-size: calc(15px * var(--ts)); }
}

@media (max-width: 640px) {
  .mk-foot-logos img { height: 36px; }
  .mk-foot-logos .mk-foot-main { height: 50px; }
  .mk-foot-quote { width: 100%; justify-content: center; }
}

/* Contact page: give the heading room under the fixed header on phones */
@media (max-width: 800px) {
  main .content-section.content-section--contact { padding-top: 28px; }
}

/* Light theme, desktop: the live white menu box is for the phone drop-down only */
@media (min-width: 769px) {
  html.pref-theme-light .site-header .nav-menu {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* ---------- Skip link (keyboard users) ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--mk-amber);
  color: #111;
  font-family: var(--mk-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Footer: service links and base line ---------- */
.mk-foot-services {
  margin: 22px var(--mk-pad) 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--mk-line);
  text-align: center;
}

.mk-foot-services h4 {
  font-family: var(--mk-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: calc(17px * var(--ts));
  color: var(--mk-amber);
  margin: 0 0 12px;
}

.mk-foot-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.site-footer .mk-foot-services a {
  color: var(--mk-ink);
  text-decoration: none;
  font-size: calc(15px * var(--ts));
}

.site-footer .mk-foot-services a:hover,
.site-footer .mk-foot-services a:focus-visible {
  color: var(--mk-amber2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mk-foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 22px;
  margin: 20px var(--mk-pad) 0;
  padding-top: 16px;
  border-top: 1px solid var(--mk-line);
  font-size: calc(13px * var(--ts));
  color: var(--mk-mute);
}

.mk-foot-base p {
  margin: 0;
}

.site-footer .mk-foot-base a {
  color: var(--mk-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .mk-foot-base a:hover,
.site-footer .mk-foot-base a:focus-visible {
  color: var(--mk-amber2);
}

html.pref-theme-light .mk-foot-services h4 {
  color: var(--mk-amber-ink);
}

html.pref-theme-light .site-footer .mk-foot-services a:hover,
html.pref-theme-light .site-footer .mk-foot-services a:focus-visible,
html.pref-theme-light .site-footer .mk-foot-base a:hover,
html.pref-theme-light .site-footer .mk-foot-base a:focus-visible {
  color: var(--mk-amber-ink);
}

@media (max-width: 980px) {
  .mk-foot-base {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Privacy policy ---------- */
body.page-privacy .help-panel ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

body.page-privacy .help-panel li {
  margin: 0 0 6px;
  font-size: calc(17px * var(--ts, 1));
  line-height: 1.65;
  color: var(--mk-mute);
}

body.page-privacy .help-panel p:last-child,
body.page-privacy .help-panel ul:last-child {
  margin-bottom: 0;
}

body.page-privacy .help-panel a:not([class]) {
  color: var(--mk-amber-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =====================================================================
   SECTION BANDS: the test site's distinct sections. A band re-scopes the
   colour tokens, so everything inside it (text, lines, cards, buttons)
   follows automatically. Concrete = light band on the dark site (a dark
   charcoal band in light mode). Amber = the gold "let's talk" band with a
   dark card on it. High contrast keeps plain black, so it is skipped.
   ===================================================================== */
html:not(.pref-high-contrast) body.mk-home #home-services,
html:not(.pref-high-contrast) body.mk-home .review-inline-slot[data-review-slot="home-services"],
html:not(.pref-high-contrast) body.mk-home .mk-words,
html:not(.pref-high-contrast) body:not(.mk-home) #core-values,
html:not(.pref-high-contrast) body:not(.mk-home) .designer-highlight {
  --mk-bg: #dcdcdf;
  --mk-bg2: #cfcfd5;
  --mk-bg3: #ececef;
  --mk-line: rgba(22, 22, 26, 0.16);
  --mk-ink: #16161a;
  --mk-mute: #3c3c46;
  --mk-amber-ink: #7a4f0e;
  color: var(--mk-ink);
}

html.pref-theme-light body.mk-home #home-services,
html.pref-theme-light body.mk-home .review-inline-slot[data-review-slot="home-services"],
html.pref-theme-light body.mk-home .mk-words,
html.pref-theme-light body:not(.mk-home) #core-values,
html.pref-theme-light body:not(.mk-home) .designer-highlight {
  --mk-bg: #1b1b21;
  --mk-bg2: #232329;
  --mk-bg3: #2a2a31;
  --mk-line: rgba(255, 255, 255, 0.14);
  --mk-ink: #f4f4f6;
  --mk-mute: #c3c3ce;
  --mk-amber-ink: #e6a84a;
}

html:not(.pref-high-contrast) body.mk-home #contact,
html:not(.pref-high-contrast) body:not(.mk-home) .landing-quote,
html:not(.pref-high-contrast) body.page-services:not(.page-landing) #service-area {
  --mk-bg: #e6a84a;
  --mk-bg2: #e6a84a;
  --mk-bg3: #edb965;
  --mk-line: rgba(18, 18, 18, 0.22);
  --mk-ink: #121212;
  --mk-mute: #2b2217;
  --mk-amber: #121212;
  --mk-amber2: #3a3a40;
  --mk-amber-ink: #121212;
  color: var(--mk-ink);
  background: var(--mk-bg) !important;
}

/* the card sitting on the gold band stays dark, like the test site's form */
html:not(.pref-high-contrast) body.mk-home #contact .contact-card,
html:not(.pref-high-contrast) body:not(.mk-home) .landing-quote .contact-form-card,
html:not(.pref-high-contrast) body.mk-home .review-inline-slot[data-review-slot="home-services"] .hero-review--inline {
  --mk-bg: #0b0b0e;
  --mk-bg2: #141419;
  --mk-bg3: #141419;
  --mk-line: rgba(255, 255, 255, 0.12);
  --mk-ink: #f4f4f6;
  --mk-mute: #b5b5c4;
  --mk-amber: #e6a84a;
  --mk-amber2: #ffde9b;
  --mk-amber-ink: #e6a84a;
  color: var(--mk-mute);
}

/* buttons on gold: charcoal with white text */
html:not(.pref-high-contrast) body.mk-home #contact .contact-main .btn-primary,
html:not(.pref-high-contrast) body.mk-home #contact .contact-main .btn-primary:hover {
  background: #121212 !important;
  border-color: #121212 !important;
  color: #fff !important;
}
html:not(.pref-high-contrast) body.mk-home #contact .contact-main .btn-primary:hover {
  background: #2a2a30 !important;
}
html:not(.pref-high-contrast) body.mk-home #contact .contact-main .btn-secondary {
  color: #121212 !important;
  border-color: #121212 !important;
}

/* soft depth on the plain dark bands so they stop reading as one flat colour */
html:not(.pref-high-contrast) body:not(.mk-home) .home-section-light:not(#contact-main):not(.landing-quote):not(#service-area),
html:not(.pref-high-contrast) body:not(.mk-home) .services-division.home-section-light {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(var(--mk-navy-rgb), 0.35), transparent 70%),
    var(--mk-bg2) !important;
}
html.pref-theme-light body:not(.mk-home) .home-section-light:not(#contact-main):not(.landing-quote):not(#service-area),
html.pref-theme-light body:not(.mk-home) .services-division.home-section-light {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(var(--mk-navy-rgb), 0.10), transparent 70%),
    var(--mk-bg2) !important;
}

/* inline reviews: no glow behind the quote text */
.hero-review--inline .hero-review-text,
.hero-review--inline .hero-review-author {
  text-shadow: none !important;
}

/* ---------- Contact page: dark band with a faded project photo ---------- */
body.page-contact .content-section--contact > .content-inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.page-contact #contact-main {
  position: relative;
  isolation: isolate;
}
html:not(.pref-high-contrast) body.page-contact #contact-main {
  background:
    radial-gradient(ellipse 60% 55% at 100% 100%, rgba(var(--mk-navy-rgb), 0.38), transparent 70%),
    var(--mk-bg) !important;
}
html.pref-theme-light body.page-contact #contact-main {
  background:
    radial-gradient(ellipse 60% 55% at 100% 100%, rgba(var(--mk-navy-rgb), 0.12), transparent 70%),
    var(--mk-bg) !important;
}
html:not(.pref-high-contrast) body.page-contact #contact-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(380px, 52vw, 560px);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mk-bg) 62%, transparent) 0%, color-mix(in srgb, var(--mk-bg) 82%, transparent) 55%, var(--mk-bg) 100%),
    url("../assets/img/bw-dusk-1600.webp") center 45% / cover no-repeat;
}
html:not(.pref-high-contrast) body.page-contact #contact-main .contact-header h1 {
  color: var(--mk-ink) !important;
}
/* the "meet your crew" panel only takes room once a service is picked */
body.page-contact .contact-team-panel:not(.is-active) {
  display: none;
}
body.page-contact .contact-team-panel.is-active {
  animation: mkPanelIn 0.35s ease both;
}
@keyframes mkPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
html:not(.pref-high-contrast) body.page-contact #contact-main .contact-team-panel.is-active {
  color: var(--mk-mute);
  border: 1px solid var(--mk-line);
  background: var(--mk-bg2) !important;
  border-top: 3px solid var(--mk-amber) !important;
  padding: clamp(20px, 3vw, 32px) !important;
}
@media (prefers-reduced-motion: reduce) {
  body.page-contact .contact-team-panel.is-active { animation: none; }
}
.contact-side-note a,
.contact-form-card p a:not([class]) {
  color: var(--mk-amber-ink, #e6a84a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- About: team, centred like an org chart ---------- */
body:not(.mk-home) #team > .home-section-header {
  text-align: center;
  margin-inline: auto;
}
body:not(.mk-home) #team > .home-section-header .section-kicker {
  margin-inline: auto;
}
body:not(.mk-home) #team .team-company-block {
  margin-bottom: clamp(40px, 6vw, 72px);
}
body:not(.mk-home) #team .team-company-header,
html.pref-theme-light body:not(.mk-home) #team .team-company-header {
  max-width: 620px;
  margin: 0 auto 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-left: 0;
  border-top: 3px solid var(--mk-amber);
  background: transparent;
  padding-top: 22px;
  text-align: center;
}
body:not(.mk-home) #team .team-company-text {
  text-align: center;
}
body:not(.mk-home) #team .team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}
body:not(.mk-home) #team .team-card {
  flex: 0 1 266px;
  width: auto;
  min-width: 240px;
  max-width: 280px;
  min-height: 0;
  height: auto;
  text-align: center;
}
/* the lead person sits alone on the first row, centred */
body:not(.mk-home) #team .team-card--featured {
  flex: 0 0 min(100%, 400px);
  max-width: min(100%, 400px);
  margin-inline: max(0px, calc((100% - 400px) / 2));
  min-height: 0; /* about.html's inline 520px left an empty gap under short bios */
}
/* The 4:3 photo used to shrink inside the column flex card while the card kept
   its full-height size, leaving a blank band under the bio. Hold the ratio. */
body:not(.mk-home) #team .team-card-photo {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  body:not(.mk-home) #team .team-card,
  body:not(.mk-home) #team .team-card--featured {
    flex: 1 1 100% !important;
    max-width: 440px !important;
    min-width: 0;
    margin-inline: auto;
  }
  body:not(.mk-home) #team .team-company-header {
    flex-direction: column;
    text-align: center;
  }
}

body.page-contact #contact-main > .contact-header {
  text-align: center;
  margin-inline: auto;
}
body.page-contact #contact-main > .contact-header > p {
  margin-inline: auto;
}

.hero-review--inline .hero-review-stars,
.hero-review--inline .hero-review-stars span {
  text-shadow: none !important;
  filter: none !important;
}

/* ---------- Touch targets and small fixes (final pass) ---------- */
.mk-nav-call {
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}
.hero-review-dot {
  position: relative;
}
.hero-review-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
}
.project-gallery-bar {
  box-sizing: border-box;
}
/* Text links that sit on their own line still need a finger-sized hit area */
.review-lightbox-link,
.hero .hero-projects-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 980px) {
  .mk-foot-services li {
    font-size: calc(15px * var(--ts, 1));
  }
  .mk-foot-services a {
    display: inline-block;
    padding: 4px 0;
  }
}
