/* =====================================================================
   PAGES: every page except the home page (body:not(.mk-home)).
   Brings about, services, contact, gallery, help, 404, thank-you and the
   nine Google Ads landing pages into the same look as the home page.
   CSS only: no markup, link, form or tracking changes.
   Loaded before theme.css.
   ===================================================================== */

/* ---------- Page ground ---------- */
html:has(body:not(.mk-home)),
body:not(.mk-home) {
  background: var(--mk-bg);
}
html.pref-theme-light body:not(.mk-home),
html.pref-theme-light body:not(.mk-home) main {
  background: var(--mk-bg) !important;
}
body:not(.mk-home) {
  color: var(--mk-ink);
}

/* ---------- Type ---------- */
body:not(.mk-home) .section-kicker {
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(16px * var(--ts));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mk-amber-ink);
  margin: 0 0 12px;
}
html.pref-theme-light body:not(.mk-home) .section-kicker {
  color: var(--mk-amber-ink);
}

body:not(.mk-home) main h2 {
  color: var(--mk-ink);
}

body:not(.mk-home) .content-inner p {
  color: var(--mk-mute);
  font-size: calc(17px * var(--ts));
  line-height: 1.65;
}

body:not(.mk-home) .text-highlight {
  color: inherit;
  background: none;
  box-shadow: inset 0 -2px 0 var(--mk-amber);
  font-weight: 600;
  padding: 0;
}

/* ---------- Subpage + landing hero: full bleed, shaded, text bottom-left ---------- */
body:not(.mk-home) .hero {
  min-height: clamp(480px, 74svh, 780px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #0b0b0e;
}

body:not(.mk-home) .hero-img {
  -webkit-mask-image: none;
  mask-image: none;
}

body:not(.mk-home) .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #0b0b0ef0 0%, #0b0b0ec4 40%, #0b0b0e40 75%, #0b0b0e22),
    linear-gradient(0deg, #0b0b0e 0%, #0b0b0e00 40%);
}

body:not(.mk-home) .hero-content,
body:not(.mk-home) .hero--subpage .hero-content,
html.pref-theme-light body:not(.mk-home) .hero-content {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  z-index: 2;
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0;
  padding: 130px var(--mk-pad) clamp(48px, 8vh, 88px);
  background: none !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

body:not(.mk-home) .hero-content > .hero-google-badge { order: 0; }
body:not(.mk-home) .hero-content > .hero-kicker { order: 1; }
body:not(.mk-home) .hero-content > .hero-title { order: 2; }
body:not(.mk-home) .hero-content > .hero-lede { order: 3; }
body:not(.mk-home) .hero-content > .hero-cta-row { order: 4; }
body:not(.mk-home) .hero-content > .hero-projects-link { order: 5; margin-top: 18px; }

body:not(.mk-home) .hero-kicker,
body:not(.mk-home) .hero-title,
body:not(.mk-home) .hero-lede {
  text-shadow: none;
}

body:not(.mk-home) .hero-kicker,
html.pref-theme-light body:not(.mk-home) .hero-kicker {
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(17px * var(--ts));
  letter-spacing: 0.16em;
  color: var(--mk-amber);
  margin: 0 0 14px;
}

body:not(.mk-home) .hero-title,
body:not(.mk-home) .hero--subpage .hero-title,
html.pref-theme-light body:not(.mk-home) .hero-title {
  font-size: calc(clamp(40px, 5.4vw, 88px) * var(--ts));
  line-height: 0.92;
  max-width: 15ch;
  color: #fff;
  margin: 0 0 20px;
}

body:not(.mk-home) .hero-lede,
body:not(.mk-home) .hero--subpage .hero-lede,
html.pref-theme-light body:not(.mk-home) .hero-lede {
  font-size: calc(clamp(17px, 1.4vw, 20px) * var(--ts));
  line-height: 1.55;
  color: #d6d6de;
  max-width: 36em;
  margin: 0 0 28px;
}

body:not(.mk-home) .hero-lede .text-highlight {
  color: #fff;
}

body:not(.mk-home) .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

body:not(.mk-home) .hero-cta-row .show-on-mobile {
  display: inline-flex;
}

body:not(.mk-home) .hero-btn-primary,
html.pref-theme-light body:not(.mk-home) .hero-btn-primary {
  background: var(--mk-amber);
  border-color: var(--mk-amber);
  color: #141219;
}

body:not(.mk-home) .hero-btn-secondary,
html.pref-theme-light body:not(.mk-home) .hero-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--mk-amber);
}

body:not(.mk-home) .hero-google-badge,
html.pref-theme-light body:not(.mk-home) .hero-google-badge {
  margin: 0 0 22px;
  border-radius: 0;
  padding: 8px 14px 8px 12px;
  background: rgba(11, 11, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--mk-amber);
  box-shadow: none;
}

