/*
Theme Name: MS Consulting
Theme URI: https://msconsulting.global
Author: MS Consulting
Description: Custom WordPress theme for MS Consulting.
Version: 1.6.0
Text Domain: ms-consulting
*/

/* ---------------------------------------------------------------------------
   Typefaces. Manrope is self-hosted so the site renders identically for every
   visitor; "Aptos" only exists on machines with Microsoft 365 installed, so it
   can never be relied on alone. Put "Aptos" first in --font-sans if you would
   rather Windows/M365 visitors keep the Office house face.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2-variations"),
       url("assets/fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfaf8;
  --paper-2: #f4f1ee;
  --ink: #1f2423;
  --muted: #676b68;
  --line: rgba(31, 36, 35, 0.12);
  --charcoal: #202321;
  --rose: #ead8d2;
  --shadow: 0 24px 80px rgba(56, 47, 42, 0.09);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Manrope", "Aptos", "Segoe UI", system-ui, sans-serif;
  /* One accent family. Five near-identical reds used to be applied
     interchangeably across the stylesheet. */
  --accent: #a8534f;
  --accent-soft: #c2716c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-width: 0;
}

body {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

#wpadminbar {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  overflow: hidden;
}

.container {
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}

.brand img {
  height: auto;
}

.nav-menu-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  transition: color 420ms var(--ease), background 420ms var(--ease), transform 420ms var(--ease);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 8px 9px 8px 18px;
  color: #fff;
  background: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 520ms var(--ease), background 520ms var(--ease);
}

.nav-cta:hover,
.button:hover {
  background: #0f0f0e;
  transform: translateY(-1px);
}

.button:active,
.nav-cta:active {
  transform: scale(0.98);
}

.button span,
.nav-cta span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--charcoal);
  background: #fff;
  transition: transform 520ms var(--ease);
}

.button:hover span,
.nav-cta:hover span {
  transform: translate(2px, -1px);
}

.nav-toggle {
  display: none;
}

.section-head > *,
.clarity-grid > *,
.pillar-grid > *,
.work-grid > *,
.about-grid > *,
.contact-panel > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #5f5a56;
  background: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  font-size: clamp(38px, 3.45vw, 60px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

section {
  padding: 104px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.58fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 44px;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.section-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.brand-marquee {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #141414;
  color: #fffbfb;
  border-top: 1px solid rgba(255, 251, 251, 0.12);
  border-bottom: 1px solid rgba(255, 251, 251, 0.12);
}

.brand-marquee::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft) 52%, rgba(194, 113, 108, 0));
}

.brand-marquee-inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  align-items: center;
  width: min(1360px, calc(100% - 56px));
  min-height: 86px;
  margin: 0 auto;
  gap: clamp(24px, 4vw, 58px);
}

.brand-marquee-label {
  color: rgba(255, 251, 251, 0.56);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-marquee-window {
  position: relative;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.brand-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ms-brand-marquee 32s linear infinite;
}

.brand-marquee:hover .brand-marquee-track {
  animation-play-state: paused;
}

.brand-marquee-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  padding-right: clamp(24px, 3vw, 46px);
}

.brand-marquee-row span {
  color: rgba(255, 251, 251, 0.9);
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.brand-marquee-row span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: clamp(14px, 1.4vw, 20px);
  border-radius: 999px;
  background: var(--accent-soft);
  vertical-align: middle;
}

@keyframes ms-brand-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.clarity-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.clarity-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 54px;
  align-items: start;
}

.clarity-grid p {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.42;
}

.need-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.need-list li {
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.62);
  color: #484440;
  font-weight: 650;
}

.modern-services {
  background:
    linear-gradient(180deg, rgba(255, 251, 251, 0.72), rgba(244, 241, 238, 0.82));
}

.pillar-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-intro-card,
.pillar {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 55px rgba(46, 39, 35, 0.055);
  transition: transform 520ms var(--ease), box-shadow 520ms var(--ease), background 520ms var(--ease);
}

.service-intro-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-row: span 2;
  color: #fffbfb;
  background:
    linear-gradient(145deg, rgba(20, 20, 20, 0.96), rgba(38, 38, 38, 0.94));
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.12);
}

.service-intro-card .eyebrow {
  border-color: rgba(255, 251, 251, 0.22);
  color: rgba(255, 251, 251, 0.78);
  background: rgba(255, 251, 251, 0.08);
}

.service-intro-card p {
  margin: auto 0;
  color: rgba(255, 251, 251, 0.78);
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 720;
  line-height: 1.2;
}

.service-intro-card .text-link {
  width: max-content;
  color: #fffbfb;
  border-color: rgba(255, 251, 251, 0.45);
}

.service-intro-card .text-link:hover {
  border-color: var(--accent-soft);
}

.pillar:nth-child(3),
.pillar:nth-child(5) {
  background: rgba(255, 251, 251, 0.92);
}

.service-intro-card:hover,
.pillar:hover {
  background: #fff;
  box-shadow: 0 26px 72px rgba(46, 39, 35, 0.09);
  transform: translateY(-4px);
}

.service-intro-card:hover {
  background:
    linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(38, 38, 38, 0.95));
}

.pillar-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.pillar h3 {
  margin: 18px 0 14px;
  font-size: clamp(24px, 2.45vw, 34px);
  line-height: 1.08;
}

.pillar p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.52;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-list span {
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  padding: 8px 10px;
  color: #514d49;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
}

.proof-section {
  background: linear-gradient(135deg, var(--accent) 0%, #8e4442 100%);
  color: #fffbfb;
}

.proof-section h2 {
  color: #fffbfb;
}

.proof-section .eyebrow {
  border-color: rgba(255, 251, 251, 0.3);
  color: rgba(255, 251, 251, 0.82);
  background: rgba(255, 251, 251, 0.1);
}

.proof-section .section-intro {
  color: rgba(255, 251, 251, 0.74);
}

.proof-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.proof-control {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 251, 251, 0.24);
  border-radius: 999px;
  color: #1f2423;
  background: #fffbfb;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), background 320ms var(--ease);
}

.proof-control:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.proof-control:active {
  transform: scale(0.96);
}

.proof-control:disabled {
  cursor: default;
  opacity: 0.34;
  transform: none;
}

.proof-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 0 6px;
  scroll-behavior: smooth;
  scroll-padding-left: 1px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.proof-grid::-webkit-scrollbar {
  display: none;
}

.proof-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.proof-card {
  flex: 0 0 clamp(286px, 24vw, 360px);
  scroll-snap-align: start;
  min-height: 360px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  padding: 24px;
  color: #1f2423;
  background: #fffbfb;
  box-shadow: 0 18px 46px rgba(46, 16, 15, 0.22);
}

.proof-card small {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-card h3 {
  margin: 18px 0 16px;
  font-size: 27px;
  line-height: 1.07;
}

.proof-card p {
  color: rgba(20, 20, 20, 0.72);
  line-height: 1.58;
}

.proof-card strong {
  color: #141414;
}

.modern-process {
  background:
    linear-gradient(180deg, #fffbfb 0%, rgba(255, 251, 251, 0.86) 100%);
  padding: clamp(86px, 8vw, 124px) 0;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 0.92fr);
  gap: clamp(42px, 5.4vw, 86px);
  align-items: center;
}

.work-image {
  position: sticky;
  top: 118px;
  height: clamp(460px, 52vw, 620px);
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ead8d2;
  box-shadow: 0 28px 80px rgba(20, 20, 20, 0.1);
}

.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.work-copy {
  max-width: 760px;
}

.steps {
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 24px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  padding: 28px 0;
}

.step span {
  color: var(--accent);
  font-weight: 850;
}

.step h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}

.step p {
  grid-column: 2;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.process-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.12);
}

.process-stats div {
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(194, 113, 108, 0.18), rgba(255, 251, 251, 0.9));
}

.process-stats strong {
  display: block;
  margin-bottom: 8px;
  color: #141414;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1;
}

.process-stats span {
  color: rgba(20, 20, 20, 0.68);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.45;
}

.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.92fr);
  gap: 58px;
  align-items: center;
}

.portrait-shell {
  width: min(100%, 320px);
  padding: 10px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.portrait {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rose);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.industries span {
  border-radius: 999px;
  padding: 10px 13px;
  background: var(--paper-2);
  color: #504b47;
  font-size: 13px;
  font-weight: 750;
}

.contact-section {
  padding-bottom: 54px;
}

.site-footer {
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .brand-marquee-track {
    width: 100%;
    animation: none;
  }

  .brand-marquee-row {
    flex-wrap: wrap;
  }

  .brand-marquee-row + .brand-marquee-row {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    position: relative;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--charcoal);
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 420ms var(--ease), opacity 420ms var(--ease);
  }

  .nav-toggle::before {
    transform: translateY(-6px);
  }

  .nav-toggle::after {
    transform: translateY(6px);
  }

  .nav-open .nav-toggle span {
    opacity: 0;
  }

  .nav-open .nav-toggle::before {
    transform: rotate(45deg);
  }

  .nav-open .nav-toggle::after {
    transform: rotate(-45deg);
  }

  .nav-open .nav-links {
    position: fixed;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav-open .nav-links a {
    padding: 14px 16px;
    color: var(--ink);
    background: rgba(35, 34, 32, 0.055);
  }

  .section-head,
.clarity-grid,
.pillar-grid,
.work-grid,
.about-grid,
.contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
  }

  section {
    padding: 76px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 40px);
    line-height: 1.04;
    overflow-wrap: normal;
  }

  

  .hero-copy {
    max-width: 330px;
    font-size: 17px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .hero-actions .button {
    justify-self: start;
  }

  

  

  .need-list {
    grid-template-columns: 1fr;
  }

  .pillar,
  .proof-card,
  .contact-panel {
    padding: 24px;
  }

  .proof-controls {
    justify-content: flex-start;
  }

  .work-image {
    min-height: 360px;
  }


  
}

body {
  background:
    linear-gradient(90deg, rgba(31, 36, 35, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 36, 35, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, #fff 56%, var(--paper-2) 100%);
  background-size: 56px 56px, 56px 56px, auto;
  font-family: var(--font-sans);
}

.container {
  width: min(1360px, calc(100% - 56px));
}

.site-header {
  top: 20px;
  margin-top: 20px;
  padding: 0 28px;
}

.brand {
  min-width: 0;
}

.hero {
  min-height: calc(100dvh - 92px);
  padding: 78px 0 84px;
}

.editorial-hero {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.editorial-hero::before {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(58vw, 920px);
  height: min(78dvh, 760px);
  background: linear-gradient(135deg, rgba(234, 216, 210, 0.74), rgba(255, 255, 255, 0.44));
  border-bottom-left-radius: 88px;
  z-index: -2;
}

.hero-editorial-grid {
  padding-right: min(35vw, 500px);
}

.hero-statement h1,
.page-hero h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  font-size: clamp(38px, 3.45vw, 60px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3d423f;
  font-size: 14px;
  font-weight: 760;
  border-bottom: 1px solid rgba(31, 36, 35, 0.24);
  transition: transform 420ms var(--ease), border-color 420ms var(--ease);
}

.text-link:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 36, 35, 0.68);
}

h2 {
  font-family: var(--font-sans);
  font-weight: 720;
  letter-spacing: 0;
  font-size: clamp(30px, 3.35vw, 52px);
  line-height: 1.06;
}

.about-copy h2 {
  max-width: 760px;
  font-size: clamp(34px, 3.25vw, 54px);
  line-height: 1.05;
}

.pillar,
.proof-card,
.contact-panel {
  border-radius: 6px;
}

.page-shell {
  min-height: 72dvh;
}

.page-hero {
  padding: 124px 0 72px;
}

.slim-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  gap: 72px;
  align-items: end;
}