body:not(.mk-home) .hero-google-badge-text strong,
html.pref-theme-light body:not(.mk-home) .hero-google-badge-text strong {
  font-family: var(--mk-head);
  font-size: calc(17px * var(--ts));
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

body:not(.mk-home) .hero-google-badge-text span {
  font-size: calc(12px * var(--ts));
  color: var(--mk-amber2);
}

/* ---------- Logo band (same as home) ---------- */
body:not(.mk-home) .page-logo-row,
html.pref-theme-light body:not(.mk-home) .page-logo-row {
  background: var(--mk-bg2);
  border-top: 1px solid var(--mk-line);
  border-bottom: 1px solid var(--mk-line);
  box-shadow: none;
  padding: 24px var(--mk-pad);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.mk-home) .page-logo-row .header-logo {
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
}

body:not(.mk-home) .page-logo-row .logo-secondary {
  display: block;
}

body:not(.mk-home) .page-logo-row .brand-logo-main {
  height: clamp(58px, 6vw, 84px);
}

body:not(.mk-home) .page-logo-row .brand-logo-secondary {
  height: clamp(40px, 4.2vw, 60px);
}

/* ---------- Content shell: flat full-width bands ---------- */
body:not(.mk-home) .content-section,
html.pref-theme-light body:not(.mk-home) .content-section {
  padding: 0;
  min-height: 0;
  background: var(--mk-bg) !important;
}

body:not(.mk-home) .content-inner {
  max-width: none;
}

body:not(.mk-home) .home-section,
body:not(.mk-home) .services-division,
body:not(.mk-home) .landing-service-area {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* full-bleed band, content held to 1240px */
  padding: clamp(60px, 8vw, 112px) max(var(--mk-pad), calc((100% - 1240px) / 2));
  scroll-margin-top: 68px;
}

body:not(.mk-home) .home-section-dark,
html.pref-theme-light body:not(.mk-home) .home-section-dark {
  background: var(--mk-bg) !important;
}

body:not(.mk-home) .home-section-light,
html.pref-theme-light body:not(.mk-home) .home-section-light,
html.pref-theme-light body:not(.mk-home) .services-division {
  background: var(--mk-bg2) !important;
}

/* services page: the two division bands still alternate */
body:not(.mk-home) .services-division.home-section-dark,
html.pref-theme-light body:not(.mk-home) .services-division.home-section-dark {
  background: var(--mk-bg) !important;
}

body:not(.mk-home) .home-section + .home-section {
  border-top: 1px solid var(--mk-line);
}

body:not(.mk-home) .home-section-header {
  text-align: left;
  margin-bottom: clamp(26px, 4vw, 44px);
}

body:not(.mk-home) .home-section-header h2 {
  font-size: calc(clamp(38px, 5.4vw, 76px) * var(--ts));
  margin: 0 0 16px;
}

body:not(.mk-home) .home-section-header p {
  max-width: 46em;
}

/* ---------- Two-column (about story, core values) ---------- */
body:not(.mk-home) .home-two-col {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  max-width: none;
  justify-items: stretch;
  text-align: left;
}

body:not(.mk-home) .home-two-col-main p:first-child {
  font-size: calc(22px * var(--ts));
  line-height: 1.45;
  color: var(--mk-ink);
}

body:not(.mk-home) .home-two-col-aside,
html.pref-theme-light body:not(.mk-home) .home-two-col-aside {
  border-radius: 0;
  border: 0 !important;
  border-top: 3px solid var(--mk-amber) !important;
  background: linear-gradient(160deg, var(--mk-navy) 0%, var(--mk-navy2) 100%) !important;
  box-shadow: none !important;
  padding: 30px 30px 26px;
  color: #dfe3e8;
  font-size: calc(17px * var(--ts));
}

body:not(.mk-home) .home-two-col-aside h3 {
  font-family: var(--mk-head);
  font-weight: 800;
  font-size: calc(30px * var(--ts));
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}

body:not(.mk-home) .home-two-col-aside p {
  color: #dfe3e8;
}

body:not(.mk-home) .home-two-col-aside ul:not(.core-values-list) {
  list-style: none;
  padding: 0;
  margin: 0;
}

body:not(.mk-home) .home-two-col-aside ul:not(.core-values-list) li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0;
  line-height: 1.45;
}

body:not(.mk-home) .home-two-col-aside ul:not(.core-values-list) li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 12px;
  height: 2px;
  background: var(--mk-amber);
}

body:not(.mk-home) .home-two-col-aside .text-highlight {
  color: #fff;
}

/* the core-values band is re-toned per theme, so its heading follows the band ink */
body:not(.mk-home) .core-values .home-two-col-aside h3 {
  color: var(--mk-ink);
}

/* About: core values become a numbered row of squared cards */
body:not(.mk-home) .core-values .home-two-col {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
}

body:not(.mk-home) .core-values .home-two-col-main,
body:not(.mk-home) .core-values .home-two-col-aside {
  max-width: none;
}

body:not(.mk-home) .core-values .home-two-col-aside,
html.pref-theme-light body:not(.mk-home) .core-values .home-two-col-aside {
  background: none !important;
  border-top: 0 !important;
  padding: 0;
  color: var(--mk-mute);
}

body:not(.mk-home) .core-values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  counter-reset: mkval;
}