.page-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.55;
}

.page-body {
  max-width: 66ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.page-section {
  padding: 72px 0 118px;
}

.service-list,
.proof-list {
  display: grid;
  gap: 0;
}

.service-row,
.proof-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: 38px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child,
.proof-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row > span,
.method-step span {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.12em;
}

.service-row h2,
.proof-row h2,
.method-step h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 2.45vw, 40px);
  line-height: 1.08;
}

.service-row p,
.proof-row p,
.method-step p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.proof-row {
  grid-template-columns: 170px minmax(0, 0.72fr) minmax(280px, 0.54fr);
  align-items: start;
  row-gap: 0;
}

.proof-row small {
  grid-column: 1;
  grid-row: 1;
}

.proof-row h2 {
  grid-column: 2;
  grid-row: 1;
}

.proof-row p {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.proof-row small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-row strong {
  grid-column: 2;
  grid-row: 2;
  max-width: 42ch;
  margin-top: 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.work-hero .page-hero-grid {
  align-items: center;
}

.page-image {
  height: 430px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.method-step {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.about-page-hero {
  padding-bottom: 118px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.9fr);
  gap: 76px;
  align-items: center;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 0.42fr);
  gap: 72px;
  align-items: end;
}

.contact-card {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

/* ---------------------------------------------------------------------------
   WordPress-editor content. page.php falls back to the_content() for any page
   without a hand-built branch, and that output had no styling at all.
   --------------------------------------------------------------------------- */
.page-content {
  max-width: 68ch;
  margin-top: 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.page-content > * + * {
  margin-top: 20px;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin-bottom: 0;
  color: var(--ink);
}

.page-content h2 {
  margin-top: 44px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.12;
}

.page-content h3 {
  margin-top: 36px;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
}

.page-content h4 {
  margin-top: 28px;
  font-size: 18px;
}

.page-content strong {
  color: var(--ink);
  font-weight: 750;
}

.page-content a {
  color: var(--ink);
  border-bottom: 1px solid rgba(31, 36, 35, 0.28);
  transition: border-color 260ms var(--ease);
}

.page-content a:hover {
  border-color: var(--ink);
}

.page-content ul,
.page-content ol {
  margin: 20px 0;
  padding-left: 22px;
}

.page-content li + li {
  margin-top: 8px;
}

.page-content ul {
  list-style: none;
  padding-left: 0;
}

.page-content ul li {
  position: relative;
  padding-left: 22px;
}

.page-content ul li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.page-content blockquote {
  margin: 32px 0;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  color: var(--ink);
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.45;
}

.page-content img,
.page-content iframe {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.page-content figcaption {
  margin-top: 10px;
  font-size: 13px;
}

.page-content hr {
  height: 0;
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.page-content th,
.page-content td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 12px 0;
  text-align: left;
}

.page-content th {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-content code {
  border-radius: 4px;
  padding: 2px 6px;
  background: var(--paper-2);
  font-size: 0.92em;
}

.contact-card a,
.contact-card span {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    padding-right: min(38vw, 360px);
    gap: 18px;
  }

  
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1360px);
  }

  .nav-island {
    position: relative;
    gap: 14px;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 64px;
    padding: 9px 18px;
  }

  .nav-menu-group {
    display: flex;
    flex: 0 0 auto;
    top: 12px;
    right: 14px;
    min-height: 52px;
    padding: 4px;
  }

  body.admin-bar .nav-menu-group {
    top: 58px;
  }

  .editorial-hero::before {
    width: 100%;
    height: 470px;
    border-bottom-left-radius: 48px;
  }

  .hero-media {
    position: relative;
    right: auto;
    bottom: auto;
    order: 0;
    margin: 28px auto 0;
  }

  .editorial-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 48px;
  }

  .hero-editorial-grid {
    padding-right: 0;
  }

  .hero-statement h1,
  .page-hero h1 {
    max-width: 680px;
    font-size: clamp(36px, 8.8vw, 44px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .page-hero-grid,
  .service-row,
  .proof-row,
  .method-grid,
  .about-page-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* release the explicit desktop placement so the row stacks in source order */
  .proof-row small,
  .proof-row h2,
  .proof-row p,
  .proof-row strong {
    grid-column: 1;
    grid-row: auto;
  }

  .proof-row strong {
    margin-top: 0;
  }

  .service-row,
  .proof-row {
    padding: 30px 0;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 142px;
  }

  .site-header {
    top: 12px;
    margin-top: 12px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-statement h1,
  .page-hero h1 {
    max-width: 350px;
    font-size: clamp(31px, 8.2vw, 35px);
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .hero-statement .hero-copy,
  .page-lede {
    max-width: 340px;
    font-size: 17px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-media {
    width: min(100% - 32px, 360px);
    height: 230px;
  }

  .hero-media img {
    width: 760px;
  }

  .page-hero {
    padding: 86px 0 54px;
  }
}

.editorial-hero {
  display: flex;
  align-items: center;
  min-height: auto;
  padding: clamp(44px, 5.4vw, 76px) 0 clamp(58px, 7vw, 86px);
}

.hero-editorial-grid {
  gap: clamp(44px, 5vw, 78px);
}

.hero-media {
  right: auto;
  bottom: auto;
  justify-self: end;
  align-self: end;
}

@media (max-width: 1199px) {
  .hero-editorial-grid {
    gap: clamp(30px, 4vw, 48px);
    padding: clamp(28px, 4vw, 46px);
  }

  .hero-media {
    max-width: 460px;
    height: clamp(470px, 52vw, 560px);
  }

  .hero-media img {
    width: 1840px;
  }
}

@media (max-width: 900px) {
  .editorial-hero {
    padding-top: clamp(50px, 8vw, 76px);
  }

  .hero-editorial-grid {
    width: min(100% - 32px, 820px);
  }

  

  .hero-media {
    width: 100%;
    max-width: 330px;
    height: 430px;
  }

  .hero-media img {
    width: 1440px;
  }
}

/* Client feedback pass: keep the Claude structure, remove grid/gradient cues. */
body {
  background: var(--paper);
}

.modern-services,
.modern-process,
.proof-section,
.service-intro-card,
.service-intro-card:hover,
.process-stats div,
.editorial-hero::before,
.brand-marquee::before {
  background-image: none;
}

.modern-services {
  background: #fffbfb;
  border-top: 1px solid var(--line);
}

.service-intro-card {
  background: #202321;
}

.service-intro-card:hover {
  background: #171817;
}

.proof-section {
  background: #a8534f;
}

.process-stats div {
  background: #fffbfb;
}

.editorial-hero::before {
  background: #ead8d2;
  opacity: 0.5;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.pillar {
  display: flex;
  flex-direction: column;
}

.tag-list {
  margin-top: auto;
  padding-top: 22px;
}

.pillar-link {
  width: max-content;
  margin-top: 18px;
}

.familiar-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.familiar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.familiar-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 26px;
  background: #fffbfb;
}

.familiar-card p {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 740;
  line-height: 1.12;
}

.familiar-card span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.familiar-card strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.partners-section {
  background: #fffbfb;
  border-bottom: 1px solid var(--line);
}

.partners-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(340px, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.partners-grid p {
  color: var(--muted);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.55;
}

.partner-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.partner-capabilities span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--paper);
  color: #504b47;
  font-size: 13px;
  font-weight: 760;
}

.proof-card {
  display: flex;
  flex-direction: column;
}

.proof-card a {
  width: max-content;
  margin-top: auto;
  border-bottom: 1px solid rgba(20, 20, 20, 0.24);
  padding-top: 20px;
  color: #1f2423;
  font-size: 14px;
  font-weight: 780;
}

.question-strip {
  overflow: hidden;
  padding: 28px 0;
  background: #202321;
  color: #fffbfb;
}

.question-track {
  display: flex;
  gap: clamp(26px, 4vw, 56px);
  width: max-content;
  animation: ms-brand-marquee 44s linear infinite;
}

.question-track span {
  max-width: 460px;
  color: rgba(255, 251, 251, 0.88);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 720;
  line-height: 1.18;
  white-space: nowrap;
}

.contact-form-panel {
  max-width: 760px;
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background: #fffbfb;
  box-shadow: var(--shadow);
}

.contact-form-page {
  padding-top: 0;
}

.wpcf7-form {
  display: grid;
  gap: 18px;
}

.wpcf7-form p {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border: 1px solid rgba(31, 36, 35, 0.16);
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
  transition: border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]):focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: rgba(168, 83, 79, 0.72);
  box-shadow: 0 0 0 3px rgba(168, 83, 79, 0.12);
}

.wpcf7-submit {
  display: inline-flex;
  justify-content: center;
  width: max-content;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #fff;
  background: var(--charcoal);
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}

.wpcf7-submit:hover {
  background: #0f0f0e;
  transform: translateY(-1px);
}

.wpcf7-not-valid-tip,
.wpcf7-response-output,
.form-fallback {
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
}

.form-fallback a {
  border-bottom: 1px solid rgba(168, 83, 79, 0.4);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 251, 251, 0.18);
  border-radius: 999px;
  color: #fff;
  background: var(--charcoal);
  font-size: 18px;
  font-weight: 820;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), background 320ms var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0f0f0e;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .question-track {
    width: auto;
    flex-wrap: wrap;
    animation: none;
  }
}

@media (max-width: 1100px) {
  .familiar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .familiar-grid {
    grid-template-columns: 1fr;
  }

  .familiar-card {
    min-height: auto;
  }

  .question-track {
    display: grid;
    width: auto;
    animation: none;
  }

  .question-track span {
    white-space: normal;
  }

  .contact-form-panel {
    padding: 22px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 767px) {
  

  .hero-editorial-grid {
    grid-template-columns: 1fr;
  }

  .hero-statement .eyebrow {
    order: 1;
  }

  .hero-statement h1 {
    order: 2;
  }

  .hero-statement .hero-copy {
    order: 3;
  }

  .hero-actions {
    order: 4;
  }

  .hero-media {
    order: 5;
    max-width: none;
    justify-self: center;
    align-self: auto;
  }

  .hero-media img {
    width: 1500px;
  }

  
}

@media (max-width: 430px) {
  

  .hero-statement .hero-copy {
    max-width: 330px;
    overflow-wrap: anywhere;
  }

  

  .hero-media {
    height: 330px;
  }

  .hero-media img {
    width: 1180px;
  }
}

@media (max-width: 900px) {
  .site-header .nav-menu-group {
    display: flex !important;
    visibility: visible;
    opacity: 1;
  }

  .site-header .nav-toggle {
    display: grid !important;
    z-index: 20;
    width: 44px !important;
    height: 44px !important;
    background: var(--charcoal) !important;
    visibility: visible;
    opacity: 1;
  }

}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  margin-top: 0;
  padding: 0;
  background: rgba(255, 251, 251, 0.92);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 10px 34px rgba(20, 20, 20, 0.045);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
  top: 32px;
}

.nav-island {
  width: min(1360px, calc(100% - 56px));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 76px);
  margin: 0 auto;
  padding: 0;
}

.brand {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand img {
  width: 168px;
}

.nav-menu-group {
  min-height: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nav-links {
  gap: clamp(20px, 2.4vw, 34px);
}

.nav-links a {
  position: relative;
  border-radius: 0;
  padding: 34px 0 31px;
  color: #343837;
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 360ms var(--ease);
}

.nav-links a:hover {
  color: #141414;
  background: transparent;
  transform: none;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 48px;
  margin-left: 20px;
  padding: 8px 9px 8px 20px;
  background: #141414;
}

.proof-section .section-head {
  grid-template-columns: minmax(0, 0.74fr) minmax(300px, 0.48fr) auto;
  align-items: end;
}

.proof-controls {
  align-self: end;
}

.proof-control {
  width: 52px;
  height: 52px;
  box-shadow: 0 12px 28px rgba(46, 16, 15, 0.2);
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    top: 0;
    padding: 0;
  }

  .nav-island {
    width: min(100% - 28px, 760px);
    min-height: 76px;
  }

  .brand img {
    width: 142px;
  }

  .nav-menu-group {
    position: static;
    transform: none;
  }

  .site-header .nav-toggle {
    position: relative;
    top: auto;
    right: auto;
    width: 44px !important;
    height: 44px !important;
  }

  body.admin-bar .site-header .nav-toggle {
    top: auto;
  }

  .nav-open .nav-links {
    top: calc(76px + 12px);
    border-radius: 8px;
    background: rgba(255, 251, 251, 0.98);
  }

  body.admin-bar.nav-open .nav-links {
    top: calc(122px + 12px);
  }

  .proof-section .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .proof-controls {
    justify-content: flex-start;
  }

  .brand-marquee-inner {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
    min-height: 112px;
    gap: 18px;
    padding: 22px 0;
  }

  .brand-marquee-window {
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .service-intro-card {
    grid-row: auto;
    min-height: 260px;
  }

  .work-image {
    position: relative;
    top: auto;
    min-height: 380px;
  }

  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 18px;
  }
}

@media (max-width: 640px) {
  .brand-marquee-inner {
    min-height: 104px;
  }

  .brand-marquee-window {
    mask-image: none;
  }

  .brand-marquee-track {
    width: 100%;
    animation: none;
  }

  .brand-marquee-row {
    flex-wrap: wrap;
    gap: 14px 20px;
    padding-right: 0;
  }

  .brand-marquee-row + .brand-marquee-row {
    display: none;
  }

  .brand-marquee-row span {
    font-size: 15px;
  }

  .brand-marquee-row span::before {
    margin-right: 10px;
  }

  .service-intro-card,
  .pillar {
    min-height: auto;
    padding: 24px;
  }

  .service-intro-card p {
    margin: 28px 0;
    font-size: 21px;
  }

  .process-stats {
    grid-template-columns: 1fr;
  }
}

.modern-process .work-image {
  height: clamp(460px, 52vw, 620px);
  min-height: 0;
}

.modern-process .work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section {
  padding: clamp(72px, 8vw, 118px) 0 clamp(54px, 6vw, 78px);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  border: 1px solid rgba(168, 83, 79, 0.28);
  border-radius: 8px;
  padding: clamp(32px, 5vw, 58px);
  color: #1f2423;
  background:
    linear-gradient(135deg, rgba(194, 113, 108, 0.16), rgba(255, 251, 251, 0.92) 44%),
    #fbfaf8;
  box-shadow: 0 28px 80px rgba(46, 39, 35, 0.08);
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft) 58%, rgba(194, 113, 108, 0));
}

.contact-panel h2 {
  max-width: 660px;
  color: #1f2423;
  font-size: clamp(32px, 3.3vw, 54px);
  line-height: 1.02;
}

.contact-panel p {
  margin-top: 16px;
  max-width: 620px;
  color: #60645f;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 10px;
  align-content: end;
}

.contact-list a,
.contact-list div {
  border: 1px solid rgba(31, 36, 35, 0.12);
  border-radius: 999px;
  padding: 15px 18px;
  color: #303532;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 680;
}

.contact-list a:hover {
  border-color: rgba(168, 83, 79, 0.5);
  color: #141414;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #fffbfb;
  background:
    radial-gradient(circle at 78% 0%, rgba(194, 113, 108, 0.18), transparent 32rem),
    linear-gradient(180deg, #202422 0%, #151716 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.footer-shell {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0 26px;
}

.footer-primary {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.86fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
}

.footer-brand {
  max-width: 760px;
}

.footer-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 251, 251, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(255, 251, 251, 0.7);
  background: rgba(255, 251, 251, 0.06);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand h2 {
  max-width: 740px;
  margin: 0;
  color: #fffbfb;
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.1vw, 64px);
  font-weight: 780;
  line-height: 1.02;
}

.footer-brand p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 251, 251, 0.68);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  margin-top: 34px;
  border-radius: 999px;
  padding: 8px 9px 8px 24px;
  color: #141414;
  background: #fffbfb;
  font-size: 15px;
  font-weight: 800;
  transition: transform 360ms var(--ease), background 360ms var(--ease);
}

.footer-cta span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fffbfb;
  background: #141414;
}

.footer-cta:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.footer-columns {
  display: grid;
  /* the Contact column carries the email address, which is the widest
     single token in the footer, so it gets the widest track */
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.26fr) minmax(0, 0.96fr);
  gap: clamp(20px, 2.4vw, 32px);
  padding-top: 10px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: rgba(255, 251, 251, 0.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: rgba(255, 251, 251, 0.78);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  /* the email address is a single unbreakable token and used to run into the
     Experience pills in the next column */
  overflow-wrap: anywhere;
}

.footer-column a {
  transition: color 260ms var(--ease), transform 260ms var(--ease);
}

.footer-column a:hover {
  color: #fffbfb;
  transform: translateX(2px);
}

.footer-sectors > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-sectors span {
  border: 1px solid rgba(255, 251, 251, 0.14);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255, 251, 251, 0.76);
  background: rgba(255, 251, 251, 0.055);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(52px, 6vw, 82px);
  border-top: 1px solid rgba(255, 251, 251, 0.12);
  padding-top: 22px;
  color: rgba(255, 251, 251, 0.48);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .footer-primary,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-shell {
    width: min(100% - 32px, 760px);
    padding-top: 46px;
  }

  .footer-brand h2 {
    font-size: clamp(32px, 8.6vw, 42px);
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 42px;
  }

  .contact-list a,
  .contact-list div {
    border-radius: 8px;
  }
}

/* ---------------------------------------------------------------------------
   Homepage hero (was assets/home-hero.css, injected inline; folded in v1.4.0)
   --------------------------------------------------------------------------- */
.editorial-hero {
  position: relative;
  display: block;
  min-height: auto;
  padding: 0;
  isolation: isolate;
}

.editorial-hero::before {
  content: none;
}

.hero-editorial-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  align-items: end;
  width: 100%;
  min-height: clamp(760px, 88dvh, 920px);
  margin: 0;
  padding: clamp(120px, 11vw, 178px) max(28px, calc((100vw - 1360px) / 2)) clamp(52px, 6vw, 86px);
  overflow: hidden;
  border-radius: 0;
  color: #fffbfb;
  background: #141414;
}

.hero-editorial-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.88) 0%, rgba(20, 20, 20, 0.62) 46%, rgba(20, 20, 20, 0.1) 100%),
    linear-gradient(0deg, rgba(20, 20, 20, 0.42) 0%, rgba(20, 20, 20, 0) 46%),
    linear-gradient(180deg, rgba(168, 83, 79, 0.34) 0%, rgba(20, 20, 20, 0) 36%);
  z-index: 1;
}

.hero-editorial-grid::after {
  content: "";
  position: absolute;
  right: max(28px, calc((100vw - 1360px) / 2));
  bottom: clamp(34px, 5vw, 70px);
  width: min(34vw, 460px);
  height: 2px;
  background: var(--accent-soft);
  z-index: 2;
}