body:not(.mk-home) .core-values-list li,
html.pref-theme-light body:not(.mk-home) .core-values-list li {
  counter-increment: mkval;
  border-radius: 0;
  border: 1px solid var(--mk-line);
  border-top: 3px solid var(--mk-amber);
  background: var(--mk-bg2);
  box-shadow: none;
  padding: 22px 22px 24px;
  color: var(--mk-mute);
  line-height: 1.55;
  font-size: calc(16px * var(--ts));
}

body:not(.mk-home) .core-values-list li::before {
  content: counter(mkval, decimal-leading-zero);
  display: block;
  font-family: var(--mk-head);
  font-weight: 800;
  font-size: calc(34px * var(--ts));
  line-height: 1;
  color: var(--mk-amber-ink);
  margin-bottom: 10px;
}

body:not(.mk-home) .core-value-title {
  display: block;
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(22px * var(--ts));
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--mk-ink);
  margin-bottom: 6px;
}

/* About: team */
body:not(.mk-home) .team-company-header,
html.pref-theme-light body:not(.mk-home) .team-company-header,
body:not(.mk-home) .team-department-header {
  border-radius: 0;
  border: 0;
  border-left: 3px solid var(--mk-amber);
  background: var(--mk-bg2);
  box-shadow: none;
  max-width: none;
  margin-inline: 0;
  color: var(--mk-mute);
}

body:not(.mk-home) .team-company-text h3,
html.pref-theme-light body:not(.mk-home) .team-company-text h3,
body:not(.mk-home) .team-department-meta h3 {
  font-family: var(--mk-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: calc(24px * var(--ts));
  color: var(--mk-ink);
}

html.pref-theme-light body:not(.mk-home) .team-company-text {
  color: var(--mk-mute);
}

body:not(.mk-home) .team-grid {
  justify-content: flex-start;
}

/* One card per row on phones: fill the column instead of hugging the left edge */
@media (max-width: 720px) {
  body:not(.mk-home) .team-card {
    flex: 1 1 100% !important;
    width: auto !important;
    max-width: 100% !important;
  }
}

body:not(.mk-home) .team-card,
html.pref-theme-light body:not(.mk-home) .team-card {
  border-radius: 0;
  border: 1px solid var(--mk-line);
  border-top: 3px solid var(--mk-amber);
  background: var(--mk-bg2);
  box-shadow: none;
  padding: 0 0 18px;
  overflow: hidden;
}

body:not(.mk-home) .team-card-photo,
body:not(.mk-home) .team-card-photo img {
  border-radius: 0;
}

body:not(.mk-home) .team-card-body {
  padding: 4px 18px 0;
}

body:not(.mk-home) .team-card-body h4,
html.pref-theme-light body:not(.mk-home) .team-card-body h4 {
  font-family: var(--mk-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: calc(28px * var(--ts));
  color: var(--mk-ink);
  margin: 6px 0 2px;
}

body:not(.mk-home) .team-card-title,
body:not(.mk-home) .team-card-tagline,
body:not(.mk-home) .team-card-more {
  color: var(--mk-amber-ink);
}

body:not(.mk-home) .team-card-title {
  font-family: var(--mk-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.mk-home) .team-card-body p,
html.pref-theme-light body:not(.mk-home) .team-card-body p {
  color: var(--mk-mute);
}

body:not(.mk-home) .team-card-body .team-card-title,
html.pref-theme-light body:not(.mk-home) .team-card-body .team-card-title,
html.pref-theme-light body:not(.mk-home) .team-card-body .team-card-tagline,
html.pref-theme-light body:not(.mk-home) .team-card-body .team-card-more {
  color: var(--mk-amber-ink);
}

/* team + review lightboxes */
body:not(.mk-home) .team-lightbox-inner,
body:not(.mk-home) .review-lightbox-inner,
html.pref-theme-light body:not(.mk-home) .team-lightbox-inner {
  border-radius: 0;
  border-top: 3px solid var(--mk-amber);
}

body:not(.mk-home) .team-lightbox-close,
body:not(.mk-home) .review-lightbox-close {
  border-radius: 0;
}

body:not(.mk-home) .team-lightbox-photo-main,
body:not(.mk-home) .team-lightbox-photo-alt,
body:not(.mk-home) .team-lightbox-photo-col img {
  border-radius: 0;
}

body:not(.mk-home) .team-lightbox-name {
  font-family: var(--mk-head);
  font-weight: 800;
  text-transform: uppercase;
}

/* ---------- Services: division header, service rows ---------- */
body:not(.mk-home) .services-division-header {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 14px 28px;
  padding-bottom: 26px;
  margin-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--mk-line);
}

body:not(.mk-home) .services-division-logo {
  height: clamp(64px, 7vw, 96px);
  margin: 0;
}

body:not(.mk-home) .services-division-tagline {
  flex: 1 1 280px;
  font-family: var(--mk-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: calc(clamp(22px, 2.4vw, 32px) * var(--ts));
  line-height: 1.05;
  color: var(--mk-ink) !important;
}

body:not(.mk-home) .services-division-body {
  gap: clamp(36px, 5vw, 64px);
}

body:not(.mk-home) .service-row {
  gap: clamp(24px, 4vw, 56px);
}

body:not(.mk-home) .service-row-image {
  position: relative;
}

body:not(.mk-home) .service-row-image img {
  border-radius: 0;
  height: clamp(240px, 26vw, 360px);
}

body:not(.mk-home) .service-row-image::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  background: var(--mk-amber);
}

body:not(.mk-home) .service-row-image--empty {
  border-radius: 0;
}

body:not(.mk-home) .service-row-text h3 {
  font-family: var(--mk-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: calc(clamp(26px, 2.6vw, 36px) * var(--ts));
  line-height: 1;
  color: var(--mk-ink);
  margin: 0 0 12px;
}

body:not(.mk-home) .service-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

body:not(.mk-home) .service-bullets li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-top: 1px solid var(--mk-line);
  color: var(--mk-mute);
  line-height: 1.5;
}

body:not(.mk-home) .service-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 10px;
  height: 2px;
  background: var(--mk-amber);
}

body:not(.mk-home) .service-row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 18px;
}

body:not(.mk-home) .service-row-links a:not(.btn):not(.hero-btn) {
  color: var(--mk-ink);
  font-family: var(--mk-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--mk-amber);
  padding-bottom: 2px;
}

/* ---------- Designer / tech cards ---------- */
body:not(.mk-home) .designer-highlight {
  margin: 0;
}

body:not(.mk-home) .designer-card,
html.pref-theme-light body:not(.mk-home) .designer-card {
  border-radius: 0;
  border: 1px solid var(--mk-line);
  border-left: 3px solid var(--mk-amber);
  background: var(--mk-bg2);
  box-shadow: none;
  padding: clamp(20px, 3vw, 34px);
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}

body:not(.mk-home) .designer-card--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
}

body:not(.mk-home) .home-section-light .designer-card {
  background: var(--mk-bg3);
}

body:not(.mk-home) .designer-photo img {
  border-radius: 0;
}

body:not(.mk-home) .designer-copy h2,
body:not(.mk-home) .designer-copy h3 {
  font-size: calc(clamp(30px, 3.2vw, 46px) * var(--ts));
  color: var(--mk-ink);
}

body:not(.mk-home) .designer-contact a {
  color: var(--mk-amber-ink);
}

/* ---------- Landing pages ---------- */
body:not(.mk-home) .landing-trust {
  gap: 14px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

body:not(.mk-home) .landing-trust li,
html.pref-theme-light body:not(.mk-home) .landing-trust li {
  border-radius: 0;
  border: 1px solid var(--mk-line);
  border-top: 3px solid var(--mk-amber);
  background: var(--mk-bg2);
  padding: 20px 20px 22px;
  gap: 8px;
}

body:not(.mk-home) .landing-trust strong,
html.pref-theme-light body:not(.mk-home) .landing-trust strong {
  font-family: var(--mk-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: calc(22px * var(--ts));
  line-height: 1.05;
  color: var(--mk-ink);
}

body:not(.mk-home) .landing-trust span,
html.pref-theme-light body:not(.mk-home) .landing-trust span {
  font-size: calc(15px * var(--ts));
  line-height: 1.5;
  color: var(--mk-mute);
}

/* the landing service rows sit inside a services-division with no band of their own */
body:not(.mk-home) .home-section .services-division {
  padding: 0;
  background: none !important;
  margin-top: 0;
}

body:not(.mk-home) .landing-quote .home-section-header,
body:not(.mk-home) .landing-gallery .home-section-header,
body:not(.mk-home) .landing-service-area .home-section-header {
  text-align: left;
}

body:not(.mk-home) .landing-service-area,
html.pref-theme-light body:not(.mk-home) .landing-service-area {
  background: var(--mk-bg2) !important;
  border-top: 1px solid var(--mk-line);
  border-bottom: 0;
}

body:not(.mk-home) .landing-service-area-inner {
  max-width: none;
}

body:not(.mk-home) .landing-review-note {
  color: var(--mk-mute);
}

/* ---------- Inline review carousel (subpages + landing) ---------- */
body:not(.mk-home) .review-inline-slot {
  max-width: none;
  margin: 0;
  padding: clamp(40px, 6vw, 72px) var(--mk-pad);
  background: var(--mk-bg);
}

body:not(.mk-home) .review-inline-slot:empty {
  display: none;
}

body:not(.mk-home) .hero-review--inline,
html.pref-theme-light body:not(.mk-home) .hero-review--inline {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 0;
  text-align: left;
  background: var(--mk-bg2) !important;
  border: 1px solid var(--mk-line);
  border-left: 3px solid var(--mk-amber);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 22px 26px;
}

body:not(.mk-home) .hero-review--inline .hero-review-stars {
  justify-content: flex-start;
  text-align: left;
  color: var(--mk-amber);
}

body:not(.mk-home) .hero-review--inline .hero-review-text,
html.pref-theme-light body:not(.mk-home) .hero-review--inline .hero-review-text {
  color: var(--mk-ink);
  font-size: calc(19px * var(--ts));
  line-height: 1.55;
  text-shadow: none;
}

body:not(.mk-home) .hero-review--inline .hero-review-author,
html.pref-theme-light body:not(.mk-home) .hero-review--inline .hero-review-author {
  font-family: var(--mk-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mk-amber-ink);
  text-shadow: none;
}

body:not(.mk-home) .hero-review--inline .hero-review-more-inline {
  color: var(--mk-amber-ink);
}

body:not(.mk-home) .hero-review-arrow,
body:not(.mk-home) .hero-review-close {
  border-radius: 0;
}

/* ---------- Forms (contact page + landing quote) ---------- */
body:not(.mk-home) .contact-form-card,
html.pref-theme-light body:not(.mk-home) .contact-form-card {
  border-radius: 0;
  border: 1px solid var(--mk-line) !important;
  border-top: 3px solid var(--mk-amber) !important;
  background: var(--mk-bg3) !important;
  box-shadow: none !important;
  padding: clamp(22px, 3vw, 36px);
}

html:not(.pref-theme-light) body:not(.mk-home) .contact-form-card {
  background: var(--mk-bg2) !important;
}

body:not(.mk-home) .contact-form-card h3 {
  font-family: var(--mk-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: calc(32px * var(--ts));
  color: var(--mk-ink);
}

body:not(.mk-home) .contact-form-card p,
body:not(.mk-home) .form-field label,
html.pref-theme-light body:not(.mk-home) .form-field label {
  color: var(--mk-mute);
}

body:not(.mk-home) .form-field label {
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(15px * var(--ts));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:not(.mk-home) .form-field span.required {
  color: var(--mk-amber-ink);
}

body:not(.mk-home) .form-field input,
body:not(.mk-home) .form-field select,
body:not(.mk-home) .form-field textarea,
html.pref-theme-light body:not(.mk-home) .form-field input,
html.pref-theme-light body:not(.mk-home) .form-field select,
html.pref-theme-light body:not(.mk-home) .form-field textarea {
  border-radius: 0;
  border: 1px solid var(--mk-line);
  border-bottom: 2px solid var(--mk-line);
  background: var(--mk-bg);
  color: var(--mk-ink);
  font-family: var(--mk-body);
  font-size: calc(16px * var(--ts));
  padding: 12px 12px;
}

body:not(.mk-home) .form-field input:focus,
body:not(.mk-home) .form-field select:focus,
body:not(.mk-home) .form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--mk-amber);
  box-shadow: 0 2px 0 0 var(--mk-amber);
}

body:not(.mk-home) .btn-form-primary,
html.pref-theme-light body:not(.mk-home) .btn-form-primary {
  background: var(--mk-amber);
  border-color: var(--mk-amber);
  color: #141219;
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(18px * var(--ts));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  clip-path: var(--mk-clip);
  box-shadow: none;
  padding: 16px 30px;
}

body:not(.mk-home) .btn-form-primary:hover {
  background: var(--mk-amber2);
  border-color: var(--mk-amber2);
  color: #141219;
}

/* light theme: live css turns these black; keep amber */
html.pref-theme-light body:not(.mk-home) .btn-primary {
  background: var(--mk-amber);
  border-color: var(--mk-amber);
  color: #141219;
}

html.pref-theme-light body:not(.mk-home) .btn-secondary {
  background: transparent;
  color: var(--mk-ink);
  border-color: var(--mk-amber);
}

/* ---------- Contact page ---------- */
body.page-contact .content-section--contact {
  padding: 0;
}

body.page-contact .contact-header h1,
body.page-contact .contact-header h2 {
  font-size: calc(clamp(42px, 6vw, 88px) * var(--ts));
}

body.page-contact .content-section--contact .home-section {
  padding-top: calc(68px + clamp(48px, 6vw, 88px));
}

body:not(.mk-home) .contact-team-panel,
html.pref-theme-light body:not(.mk-home) .contact-team-panel {
  border-radius: 0;
  border: 1px solid var(--mk-line);
  border-top: 3px solid var(--mk-amber);
  background: var(--mk-bg2);
  box-shadow: none;
}

body:not(.mk-home) .contact-team-card,
html.pref-theme-light body:not(.mk-home) .contact-team-card {
  border-radius: 0;
  box-shadow: none;
}

body:not(.mk-home) .contact-team-card img {
  border-radius: 0;
}

body:not(.mk-home) .contact-team-group-title {
  font-family: var(--mk-head);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mk-ink);
}

body:not(.mk-home) .project-type-list label,
body:not(.mk-home) .project-type-list .project-type-option {
  border-radius: 0;
}

/* ---------- Gallery ---------- */
body:not(.mk-home) .gallery-tile-grid {
  gap: 10px;
}

body:not(.mk-home) .gallery-tile,
body:not(.mk-home) .gallery-tile img {
  border-radius: 0;
  box-shadow: none;
}

body:not(.mk-home) .gallery-tile-sticker {
  border-radius: 0;
}

body.page-gallery,
html.pref-theme-light body.page-gallery,
html.pref-theme-light body.page-gallery .project-gallery-fullscreen,
html.pref-theme-light body.page-gallery .project-gallery-shell,
html.pref-theme-light body.page-gallery .project-gallery-viewport,
html.pref-theme-light body:not(.mk-home) .gallery-tile-section {
  background: var(--mk-bg) !important;
}

body.page-gallery .project-gallery-bar {
  border-radius: 0;
  background: var(--mk-bg2);
  border-bottom: 1px solid var(--mk-line);
  box-shadow: none;
}

body.page-gallery .gallery-set-label {
  font-family: var(--mk-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
}

body.page-gallery .gallery-set-label-name {
  color: var(--mk-amber-ink);
}

body.page-gallery .gallery-set-nav,
body.page-gallery .gallery-image-nav,
body:not(.mk-home) .gallery-lightbox-nav,
body:not(.mk-home) .gallery-lightbox-close {
  border-radius: 0;
}

body.page-gallery .gallery-set-nav:hover,
body.page-gallery .gallery-image-nav:hover {
  background: var(--mk-amber);
  color: #141219;
}

body.page-gallery .gallery-carousel img,
body.page-gallery .gallery-carousel .gallery-slide,
body.page-gallery .project-gallery-viewport img {
  border-radius: 0;
}

body.page-gallery .gallery-hint {
  font-family: var(--mk-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.mk-home) .gallery-set-links a {
  color: var(--mk-amber-ink);
}

/* ---------- Help, 404, thank-you ---------- */
body.page-help .content-section--help,
html.pref-theme-light body.page-help .content-section--help {
  padding: calc(68px + clamp(44px, 6vw, 80px)) max(var(--mk-pad), calc((100% - 1100px) / 2)) clamp(60px, 8vw, 104px);
}

/* Help, privacy, thank-you and 404 used to be one flat colour. Give the
   title a faded project photo, the way the test site layers its sections,
   then let it melt into the page colour behind the panels. */
body.page-help .content-section--help {
  position: relative;
  isolation: isolate;
  --util-photo: url("../assets/img/bw-room-1600.webp");
}
body.page-privacy .content-section--help { --util-photo: url("../assets/img/bw-dusk2-1600.webp"); }
body.page-thank-you .content-section--help { --util-photo: url("../assets/img/bw-kitchen-1600.webp"); }
body.page-not-found .content-section--help { --util-photo: url("../assets/img/em-yard-1600.webp"); }
html:not(.pref-high-contrast) body.page-help .content-section--help::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(380px, 52vw, 560px);
  z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mk-bg) 62%, transparent) 0%, color-mix(in srgb, var(--mk-bg) 80%, transparent) 55%, var(--mk-bg) 100%),
    var(--util-photo) center 40% / cover no-repeat;
}
html:not(.pref-high-contrast) body.page-help .content-section--help::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 0% 100%, rgba(var(--mk-navy-rgb), 0.32), transparent 70%);
}
html.pref-theme-light body.page-help .content-section--help::after {
  background: radial-gradient(ellipse 60% 70% at 0% 100%, rgba(var(--mk-navy-rgb), 0.10), transparent 70%);
}