.hero-statement {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero-statement .eyebrow {
  margin-bottom: clamp(18px, 2vw, 26px);
  border-color: rgba(255, 251, 251, 0.25);
  color: rgba(255, 251, 251, 0.82);
  background: rgba(255, 251, 251, 0.08);
}

.hero-statement h1 {
  max-width: 760px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
  color: #fffbfb;
  font-size: clamp(46px, 4.7vw, 76px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: 0;
}

.hero-statement .hero-copy {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 251, 251, 0.78);
  font-size: clamp(19px, 1.3vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  gap: 18px;
  margin-top: clamp(28px, 3vw, 38px);
}

.editorial-hero .button {
  min-height: 52px;
  padding: 9px 10px 9px 24px;
  color: #141414;
  background: #fffbfb;
  font-size: 15px;
}

.editorial-hero .button:hover {
  background: #ffffff;
}

.editorial-hero .button span {
  width: 34px;
  height: 34px;
  color: #fffbfb;
  background: #141414;
}

.editorial-hero .text-link {
  min-height: 52px;
  color: #fffbfb;
  border-color: rgba(255, 251, 251, 0.46);
  font-size: 15px;
}

.editorial-hero .text-link:hover {
  border-color: var(--accent-soft);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #141414;
  box-shadow: none;
  z-index: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: none;
  filter: saturate(0.88) contrast(1.04);
}

@media (max-width: 1199px) {
  .hero-editorial-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(160px, 0.18fr);
    min-height: clamp(700px, 84dvh, 840px);
  }

  .hero-statement h1 {
    max-width: 680px;
    font-size: clamp(44px, 5.5vw, 64px);
  }
}

@media (max-width: 900px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: clamp(104px, 16vw, 136px) 24px 56px;
  }

  .hero-editorial-grid::before {
    background:
      linear-gradient(90deg, rgba(20, 20, 20, 0.88), rgba(20, 20, 20, 0.58)),
      linear-gradient(180deg, rgba(168, 83, 79, 0.38), rgba(20, 20, 20, 0) 42%);
  }

  .hero-editorial-grid::after {
    right: 24px;
    left: 24px;
    width: auto;
  }

  .hero-statement h1 {
    max-width: 560px;
    font-size: clamp(38px, 6.5vw, 52px);
  }

  .hero-statement .hero-copy {
    max-width: 560px;
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .editorial-hero {
    padding: 0;
  }

  .hero-editorial-grid {
    gap: 0;
    width: 100%;
    min-height: 620px;
    padding: 86px 18px 34px;
    overflow: hidden;
  }

  .hero-editorial-grid::before {
    background:
      linear-gradient(180deg, rgba(20, 20, 20, 0.16) 0%, rgba(20, 20, 20, 0.34) 30%, rgba(20, 20, 20, 0.7) 52%, rgba(20, 20, 20, 0.78) 76%, rgba(20, 20, 20, 0.84) 100%),
      linear-gradient(90deg, rgba(168, 83, 79, 0.18), rgba(20, 20, 20, 0) 58%);
  }

  .hero-statement {
    display: block;
    align-self: start;
    margin-top: 76px;
  }

  .hero-statement .eyebrow {
    margin-bottom: 18px;
  }

  .hero-statement h1 {
    max-width: 340px;
    margin-bottom: 20px;
    font-size: clamp(34px, 9.8vw, 44px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .hero-statement .hero-copy {
    max-width: 340px;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .hero-media img {
    object-position: 58% center;
  }

  
}

@media (max-width: 430px) {
  .hero-statement h1 {
    max-width: 330px;
    font-size: clamp(32px, 9.2vw, 40px);
  }

  .hero-actions {
    gap: 14px;
  }

  .editorial-hero .button,
  .editorial-hero .text-link {
    min-height: 48px;
  }
}

/* Final client-feedback cascade: avoid grid and gradient styling. */
body {
  background: var(--paper);
}

.modern-services,
.modern-process,
.proof-section,
.service-intro-card,
.service-intro-card:hover,
.process-stats div,
.partners-section,
.familiar-section,
.question-strip {
  background-image: none;
}

.modern-services,
.modern-process,
.partners-section {
  background-color: #fffbfb;
}

.familiar-section {
  background-color: var(--paper-2);
}

.proof-section {
  background-color: #a8534f;
}

.service-intro-card {
  background-color: #202321;
}

.service-intro-card:hover {
  background-color: #171817;
}

.process-stats div {
  background-color: #fffbfb;
}

.brand-marquee::before,
.hero-editorial-grid::after {
  content: none;
}

.hero-editorial-grid::before {
  background: rgba(20, 20, 20, 0.64);
}

.hero-media img {
  object-position: 58% center;
  filter: saturate(0.9) contrast(1.02);
}

@media (max-width: 900px) {
  .hero-editorial-grid::before {
    background: rgba(20, 20, 20, 0.68);
  }
}

@media (max-width: 767px) {
  .hero-editorial-grid::before {
    background: rgba(20, 20, 20, 0.7);
  }
}

.image-story-section {
  padding: clamp(56px, 6vw, 92px) 0;
  background: #fffbfb;
  border-top: 1px solid var(--line);
}

.image-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  gap: 16px;
  align-items: stretch;
}

.image-story-item {
  margin: 0;
}

.image-story-item img {
  width: 100%;
  height: clamp(280px, 26vw, 410px);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(46, 39, 35, 0.08);
}

.image-story-item:first-child img {
  height: clamp(340px, 32vw, 500px);
}

.image-story-item figcaption {
  margin-top: 12px;
  color: #4f5450;
  font-size: 14px;
  font-weight: 760;
}

.contact-section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.contact-panel {
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.72fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 24px clamp(34px, 5vw, 72px);
  padding: clamp(28px, 4.2vw, 54px);
  background: #fbfaf8;
}

.contact-panel::before {
  background: var(--accent);
}

.contact-panel > div:first-child {
  grid-column: 1;
  grid-row: 1;
}

.contact-panel .contact-list {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  max-width: 520px;
}

.contact-panel .contact-form-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  max-width: none;
  margin: 0;
  border-color: rgba(31, 36, 35, 0.1);
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  box-shadow: none;
}

.question-strip {
  display: none;
}

.service-detail-hero {
  padding: clamp(96px, 10vw, 152px) 0 clamp(54px, 6vw, 84px);
  background: #fbfaf8;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(380px, 0.7fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}

.service-detail-grid .button {
  margin-top: 28px;
}

.service-detail-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(46, 39, 35, 0.12);
}

.service-detail-image img {
  width: 100%;
  height: clamp(360px, 38vw, 560px);
  object-fit: cover;
}

.service-detail-body {
  padding: clamp(58px, 7vw, 104px) 0 clamp(78px, 8vw, 126px);
  background: #fffbfb;
  border-top: 1px solid var(--line);
}

.service-detail-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.service-question {
  position: sticky;
  top: 116px;
  border-top: 3px solid var(--accent);
  padding-top: 22px;
}

.service-question span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-question p {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 740;
  line-height: 1.08;
}

.service-detail-lists {
  display: grid;
  gap: 18px;
}

.service-detail-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  background: #fbfaf8;
}

.service-detail-list h2 {
  margin-bottom: 22px;
  font-size: clamp(24px, 2vw, 34px);
}

.service-detail-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-detail-list span {
  border: 1px solid rgba(31, 36, 35, 0.12);
  border-radius: 999px;
  padding: 10px 13px;
  background: #fff;
  color: #4f5450;
  font-size: 14px;
  font-weight: 760;
}

.service-detail-list ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail-list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.specialist-detail-hero {
  padding: clamp(96px, 10vw, 152px) 0 clamp(54px, 6vw, 84px);
  background: #fbfaf8;
}

.specialist-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.58fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}

.specialist-detail-grid .button {
  margin-top: 28px;
}

.specialist-detail-body {
  padding: clamp(58px, 7vw, 104px) 0 clamp(78px, 8vw, 126px);
  background: #fffbfb;
  border-top: 1px solid var(--line);
}

.specialist-detail-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.specialist-copy-stack {
  display: grid;
  gap: 18px;
}

.specialist-overview {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.specialist-overview h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 2.5vw, 42px);
  line-height: 1.05;
}

.specialist-overview p {
  max-width: 66ch;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.specialist-panels {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 18px;
}

.specialist-note {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.specialist-note span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.specialist-note p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .image-story-grid,
  .contact-panel,
  .service-detail-grid,
  .service-detail-content,
  .specialist-detail-grid,
  .specialist-detail-content,
  .specialist-panels,
  .specialist-note {
    grid-template-columns: 1fr;
  }

  .contact-panel > div:first-child,
  .contact-panel .contact-list,
  .contact-panel .contact-form-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .service-question {
    position: static;
  }
}

@media (max-width: 640px) {
  .image-story-item img,
  .image-story-item:first-child img {
    height: 260px;
  }

  .service-detail-image img {
    height: 300px;
  }

  .contact-list a,
  .contact-list div {
    border-radius: 8px;
  }
}

/* Mega menu: explicit service architecture without hiding the new pages. */
.nav-links {
  position: static;
}

.nav-item {
  display: flex;
  align-items: stretch;
}

.nav-link-button {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 34px 0 31px;
  color: #343837;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
}

.nav-link-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 360ms var(--ease);
}

.has-mega:hover .nav-link-button,
.has-mega.is-open .nav-link-button,
.nav-link-button:focus-visible {
  color: #141414;
}

.has-mega:hover .nav-link-button::after,
.has-mega.is-open .nav-link-button::after,
.nav-link-button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mega-menu {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 13;
  padding: 10px 28px 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -12px, 0);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}

body.admin-bar .mega-menu {
  top: 108px;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.is-open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.mega-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 0.82fr) minmax(280px, 0.58fr);
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(31, 36, 35, 0.12);
  border-radius: 8px;
  background: rgba(31, 36, 35, 0.12);
  box-shadow: 0 34px 90px rgba(31, 36, 35, 0.14);
}

.mega-intro,
.mega-group {
  min-width: 0;
  padding: 28px;
  background: rgba(255, 251, 251, 0.98);
}

.mega-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #202321;
  color: #fffbfb;
}

.mega-kicker,
.mega-label {
  display: block;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mega-kicker {
  color: rgba(255, 251, 251, 0.68);
}

.mega-label {
  color: var(--accent);
}

.mega-intro h2 {
  max-width: 360px;
  margin: 0 0 30px;
  color: #fffbfb;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

.mega-primary-link {
  width: max-content;
  color: #fffbfb;
  border-bottom: 1px solid rgba(255, 251, 251, 0.42);
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 780;
}

.mega-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.mega-group a {
  display: grid;
  gap: 5px;
  border-radius: 6px;
  padding: 12px 14px;
  color: #252927;
  background: transparent;
  transition: background 240ms var(--ease), transform 240ms var(--ease);
}

.mega-menu a::after {
  content: none;
}

.mega-group a:hover,
.mega-group a:focus-visible {
  background: var(--paper-2);
  transform: translate3d(3px, 0, 0);
  outline: none;
}

.mega-group strong {
  font-size: 15px;
  line-height: 1.2;
}

.mega-group a span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.mega-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mega-compact .mega-label {
  grid-column: 1 / -1;
}

.mega-compact a {
  border: 1px solid rgba(31, 36, 35, 0.1);
  padding: 10px 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 760;
}

.partners-section {
  padding: clamp(58px, 6vw, 86px) 0;
}

.image-story-section {
  padding-top: clamp(28px, 4vw, 56px);
}

@media (max-width: 900px) {
  .nav-item {
    display: block;
  }

  .nav-link-button {
    width: 100%;
    padding: 14px 16px;
    text-align: left;
  }

  .nav-link-button::after {
    content: none;
  }

  .mega-menu {
    position: static;
    display: none;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .has-mega.is-open .mega-menu {
    display: block;
  }

  .mega-shell {
    grid-template-columns: 1fr;
    width: 100%;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
  }

  .mega-intro,
  .mega-group {
    padding: 16px;
  }

  .mega-intro h2 {
    font-size: 22px;
  }

  .mega-compact {
    grid-template-columns: 1fr;
  }

  .nav-open .nav-links {
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }

  .nav-open .mega-menu a {
    padding: 12px 14px;
    background: transparent;
  }

  .nav-open .mega-menu .mega-compact a {
    padding: 10px 12px;
    background: #fff;
  }
}

/* Final polish for the work image band and mega-menu hover gap. */
.mega-menu {
  top: 76px;
  padding-top: 0;
}

body.admin-bar .mega-menu {
  top: 108px;
}

.mega-shell {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.partners-section {
  padding-bottom: clamp(36px, 4vw, 56px);
}

.image-story-section {
  padding: 0;
  background: #fffbfb;
  border-top: 1px solid var(--line);
}

.image-story-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  padding: clamp(42px, 5vw, 76px) 0 clamp(48px, 5vw, 72px);
}

.image-story-copy {
  max-width: 420px;
}

.image-story-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 48px);
}

.image-story-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.image-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, 0.72fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.image-story-item {
  min-width: 0;
  margin: 0;
}

.image-story-lead {
  grid-row: 1 / span 2;
}

.image-story-item img,
.image-story-item:first-child img {
  width: 100%;
  height: 100%;
  min-height: 206px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: none;
}

.image-story-lead img {
  min-height: 470px;
}

.image-story-item figcaption {
  margin-top: 10px;
  color: #4f5450;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.proof-section {
  margin-top: 0;
}

@media (max-width: 1000px) {
  .image-story-wrap {
    grid-template-columns: 1fr;
  }

  .image-story-copy {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .image-story-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .image-story-lead {
    grid-row: auto;
  }

  .image-story-item img,
  .image-story-item:first-child img,
  .image-story-lead img {
    height: 260px;
    min-height: 0;
  }
}

/* Flush mega menu to the sticky header: no hover gap, no pixel guessing. */
.site-header {
  overflow: visible;
}

.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 0 28px;
  transform: translate3d(0, -6px, 0);
}

body.admin-bar .mega-menu {
  top: 100%;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.is-open .mega-menu {
  transform: translate3d(0, 0, 0);
}

.mega-shell {
  width: min(1180px, calc(100% - 56px));
}

.image-story-section {
  background: #202321;
  color: #fffbfb;
}

.image-story-wrap {
  grid-template-columns: minmax(300px, 0.5fr) minmax(0, 0.9fr);
  padding: clamp(54px, 6vw, 88px) 0;
}

.image-story-copy h2 {
  color: #fffbfb;
}

.image-story-copy p {
  color: rgba(255, 251, 251, 0.72);
}

.image-story-copy .eyebrow {
  border-color: rgba(255, 251, 251, 0.22);
  color: rgba(255, 251, 251, 0.78);
  background: rgba(255, 251, 251, 0.08);
}

.image-story-grid {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.54fr);
  gap: 10px;
}

.image-story-item figcaption {
  color: rgba(255, 251, 251, 0.72);
}

@media (max-width: 900px) {
  .mega-menu {
    position: static;
    padding: 0;
    transform: none;
  }
}

/* Contact page redesign. */
.contact-page {
  padding: clamp(92px, 9vw, 142px) 0 clamp(72px, 8vw, 118px);
  background: #fbfaf8;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(420px, 0.64fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: start;
}

.contact-page-copy {
  position: sticky;
  top: 124px;
  max-width: 620px;
}

.contact-page-copy h1 {
  max-width: 600px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 0.98;
}

.contact-page-copy .page-lede {
  max-width: 560px;
  margin-bottom: 34px;
}

.contact-route-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.contact-route-list a,
.contact-route-list div {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  background: #fffbfb;
}

.contact-route-list span,
.contact-next > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-route-list strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.contact-next {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contact-next ol {
  display: grid;
  gap: 13px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.contact-page-form .contact-form-panel {
  max-width: none;
  margin: 0;
  border-color: rgba(31, 36, 35, 0.1);
  padding: clamp(24px, 3.6vw, 46px);
  background: #fff;
  box-shadow: 0 20px 70px rgba(46, 39, 35, 0.08);
}

.cf7-grid {
  display: grid;
  gap: 16px;
}

.cf7-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpcf7-form label {
  display: grid;
  gap: 8px;
  color: #313533;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.wpcf7-list-item {
  margin: 0 18px 0 0;
}

.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 4px;
}

.wpcf7-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.wpcf7 input[type="radio"],
.wpcf7 input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.wpcf7-list-item-label {
  white-space: nowrap;
}

.wpcf7 select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, #626761 50%), linear-gradient(135deg, #626761 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

@media (max-width: 1000px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
  }

  .contact-page-copy {
    position: static;
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .contact-page {
    padding-top: 76px;
  }

  .contact-page-copy h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .cf7-grid.two-col {
    grid-template-columns: 1fr;
  }

  .wpcf7-submit {
    width: 100%;
  }
}

/* Mobile navigation drawer. */
@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav-open .nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 11;
    display: block;
    max-height: none;
    padding: 22px 18px 96px;
    overflow-y: auto;
    border-radius: 0;
    background: #fbfaf8;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.admin-bar.nav-open .nav-links {
    top: 122px;
  }

  .nav-open .nav-links > a,
  .nav-open .nav-link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    border-top: 1px solid rgba(31, 36, 35, 0.1);
    padding: 16px 4px;
    color: var(--ink);
    background: transparent;
    font-size: 22px;
    font-weight: 760;
    line-height: 1.1;
  }

  .nav-open .nav-links > a:last-child {
    border-bottom: 1px solid rgba(31, 36, 35, 0.1);
  }

  .nav-open .nav-link-button::before {
    content: "Services";
    order: 2;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .nav-open .mega-menu,
  .nav-open .has-mega.is-open .mega-menu {
    position: static;
    display: block;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-open .mega-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    margin: 4px 0 28px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-open .mega-intro {
    display: block;
    padding: 18px;
    border-radius: 8px;
    background: #202321;
  }

  .nav-open .mega-kicker {
    margin-bottom: 12px;
  }

  .nav-open .mega-intro h2 {
    max-width: none;
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1.08;
  }

  .nav-open .mega-primary-link {
    color: #fffbfb;
    font-size: 14px;
  }

  .nav-open .mega-group {
    display: grid;
    gap: 0;
    padding: 0;
    background: transparent;
  }

  .nav-open .mega-label {
    margin: 0 0 10px;
    padding: 0 4px;
  }

  .nav-open .mega-group a {
    display: grid;
    gap: 4px;
    border-top: 1px solid rgba(31, 36, 35, 0.1);
    border-radius: 0;
    padding: 15px 4px;
    background: transparent;
    transform: none;
  }

  .nav-open .mega-group a:hover,
  .nav-open .mega-group a:focus-visible {
    background: transparent;
    transform: none;
  }

  .nav-open .mega-group strong {
    font-size: 17px;
  }

  .nav-open .mega-group a span {
    max-width: 34ch;
    font-size: 14px;
  }

  .nav-open .mega-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-open .mega-compact .mega-label {
    grid-column: 1 / -1;
  }

  .nav-open .mega-compact a {
    min-height: 48px;
    border: 1px solid rgba(31, 36, 35, 0.1);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.15;
  }

  .nav-open .nav-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 12;
    display: inline-flex;
    min-height: 54px;
    margin: 0;
    padding: 10px 10px 10px 22px;
    box-shadow: 0 18px 44px rgba(31, 36, 35, 0.18);
  }
}

@media (max-width: 430px) {
  .nav-open .mega-compact {
    grid-template-columns: 1fr;
  }

  .nav-open .nav-links > a,
  .nav-open .nav-link-button {
    font-size: 20px;
  }
}

/* Hard mobile navigation reset. Keep this at the end so older nav experiments cannot leak through. */
.mobile-menu-contact {
  display: none;
}

.mega-fold {
  display: contents;
}

.mega-fold > summary {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    z-index: 50;
    overflow: visible;
    background: #fffbfb;
    backdrop-filter: none;
  }

  .nav-island {
    width: 100%;
    min-height: 76px;
    padding: 0 20px;
  }

  .brand {
    position: relative;
    z-index: 52;
  }

  .brand img {
    width: 142px;
  }

  .site-header .nav-toggle {
    position: relative;
    z-index: 53;
    flex: 0 0 48px;
    width: 48px !important;
    height: 48px !important;
    margin-left: auto;
    border: 0;
    border-radius: 999px;
    background: #1b1c1b !important;
  }

  .nav-open .nav-cta {
    display: none !important;
  }

  .nav-open .nav-links {
    position: fixed !important;
    inset: 0 !important;
    z-index: 49 !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 92px 20px 38px !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-top: 1px solid rgba(31, 36, 35, 0.1) !important;
    border-radius: 0 !important;
    background: #fbfaf8 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  body.admin-bar.nav-open .nav-links {
    inset: 46px 0 0 0 !important;
  }

  .nav-open .nav-item {
    display: block;
  }

  .nav-open .nav-link-button {
    min-height: auto;
    padding: 0 0 14px;
    border: 0;
    color: #1f2423;
    font-size: 22px;
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.05;
    cursor: default;
  }

  .nav-open .nav-link-button::before {
    content: "Services";
    margin-left: auto;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
  }

  .nav-open .nav-link-button::after {
    content: none;
  }

  .nav-open .mega-menu,
  .nav-open .has-mega .mega-menu,
  .nav-open .has-mega.is-open .mega-menu {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .nav-open .mega-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin: 0 0 22px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-open .mega-intro {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 0 16px;
    border-top: 0;
    border-bottom: 1px solid rgba(31, 36, 35, 0.1);
    border-radius: 0;
    background: transparent;
    color: #1f2423;
  }

  .nav-open .mega-intro h2 {
    display: none;
  }

  .nav-open .mega-kicker,
  .nav-open .mega-label {
    margin-bottom: 12px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .nav-open .mega-kicker {
    display: none;
  }

  .nav-open .mega-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(31, 36, 35, 0.28);
    color: #1f2423;
    font-size: 13px;
    font-weight: 780;
    white-space: nowrap;
  }

  .nav-open .mega-fold {
    display: block;
    border-bottom: 1px solid rgba(31, 36, 35, 0.1);
  }

  .nav-open .mega-fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 16px 0;
    color: #1f2423;
    font-size: 18px;
    font-weight: 820;
    line-height: 1.1;
    list-style: none;
    cursor: pointer;
  }

  .nav-open .mega-fold > summary::-webkit-details-marker {
    display: none;
  }

  .nav-open .mega-fold > summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: 18px;
    border: 1px solid rgba(31, 36, 35, 0.14);
    border-radius: 999px;
    color: var(--accent);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
  }

  .nav-open .mega-fold[open] > summary::after {
    content: "-";
    padding-bottom: 3px;
  }

  .nav-open .mega-fold .mega-label {
    display: none;
  }

  .nav-open .mega-group {
    display: grid;
    gap: 0;
    padding: 0;
    background: transparent;
  }

  .nav-open .mega-group a {
    display: grid;
    gap: 4px;
    min-height: 0;
    padding: 14px 0;
    border-top: 1px solid rgba(31, 36, 35, 0.1);
    border-radius: 0;
    background: transparent;
    color: #232725;
    transform: none;
  }

  .nav-open .mega-group a:hover,
  .nav-open .mega-group a:focus-visible {
    background: transparent;
    transform: none;
  }

  .nav-open .mega-group strong {
    font-size: 17px;
    line-height: 1.18;
  }

  .nav-open .mega-group a span {
    max-width: 32ch;
    color: #676b68;
    font-size: 14px;
    font-weight: 620;
    line-height: 1.35;
  }

  .nav-open .mega-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 16px;
  }

  .nav-open .mega-compact .mega-label {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .nav-open .mega-compact a {
    min-height: 48px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(31, 36, 35, 0.1);
    border-radius: 8px;
    background: #fff;
    color: #232725;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.1;
  }

  .nav-open .nav-links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 16px 0;
    border-top: 0;
    border-bottom: 1px solid rgba(31, 36, 35, 0.12);
    border-radius: 0;
    background: transparent;
    color: #1f2423;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
  }

  .nav-open .nav-links > a::after {
    content: none;
  }

  .nav-open .nav-links > a:not(.mobile-menu-contact)::before {
    content: none;
  }

  .nav-open .mobile-menu-contact {
    display: flex;
    min-height: 58px;
    margin-top: 18px;
    border: 0;
    background: #141414 !important;
    color: #fff !important;
  }

  .nav-open .nav-links > .mobile-menu-contact {
    min-height: 64px;
    padding: 8px 8px 8px 22px !important;
    border: 0;
    border-radius: 999px;
  }

  .nav-open .mobile-menu-contact span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 999px;
    background: #fff;
    color: #141414;
  }
}