body.page-help .help-header h1 {
  font-size: calc(clamp(42px, 6vw, 88px) * var(--ts));
  color: var(--mk-ink);
  margin-bottom: 14px;
}

body.page-help .help-header p {
  color: var(--mk-mute);
}

body.page-help .help-panel,
html:not(.pref-theme-light) body.page-help .help-panel,
html.pref-theme-light body.page-help .help-panel {
  border-radius: 0;
  border: 1px solid var(--mk-line);
  border-left: 3px solid var(--mk-amber);
  background: var(--mk-bg2);
  box-shadow: none;
  color: var(--mk-ink);
  padding: clamp(20px, 3vw, 30px);
}

body.page-help .help-panel h2 {
  font-size: calc(clamp(26px, 2.6vw, 34px) * var(--ts));
  color: var(--mk-ink);
}

body.page-help .help-select select {
  border-radius: 0;
}

body.page-help .help-slider {
  accent-color: var(--mk-amber);
}

body.page-help .help-toggle input {
  accent-color: var(--mk-amber);
}

/* ---------- Service area (services + landing) ---------- */
body:not(.mk-home) .service-area-list,
html.pref-theme-light body:not(.mk-home) .service-area-list {
  gap: 22px 28px;
  font-size: calc(15px * var(--ts));
  color: var(--mk-mute);
}