@media (max-width: 430px) {
  .nav-open .nav-links {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .nav-open .mega-intro {
    padding: 0 0 16px;
  }

  .nav-open .mega-intro h2 {
    display: none;
  }
}

/* Desktop mega menu balance. Accordions are mobile-only; desktop needs equal columns. */
@media (min-width: 901px) {
  .mega-shell {
    grid-template-columns: minmax(360px, 0.84fr) minmax(390px, 0.92fr) minmax(300px, 0.64fr);
    align-items: stretch;
    width: min(1180px, calc(100% - 56px));
  }

  .mega-fold {
    display: grid;
    min-width: 0;
  }

  .mega-fold > summary {
    display: none;
  }

  .mega-intro,
  .mega-fold > .mega-group {
    min-height: 346px;
    height: 100%;
  }

  .mega-intro {
    padding: 30px 28px 26px;
  }

  .mega-intro h2 {
    max-width: 395px;
    font-size: clamp(27px, 1.82vw, 32px);
    line-height: 1.08;
  }

  .mega-group {
    padding: 30px 28px 26px;
  }

  .mega-group a {
    padding: 11px 14px;
  }

  .mega-compact {
    align-content: start;
  }
}

@media (max-width: 900px) {
  .nav-open .mega-intro,
  .nav-open .mega-fold > .mega-group {
    min-height: 0;
    height: auto;
  }
}

/* Gutenberg editing compatibility: keep native blocks client-editable without losing the theme layout. */
/* WordPress wraps every Group block in an extra .wp-block-group__inner-container
   div (themes without a theme.json get it back for legacy reasons). That wrapper
   sat between a grid/flex parent and its intended children, so every multi-column
   section collapsed into a single column. Removing it from the box tree restores
   the original section markup without touching the blocks themselves. */
.editable-page .wp-block-group > .wp-block-group__inner-container {
  display: contents;
}

/* display: contents only removes the wrapper from the box tree, not from
   selector matching, so the rules that reach into a block target its
   children as descendants rather than with a child combinator. */

.editable-page .wp-block-group {
  max-width: none;
}

.editable-page .container.wp-block-group {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.editable-page .wp-block-image {
  margin: 0;
}

.editable-page .hero-actions,
.editable-page .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.editable-page .wp-block-button.button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  background: #141414;
  color: #fff;
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.editable-page .wp-block-button.button .wp-block-button__link span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  color: #141414;
}

.editable-page .wp-block-button.text-link-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(31, 36, 35, 0.24);
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #3d423f;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.editable-page .service-question p:first-child,
.editable-page .specialist-note p:first-child {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.editable-page .service-question p:last-child {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 740;
  line-height: 1.08;
}

.editable-page .service-index,
.editable-page .proof-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editable-page .proof-row h3 {
  grid-column: 2;
  grid-row: 2;
  max-width: 42ch;
  margin-top: 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .editable-page .container.wp-block-group {
    width: min(100% - 32px, 1180px);
  }
}

/* About portrait reset: the source image is already cropped, so avoid the floating badge look. */
.about-grid,
.about-page-grid {
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 0.88fr);
}

.portrait-shell {
  width: min(100%, 280px);
  padding: 8px;
  border: 1px solid rgba(31, 36, 35, 0.1);
  border-radius: 50%;
  background: #fffbfb;
  box-shadow: 0 22px 70px rgba(56, 47, 42, 0.08);
}

.portrait {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: none;
}

.about-page-hero {
  padding-top: clamp(70px, 7vw, 110px);
}

@media (max-width: 900px) {
  .about-grid,
  .about-page-grid {
    grid-template-columns: 1fr;
  }

  .portrait-shell {
    width: min(72vw, 260px);
    margin: 0;
  }

  .portrait {
    aspect-ratio: 1;
  }

  .portrait img {
    object-position: center top;
    transform: none;
  }
}

@media (max-width: 560px) {
  .about-page-hero {
    padding-top: 48px;
  }

  .portrait {
    aspect-ratio: 1;
  }

  .portrait img {
    object-position: center top;
    transform: none;
  }
}

/* Editable homepage: Gutenberg adds wrapper elements, so restore the intended full-bleed hero composition. */
.site-shell.editable-page {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.site-shell.page-shell.editable-page {
  padding-right: 0;
  padding-left: 0;
}

.editable-page .editorial-hero {
  display: block;
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 0;
}

.editable-page .hero-editorial-grid.container.wp-block-group {
  width: 100%;
}

.editable-page .hero-editorial-grid {
  width: 100%;
  min-height: clamp(760px, 88dvh, 920px);
  padding: clamp(120px, 11vw, 178px) max(28px, calc((100vw - 1360px) / 2)) clamp(52px, 6vw, 86px);
}

.editable-page .hero-statement {
  width: min(760px, 100%);
  min-width: 0;
  justify-self: start;
}

.editable-page .hero-statement .eyebrow {
  width: max-content;
}

.editable-page .service-detail-hero,
.editable-page .specialist-detail-hero {
  padding-top: clamp(68px, 7vw, 106px);
}

.editable-page .service-detail-grid.container.wp-block-group,
.editable-page .specialist-detail-grid.container.wp-block-group,
.editable-page .service-detail-content.container.wp-block-group,
.editable-page .specialist-detail-content.container.wp-block-group {
  width: min(1180px, calc(100% - 48px));
}

.editable-page .service-detail-image.reveal,
.editable-page .service-detail-image.wp-block-group {
  min-width: 0;
}

.editable-page .specialist-detail-grid .button,
.editable-page .service-detail-grid .button {
  margin-top: 28px;
}

.editable-page .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

.editable-page .hero-media img {
  width: 100%;
  max-width: none;
  height: 100%;
}

.editable-page .editorial-hero .wp-block-button.button .wp-block-button__link {
  background: #fffbfb;
  color: #141414;
}

.editable-page .editorial-hero .wp-block-button.button .wp-block-button__link span {
  background: #141414;
  color: #fffbfb;
}

.editable-page .editorial-hero .wp-block-button.text-link-button .wp-block-button__link {
  color: #fffbfb;
  border-color: rgba(255, 251, 251, 0.46);
}

@media (max-width: 900px) {
  .editable-page .hero-editorial-grid {
    grid-template-columns: 1fr;
    min-height: 620px;
    padding: 86px 18px 34px;
  }

  .editable-page .hero-statement h1 {
    max-width: min(380px, calc(100vw - 36px));
    overflow-wrap: normal;
  }
}

/* ---------------------------------------------------------------------------
   Block markup compatibility, part two.

   Gutenberg emits <p> and <h3> where the hand-built sections used <span>,
   <small> and <strong>, and it wraps every image in a <figure>. The layout
   rules above were written against the original elements, so a few of them
   landed on the wrong child once the sections became blocks. These rules
   re-point them. Nothing here changes the block structure, so every section
   stays editable in the WordPress editor.
   --------------------------------------------------------------------------- */

/* Process steps: the first paragraph is the step number, not body copy. */
.editable-page .step p:first-child {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  color: var(--accent);
  font-weight: 850;
}

.editable-page .method-step p:first-child {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.12em;
}

/* Proof rows: the category label belongs in the narrow first column. */
.editable-page .proof-row p.proof-category {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  margin: 0;
}

/* Familiar cards: question, supporting line, then the service label pinned
   to the bottom of the card. */
.editable-page .familiar-card p:nth-of-type(2) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.editable-page .familiar-card h3 {
  margin: auto 0 0;
  padding-top: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Dark intro card: keep the eyebrow a pill, and the link readable on charcoal. */
.editable-page .service-intro-card p.eyebrow {
  margin: 0 0 22px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.editable-page .service-intro-card .wp-block-button.text-link-button .wp-block-button__link {
  color: #fffbfb;
  border-color: rgba(255, 251, 251, 0.45);
}

/* Image blocks add a <figure> between the media frame and the image, which
   breaks the height chain the frames rely on. Take it out of the box tree. */
.editable-page .hero-media .wp-block-image,
.editable-page .page-image .wp-block-image,
.editable-page .portrait .wp-block-image,
.editable-page .service-detail-image .wp-block-image,
.editable-page .work-image .wp-block-image {
  display: contents;
}

/* Home contact panel: the shortcode drops the form straight into the grid
   without the .contact-form-panel wrapper the layout was built around. */
.editable-page .contact-panel .wpcf7 {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  border: 1px solid rgba(31, 36, 35, 0.1);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}

@media (max-width: 900px) {
  .editable-page .contact-panel .wpcf7 {
    grid-column: 1;
    grid-row: auto;
  }
}

/* The eyebrow pill is sized to its content, which overflows the narrowest
   phones on the longer labels. */
@media (max-width: 600px) {
  .eyebrow,
  .editable-page .hero-statement .eyebrow {
    width: fit-content;
    max-width: 100%;
  }
}

/* Home rhythm and restored proof carousel polish. */
.editable-page .modern-services,
.editable-page .familiar-section,
.editable-page .partners-section,
.editable-page .image-story-section,
.editable-page .proof-section,
.editable-page .modern-process,
.editable-page .about,
.editable-page .modern-contact {
  padding-top: clamp(88px, 8vw, 132px);
  padding-bottom: clamp(88px, 8vw, 132px);
}

.editable-page .familiar-section {
  margin-top: 0;
  background: #f4f1ee;
}

.editable-page .familiar-grid {
  margin-top: clamp(34px, 4vw, 56px);
}

.editable-page .familiar-card {
  min-height: 360px;
  padding: clamp(28px, 2.6vw, 40px);
}

.editable-page .familiar-card p:first-child {
  margin-bottom: 22px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.12;
}

.editable-page .partners-section {
  background:
    linear-gradient(180deg, #fffbfb 0%, #f7f3f1 100%);
}

.editable-page .partners-grid {
  align-items: center;
  gap: clamp(54px, 7vw, 118px);
}

.editable-page .partners-grid .eyebrow {
  display: inline-flex;
  margin-bottom: 28px;
  border-color: rgba(31, 36, 35, 0.14);
  color: #6a6d69;
  background: #fffbfb;
  font-size: clamp(14px, 1.2vw, 22px);
  letter-spacing: 0.18em;
  box-shadow: 0 14px 40px rgba(46, 39, 35, 0.05);
}

.editable-page .partners-grid h2 {
  max-width: 11ch;
}

.editable-page .partners-grid p {
  max-width: 34ch;
  color: #686b67;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.5;
}

.editable-page .partner-capabilities {
  gap: 10px;
  margin-top: 34px;
}

.editable-page .partner-capabilities span {
  min-height: 44px;
  padding: 11px 16px;
  border-color: rgba(31, 36, 35, 0.12);
  background: #fffbfb;
  color: #343837;
  font-size: 14px;
  font-weight: 780;
}

.editable-page .proof-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #b25c56 0%, #a8534f 46%, #8f4542 100%);
  color: #fffbfb;
}

.editable-page .proof-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 251, 251, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 251, 0.08), rgba(255, 251, 251, 0));
  pointer-events: none;
}

.editable-page .proof-slider {
  position: relative;
  z-index: 1;
}

.editable-page .proof-section .section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(300px, 0.48fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.editable-page .proof-section h2 {
  color: #fffbfb;
}

.editable-page .proof-section .section-intro {
  max-width: 38ch;
  color: rgba(255, 251, 251, 0.78);
}

.editable-page .proof-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scroll-snap-type: x mandatory;
}

.editable-page .proof-card {
  flex: 0 0 clamp(300px, 27vw, 390px);
  min-height: 390px;
  padding: clamp(26px, 2.6vw, 34px);
  background: #fffbfb;
}

.editable-page .proof-card .proof-card-category,
.editable-page .proof-card p:first-child {
  margin: 0;
  color: #a8534f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.editable-page .proof-card h3 {
  margin: 22px 0 18px;
  color: #1f2423;
  font-size: clamp(24px, 2vw, 32px);
}

.editable-page .proof-card p {
  color: rgba(31, 36, 35, 0.7);
  font-size: 16px;
  line-height: 1.6;
}

.editable-page .proof-card p:last-child {
  margin-top: auto;
  padding-top: 24px;
}

.editable-page .proof-card strong {
  color: #1f2423;
}

@media (max-width: 900px) {
  .editable-page .modern-services,
  .editable-page .familiar-section,
  .editable-page .partners-section,
  .editable-page .image-story-section,
  .editable-page .proof-section,
  .editable-page .modern-process,
  .editable-page .about,
  .editable-page .modern-contact {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .editable-page .proof-section .section-head,
  .editable-page .partners-grid {
    grid-template-columns: 1fr;
  }

  .editable-page .partners-grid h2 {
    max-width: 14ch;
  }

  .editable-page .proof-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .editable-page .familiar-grid {
    grid-template-columns: 1fr;
  }

  .editable-page .familiar-card {
    min-height: 0;
  }

  .editable-page .partner-capabilities span {
    min-height: 40px;
    font-size: 13px;
  }
}

/* Mobile width guards for editable block pages. */
.editable-page,
.editable-page * {
  box-sizing: border-box;
}

.editable-page {
  overflow-x: clip;
}

.editable-page h1,
.editable-page h2,
.editable-page h3,
.editable-page p,
.editable-page li {
  min-width: 0;
}

@media (max-width: 900px) {
  .editable-page .section-head,
  .editable-page .clarity-grid,
  .editable-page .pillar-grid,
  .editable-page .familiar-grid,
  .editable-page .partners-grid,
  .editable-page .image-story-wrap,
  .editable-page .work-grid,
  .editable-page .about-grid,
  .editable-page .about-page-grid,
  .editable-page .contact-grid,
  .editable-page .contact-panel,
  .editable-page .contact-page-layout,
  .editable-page .proof-section .section-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .editable-page .section-head,
  .editable-page .clarity-grid,
  .editable-page .partners-grid,
  .editable-page .image-story-wrap,
  .editable-page .work-grid,
  .editable-page .about-grid,
  .editable-page .about-page-grid,
  .editable-page .contact-grid,
  .editable-page .contact-page-layout {
    gap: 28px;
  }

  .editable-page .section-head h2,
  .editable-page .partners-grid h2,
  .editable-page .image-story-copy h2,
  .editable-page .service-intro-card p:not(.eyebrow) {
    max-width: min(100%, 36rem);
    overflow-wrap: anywhere;
  }

  .editable-page .clarity-grid p,
  .editable-page .section-intro,
  .editable-page .partners-grid p {
    max-width: min(100%, 34rem);
  }

  .editable-page .service-intro-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .editable-page .container.wp-block-group,
  .editable-page .container {
    width: min(100% - 28px, 1180px);
  }

  .editable-page .hero-editorial-grid {
    width: 100%;
  }

  .editable-page h2 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.06;
  }

  .editable-page .section-intro,
  .editable-page .clarity-grid p {
    font-size: 18px;
    line-height: 1.5;
  }

  .editable-page .pillar-grid,
  .editable-page .familiar-grid {
    gap: 14px;
  }

  .editable-page .pillar,
  .editable-page .service-intro-card,
  .editable-page .familiar-card,
  .editable-page .proof-card {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-shell.editable-page,
  .site-shell.page-shell.editable-page,
  .editable-page > .wp-block-group,
  .editable-page section,
  .editable-page .wp-block-group,
  .editable-page .container,
  .editable-page .container.wp-block-group,
  .editable-page .section-head,
  .editable-page .clarity-grid,
  .editable-page .pillar-grid,
  .editable-page .familiar-grid,
  .editable-page .partners-grid,
  .editable-page .image-story-wrap,
  .editable-page .work-grid,
  .editable-page .about-grid,
  .editable-page .about-page-grid,
  .editable-page .contact-grid,
  .editable-page .contact-page-layout {
    max-width: 100vw;
  }

  .editable-page .container,
  .editable-page .container.wp-block-group,
  .editable-page .section-head,
  .editable-page .clarity-grid,
  .editable-page .pillar-grid,
  .editable-page .familiar-grid,
  .editable-page .partners-grid,
  .editable-page .image-story-wrap,
  .editable-page .work-grid,
  .editable-page .about-grid,
  .editable-page .about-page-grid,
  .editable-page .contact-grid,
  .editable-page .contact-page-layout {
    width: calc(100vw - 28px) !important;
    margin-right: auto;
    margin-left: auto;
  }

  .editable-page .section-head > *,
  .editable-page .clarity-grid > *,
  .editable-page .pillar-grid > *,
  .editable-page .familiar-grid > *,
  .editable-page .partners-grid > *,
  .editable-page .image-story-wrap > *,
  .editable-page .work-grid > *,
  .editable-page .about-grid > *,
  .editable-page .about-page-grid > *,
  .editable-page .contact-grid > *,
  .editable-page .contact-page-layout > * {
    min-width: 0;
    max-width: 100%;
  }

  .editable-page h1,
  .editable-page h2,
  .editable-page h3,
  .editable-page p,
  .editable-page li,
  .editable-page a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .editable-page .brand-marquee-track,
  .editable-page .brand-marquee-row {
    max-width: none;
  }

  .editable-page .service-intro-card p:not(.eyebrow) {
    font-size: clamp(20px, 6vw, 25px);
    line-height: 1.16;
  }
}

/* ---------------------------------------------------------------------------
   Portrait treatment and heading spacing.
   --------------------------------------------------------------------------- */

/* The portrait is a proper studio shot now, so show it as a portrait card
   rather than a circular crop that cut most of the frame away. */
.portrait-shell {
  width: min(100%, 380px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 34px 80px rgba(56, 47, 42, 0.16);
}

.portrait {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: var(--paper);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: none;
}

/* h2 carries no bottom margin site-wide, which leaves the About copy running
   straight into the heading above it. */
.about-copy h2 {
  margin-bottom: 20px;
}

/* Section heads bottom-align their two columns, so the intro paragraph's
   trailing margin lifted its last line clear of the heading baseline. */
.section-head .section-intro {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .portrait-shell {
    width: min(78vw, 340px);
    margin: 0;
  }

  .portrait {
    aspect-ratio: 3 / 4;
  }

  .portrait img {
    object-position: center 18%;
    transform: none;
  }
}

@media (max-width: 560px) {
  .portrait {
    aspect-ratio: 3 / 4;
  }

  .portrait img {
    object-position: center 18%;
    transform: none;
  }
}

/* Final mobile text containment for Gutenberg-generated homepage sections. */
@media (max-width: 700px) {
  .editable-page .clarity-grid,
  .editable-page .section-head,
  .editable-page .pillar-grid,
  .editable-page .partners-grid {
    overflow: hidden;
  }

  .editable-page .clarity-grid p,
  .editable-page .section-head h2,
  .editable-page .section-head .section-intro,
  .editable-page .partners-grid h2,
  .editable-page .partners-grid p,
  .editable-page .service-intro-card p,
  .editable-page .pillar h3,
  .editable-page .pillar p {
    display: block;
    width: 100%;
    max-width: calc(100vw - 56px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal;
  }

  .editable-page .service-intro-card {
    overflow: hidden;
    padding: 28px 24px;
  }

  .editable-page .service-intro-card p:not(.eyebrow) {
    font-size: clamp(20px, 5.4vw, 23px);
  }

  .editable-page .pillar h3 {
    font-size: clamp(26px, 7vw, 32px);
  }
}

@media (max-width: 700px) {
  .editable-page .clarity-band,
  .editable-page .modern-services,
  .editable-page .familiar-section,
  .editable-page .partners-section,
  .editable-page .proof-section,
  .editable-page .image-story-section,
  .editable-page .modern-process,
  .editable-page .about,
  .editable-page .modern-contact {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .editable-page .clarity-band > .container,
  .editable-page .modern-services > .container,
  .editable-page .familiar-section > .container,
  .editable-page .partners-section > .container,
  .editable-page .proof-section > .container,
  .editable-page .image-story-section > .container,
  .editable-page .modern-process > .container,
  .editable-page .about > .container,
  .editable-page .modern-contact > .container,
  .editable-page .clarity-grid,
  .editable-page .section-head,
  .editable-page .pillar-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 14px;
    padding-left: 14px;
  }

  .editable-page .clarity-grid,
  .editable-page .section-head {
    display: block !important;
  }

  .editable-page .clarity-grid p,
  .editable-page .section-head h2,
  .editable-page .section-head .section-intro {
    width: auto !important;
    max-width: none !important;
  }

  .editable-page .section-head .section-intro {
    margin-top: 20px;
  }

  .editable-page .pillar-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }

  .editable-page .service-intro-card,
  .editable-page .pillar {
    max-width: 100%;
    overflow: hidden;
  }

  .editable-page .service-intro-card p,
  .editable-page .pillar p {
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 700px) {
  .editable-page p,
  .editable-page h2,
  .editable-page h3,
  .editable-page li {
    max-width: calc(100vw - 84px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
  }

  .editable-page .hero-statement p,
  .editable-page .hero-statement h1,
  .editable-page .hero-statement h2 {
    max-width: calc(100vw - 64px) !important;
  }

  .editable-page .service-intro-card p:not(.eyebrow),
  .editable-page .pillar p,
  .editable-page .familiar-card p,
  .editable-page .proof-card p {
    max-width: calc(100vw - 112px) !important;
  }
}

/* Mobile Gutenberg containment override.
   This sits last because earlier compatibility rules deliberately relax widths
   for desktop-like block layouts, but those same rules can clip text on phones. */
@media (max-width: 700px) {
  .nav-island {
    min-height: 64px;
  }

  .brand img {
    width: 126px;
  }

  .site-header .nav-toggle {
    flex-basis: 44px;
    width: 44px !important;
    height: 44px !important;
  }

  .nav-open .nav-links {
    padding-top: 78px !important;
  }

  .site-shell.editable-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .editable-page .editorial-hero,
  .editable-page .brand-marquee {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
  }

  .editable-page .clarity-band,
  .editable-page .modern-services,
  .editable-page .familiar-section,
  .editable-page .partners-section,
  .editable-page .proof-section,
  .editable-page .image-story-section,
  .editable-page .modern-process,
  .editable-page .about,
  .editable-page .modern-contact {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .editable-page .hero-editorial-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  .editable-page .modern-services > .container,
  .editable-page .modern-services > .container.wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0;
    padding-left: 0;
  }

  .editable-page .modern-services .section-head,
  .editable-page .modern-services .pillar-grid {
    width: calc(100% - 68px) !important;
    max-width: 420px !important;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .editable-page .modern-services .pillar,
  .editable-page .modern-services .service-intro-card {
    width: auto !important;
    max-width: 100%;
    margin-right: 34px !important;
    margin-left: 34px !important;
  }

  .editable-page .brand-marquee {
    overflow: hidden;
  }

  .editable-page .brand-marquee-inner {
    width: 100% !important;
    max-width: 100%;
    padding: 20px 24px;
  }

  .editable-page .brand-marquee-window {
    overflow: visible;
    mask-image: none;
  }

  .editable-page .brand-marquee-track {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    animation: none !important;
    transform: none !important;
  }

  .editable-page .brand-marquee-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px 14px;
    padding-right: 0;
  }

  .editable-page .brand-marquee-row + .brand-marquee-row {
    display: none;
  }

  .editable-page .brand-marquee-row span {
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
  }

  .editable-page .brand-marquee-row span::before {
    width: 5px;
    height: 5px;
    margin-right: 7px;
  }

  .editable-page .clarity-grid p,
  .editable-page .section-head .section-intro,
  .editable-page .hero-statement .hero-copy,
  .editable-page .service-intro-card p:not(.eyebrow),
  .editable-page .pillar p,
  .editable-page .partners-grid > p {
    display: block !important;
    width: auto !important;
    max-width: calc(100vw - 104px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal;
  }

  .editable-page .section-head h2,
  .editable-page .partners-grid h2,
  .editable-page .pillar h3 {
    display: block !important;
    width: auto !important;
    max-width: calc(100vw - 76px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .editable-page .clarity-grid,
  .editable-page .section-head,
  .editable-page .partners-grid,
  .editable-page .pillar-grid {
    box-sizing: border-box;
    padding-right: 20px;
    padding-left: 20px;
  }

  .editable-page .service-intro-card,
  .editable-page .pillar,
  .editable-page .familiar-card,
  .editable-page .proof-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .editable-page .service-intro-card p:not(.eyebrow),
  .editable-page .pillar p,
  .editable-page .familiar-card p,
  .editable-page .proof-card p {
    max-width: 100% !important;
  }
}

/* Mobile page templates: keep all editable page sections in a true single column. */
@media (max-width: 700px) {
  .editable-page .page-hero,
  .editable-page .page-section,
  .editable-page .about-page-hero,
  .editable-page .contact-page,
  .editable-page .service-detail-hero,
  .editable-page .specialist-detail-hero,
  .editable-page .service-detail-body,
  .editable-page .specialist-detail-body {
    overflow-x: hidden;
  }

  .editable-page .page-hero {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .editable-page .page-hero-grid,
  .editable-page .proof-list,
  .editable-page .service-list,
  .editable-page .service-detail-grid,
  .editable-page .specialist-detail-grid,
  .editable-page .service-detail-content,
  .editable-page .specialist-detail-content,
  .editable-page .about-page-grid,
  .editable-page .contact-page-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100% - 28px) !important;
    max-width: 430px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    gap: 28px;
  }

  .editable-page .page-hero-grid > *,
  .editable-page .proof-list > *,
  .editable-page .service-list > *,
  .editable-page .about-page-grid > *,
  .editable-page .contact-page-layout > *,
  .editable-page .service-detail-grid > *,
  .editable-page .specialist-detail-grid > *,
  .editable-page .service-detail-content > *,
  .editable-page .specialist-detail-content > * {
    min-width: 0;
    max-width: 100%;
  }

  .editable-page .page-hero h1,
  .editable-page .about-page-grid h1,
  .editable-page .contact-page-copy h1,
  .editable-page .service-detail-grid h1,
  .editable-page .specialist-detail-grid h1 {
    width: 100%;
    max-width: 100% !important;
    font-size: clamp(34px, 10.2vw, 46px);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .editable-page .page-lede,
  .editable-page .page-body,
  .editable-page .about-page-grid p,
  .editable-page .contact-page-copy p,
  .editable-page .service-detail-grid p,
  .editable-page .specialist-detail-grid p,
  .editable-page .service-detail-content p,
  .editable-page .specialist-detail-content p {
    width: 100%;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  .editable-page .proof-row,
  .editable-page .service-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
    padding: 34px 0;
  }

  .editable-page .proof-row .proof-category,
  .editable-page .proof-row h2,
  .editable-page .proof-row p,
  .editable-page .proof-row strong,
  .editable-page .service-row > *,
  .editable-page .service-row h2,
  .editable-page .service-row p {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100%;
    max-width: 100% !important;
  }

  .editable-page .proof-row h2,
  .editable-page .service-row h2 {
    font-size: clamp(30px, 8.2vw, 38px);
    line-height: 1.08;
  }

  .editable-page .proof-row strong {
    margin-top: 0;
  }

  .editable-page .about-page-hero {
    padding-top: 0;
  }

  .editable-page .portrait-shell {
    width: 100%;
    max-width: 390px;
  }

  .editable-page .contact-page-form,
  .editable-page .contact-form-panel,
  .editable-page .wpcf7 {
    width: 100%;
    max-width: 100%;
  }
}

/* Difference page mobile rescue: override old row-placement rules completely. */
@media (max-width: 700px) {
  .editable-page .proof-list,
  .editable-page .proof-list > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .editable-page .proof-row,
  .editable-page .proof-row > .wp-block-group__inner-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .editable-page .proof-row .proof-category,
  .editable-page .proof-row h2,
  .editable-page .proof-row h3,
  .editable-page .proof-row p,
  .editable-page .proof-row strong {
    display: block !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .editable-page .proof-row .proof-category {
    margin-bottom: 18px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .editable-page .proof-row h3 {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.45;
  }
}

/* Gutenberg inner-container mobile clamp for page templates. */
@media (max-width: 700px) {
  .editable-page .page-hero-grid > .wp-block-group__inner-container,
  .editable-page .about-page-grid > .wp-block-group__inner-container,
  .editable-page .contact-page-layout > .wp-block-group__inner-container,
  .editable-page .service-list > .wp-block-group__inner-container,
  .editable-page .proof-list > .wp-block-group__inner-container,
  .editable-page .service-detail-grid > .wp-block-group__inner-container,
  .editable-page .specialist-detail-grid > .wp-block-group__inner-container,
  .editable-page .service-detail-content > .wp-block-group__inner-container,
  .editable-page .specialist-detail-content > .wp-block-group__inner-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .editable-page .page-hero-grid,
  .editable-page .about-page-grid,
  .editable-page .contact-page-layout,
  .editable-page .service-list,
  .editable-page .proof-list,
  .editable-page .service-detail-grid,
  .editable-page .specialist-detail-grid,
  .editable-page .service-detail-content,
  .editable-page .specialist-detail-content {
    width: auto !important;
    max-width: none !important;
    margin-right: 32px !important;
    margin-left: 32px !important;
  }

  .editable-page .page-hero-grid h1,
  .editable-page .page-hero-grid h2,
  .editable-page .page-hero-grid h3,
  .editable-page .page-hero-grid p,
  .editable-page .about-page-grid h1,
  .editable-page .about-page-grid h2,
  .editable-page .about-page-grid h3,
  .editable-page .about-page-grid p,
  .editable-page .contact-page-layout h1,
  .editable-page .contact-page-layout h2,
  .editable-page .contact-page-layout h3,
  .editable-page .contact-page-layout p,
  .editable-page .service-list h2,
  .editable-page .service-list h3,
  .editable-page .service-list p,
  .editable-page .proof-list h2,
  .editable-page .proof-list h3,
  .editable-page .proof-list p,
  .editable-page .service-detail-grid h1,
  .editable-page .service-detail-grid h2,
  .editable-page .service-detail-grid h3,
  .editable-page .service-detail-grid p,
  .editable-page .specialist-detail-grid h1,
  .editable-page .specialist-detail-grid h2,
  .editable-page .specialist-detail-grid h3,
  .editable-page .specialist-detail-grid p {
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Final mobile text measure clamp for page-shell content. */
@media (max-width: 700px) {
  .page-shell.editable-page h1,
  .page-shell.editable-page h2,
  .page-shell.editable-page h3,
  .page-shell.editable-page p,
  .page-shell.editable-page li,
  .page-shell.editable-page .wp-block-button,
  .page-shell.editable-page .tag-list {
    display: block !important;
    box-sizing: border-box;
    width: min(100%, calc(100vw - 112px)) !important;
    max-width: calc(100vw - 112px) !important;
    inline-size: min(100%, calc(100vw - 96px)) !important;
    max-inline-size: calc(100vw - 96px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .page-shell.editable-page h1 {
    font-size: clamp(32px, 9.2vw, 42px) !important;
    line-height: 1.08 !important;
  }

  .page-shell.editable-page h2 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.1 !important;
  }

  .page-shell.editable-page .page-hero-grid,
  .page-shell.editable-page .service-list,
  .page-shell.editable-page .proof-list,
  .page-shell.editable-page .about-page-grid,
  .page-shell.editable-page .contact-page-layout,
  .page-shell.editable-page .service-detail-grid,
  .page-shell.editable-page .specialist-detail-grid,
  .page-shell.editable-page .service-detail-content,
  .page-shell.editable-page .specialist-detail-content {
    inline-size: min(100%, calc(100vw - 56px)) !important;
    max-inline-size: calc(100vw - 56px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .page-shell.editable-page .proof-row,
  .page-shell.editable-page .service-row {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
  }

  .page-shell.editable-page .proof-row h1,
  .page-shell.editable-page .proof-row h2,
  .page-shell.editable-page .proof-row h3,
  .page-shell.editable-page .proof-row p,
  .page-shell.editable-page .service-row h1,
  .page-shell.editable-page .service-row h2,
  .page-shell.editable-page .service-row h3,
  .page-shell.editable-page .service-row p {
    width: min(100%, calc(100vw - 112px)) !important;
    max-width: calc(100vw - 112px) !important;
    inline-size: min(100%, calc(100vw - 112px)) !important;
    max-inline-size: calc(100vw - 112px) !important;
  }

  .page-shell.editable-page .service-row h2,
  .page-shell.editable-page .proof-row h2 {
    font-size: clamp(27px, 7.1vw, 32px) !important;
  }
}

/* ---------------------------------------------------------------------------
   Mobile corrections.

   Three problems, all from rules that stack rather than replace each other:
   the nav drawer was sized with 100vw (wider than the visible area whenever a
   scrollbar is present) and its content started underneath the sticky header,
   and the services cards picked up a horizontal inset at three nesting levels
   at once, so they ended up far narrower than every other section.
   --------------------------------------------------------------------------- */

@media (max-width: 900px) {
  /* inset already pins the drawer to both edges; an explicit 100vw width wins
     over the right offset and pushes the panel past the viewport. */
  .nav-open .nav-links {
    width: auto !important;
    max-width: none !important;
  }

  /* Clear the sticky header. The admin bar shifts the header down twice as far
     as it shifts the drawer, so the logged-in case needs its own value. */
  .nav-open .nav-links {
    padding-top: 93px !important;
  }

  body.admin-bar.nav-open .nav-links {
    padding-top: 139px !important;
  }

  /* The intro column is a flex column, so align-items controls the horizontal
     placement of the one visible child. */
  .nav-open .mega-intro {
    align-items: flex-start;
  }

  /* Line the services link up with the rest of the drawer items. The generic
     .nav-open .mega-menu a padding rule outranks a class-only selector here. */
  .nav-open .mega-intro a.mega-primary-link {
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .nav-open .nav-links {
    padding-top: 93px !important;
  }

  body.admin-bar.nav-open .nav-links {
    padding-top: 139px !important;
  }

  /* Let the services section use the same gutter as every other section
     instead of an extra inset per nesting level. */
  .editable-page .modern-services .section-head,
  .editable-page .modern-services .pillar-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
    margin-left: 0;
  }

  .editable-page .modern-services .pillar,
  .editable-page .modern-services .service-intro-card {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}