body:not(.mk-home) .service-area-group h4 {
  font-family: var(--mk-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: calc(17px * var(--ts));
  color: var(--mk-ink);
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--mk-amber);
}

body:not(.mk-home) .service-area-group p {
  line-height: 1.55;
}

/* ---------- Contact action rows ---------- */
body:not(.mk-home) .contact-actions {
  gap: 18px 28px;
  align-items: center;
}

/* ---------- Light theme: hero stays dark like the home page ---------- */
html.pref-theme-light body:not(.mk-home) .hero-review--inline .hero-review-dot {
  background: rgba(0, 0, 0, 0.25);
}

html.pref-theme-light body:not(.mk-home) .hero-review--inline .hero-review-dot.active {
  background: var(--mk-amber-ink);
}

/* ---------- High contrast ---------- */
html.pref-high-contrast body:not(.mk-home) .hero::after {
  background:
    linear-gradient(90deg, #000000f5 0%, #000000dd 50%, #00000088 100%),
    linear-gradient(0deg, #000 0%, #0000 35%);
}

html.pref-high-contrast body:not(.mk-home) .hero-lede {
  color: #fff;
}

html.pref-high-contrast body:not(.mk-home) .home-two-col-aside,
html.pref-high-contrast body:not(.mk-home) .landing-trust li,
html.pref-high-contrast body:not(.mk-home) .designer-card,
html.pref-high-contrast body:not(.mk-home) .contact-form-card,
html.pref-high-contrast body:not(.mk-home) .core-values-list li,
html.pref-high-contrast body:not(.mk-home) .team-card,
html.pref-high-contrast body:not(.mk-home) .hero-review--inline,
html.pref-high-contrast body.page-help .help-panel {
  background: #000 !important;
  border-color: #fff !important;
  border-top-color: var(--mk-amber) !important;
}

html.pref-high-contrast body:not(.mk-home) .home-section + .home-section {
  border-top-color: #fff;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 900px) {
  body:not(.mk-home) .home-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.mk-home) .designer-card,
  body:not(.mk-home) .designer-card--reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.mk-home) .designer-card--reverse .designer-photo {
    order: 0;
  }
  /* Stacked card: keep the portrait a portrait, not a full-width banner
     (style.css only caps it from 800px down). */
  body:not(.mk-home) .designer-card {
    text-align: center;
  }
  body:not(.mk-home) .designer-photo {
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  body:not(.mk-home) .hero {
    min-height: clamp(520px, 86svh, 720px);
  }
  body:not(.mk-home) .hero::after {
    background:
      linear-gradient(0deg, #0b0b0e 0%, #0b0b0ee6 38%, #0b0b0e66 70%, #0b0b0e33 100%);
  }
  html.pref-high-contrast body:not(.mk-home) .hero::after {
    background: linear-gradient(0deg, #000 0%, #000000ee 45%, #00000099 100%);
  }
  body:not(.mk-home) .hero-content,
  body:not(.mk-home) .hero--subpage .hero-content,
  html.pref-theme-light body:not(.mk-home) .hero-content {
    padding: 110px var(--mk-pad) 40px;
  }
  body:not(.mk-home) .page-logo-row .brand-logo-main {
    height: 54px;
  }
  body:not(.mk-home) .page-logo-row .brand-logo-secondary {
    height: 38px;
  }
  body:not(.mk-home) .service-row,
  body:not(.mk-home) .service-row--image-right {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.mk-home) .service-row-image {
    order: 0;
  }
  body:not(.mk-home) .service-row-text {
    order: 1;
  }
}

@media (max-width: 480px) {
  body:not(.mk-home) .page-logo-row .header-logo {
    gap: 14px;
  }
  body:not(.mk-home) .page-logo-row .brand-logo-main {
    height: 46px;
  }
  body:not(.mk-home) .page-logo-row .brand-logo-secondary {
    height: 32px;
  }
  body:not(.mk-home) .landing-trust {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Content shell: non-section children get the same gutters ---------- */
body:not(.mk-home) .content-inner > .home-section-header,
body:not(.mk-home) .content-inner > .landing-trust,
body:not(.mk-home) .content-inner > .designer-highlight,
body:not(.mk-home) .content-inner > div[id]:not(.review-inline-slot) {
  padding-inline: max(var(--mk-pad), calc((100% - 1240px) / 2));
  box-sizing: border-box;
}
body:not(.mk-home) .content-inner > .home-section-header:first-child {
  padding-top: clamp(60px, 8vw, 112px);
  margin-bottom: clamp(26px, 4vw, 40px);
}
body:not(.mk-home) .content-inner > .landing-trust {
  padding-bottom: clamp(48px, 6vw, 80px);
}
body:not(.mk-home) .content-inner > .designer-highlight {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--mk-bg2);
  margin: 0;
  max-width: none;
}
body:not(.mk-home) .gallery-tile {
  background: none;
  border: 0;
  box-shadow: none;
  min-height: 0;
}
body.page-contact #contact-main {
  margin: 0 !important;
}

/* ---------- Landing pages: hero film + Ken Burns ---------- */
body:not(.mk-home) .mk-hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
body:not(.mk-home) .mk-hero-film.is-on {
  opacity: 1;
}
@keyframes mkKenBurns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
body.mk-kb .hero-picture {
  overflow: hidden;
}
body.mk-kb .hero-img {
  animation: mkKenBurns 22s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}
html.pref-reduce-motion body.mk-kb .hero-img {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  body.mk-kb .hero-img { animation: none; }
  body:not(.mk-home) .mk-hero-film { display: none; }
}

/* ---------- Landing pages: "on site" film reel ---------- */
body:not(.mk-home) .mk-reel {
  background: var(--mk-bg);
}
body:not(.mk-home) .mk-reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
body:not(.mk-home) .mk-reel-grid figure {
  margin: 0;
  background: var(--mk-bg2);
  border-top: 3px solid var(--mk-amber);
  display: flex;
  flex-direction: column;
}
body:not(.mk-home) .mk-reel-film {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
}
body:not(.mk-home) .mk-reel-film img,
body:not(.mk-home) .mk-reel-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body:not(.mk-home) .mk-reel-grid figcaption {
  padding: 16px 18px 20px;
  color: var(--mk-mute);
  font-size: calc(15px * var(--ts));
  line-height: 1.5;
}
body:not(.mk-home) .mk-reel-grid figcaption b {
  display: block;
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(15px * var(--ts));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-amber-ink);
  margin-bottom: 6px;
}
body:not(.mk-home) .mk-reel-grid figcaption q {
  quotes: "\201C" "\201D";
  color: var(--mk-ink);
}
@media (max-width: 768px) {
  body:not(.mk-home) .mk-reel-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  body:not(.mk-home) .mk-reel-grid figure {
    scroll-snap-align: start;
  }
}
html.pref-high-contrast body:not(.mk-home) .mk-reel-grid figure {
  border: 2px solid #fff;
  border-top: 3px solid var(--mk-amber);
}

/* Hero film: a framed portrait clip on desktop, full-bleed behind the copy on phones */
body:not(.mk-home) .mk-hero-reel {
  position: absolute;
  z-index: 2;
  right: max(var(--mk-pad), calc((100% - 1240px) / 2));
  bottom: clamp(56px, 9vh, 96px);
  width: clamp(200px, 19vw, 280px);
  aspect-ratio: 4 / 5;
  margin: 0;
  background: #000;
  border-top: 3px solid var(--mk-amber);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
body:not(.mk-home) .mk-hero-reel .mk-hero-film {
  opacity: 1;
}
body:not(.mk-home) .mk-hero-reel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  font-family: var(--mk-head);
  font-weight: 700;
  font-size: calc(13px * var(--ts));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 1100px) {
  body:not(.mk-home) .mk-hero-reel {
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    z-index: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  body:not(.mk-home) .mk-hero-reel .mk-hero-film {
    opacity: 0;
  }
  body:not(.mk-home) .mk-hero-reel .mk-hero-film.is-on {
    opacity: 1;
  }
  body:not(.mk-home) .mk-hero-reel figcaption {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.mk-home) .mk-hero-reel { display: none; }
}
html.pref-reduce-motion body:not(.mk-home) .mk-hero-reel {
  display: none;
}

/* Landing review footnote */
body:not(.mk-home) .landing-review-note {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--mk-pad) clamp(48px, 6vw, 80px);
  text-align: center;
  color: var(--mk-mute);
  font-size: calc(14px * var(--ts));
}
body:not(.mk-home) .landing-review-note a {
  color: var(--mk-amber-ink) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body:not(.mk-home) .landing-review-note {
  max-width: none;
  background: var(--mk-bg);
  padding-inline: max(var(--mk-pad), calc((100% - 860px) / 2));
}
body:not(.mk-home) .review-inline-slot:has(+ .landing-review-note) {
  padding-bottom: 20px;
}

/* Landing tidy-ups */
body.page-landing .landing-gallery .home-section-header p:not(.section-kicker) {
  margin: 0;
  max-width: 46em;
  font-size: calc(17px * var(--ts));
  color: var(--mk-mute);
}
body:not(.mk-home) .designer-actions {
  justify-content: flex-start;
  text-align: left;
  margin-top: 18px;
}
@media (max-width: 900px) {
  body:not(.mk-home) .designer-actions {
    justify-content: center;
    text-align: center;
  }
}
body:not(.mk-home) .landing-quote .contact-form-wrapper {
  margin-left: 0;
  margin-right: auto;
  max-width: 980px;
}

/* Hero brand row + projects link stay light on the (always dark) hero */
body:not(.mk-home) .hero .hero-brand-text strong,
html.pref-theme-light body:not(.mk-home) .hero .hero-brand-text strong { color: #fff; }
body:not(.mk-home) .hero .hero-brand-text span,
html.pref-theme-light body:not(.mk-home) .hero .hero-brand-text span { color: var(--mk-amber); }
html.pref-theme-light body:not(.mk-home) .hero .hero-brand-logo { filter: none; }
body:not(.mk-home) .hero .hero-projects-link,
html.pref-theme-light body:not(.mk-home) .hero .hero-projects-link {
  color: #fff;
  text-decoration-color: var(--mk-amber);
  text-decoration-thickness: 2px;
}

/* Section kickers inside content blocks keep the amber accent */
body:not(.mk-home) .content-inner p.section-kicker,
html.pref-theme-light body:not(.mk-home) .content-inner p.section-kicker { color: var(--mk-amber-ink); }

/* Inline links in help-style panels (thank-you, 404) */
body:not(.mk-home) .help-panel p a:not([class]),
html.pref-theme-light body:not(.mk-home) .help-panel p a:not([class]) {
  color: var(--mk-amber-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
