/* style.css — Forty Group homepage mockup */

.wrap { max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-8); }
@media (max-width: 640px) { .wrap { padding-inline: var(--space-5); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: transparent;
  transition: background 260ms ease, box-shadow 260ms ease;
}
.site-header.on-dark {
  background: var(--color-header-bg);
  box-shadow: var(--shadow-header-scrolled);
  border-bottom: 1px solid var(--color-header-bg-active);
}
.site-header.is-scrolled {
  background: var(--color-header-bg);
  box-shadow: var(--shadow-header-scrolled);
  border-bottom: 1px solid var(--color-header-bg-active);
}
.logo-lockup { display: flex; align-items: center; gap: var(--space-3); }
.logo-img-wrap { position: relative; display: inline-block; height: 26px; }
.logo-img { height: 100%; width: auto; display: block; }
.logo-img-dark { position: absolute; inset: 0; opacity: 0; transition: opacity 260ms ease; }
.logo-img-light { transition: opacity 260ms ease; }
.site-header.is-scrolled .logo-img-light { opacity: 1; }
.site-header.is-scrolled .logo-img-dark { opacity: 0; }
.site-header.on-light .logo-img-light { opacity: 0; }
.site-header.on-light .logo-img-dark { opacity: 1; }
.site-header.on-light.is-scrolled .logo-img-light { opacity: 1; }
.site-header.on-light.is-scrolled .logo-img-dark { opacity: 0; }
.footer-brand .logo-img-wrap { height: 30px; }

.main-nav { display: flex; align-items: center; gap: var(--space-8); }
.main-nav ul { display: flex; gap: var(--space-6); list-style: none; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-2xs); font-weight: 500; color: var(--color-text-inverse);
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1;
  transition: color 260ms ease, opacity 200ms ease; opacity: 0.86;
}
.site-header.is-scrolled .main-nav a:not(.btn) { color: var(--color-text-inverse); }
.site-header.on-light .main-nav a:not(.btn) { color: var(--color-header-bg); }
.site-header.on-light.is-scrolled .main-nav a:not(.btn) { color: var(--color-text-inverse); }
.site-header.is-scrolled .btn-ghost-light { border-color: color-mix(in oklab, var(--color-text-inverse) 55%, transparent); color: var(--color-text-inverse); }
.site-header.is-scrolled .btn-ghost-light:hover { border-color: var(--color-text-inverse); background: color-mix(in oklab, var(--color-text-inverse) 14%, transparent); }
.main-nav a:not(.btn):hover { opacity: 1; }
.main-nav a:not(.btn)::before {
  content: '';
  flex: 0 0 9px;
  align-self: center;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(-45deg) scale(0.72);
  transform-origin: 50% 50%;
  transition: transform 220ms ease;
}
.main-nav a:not(.btn):hover::before { transform: translateY(-2px) rotate(45deg) scale(0.72); }
.main-nav a:not(.btn)[aria-current] { opacity: 1; }
.main-nav a:not(.btn)[aria-current]::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(8% 22%, 92% 22%, 50% 82%);
  transform: none;
}
.main-nav a:not(.btn)[aria-current]:hover::before { transform: none; }

/* ---------- Mobile nav toggle + drawer ---------- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.site-header.on-light .nav-toggle { color: var(--color-header-bg); }
.site-header:not(.on-light) .nav-toggle { color: var(--color-text-inverse); }
.site-header.is-scrolled .nav-toggle { color: var(--color-text-inverse); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer-backdrop {
  position: fixed; inset: 0; z-index: 199;
  background: color-mix(in oklab, var(--color-ink) 55%, transparent);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.nav-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(420px, 86vw);
  background: var(--color-header-bg);
  color: var(--color-text-inverse);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-8) var(--space-10);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-10); }
.nav-drawer-head .logo-img-wrap { height: 22px; }
.nav-drawer-close {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; line-height: 1; color: var(--color-text-inverse); background: transparent; border: 0;
}
.nav-drawer-list { list-style: none; margin: 0; padding: 0; counter-reset: navitem; }
.nav-drawer-list li {
  counter-increment: navitem;
  display: flex; align-items: baseline; gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(246,242,234,0.14);
}
.nav-drawer-list li:first-child { border-top: 1px solid rgba(246,242,234,0.14); }
.nav-drawer-list li::before {
  content: counter(navitem, decimal-leading-zero);
  font-size: var(--text-xs); font-weight: 600; color: var(--color-accent-highlight); letter-spacing: 0.08em;
}
.nav-drawer-list a {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; color: var(--color-text-inverse);
}
.nav-drawer-list a[aria-current] { color: var(--color-accent-highlight); }
.nav-drawer-cta { margin-top: var(--space-8); align-self: flex-start; }
html.nav-drawer-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; padding: 0.7em 1.35em;
  border-radius: var(--radius-sm); border: 1px solid transparent; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.btn-primary { background: var(--color-accent); color: #FBF3ED; }
.btn-primary:hover { background: #2B1910; }
.hero .btn-primary { background: var(--color-header-bg); }
.hero .btn-primary:hover { background: #2B1910; }
.btn-ghost-light { border-color: color-mix(in oklab, var(--color-text-inverse) 45%, transparent); color: var(--color-text-inverse); }
.btn-ghost-light:hover { border-color: #2B1910; background: #2B1910; color: var(--color-text-inverse); }
.btn-outline { border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-ink); background: var(--color-surface-2); }
.btn-icon { width: 1em; height: 1em; }

/* ---------- Hero ---------- */
.hero {
  position: fixed; inset: 0; z-index: 0;
  height: 100vh; height: 100dvh;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--color-text-inverse); overflow: hidden;
}
.page-stack {
  position: relative; z-index: 1;
  margin-top: 100vh; margin-top: 100dvh;
  background: var(--color-surface-offset);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 7% 62%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--color-header-bg) 22%, transparent) 0%,
    color-mix(in oklab, var(--color-header-bg) 22%, transparent) 30%,
    color-mix(in oklab, var(--color-header-bg) 72%, transparent) 82%,
    color-mix(in oklab, var(--color-header-bg) 84%, transparent) 100%);
}
.hero-inner { padding: 0 var(--space-8); max-width: var(--content-wide); margin-inline: auto; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: #FFFFFF; margin-bottom: var(--space-6);
  text-shadow: 0 0 1px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5);
}
.hero-kicker::before {
  content: ''; display: inline-block; width: 6.4px; height: 6.4px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  box-shadow: 0 0 1px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
}

.hero h1 {
  font-size: var(--text-hero); font-weight: 500; max-width: 30ch; letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--color-accent-highlight); font-weight: 400; text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 12px rgba(0,0,0,0.35); }
.hero-sub {
  margin-top: var(--space-8); font-size: var(--text-lg); max-width: 78ch; color: #fff; /* white at all widths (13 Oct 2026) */
  font-weight: 400; line-height: 1.55;
}
.hero-actions { display: flex; gap: var(--space-4); margin-top: var(--space-10); flex-wrap: wrap; }

/* ---------- Page header (standalone secondary pages) ---------- */
.page-header {
  background: var(--color-page-header);
  color: var(--color-text);
  padding-top: calc(var(--header-offset) + var(--section-pad-y));
  padding-bottom: var(--section-pad-y);
  min-height: calc(var(--header-offset) + (var(--section-pad-y) * 2) + var(--page-hero-copy));
  box-sizing: border-box;
}
.page-header .wrap {
  max-width: var(--content-wide);
}
.page-header .section-head {
  margin-bottom: 0;
}
.page-header .eyebrow {
  color: var(--color-header-bg);
}
.page-header .section-title {
  color: var(--color-text);
  max-width: none;
}
.page-header .section-desc {
  color: #3F352C;
  max-width: none;
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--color-surface-offset); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.stats-infographic {
  position: relative;
  aspect-ratio: 5666 / 1018;
}
.stats-infographic > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.stats-grid {
  position: absolute;
  inset: 0;
}
.stat-item {
  position: absolute;
  top: 50%;
  width: 17%;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}
.stat-item:nth-child(1) { left: 13.2%; color: #705840; }
.stat-item:nth-child(2) { left: 37.82%; color: #987048; }
.stat-item:nth-child(3) { left: 62.17%; color: #a09080; }
.stat-item:nth-child(4) { left: 86.78%; color: #b8a088; }
.stat-figure {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.875rem);
  font-weight: 700;
  color: inherit;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-label {
  margin-top: var(--space-3);
  max-width: 100%;
  color: inherit;
  font-size: clamp(0.625rem, 0.9vw, var(--text-xs));
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Phone-only plain stat list: hidden by default (tablet/desktop use
   the .stats-infographic grid above instead). Shown and styled inside
   the phone-only media block below. */
.stats-list-mobile { display: none; }

/* ---------- Section scaffolding ---------- */
section { padding-block: var(--section-pad-y); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); margin-bottom: var(--space-16); }
.section-head > div { width: 100%; }
.eyebrow {
  display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); width: fit-content;
  line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ''; display: inline-block; width: 6.4px; height: 6.4px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}

.section-title { font-size: var(--text-2xl); font-weight: 500; max-width: none; }
.section-desc { max-width: 70ch; color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.65; margin-top: var(--space-2); }
.stats-band .section-desc { max-width: 102ch; }
.method .section-desc { max-width: 97ch; }
#services .section-desc { max-width: 113ch; }
#projects .section-desc { max-width: 125ch; }

/* ---------- Method / PLAN CREATE DELIVER ---------- */
.stats-band,
.method,
#services,
#projects,
.partners,
.cta-band {
  position: relative;
  z-index: 2;
}
#services,
#projects { background: var(--color-surface-offset); }
.method { background: var(--color-surface-offset); }
.method-infographic {
  position: relative;
  aspect-ratio: 4159 / 816;
  margin-top: var(--space-12);
}
.method-infographic > img:not(.method-mobile-graphic) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.method-mobile-graphic { display: none; }
.method-stage { display: none; }
.method-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 8% 10%;
  text-align: center;
}
.method-card:nth-child(1) {
  color: #765b47;
  transform: translateX(-4%);
}
.method-card:nth-child(2) {
  color: #9d704f;
}
.method-card:nth-child(3) {
  color: #a69080;
  transform: translateX(4%);
}
.method-heading {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  gap: var(--space-2);
}
.method-card h3 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.875rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.method-card p {
  max-width: none;
  color: inherit;
  font-size: clamp(0.75rem, 1vw, var(--text-sm));
  line-height: 1.2;
}
.method-card p span {
  display: block;
  white-space: nowrap;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-4); }
.service-card {
  background: var(--color-surface); border: 2px solid #9d704f; border-radius: 10px; padding: var(--space-6) var(--space-8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5);
  min-height: 190px; text-align: center; text-decoration: none; color: inherit; cursor: pointer;
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.service-card h3 { font-size: var(--text-lg); font-weight: 700; font-family: var(--font-body); color: #9d704f; transition: color 220ms ease; }
.service-card p { font-size: var(--text-sm); color: color-mix(in oklab, var(--color-header-bg) 78%, white 22%); line-height: 1.2; }
.service-card:hover { box-shadow: 0 20px 40px -12px color-mix(in oklab, var(--color-ink) 22%, transparent); transform: translateY(-4px); border-color: var(--color-header-bg-active); }
.service-card:hover h3 { color: var(--color-header-bg-active); }

/* ---------- Projects: large-stage gallery with thumbnails ---------- */
.project-gallery { margin-top: var(--space-2); }
.project-gallery-main { display: flex; align-items: center; gap: var(--space-5); }
.project-gallery-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-offset);
}
.project-gallery-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1);
}
.project-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}
.project-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-gallery-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in oklab, var(--color-ink) 65%, transparent) 0%, transparent 40%); }
.project-gallery-slide figcaption {
  position: absolute; left: var(--space-6); bottom: var(--space-5); z-index: 1;
  color: var(--color-text-inverse); font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-lg); letter-spacing: 0.01em;
}
@media (prefers-reduced-motion: reduce) {
  .project-gallery-slides { transition: none; }
  .project-gallery--split .project-gallery-slide { transition: none; }
  .gallery-rail-track { transition: none; }
}
.gallery-nav {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: var(--color-text); cursor: pointer;
  box-shadow: var(--shadow-md); transition: background 160ms ease;
}
.gallery-nav:hover { background: var(--color-surface-offset); }

.project-gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}
.project-gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  background: none;
  transition: opacity 160ms ease, border-color 160ms ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--color-accent); }

/* Homepage: featured image on the right, vertical thumbs at the wrap edge */
.project-gallery--split .project-gallery-board {
  position: relative;
  min-height: 0;
}
.project-gallery--split .project-gallery-stage {
  width: calc(100% - 168px);
  margin-left: 0;
  margin-right: 168px;
  aspect-ratio: 16 / 9;
  background: var(--color-header-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.project-gallery--split .project-gallery-slides {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: none;
  transition: none;
}
.project-gallery--split .project-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 400ms ease;
}
.project-gallery--split .project-gallery-slide.is-center {
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.project-gallery--split .project-gallery-slide::after { display: none; }
.project-gallery--split .project-gallery-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}
.project-gallery--split .project-gallery-slide.is-center .project-gallery-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.project-gallery--split .project-gallery-tint { opacity: 0; }
.project-gallery-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 152px;
  overflow: visible;
}
.gallery-rail-arrow {
  position: absolute;
  left: 0;
  width: 100%;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-header-bg);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-rail-arrow--up { top: 0; transform: translateY(-50%); }
.gallery-rail-arrow--down { bottom: 0; transform: translateY(50%); }
.gallery-rail-arrow svg {
  width: 16px;
  height: 10px;
  display: block;
}
.gallery-rail-arrow:hover { color: var(--color-header-bg-active); }
.gallery-rail-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}
.gallery-rail-window {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  right: 0;
  overflow: hidden;
  container-type: size;
}
.gallery-rail-track {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 320ms ease;
}
.gallery-rail-thumb {
  position: relative;
  flex: 0 0 calc((100cqh - (3 * var(--space-3))) / 4);
  height: calc((100cqh - (3 * var(--space-3))) / 4);
  width: 100%;
  aspect-ratio: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: var(--color-header-bg);
}
.gallery-rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) brightness(0.72) contrast(1.12);
  transform: scale(1.04);
}
.gallery-rail-tint {
  position: absolute;
  inset: 0;
  background: var(--color-header-bg);
  mix-blend-mode: color;
  pointer-events: none;
}
.gallery-rail-thumb.is-active {
  border-color: var(--color-accent);
}
.gallery-rail-thumb.is-active img {
  filter: none;
  transform: none;
}
.gallery-rail-thumb.is-active .gallery-rail-tint { opacity: 0; }
.gallery-rail-thumb:hover:not(.is-active) img { filter: grayscale(0.4) brightness(0.88); }
.project-gallery--split .project-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}
.project-gallery--split .project-gallery-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in oklab, var(--color-ink) 65%, transparent) 0%, transparent 40%);
  pointer-events: none;
}
.project-gallery--split .project-gallery-slide figcaption {
  left: 0;
  right: 0;
  bottom: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- Projects: below-image navigation (home page) ---------- */
.project-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.gallery-counter {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  min-width: 52px;
  text-align: center;
}
.gallery-counter-sep { margin: 0 0.35em; color: var(--color-border); }
#galleryCounterCurrent { color: var(--color-text); }

@media (max-width: 860px) {
  .project-gallery-main { gap: var(--space-2); }
  .gallery-nav { width: 40px; height: 40px; font-size: 18px; }
  .gallery-thumb { width: 80px; }
  .project-gallery-controls { gap: var(--space-3); margin-top: var(--space-4); }
}

/* ---------- Quote / pull quote ---------- */
.pull-quote {
  position: sticky;
  top: var(--header-offset, 3.7rem);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(5.76rem, 12.96vw, 11.52rem);
  background: var(--color-ink);
  color: var(--color-text-inverse);
  overflow: hidden;
}
.pull-quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.22;
}
.pull-quote .wrap {
  position: relative; z-index: 1; max-width: 920px; text-align: center;
  opacity: 0;
  transform: translateX(-100vw);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pull-quote.is-visible .wrap { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .pull-quote .wrap { opacity: 1; transform: none; transition: none; }
}
.pull-quote blockquote { font-family: var(--font-display); font-style: normal; font-size: var(--text-xl); line-height: 1.4; font-weight: 300; }

/* Pull-quote background: duotone tint */
.pull-quote--duotone .pull-quote-bg-parallax {
  position: absolute;
  inset: 0;
}
.pull-quote--duotone .pull-quote-bg-parallax .pull-quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(1) brightness(0.7) contrast(1.15);
  pointer-events: none;
}
.pull-quote--duotone .pull-quote-tint {
  position: absolute;
  inset: 0;
  background: var(--color-header-bg);
  mix-blend-mode: color;
  pointer-events: none;
}

/* ---------- Partners ---------- */
.partners {
  /* Deeper beige, a step darker than the offset band above it but well short
     of the original tan. */
  background: #E5DAC9;
  color: var(--color-text);
}
.partners .section-desc { max-width: none; color: #3F352C; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row;
  column-gap: 14px;
  row-gap: 14px;
  align-items: center;
  justify-items: center;
  overflow: visible;
}
.partners-grid img {
  width: 198px;
  height: 68px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(0);
  opacity: 0.78;
  transform: scale(1);
  transform-origin: center center;
  border: 1px solid rgba(63, 53, 44, 0.35);
  padding: 10px;
  box-sizing: border-box;
}
/* Size "Smaller" in the Forty Client Logos Notion database (14 Oct). */
.partners-grid img.is-compact {
  padding-block: 15px;
}
.partners-grid img.is-breathe {
  animation: partner-breathe 1800ms cubic-bezier(0.37, 0, 0.63, 1) both;
}
/* Desktop flag wave (16 Oct 2026, v3): a band of movement sweeps
   diagonally from the top left to the bottom right, then everything is
   still for 5 s before the next band (timing in clients.js). As the band
   passes, each logo swells and nudges towards the bottom right, dips back
   and settles, over 1.62 s. */
.partners-grid.is-flag img {
  animation: partner-flag 1.62s cubic-bezier(0.45, 0, 0.55, 1) both;
  will-change: transform;
}
@keyframes partner-flag {
  0%, 100% { transform: translate(0, 0) scale(1); }
  31% { transform: translate(3px, -3px) scale(1.045); }
  67% { transform: translate(-2px, 3px) scale(0.975); }
  96% { transform: translate(0.5px, -0.5px) scale(1.005); }
}
@keyframes partner-breathe {
  0% { transform: scale(1); }
  32% { transform: scale(0.965); }
  68% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-grid.is-flag img,
  .partners-grid img.is-breathe {
    transform: none;
    animation: none;
  }
}


/* ---------- CTA ---------- */
.cta-band { position: relative; background: var(--color-ink); color: var(--color-text-inverse); overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background-image: url('../img/street-scene-1.jpg'); background-size: cover; background-position: center;
  mix-blend-mode: luminosity; opacity: 0.22;
}
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-10); flex-wrap: wrap; }
.cta-band h2 { font-size: var(--text-2xl); max-width: 16ch; }
.cta-contact { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.cta-contact a { font-size: var(--text-lg); font-family: var(--font-display); }
.cta-clients {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8);
  margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid rgba(246,242,234,0.14);
}
.cta-clients .clients-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-text-inverse-muted); }
.cta-clients .client-logo { height: 20px; width: auto; flex-shrink: 0; filter: brightness(0) invert(1); opacity: 0.7; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--color-header-bg-active); color: var(--color-text-inverse-muted); padding-top: var(--space-16); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-10); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(246,242,234,0.12); }
.footer-intro { padding-bottom: var(--space-12); border-bottom: 1px solid rgba(246,242,234,0.12); }
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(246,242,234,0.12);
}
.footer-brand-logo .logo-img-wrap { height: 48px; }
.footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.footer-bottom-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  text-align: right;
  margin-left: auto;
}
.footer-brand .footer-mantra {
  margin: 0;
  max-width: none;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-mantra .mantra-plan,
.footer-mantra .mantra-colon-1 { color: #9d704f; }
.footer-mantra .mantra-deliver,
.footer-mantra .mantra-colon-2 { color: #c0a088; }
.footer-mantra .mantra-manage { color: #cdb89a; }
.footer-legal {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text-inverse-muted);
}
.copy-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.copy-columns-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-right: var(--space-8);
}
.copy-columns-col + .copy-columns-col {
  padding-left: var(--space-8);
  border-left: 1px solid var(--color-divider);
}
.copy-columns p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.services-page,
.inner-page {
  background: var(--color-surface-offset);
  padding-block: var(--section-pad-y);
}
.services-page .services-grid { margin-top: var(--space-12); }
.service-card { scroll-margin-top: 6.5rem; }

.service-details {
  background: var(--color-bg);
  padding-block: var(--section-pad-y);
}
.service-directory {
  --service-panel-line: #c4b09a;
  display: grid;
  grid-template-columns: 18.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0;
  background: transparent;
  border: 0;
}
.service-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: var(--color-surface-offset);
  border: 2px solid var(--service-panel-line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.service-tab {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 5.1rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--service-panel-line);
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  cursor: pointer;
}
.tab-icon {
  display: block;
  width: 2.75rem;
  height: 2.5rem;
  object-fit: contain;
}
.service-tab:first-child {
  border-top-left-radius: 8px;
}
.service-tab:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 8px;
}
.service-tab:hover {
  color: #9d704f;
}
.service-tab[aria-selected="true"] {
  z-index: 3;
  color: #9d704f;
  background: var(--color-surface);
  margin-right: -2px;
  padding-right: calc(1rem + 2px);
}
.service-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  width: 4px;
  background: var(--color-surface);
}
.service-shell {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border: 2px solid var(--service-panel-line);
  border-radius: 0 10px 10px 10px;
  padding: var(--space-10);
}
.service-panel {
  display: none;
  scroll-margin-top: 6.5rem;
}
.service-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-6);
  align-items: start;
}
.service-panel h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--color-text);
}
.service-includes {
  padding-left: 0;
}
.service-includes h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
.service-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-includes li {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.05rem;
  border: 0;
  background: none;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-text);
}
.service-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--service-panel-line);
}
.service-teaser {
  display: none;
}
.service-detail-copy {
  max-width: none;
}
.service-detail-copy p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text);
}
.service-detail-copy p + p {
  margin-top: var(--space-3);
}

/* ---------- Team page (zig-zag layout matching testimonials page) ---------- */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.team-member {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: stretch;
  padding-block: var(--space-10);
  border-bottom: 1px solid color-mix(in oklab, var(--color-header-bg) 20%, transparent 80%);
}
.team-member:last-child {
  border-bottom: none;
}
.team-member--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
}
.team-member--reverse .team-photo { order: 2; }
.team-member--reverse .team-info { order: 1; }
.team-photo {
  display: flex;
  overflow: hidden;
  border-radius: 10px;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.team-info h2 {
  margin: 0;
  font-family: var(--font-body-nunito);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}
.team-info h2 .team-nominal {
  font-family: var(--font-body-nunito);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap; /* letters stay together on one line (16 Oct 2026) */
}
.team-position {
  margin: 0.2em 0 0;
  font-family: var(--font-body-nunito);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
}
.team-bio {
  margin: var(--space-6) 0 0;
  font-family: var(--font-body-nunito);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-header-bg);
}
@media (max-width: 860px) {
  .team-member,
  .team-member--reverse {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .team-member--reverse .team-photo,
  .team-member--reverse .team-info { order: initial; }
  .team-photo img { max-width: 260px; height: auto; aspect-ratio: 1 / 1; }
  .team-grid {
    max-width: 480px;
    margin-inline: auto;
  }
}
@media (max-width: 480px) {
  .team-member {
    flex-direction: column;
  }
  .team-photo {
    width: 140px;
    height: 140px;
    flex-basis: 140px;
  }
}

/* ---------- Testimonials page (zig-zag layout matching live fortygroup.co.uk/testimonials) ---------- */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.testimonial-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: stretch;
  padding-block: var(--space-10);
  border-bottom: 1px solid color-mix(in oklab, var(--color-header-bg) 20%, transparent 80%);
}
.testimonial-row:last-child {
  border-bottom: none;
}
.testimonial-row--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
}
.testimonial-row--reverse .testimonial-photo { order: 2; }
.testimonial-row--reverse .testimonial-copy { order: 1; }
.testimonial-photo {
  display: flex;
}
.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.testimonial-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.testimonial-copy blockquote {
  margin: 0;
  font-family: "Nunito Sans", var(--font-body), sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-header-bg);
}
.testimonial-meta {
  margin-top: auto;
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.testimonial-meta strong {
  font-family: "Nunito Sans", var(--font-body), sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
}
.testimonial-meta .testimonial-role {
  font-family: "Nunito Sans", var(--font-body), sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
}
@media (max-width: 860px) {
  .testimonial-row,
  .testimonial-row--reverse {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .testimonial-row--reverse .testimonial-photo,
  .testimonial-row--reverse .testimonial-copy { order: initial; }
  .testimonial-photo img { max-width: 260px; height: auto; aspect-ratio: 1 / 1; }
}

.page-header.has-filters {
  min-height: 0;
}
.properties-page {
  padding-top: calc(var(--header-offset) + var(--section-pad-y));
}
.properties-title {
  font-family: "Nunito Sans", var(--font-body), sans-serif;
  font-size: calc(var(--text-lg) * 1.15);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-header-bg);
  margin: 0 0 var(--space-12);
}
.property-filters {
  display: grid;
  grid-template-columns: auto minmax(16rem, 1.6fr) repeat(3, minmax(10rem, 1fr));
  align-items: center;
  gap: 0.85rem 0.95rem;
  margin-bottom: var(--space-10);
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-header-bg);
  white-space: nowrap;
}
.filter-label span {
  font-size: var(--text-base);
  letter-spacing: normal;
  text-transform: none;
  font-weight: 700;
  color: var(--color-header-bg);
}
.filter-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-header-bg);
}
.property-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.property-filters span {
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-header-bg);
}
.property-filters input,
.property-filters select {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.3;
  padding: 0.75rem 0.9rem;
  border-radius: 9px;
}
.property-filters select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 0.12rem), calc(100% - 0.75rem) calc(50% - 0.12rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.property-filters input:focus,
.property-filters select:focus {
  outline: 2px solid color-mix(in oklab, var(--color-header-bg) 35%, transparent);
  outline-offset: 1px;
}
.property-count {
  display: inline-flex;
  align-items: center;
  margin: 0 0 var(--space-6);
  font-family: "Nunito Sans", var(--font-body), sans-serif;
  font-size: calc(var(--text-xl) * 0.5);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-header-bg);
  background: var(--color-surface-2);
  border: 1px solid color-mix(in oklab, var(--color-text-muted) 30%, white 70%);
  border-radius: 7px;
  padding: 0.35em 1em;
}
.property-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.property-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  box-shadow: 0 3px 14px 2px rgba(43, 43, 43, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.property-card:hover {
  box-shadow: 0 8px 22px 3px rgba(43, 43, 43, 0.16);
  transform: translateY(-6px);
}
.property-card-media {
  position: relative;
  aspect-ratio: 400 / 259;
  overflow: hidden;
  background: color-mix(in oklab, var(--color-surface-offset) 70%, #cdb89a 30%);
}
.property-card-media img,
.property-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-status,
.property-pdf {
  display: inline-block;
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.32em 0.62em;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  color: #fff;
}
.property-status {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #448361;
}
.property-status.is-to-let { background: #448361; color: #fff; }
.property-status.is-under-offer { background: #CB912F; color: #fff; }
.property-status.is-let { background: #787774; color: #fff; }
.property-status.is-withdrawn { background: #D44C47; color: #fff; }
.property-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.82rem 0.86rem 0.9rem;
  min-width: 0;
}
.property-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-header-bg);
}
.property-address {
  margin: 0;
  font-family: "Nunito Sans", var(--font-body), sans-serif;
  font-size: calc(var(--text-sm) * 0.9);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-header-bg);
}
.property-blurb {
  margin: 0.54rem 0 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-text);
}
.property-facts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.68rem 0 0;
}
.property-facts div {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
  min-width: 0;
}
.property-facts dt {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}
.property-facts dt::after { content: ':'; }
.property-facts dd {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--color-text);
}
.property-pdf {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
  background: #E10600;
  color: #fff;
  text-decoration: none;
}
.property-pdf:hover {
  background: #B80500;
  color: #fff;
}
.property-empty,
.property-loading {
  margin: 0;
  padding: 2rem 0;
  color: var(--color-text-muted);
}
@media (max-width: 980px) {
  .property-filters { grid-template-columns: 1fr 1fr; }
  .filter-label { grid-column: 1 / -1; }
  .property-filters label:first-of-type { grid-column: 1 / -1; }
  .property-list { grid-template-columns: 1fr; }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.contact-card {
  background: var(--color-surface);
  border: 2px solid #9d704f;
  border-radius: 10px;
  padding: var(--space-8);
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-3);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-header-bg-active);
  box-shadow: 0 20px 40px -12px color-mix(in oklab, var(--color-ink) 22%, transparent);
}
.contact-card span {
  font-size: var(--text-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9d704f;
}
.contact-card strong {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-header-bg);
}
.contact-address {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.contact-address p {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--color-header-bg);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  color: var(--color-text-inverse);
  text-decoration: none;
}
.footer-contact-label {
  font-size: var(--text-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-inverse-muted);
  line-height: 1;
}
.footer-contact-value {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-text-inverse);
  transition: color 160ms ease;
}
.footer-contact-item:hover .footer-contact-value {
  color: var(--color-accent-highlight);
}
.footer-brand .logo-lockup { color: var(--color-text-inverse); margin-bottom: var(--space-5); }
.footer-brand p:not(.footer-mantra) { max-width: 32ch; font-size: var(--text-sm); line-height: 1.6; }
.footer-address {
  margin: 0;
  max-width: none;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--color-text-inverse-muted);
}
.footer-logo { color: var(--color-text-inverse); }
.footer-bottom .logo-img-wrap { height: 30px; }
.footer-col h5 { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-inverse); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.footer-col a { font-size: var(--text-sm); }
.footer-col a:hover { color: var(--color-text-inverse); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-6); font-size: var(--text-xs); flex-wrap: wrap; gap: var(--space-3); }
.footer-bottom .footer-address { text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .stats-infographic { aspect-ratio: auto; }
  .stats-infographic > img { display: none; }
  .stats-grid { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .stat-item {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    min-height: 0;
    padding: var(--space-6) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-top: 3px solid currentColor;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transform: none;
  }
  .method-infographic { aspect-ratio: auto; }
  .method-infographic > img:not(.method-mobile-graphic) { display: none; }
  .method-grid { position: static; grid-template-columns: 1fr; gap: var(--space-5); }
  .method-card {
    min-height: 220px;
    padding: var(--space-8);
    border: 6px solid var(--color-header-bg);
    border-radius: 24px;
    transform: none;
  }
  .method-card p span { white-space: normal; }
  .method-card:nth-child(2) { border-color: color-mix(in oklab, var(--color-header-bg) 72%, var(--color-accent) 28%); }
  .method-card:nth-child(3) { border-color: var(--color-accent); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile/tablet only: drop the homepage "Projects Past & Present"
     gallery and the "Who we work with" partner-logo section from the
     bottom of every page. Both stay on desktop; on mobile the client
     logos live on their own dedicated Clients page instead, reachable
     via the nav drawer. */
  #projects:not(.projects-sheets) { display: none; }
  #partners { display: none; }

  /* Tablet only (701-980px): the dedicated Clients page's own logo
     grid (6 columns on desktop) is too cramped to read. Drop to 3
     columns and give each logo more room so the brand marks are
     legible. Phone gets its own 2-column version below; desktop
     keeps the original 6-column grid. */
  .partners-grid img {
    width: 100%;
    height: 92px;
    padding: 16px;
  }

  /* Mobile/tablet only: center the footer brand block, contact
     details and copyright, and drop the street address line. Desktop
     keeps the original left/right split layout with the address. */
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-8);
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand p:not(.footer-mantra) { margin-inline: auto; }
  .footer-aside {
    align-items: center;
    text-align: center;
  }
  .footer-contact {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-6) var(--space-8);
  }
  .footer-contact-item { align-items: center; }
  .footer-address { display: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Tablet-only band: Clients page logo grid at 3 columns (phone gets
   its own 2-column version in the phone-only block below; desktop
   keeps the original 6-column grid). */
@media (min-width: 701px) and (max-width: 980px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-4);
    row-gap: var(--space-4);
  }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .stat-item { padding: var(--space-5) var(--space-4); }
  .stat-figure { font-size: clamp(1.375rem, 6vw, 1.875rem); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Phone-only simplifications ---------- */
@media (max-width: 700px) {
  /* Tighten vertical rhythm on the light-background content sections
     (stats, method, services, projects, partners, and the plain
     inner-page sections). Section top/bottom padding and the gap
     between a section's title/subtext and the content below it were
     both far too generous on phone. Dark sections (hero, pull-quotes)
     keep their own explicit padding and are untouched. */
  section {
    padding-block: var(--space-10);
  }
  .services-page,
  .inner-page,
  .service-details {
    padding-block: var(--space-10);
  }
  .section-head {
    margin-bottom: var(--space-8);
  }

  /* Subtext line-spacing: slightly tighter on phone for the hero
     sub-paragraph and every section's section-desc copy. Hero
     subtext is also switched to white on phone for contrast. */
  .hero-sub {
    line-height: 1.4;
    color: #fff;
    font-weight: 300;
  }
  .section-desc {
    line-height: 1.45;
  }

  /* Clients page logo grid at phone width: 2 columns (tablet gets
     its own 3-column version above; desktop keeps 6 columns). */
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-4);
    row-gap: var(--space-4);
  }

  /* Hero eyebrow: at full size + letter-spacing it wraps to two lines
     on phone widths, and white text washes out against the brighter
     part of the hero photo. Shrink it to fit one line and switch to
     brand brown with a light halo so it reads on any part of the photo. */
  .hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    gap: var(--space-2);
    color: var(--color-header-bg);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6), 0 0 10px rgba(255, 255, 255, 0.45);
    white-space: nowrap;
  }

  /* Hero photo on phone: the source photo is a very wide landscape
     crop, so object-fit: cover against a tall/narrow phone screen
     forces a heavily zoomed-in vertical sliver of it (only ~16% of
     its width shows). Widen the media box well beyond the viewport
     (clipped cleanly by .hero's own overflow: hidden) so the same
     cover math reveals noticeably more of the skyline either side of
     the h1 text, giving a zoomed-out feel without any letterboxing
     or layout shift. */
  .hero-media {
    left: -110%;
    right: -110%;
  }

  /* Phone only: drop the three hero buttons (Services, Available
     Properties, Get in Touch). The hero's parent already uses
     display:flex; flex-direction:column; justify-content:center, so
     once the buttons are removed from the flow, the remaining
     kicker/heading/subhead block automatically re-centers as a
     shorter block, achieving true vertical-middle alignment in the
     viewport with no extra positioning needed. Tablet and desktop
     keep the buttons unchanged. */
  .hero-actions {
    display: none;
  }

  /* Services page: drop the tab/chip directory entirely on phone in
     favour of a plain, left-aligned accordion list matching the
     homepage services teaser -- title always visible, a short
     summary shown collapsed, replaced by the full detail copy and
     services-include list when tapped open. Only one service is
     open at a time. Tablet and desktop keep the original chip-row +
     shell layout untouched. */
  .service-directory {
    grid-template-columns: 1fr;
  }
  .service-tabs {
    display: none;
  }
  .service-shell {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }
  .service-panels {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
  }
  .service-panel,
  .service-panel.is-active {
    display: block;
  }
  .service-panel:not(:first-child) {
    position: relative;
  }
  .service-panel:not(:first-child)::before {
    content: "";
    position: absolute;
    top: calc(var(--space-10) / -2);
    left: 0;
    right: 0;
    border-top: 2px dashed rgba(157, 112, 79, 0.45);
  }
  .service-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    cursor: pointer;
  }
  .service-panel-head h2 {
    font-size: var(--text-lg);
  }
  .service-panel-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #9d704f;
    transition: transform 220ms ease;
  }
  .service-panel.is-expanded .service-panel-chevron {
    transform: rotate(180deg);
  }
  .service-teaser {
    display: block;
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: color-mix(in oklab, var(--color-header-bg) 78%, white 22%);
  }
  .service-panel.is-expanded .service-teaser {
    display: none;
  }
  .service-detail-copy,
  .service-includes {
    display: none;
    margin-top: var(--space-4);
  }
  .service-panel.is-expanded .service-detail-copy,
  .service-panel.is-expanded .service-includes {
    display: block;
  }

  /* Home page "Headline Stats": on phone, drop the bordered-card
     2-col grid (tablet keeps it) in favour of a plain, left-aligned,
     single-column list -- each stat is just a bold figure line and a
     muted description line, stacked with generous spacing. */
  .stats-band .stats-infographic { display: none; }
  .stats-list-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }
  .stat-row {
    display: flex;
    align-items: stretch;
    gap: var(--space-5);
    text-align: left;
  }
  .stat-text { min-width: 0; }
  /* Per-stat colours matching the desktop and tablet stats (navy, green,
     amber, red), carried through to the figure number and the vertical line. */
  .stat-row:nth-child(1) { color: #041F66; }
  .stat-row:nth-child(2) { color: #1E7F22; }
  .stat-row:nth-child(3) { color: #A96800; }
  .stat-row:nth-child(4) { color: #AE0001; }
  .stat-line {
    flex-shrink: 0;
    width: 3px;
    align-self: stretch;
    background: currentColor;
    border-radius: 2px;
  }
  .stat-figure-m {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.05;
    color: inherit;
  }
  .stat-unit {
    font-size: var(--text-lg);
    font-weight: 700;
  }
  .stat-label-m {
    margin: var(--space-1) 0 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-base);
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
  }

  /* Home page "How we work" method cards: on phone, drop the
     oversized graphic in favour of plain left-aligned text -- no
     card box, no border, no centering. Each of the 3 steps is just
     a "Stage N" eyebrow, a title, and a description, stacked and
     left-aligned, overriding the bordered-card look that the shared
     980px block below gives tablet. */
  .method-infographic { aspect-ratio: auto; margin-top: var(--space-6); }
  .method-grid { gap: var(--space-8); }
  .method-card {
    min-height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: var(--space-2);
  }
  .method-card:nth-child(1),
  .method-card:nth-child(3) {
    transform: none;
  }
  .method-heading {
    place-items: start;
    text-align: left;
    gap: var(--space-4);
  }
  .method-stage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: var(--space-1) var(--space-3);
    border-radius: 0;
    font-size: var(--text-2xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-inverse);
    opacity: 1;
  }
  .method-card:nth-child(1) .method-stage { background: #765b47; }
  .method-card:nth-child(2) .method-stage { background: #9d704f; }
  .method-card:nth-child(3) .method-stage { background: #a69080; }
  .method-card h3 {
    font-family: var(--font-body-nunito);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2.25rem, 8vw, 3rem);
  }
  .method-card p {
    text-align: left;
    font-size: var(--text-base);
    line-height: 1.3;
  }
  .method-card p span { display: block; white-space: normal; }

  /* Home page section order, phone only, via flex order (source HTML
     order untouched, so tablet/desktop are unaffected). Hero sits
     outside .page-stack and is unaffected. Resulting order (swapped
     13 Oct 2026): Headline Stats, pull-quote 1, How We Work,
     pull-quote 2, Services, ... */
  .page-stack { display: flex; flex-direction: column; }
  .page-stack > section:nth-of-type(1) { order: 1; } /* stats-band */
  .page-stack > section:nth-of-type(2) { order: 2; } /* pull-quote 1, unchanged */
  .page-stack > section:nth-of-type(3) { order: 3; } /* method, between the two quotes */
  .page-stack > section:nth-of-type(4) { order: 4; } /* pull-quote 2 */
  .page-stack > section:nth-of-type(5) { order: 5; }
  .page-stack > section:nth-of-type(6) { display: none; } /* pull-quote 3 (street bg), last quote -- dropped on phone */
  .page-stack > section:nth-of-type(7) { order: 7; }
  .page-stack > section:nth-of-type(8) { order: 8; }

  /* Home page services teaser: on phone, drop the bordered-card grid
     entirely in favour of a plain, left-aligned, single-column list --
     title, always-visible description, and an outlined "More Details"
     button per service. Tablet keeps its 2-up card grid, desktop keeps
     its 3-up card grid, both untouched. */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-top: var(--space-6);
  }
  .service-card {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: var(--space-3);
  }
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
  /* Feint dashed divider between each service, pale brown to match
     the service accent colour, no line before the first item.
     Positioned via a pseudo-element sitting in the vertical middle
     of the grid gap, rather than flush against the next card, so it
     reads as a centred separator between items. */
  .service-card:not(:first-child) {
    position: relative;
  }
  .service-card:not(:first-child)::before {
    content: "";
    position: absolute;
    top: calc(var(--space-10) / -2);
    left: 0;
    right: 0;
    border-top: 2px dashed rgba(157, 112, 79, 0.45);
  }
  .service-card-head h3 {
    margin: 0;
    font-size: var(--text-lg);
  }
  .service-card-chevron {
    display: none;
  }
  .service-card-panel {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 0;
  }
  .service-card-panel p {
    margin: 0;
    line-height: 1.5;
  }
  .service-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-1);
    padding: 0.3em 0.7em;
    border: 1px solid #9d704f;
    border-radius: var(--radius-sm);
    background: #9d704f;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FBF3ED;
    transition: background 200ms ease, border-color 200ms ease;
  }
  .service-card:hover .service-more-btn,
  .service-card:active .service-more-btn {
    background: #2B1910;
    border-color: #2B1910;
  }

  /* Footer, phone only: drop the email item, keeping the remaining
     two contact items (label above number, as before) sitting side
     by side horizontally -- shrink the text slightly and bold the
     numbers so both columns fit comfortably. Mantra
     ("PLAN: DELIVER: MANAGE") sized up slightly for phone. */
  .footer-contact-item:nth-child(3) { display: none; }
  .footer-contact-label {
    font-size: 0.625rem;
  }
  .footer-contact-value {
    font-size: var(--text-base);
    font-weight: 700;
  }
  .footer-brand .footer-mantra {
    font-size: 1.5rem;
  }

  /* Drop the copyright/legal row and its divider line entirely on
     phone -- the address is already hidden above at 980px, so this
     removes the now-empty bottom bar and the border above it. */
  .footer-main {
    border-bottom: none;
  }
  .footer-bottom {
    display: none;
  }
}

/* ---------- Fixed back / top / next mobile footer bar ---------- */
.mobile-page-footer {
  display: none;
}
@media (max-width: 980px) {
  .mobile-page-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--color-header-bg);
    padding: 0.6rem var(--space-4);
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  }
  .mobile-page-footer-link,
  .mobile-page-footer-link.is-disabled {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-text-inverse);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
  }
  .mobile-page-footer-link.mobile-page-footer-next {
    justify-self: end;
  }
  .mobile-page-footer-link.mobile-page-footer-back {
    justify-self: start;
  }
  .mobile-page-footer-link svg {
    width: 14px;
    height: 14px;
    flex: none;
  }
  .mobile-page-footer-link.is-disabled {
    opacity: 0.32;
    pointer-events: none;
  }
  .mobile-page-footer-top {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid rgba(245, 241, 232, 0.35);
    background: transparent;
    color: var(--color-text-inverse);
    cursor: pointer;
  }
  .mobile-page-footer-top svg {
    width: 16px;
    height: 16px;
  }
  body {
    padding-bottom: calc(3.4rem + env(safe-area-inset-bottom, 0px));
  }
}


/* ---------- Projects page: factsheet sheets + involved grid ---------- */
#projects.projects-sheets {
  background: var(--color-bg);
}
.project-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-16);
  row-gap: var(--space-20);
}
.project-sheet {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-sheet-media {
  margin: 0 0 var(--space-6);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.project-sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-sheet h2 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}
.project-sheet > p {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
}
.project-sheet-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.project-sheet-facts div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}
.project-sheet-facts dt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}
.project-sheet-facts dt::after { content: ':'; }
.project-sheet-facts dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text);
}
.projects-also {
  background: var(--color-surface-offset);
}
.projects-also .section-head {
  margin-bottom: var(--space-10);
}
.project-involved-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}
.project-involved {
  margin: 0;
  min-width: 0;
}
.project-involved img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--color-surface);
}
.project-involved figcaption {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}
.project-involved p {
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text);
}
@media (max-width: 980px) {
  .project-sheet-grid { grid-template-columns: 1fr; row-gap: var(--space-16); }
  .project-involved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Hero-header removal: lead section spacing (must load after .inner-page/.service-details/.projects-sheets/.properties-page) ---------- */
/* Lead gap halved (24 Oct 2026): the space between the bottom of the nav bar
   and the first eyebrow is half what it was. The nav bar's bottom edge is
   60.1875px above 980px wide and 73px at 980px and below, so the top padding
   sits halfway between the old padding and that edge. */
:root { --nav-bar-bottom: 60.1875px; }
@media (max-width: 980px) { :root { --nav-bar-bottom: 73px; } }
:root { --lead-top: calc((var(--header-offset) + var(--section-pad-y) + var(--nav-bar-bottom)) / 2); }
.section-lead-offset {
  padding-top: var(--lead-top) !important;
}
.section-lead-offset .section-desc {
  max-width: none;
}
.properties-page .section-desc {
  max-width: none;
}

/* ---------- Contact page: map + enquiry forms ---------- */
.contact-map {
  margin-bottom: var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
}
.enquiry-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.enquiry-form-head h2 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-header-bg);
  margin: 0 0 var(--space-2);
}
.enquiry-form-head p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.tel-inline {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.enquiry-form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.enquiry-form .required-mark {
  color: #9d704f;
  margin-left: 0.15em;
}
.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text);
  resize: vertical;
}
.enquiry-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B675E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus,
.enquiry-form select:focus {
  outline: none;
  border-color: var(--color-header-bg);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-header-bg) 18%, transparent);
}
.enquiry-form .btn {
  align-self: flex-start;
}
.enquiry-form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: var(--text-sm);
}
.enquiry-form-status.is-success {
  color: var(--color-secondary);
  font-weight: 600;
}
.enquiry-form-status.is-error {
  color: #A13544;
  font-weight: 600;
}
@media (max-width: 900px) {
  .enquiry-forms { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Page transition ---------- */
/* Fixed brand-brown veil that fades out on load (page appears) and fades
   back in before navigating (page covered), so pages dissolve through the
   brand colour with no white flash. Guarded by html.pt-ready, added by JS,
   so with JS off the veil never shows. Also lets the native View Transitions
   API run a true cross-document crossfade where supported. */
@view-transition { navigation: auto; }
#pt-veil {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--color-header-bg);
  opacity: 0; pointer-events: none; will-change: opacity;
}
html.pt-ready #pt-veil { opacity: 1; }
html.pt-ready.pt-in #pt-veil { opacity: 0; transition: opacity 500ms ease; }
html.pt-ready.pt-out #pt-veil { opacity: 1; transition: opacity 500ms ease; }
@media (prefers-reduced-motion: reduce) {
  #pt-veil,
  html.pt-ready #pt-veil,
  html.pt-ready.pt-in #pt-veil,
  html.pt-ready.pt-out #pt-veil { opacity: 0 !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 500ms; }

/* ---------- Properties page, phone only (<= 700px) ----------
   Three mobile-only treatments, all scoped so tablet and desktop keep the
   existing filter grid and 3-up / 1-up photo cards untouched:
   1. Compact horizontal row cards that expand on tap (single-open).
   2. The filter fields move into a bottom sheet behind a Filter listings button.
   3. Ten listings render at a time behind a Load more button.
   The wrappers added to the markup are inert above 700px: .property-filter-shell
   and .property-card-panel use display: contents, and the sheet chrome,
   trigger button, meta line and chevron are display: none. */
.property-filter-shell { display: contents; }
.property-card-panel { display: contents; }
.property-filter-trigger,
.property-sheet-backdrop,
.property-sheet-head,
.property-sheet-actions,
.property-meta,
.property-card-chevron,
.property-load-more { display: none; }

@media (max-width: 700px) {
  /* --- Filter trigger button --- */
  .property-filters { display: none; }
  .property-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 var(--space-6);
    padding: 0.7rem 1.05rem;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: var(--color-surface);
    font-family: "Nunito Sans", var(--font-body), sans-serif;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-header-bg);
    cursor: pointer;
  }
  .property-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35em;
    border-radius: 999px;
    background: var(--color-header-bg);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
  }
  .property-filter-badge[hidden] { display: none; }

  /* --- Bottom sheet --- */
  .property-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(20, 13, 8, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }
  .property-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .property-filter-shell {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    max-height: 82vh;
    overflow-y: auto;
    padding: 0 var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
    background: var(--color-bg);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -8px 28px rgba(20, 13, 8, 0.28);
    transform: translateY(100%);
    transition: transform 0.28s ease;
  }
  .property-filter-shell.is-open { transform: translateY(0); }
  .property-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: var(--space-5) 0 var(--space-4);
    background: var(--color-bg);
  }
  .property-sheet-title {
    font-family: "Nunito Sans", var(--font-body), sans-serif;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-header-bg);
  }
  .property-sheet-close {
    border: 0;
    background: none;
    padding: 0 0.25rem;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-header-bg);
    cursor: pointer;
  }
  /* Inside the sheet the fields stack full width and the inline "Filters:"
     label is redundant, since the sheet has its own heading. */
  .property-filter-shell .property-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin: 0;
  }
  .property-filter-shell .filter-label { display: none; }
  .property-filter-shell .property-filters input,
  .property-filter-shell .property-filters select { font-size: 1rem; }
  .property-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.7rem;
    margin-top: var(--space-5);
  }
  .property-sheet-clear,
  .property-sheet-apply {
    padding: 0.85rem 1rem;
    border-radius: 9px;
    font-family: "Nunito Sans", var(--font-body), sans-serif;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
  }
  .property-sheet-clear {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-header-bg);
  }
  .property-sheet-apply {
    border: 1px solid var(--color-header-bg);
    background: var(--color-header-bg);
    color: #fff;
  }

  /* --- Load more --- */
  .property-load-more {
    display: block;
    width: 100%;
    margin-top: var(--space-6);
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-header-bg);
    border-radius: 9px;
    background: transparent;
    font-family: "Nunito Sans", var(--font-body), sans-serif;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-header-bg);
    cursor: pointer;
  }
  .property-load-more[hidden] { display: none; }
}

/* ---------- Services page, phone only: drop the opening lede sentence ---------- */
@media (max-width: 700px) {
  .section-desc-lede,
  .section-desc-tail { display: none; }
}

/* ---------- Services page, phone only: beige band behind the services list ----------
   Reuses the projects page band colour (--color-surface-offset). The title area
   above it keeps the page background. Negative inline margins cancel the .wrap
   gutter so the band bleeds edge to edge, then the gutter is restored as padding. */
@media (max-width: 700px) {
  .service-details .service-directory {
    background: var(--color-surface-offset);
    margin-inline: calc(var(--space-8) * -1);
    padding: var(--space-8);
  }
}
@media (max-width: 640px) {
  .service-details .service-directory {
    margin-inline: calc(var(--space-5) * -1);
    padding: var(--space-6) var(--space-5);
  }
}

/* ---------- Testimonials page, phone only: photo + attribution header row ----------
   Small square photo top left with the name, company and job title stacked beside
   it, then the quote full width underneath. Above 700px nothing changes: the
   company / separator / job spans stay inline so the role reads as one line. */
@media (max-width: 700px) {
  .testimonial-row,
  .testimonial-row--reverse {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "photo meta"
      "quote quote";
    column-gap: var(--space-4);
    row-gap: var(--space-4);
    padding-block: var(--space-8);
    align-items: start;
  }
  .testimonial-photo {
    grid-area: photo;
    width: 76px;
    height: 76px;
  }
  .testimonial-photo img {
    max-width: none;
    width: 76px;
    height: 76px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }
  /* Let the blockquote and the attribution become grid items of the row. */
  .testimonial-copy { display: contents; }
  .testimonial-copy blockquote { grid-area: quote; line-height: 1.45; }
  .testimonial-meta {
    grid-area: meta;
    align-self: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    gap: 0.15em;
    min-width: 0;
  }
  .testimonial-meta strong { font-size: 1.1875rem; line-height: 1.2; }
  .testimonial-meta .testimonial-role {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
  }
  .t-sep { display: none; }
  .t-company {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
  }
  .t-job {
    font-size: 0.6875rem;
    line-height: 1.3;
    white-space: nowrap;
    color: color-mix(in oklab, var(--color-text) 82%, transparent);
  }
}

/* ---------- Testimonials page, phone only: alternating full-bleed bands ----------
   Every other row picks up the beige band colour so the list reads as separate
   blocks and lifts away from the title area above it. Bleeds edge to edge by
   cancelling the .wrap gutter, then restoring it as padding. */
@media (max-width: 700px) {
  .testimonial-list {
    margin-inline: calc(var(--space-8) * -1);
  }
  .testimonial-row,
  .testimonial-row--reverse {
    padding-inline: var(--space-8);
    border-bottom: none;
  }
  .testimonial-row:nth-of-type(odd) {
    background: var(--color-surface-offset);
  }
  .testimonial-row:last-child {
    border-bottom: none;
  }
}
@media (max-width: 640px) {
  .testimonial-list {
    margin-inline: calc(var(--space-5) * -1);
  }
  .testimonial-row,
  .testimonial-row--reverse {
    padding-inline: var(--space-5);
  }
}

/* ---------- Copy swap utilities: same slot, different wording per breakpoint ---------- */
.only-phone { display: none; }
@media (max-width: 700px) {
  .only-wide { display: none; }
  .only-phone { display: inline; }
}

/* ---------- Testimonials page, phone only: white / beige alternation ----------
   The title block reads as the first white band, the first testimonial is beige,
   and the rest alternate. Scoped to .testimonials-page so no other page moves. */
@media (max-width: 700px) {
  .testimonials-page .inner-page {
    background: var(--color-surface-2);
  }
  .testimonials-page .testimonial-row:nth-of-type(even) {
    background: var(--color-surface-2);
  }
}

/* Phone: drop the section's bottom padding so the last testimonial band runs
   straight into the partners section instead of leaving a white strip. */
@media (max-width: 700px) {
  .testimonials-page .inner-page { padding-bottom: 0; }
}

/* Phone: spaced colons in the footer strapline, in the gold stat accent. */
@media (max-width: 700px) {
  .footer-mantra .mantra-colon {
    color: #D4A574;
    margin-inline-start: 0.3em;
  }
}

/* ---------- Menu icon: supplied burger-menu.png?v=2 ----------
   The artwork is used as a mask so it still inherits the header's colour
   (dark on light, cream on dark and when scrolled). The three bar spans stay
   in the markup and are revealed only in the open state, so the existing
   cross animation is unchanged. The toggle only exists below 980px, so
   desktop is unaffected. */
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask: url("../img/icons/burger-menu.png?v=2") no-repeat center / 25px auto;
  mask: url("../img/icons/burger-menu.png?v=2") no-repeat center / 25px auto;
  transition: opacity 160ms ease;
}
.nav-toggle[aria-expanded="false"] .nav-toggle-bar { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { opacity: 0; }

/* ---------- Guard: phone-only accordion chevrons must never render wider ----------
   The chevron SVGs in the service card and service panel headings exist purely
   for the phone accordions and were only sized inside the 700px block, so above
   that width they had no dimensions and stretched to fill their container.
   Hidden by default everywhere and switched on only at phone width. */
.service-card-chevron,
.service-panel-chevron {
  display: none;
}
@media (max-width: 700px) {
  .service-panel-chevron {
    display: block;
  }
}

/* Guard: the phone-only "More Details" button on the homepage service cards was
   styled only inside the 700px block, so above that width it rendered as stray
   plain text. Hidden by default, shown only at phone width. */
.service-more-btn {
  display: none;
}
@media (max-width: 700px) {
  .service-more-btn {
    display: inline-flex;
  }
}

/* ---------- Properties page, phone only: results counter and filter button ----------
   Sit side by side on one row, counter first, matched heights. Achieved by
   laying out the page wrap on a two-column grid at phone width only, so the
   desktop DOM order (filters, then counter) is untouched. */
@media (max-width: 700px) {
  .properties-page .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.6rem;
  }
  .properties-page .section-head,
  .properties-page .property-list,
  .properties-page .property-load-more,
  .properties-page .property-empty {
    grid-column: 1 / -1;
  }
  .properties-page .property-count {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    margin: 0 0 var(--space-6);
    padding: 0.7rem 0.9rem;
    border-radius: 9px;
    font-size: var(--text-sm);
    line-height: 1.2;
    text-align: center;
  }
  .properties-page .property-filter-trigger {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    margin: 0 0 var(--space-6);
  }
}

/* ---------- Properties page, desktop only (981px and up, 24 Oct 2026) ----------
   Search row sits closer to the intro text (gap halved, 64px to 32px), and the
   results counter moves up into the filter row, first in line before the
   "Filters:" label, as a dark brown chip with white text. The page wrap becomes
   a two-column grid (counter, then the filter form) so the shared DOM order is
   untouched for tablet and phone. */
@media (min-width: 981px) {
  .properties-page .wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.95rem;
  }
  .properties-page .wrap > * { grid-column: 1 / -1; }
  .properties-page .section-head { margin-bottom: var(--space-8); }
  .properties-page .property-count {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin: 0 0 var(--space-10);
    white-space: nowrap;
    background: var(--color-header-bg);
    border-color: var(--color-header-bg);
    color: #ffffff;
  }
  .properties-page .property-filters {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
}
@media (min-width: 981px) and (max-width: 1280px) {
  .properties-page .property-filters {
    grid-template-columns: auto minmax(11rem, 1.6fr) repeat(3, minmax(7.5rem, 1fr));
  }
}

/* ---------- Inner pages, phone only: white hero band ----------
   The lead block on every inner page sits on white, with the rest of the page
   keeping its own background. Negative inline margins cancel the .wrap gutter
   and the negative top margin pulls the band up under the fixed header, then
   both are restored as padding so the copy stays put. */
@media (max-width: 700px) {
  .section-lead-offset > .wrap > .section-head {
    background: var(--color-surface-2);
    margin-top: calc(var(--lead-top) * -1);
    padding-top: var(--lead-top);
    margin-inline: calc(var(--space-8) * -1);
    padding-inline: var(--space-8);
    padding-bottom: var(--space-8);
  }
}
@media (max-width: 640px) {
  .section-lead-offset > .wrap > .section-head {
    margin-inline: calc(var(--space-5) * -1);
    padding-inline: var(--space-5);
    padding-bottom: var(--space-5);
  }
}

/* ---------- Team page, phone only: testimonials-style rows ----------
   Small square photo on the left with the name and job title stacked beside it
   and vertically centred against the photo, then the bio full width underneath.
   Rows bleed edge to edge and alternate beige / white, exactly as the
   testimonials list does. Nothing above 700px changes. */
@media (max-width: 700px) {
  .team-grid {
    max-width: none;
    margin-inline: calc(var(--space-8) * -1);
  }
  .team-member,
  .team-member--reverse {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "photo name"
      "photo role"
      "bio bio";
    column-gap: var(--space-4);
    row-gap: 0;
    padding-block: var(--space-8);
    padding-inline: var(--space-8);
    border-bottom: none;
    align-items: start;
  }
  .team-photo {
    grid-area: photo;
    align-self: center;
    width: 76px;
    height: 76px;
    border-radius: 8px;
  }
  .team-photo img {
    max-width: none;
    width: 76px;
    height: 76px;
    aspect-ratio: 1 / 1;
  }
  /* Let the name, position and bio become grid items of the row. */
  .team-info { display: contents; }
  .team-info h2 {
    grid-area: name;
    align-self: end;
    font-size: 1.1875rem;
    line-height: 1.2;
  }
  .team-position {
    grid-area: role;
    align-self: start;
    margin: 0.15em 0 0;
    font-size: 0.8125rem;
    line-height: 1.3;
  }
  .team-bio {
    grid-area: bio;
    margin: var(--space-4) 0 0;
    line-height: 1.45;
  }
  .team-member:nth-of-type(odd) {
    background: var(--color-surface-offset);
  }
  .team-member:nth-of-type(even) {
    background: var(--color-surface-2);
  }
}
@media (max-width: 640px) {
  .team-grid {
    margin-inline: calc(var(--space-5) * -1);
  }
  .team-member,
  .team-member--reverse {
    padding-inline: var(--space-5);
  }
}

/* ---------- Contact page, phone only: keep the forms inside the screen ----------
   The property select is populated with full property addresses, and its
   intrinsic width was sizing the whole single-column grid track, pushing both
   forms wider than the viewport. Every field is pinned to the form width and
   the select truncates instead of stretching. */
@media (max-width: 700px) {
  .enquiry-forms {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  .enquiry-form {
    min-width: 0;
    max-width: 100%;
    padding: var(--space-6);
  }
  .enquiry-form label {
    min-width: 0;
    max-width: 100%;
  }
  .enquiry-form input,
  .enquiry-form textarea,
  .enquiry-form select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .enquiry-form select {
    text-overflow: ellipsis;
  }
}

/* ---------- Contact page: collapsible enquiry headings ----------
   The toggles only exist on phone. They are hidden and their chevron is given
   fixed dimensions outside the media query, so nothing can render unstyled or
   stretch on tablet or desktop. */
.enquiry-toggle { display: none; }
.enquiry-toggle-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 200ms ease;
}
@media (max-width: 700px) {
  .enquiry-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    margin: 0;
    padding: 0.95rem var(--space-6);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body-nunito);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-header-bg);
    text-align: left;
    cursor: pointer;
  }
  .enquiry-toggle[aria-expanded="true"] .enquiry-toggle-chevron {
    transform: rotate(180deg);
  }
  /* Collapsed by default, revealed by the toggle. */
  .enquiry-form { display: none; }
  .enquiry-form.is-open { display: flex; }
  /* The toggle already names the form, so drop the duplicate heading. */
  .enquiry-form-head h2 { display: none; }
  .enquiry-forms { gap: var(--space-5); }
}

/* ---------- Projects page, phone only: dashed divider between the four schemes ----------
   Same treatment as the homepage services list: a feint pale brown dashed rule
   sitting in the vertical middle of the row gap, with no line above the first
   project. Phone only, so the desktop two column grid is untouched. */
@media (max-width: 700px) {
  .project-sheet-grid { row-gap: var(--space-16); }
  .project-sheet:not(:first-child) { position: relative; }
  .project-sheet:not(:first-child)::before {
    content: "";
    position: absolute;
    top: calc(var(--space-16) / -2);
    left: 0;
    right: 0;
    border-top: 2px dashed rgba(157, 112, 79, 0.45);
  }
}

/* ---------- Projects page, phone only: stacked project facts ----------
   Label on its own line with the value directly underneath, instead of the
   desktop two column label / value split, so long values use the full width.
   Applies to all four schemes. Desktop is untouched. */
@media (max-width: 700px) {
  .project-sheet-facts div {
    display: block;
    grid-template-columns: none;
  }
  .project-sheet-facts dt {
    display: block;
    margin-bottom: 0.15em;
  }
  .project-sheet-facts dd {
    display: block;
    margin: 0;
  }
}

/* ---------- Slide-out menu: Nunito Sans links ----------
   The drawer sits behind the hamburger only, so this never touches the desktop
   header nav. */
.nav-drawer-list a {
  font-family: var(--font-body);
  font-weight: 600;
}

/* ---------- Headline Stats: bar layout (10 Oct 2026) ----------
   Desktop and tablet (701px and up). Replaces the ellipse infographic with
   four left-aligned columns, each with a coloured vertical rule, a large
   figure and an uppercase label in the same colour. Tablet is the same
   layout scaled down. Phone keeps its own stacked list (same colours). */
@media (min-width: 701px) {
  .stats-infographic { aspect-ratio: auto; }
  .stats-infographic > img { display: none; }
  .stats-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1rem, 2.2vw, 2rem);
  }
  .stat-item,
  .stat-item:nth-child(n) {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    padding: 0.35rem 0 0.35rem clamp(1.1rem, 2.4vw, 2.25rem);
    background: none;
    border: 0;
    border-left: 5px solid currentColor;
    border-radius: 0;
    box-shadow: none;
  }
  .stat-item:nth-child(1) { color: #041F66; }
  .stat-item:nth-child(2) { color: #1E7F22; }
  .stat-item:nth-child(3) { color: #A96800; }
  .stat-item:nth-child(4) { color: #AE0001; }
  .stat-figure {
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
  }
  .stat-label {
    margin-top: clamp(0.75rem, 1.25vw, 1.125rem);
    font-size: clamp(0.8rem, 1.2vw, 1.15rem);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.3;
  }
}
/* Narrow tablet (701px to 919px): same bar design, arranged 2 x 2 so the
   labels stay at a readable size instead of shrinking to fit four across. */
@media (min-width: 701px) and (max-width: 919px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-8);
    row-gap: var(--space-10);
  }
  .stat-item,
  .stat-item:nth-child(n) { padding-left: var(--space-6); }
  .stat-figure { font-size: clamp(2.75rem, 7vw, 3.5rem); }
  .stat-label { margin-top: clamp(0.75rem, 1.8vw, 1rem); font-size: clamp(0.95rem, 2vw, 1.1rem); }
}

/* ---------- How We Work: stage layout (10 Oct 2026) ----------
   Desktop and tablet (701px and up). Replaces the arrow infographic with
   the phone treatment (Stage N tag, large uppercase title, left-aligned
   copy) with the three stages side by side. Colours (navy, teal, green)
   apply at every width, including phone, via the block after this one. */
@media (min-width: 701px) {
  .method-infographic { aspect-ratio: auto; }
  .method-infographic > img:not(.method-mobile-graphic) { display: none; }
  .method-grid {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .method-card,
  .method-card:nth-child(n) {
    transform: none;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: var(--space-3);
  }
  .method-heading {
    place-items: start;
    text-align: left;
    gap: var(--space-4);
  }
  .method-stage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: calc(var(--space-1) * 0.8) calc(var(--space-3) * 0.8);
    border-radius: 0;
    font-size: calc(var(--text-xs) * 0.8);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-inverse);
  }
  .method-card h3 {
    font-family: var(--font-body-nunito);
    font-size: clamp(2.5rem, 3.6vw, 3.25rem);
  }
  .method-card p {
    text-align: left;
    font-size: clamp(0.95rem, 1.15vw, 1.125rem);
    line-height: 1.35;
  }
}

/* Tablet (701px to 980px): same three-across layout, scaled down. */
@media (min-width: 701px) and (max-width: 980px) {
  .method-grid { column-gap: clamp(1.25rem, 3vw, 2rem); }
  .method-card h3 { font-size: clamp(1.9rem, 4.3vw, 2.6rem); }
  .method-card p { font-size: clamp(0.9rem, 1.7vw, 1rem); }
  .method-card p span { display: inline; }
}

/* How We Work sizes (14 Oct 2026), desktop and tablet only.
   Stage tags match the More Details buttons in Commercial Services
   (0.72rem text, 0.5em x 0.9em padding). Plan / Deliver / Manage match the
   Headline Stats figures (clamp 2.4rem, 4.2vw, 4rem). Narrow tablet
   (701px to 919px) is three across, so the titles are slightly smaller
   than the 2 x 2 stats there, sized to fit the column. */
@media (min-width: 701px) {
  .method-stage {
    padding: 0.5em 0.9em;
    border: 1px solid transparent;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1;
  }
  .method-card h3,
  .method-grid .method-card h3 {
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    line-height: 1;
  }
}
@media (min-width: 701px) and (max-width: 919px) {
  .method-grid .method-card h3 { font-size: clamp(2.4rem, 5.8vw, 3.5rem); }
}

/* How We Work colours at every width: navy, teal, green (navy and green
   shared with Headline Stats). Tag text stays white. */
.method-card:nth-child(1) { color: #041F66; }
.method-card:nth-child(2) { color: #007A7A; }
.method-card:nth-child(3) { color: #1E7F22; }
.method-card:nth-child(1) .method-stage { background: #041F66; }
.method-card:nth-child(2) .method-stage { background: #007A7A; }
.method-card:nth-child(3) .method-stage { background: #1E7F22; }

/* ---------- Services page: colour service cards, all widths (16 Oct 2026) ----------
   Two columns of cards from 861px, one column below: title, short
   description, bullet list and a line icon top right, each service with
   its own tint and ink colour (from Paul's services-reduced-ver3 mockup).
   Type and icon sizes follow the card width (container units); padding is
   a percentage of the card width (fixed rem on phone). The old tab /
   accordion directory is hidden at all widths. */
.service-details .service-directory { display: none !important; }
@media all {
  .svc-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
  }
  .svc-tile {
    --ink: #3a2a1c;
    --tint: #f6e8e1;
    --icon-w: clamp(3.4rem, 16cqi, 5.6rem);
    container-type: inline-size;
    position: relative;
    scroll-margin-top: 6.5rem;
    padding: 3.5% 3.9% 4% 4.5%;
    border: 1px solid color-mix(in srgb, var(--ink) 50%, #8c8c8c);
    border-radius: 10px;
    background: var(--tint);
    color: var(--ink);
  }
  /* Inks made slightly more vibrant and distinct, 17 Oct 2026 (Paul); were
     #612405 #586480 #5e5335 #483a54 #1c705d #414f40. Tints unchanged. */
  .svc-tile--mixed-use        { --ink: #7a2a0a; --tint: #f6e8e1; }
  .svc-tile--town-centres     { --ink: #3d5a99; --tint: #e8eefa; }
  .svc-tile--asset-management     { --ink: #7a5b14; --tint: #f2ecdd; }
  .svc-tile--meanwhile        { --ink: #5c3a80; --tint: #f5ebff; }
  .svc-tile--surveying        { --ink: #0e7462; --tint: #e8fef9; }
  .svc-tile--sales-marketing  { --ink: #36692b; --tint: #e9fae7; }
  .svc-tile-icon {
    position: absolute;
    top: clamp(0.8rem, 3.25cqi, 1.3rem);
    right: clamp(0.9rem, 4.3cqi, 1.5rem);
    width: var(--icon-w);
    aspect-ratio: 409 / 376;
    background-color: var(--ink);
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
  }
  .svc-tile--mixed-use .svc-tile-icon        { -webkit-mask-image: url('../img/icons/tab/mixed-use.png'); mask-image: url('../img/icons/tab/mixed-use.png'); }
  .svc-tile--asset-management .svc-tile-icon { -webkit-mask-image: url('../img/icons/tab/asset-management.png'); mask-image: url('../img/icons/tab/asset-management.png'); }
  .svc-tile--town-centres .svc-tile-icon     { -webkit-mask-image: url('../img/icons/tab/town-centre.png'); mask-image: url('../img/icons/tab/town-centre.png'); }
  .svc-tile--meanwhile .svc-tile-icon        { -webkit-mask-image: url('../img/icons/tab/meanwhile-matters.png'); mask-image: url('../img/icons/tab/meanwhile-matters.png'); }
  .svc-tile--surveying .svc-tile-icon        { -webkit-mask-image: url('../img/icons/tab/surveying.png'); mask-image: url('../img/icons/tab/surveying.png'); }
  .svc-tile--sales-marketing .svc-tile-icon  { -webkit-mask-image: url('../img/icons/tab/sales-marketing.png'); mask-image: url('../img/icons/tab/sales-marketing.png'); }
  .svc-tile h2,
  .svc-tile-desc { padding-right: calc(var(--icon-w) + clamp(0.75rem, 4cqi, 1.5rem)); }
  .svc-tile h2 {
    font-family: var(--font-body-nunito, 'Nunito Sans', sans-serif);
    font-size: clamp(1.2rem, 4.33cqi, 1.55rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--ink);
    margin: 0 0 clamp(0.5rem, 2.3cqi, 0.9rem);
  }
  .svc-tile-desc {
    font-size: clamp(0.82rem, 2.66cqi, 0.92rem);
    line-height: 1.18;
    color: var(--ink);
    margin: 0;
  }
  .svc-tile-list {
    list-style: disc;
    margin: clamp(0.9rem, 3.4cqi, 1.3rem) 0 0;
    padding-left: 1.15rem;
    font-size: clamp(0.88rem, 2.94cqi, 1rem);
    line-height: 1.24;
  }
  .svc-tile-list li { padding-left: 0.35rem; }
  .svc-tile-list li::marker { color: var(--ink); }
}
@media (max-width: 860px) {
  .svc-tiles { grid-template-columns: 1fr; gap: var(--space-6); }
}
/* Phone: fixed padding and a smaller icon beside the title only; the
   description runs the full card width below the icon. */
@media (max-width: 700px) {
  .svc-tiles { gap: var(--space-5); margin-top: var(--space-8); }
  .svc-tile { padding: 1.15rem 1.1rem 1.3rem 1.2rem; --icon-w: 2.65rem; }
  .svc-tile-icon { top: 1rem; right: 1.1rem; }
  .svc-tile h2 { margin-bottom: 0.85rem; }
  .svc-tile-desc { padding-right: 0; }
}

/* ---------- Testimonials: tablet keeps the desktop zig-zag (10 Oct 2026) ----------
   Tablet (701px to 980px): photo beside the quote, alternating sides as on
   desktop, with a smaller square photo so the quote keeps its width. Overrides
   the old 860px stacking rule. Desktop and phone untouched. */
@media (min-width: 701px) and (max-width: 980px) {
  .testimonial-row {
    grid-template-columns: clamp(130px, 18vw, 170px) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
  .testimonial-row--reverse {
    grid-template-columns: minmax(0, 1fr) clamp(130px, 18vw, 170px);
  }
  .testimonial-row--reverse .testimonial-photo { order: 2; }
  .testimonial-row--reverse .testimonial-copy { order: 1; }
  .testimonial-photo img {
    max-width: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .testimonial-copy { align-self: stretch; }
}

/* ---------- Team: tablet layout (11 Oct 2026) ----------
   Tablet (701px to 980px): every member uses the same left-aligned layout.
   Square photo on the left, name and position to its right, full-width bio
   underneath. Overrides the old 860px stacking rule and its 480px centred
   column. Desktop and phone untouched. */
@media (min-width: 701px) and (max-width: 980px) {
  .team-grid {
    max-width: none;
    margin-inline: 0;
  }
  .team-member,
  .team-member--reverse {
    grid-template-columns: clamp(130px, 18vw, 170px) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr auto;
    grid-template-areas:
      "photo name"
      "photo role"
      "bio   bio";
    column-gap: var(--space-8);
    row-gap: 0;
  }
  .team-member .team-photo,
  .team-member--reverse .team-photo { grid-area: photo; order: initial; }
  .team-member .team-info,
  .team-member--reverse .team-info { display: contents; }
  .team-photo img {
    max-width: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .team-info h2 { grid-area: name; align-self: end; margin: 0; text-align: left; }
  .team-position { grid-area: role; align-self: start; margin: 0; padding-top: 0.35em; text-align: left; }
  .team-bio { grid-area: bio; margin: var(--space-6) 0 0; text-align: left; }
}

/* Services page, phone (13 Oct 2026, updated 16 Oct 2026): the lead section
   had the accordion card colour; with the colour service cards it uses the
   page background, as on desktop and tablet. */
@media (max-width: 700px) {
  .services-page .service-details,
  .service-details.section-lead-offset { background: var(--color-bg); }
}

/* Home page services, desktop and tablet (13 Oct 2026): open layout in place
   of the outlined boxes. A vertical bar on the left of each service, title,
   description and a solid "More Details" button, all left-aligned. Colours
   are the existing ones: #9d704f at rest; on hover the bar, title and button
   go to the site's main dark brown --color-header-bg (#3A2A1E).
   Phone (700px and below) keeps its own list layout, untouched. */
@media (min-width: 701px) {
  .services-grid {
    row-gap: var(--space-12);
    column-gap: var(--space-8);
    margin-top: var(--space-8);
  }
  .service-card {
    background: none;
    border: none;
    border-left: 6px solid #9d704f;
    border-radius: 0;
    padding: var(--space-1) 0 var(--space-1) var(--space-8);
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: var(--space-5);
    transition: border-color 220ms ease;
  }
  .service-card:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--color-header-bg);
  }
  .service-card:hover h3 { color: var(--color-header-bg); }
  .service-card-head h3 { margin: 0; }
  .service-card-panel p {
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.4;
  }
  .service-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.5em 0.9em;
    border: 1px solid #9d704f;
    border-radius: var(--radius-sm);
    background: #9d704f;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #FBF3ED;
    transition: background 220ms ease, border-color 220ms ease;
  }
  .service-card:hover .service-more-btn,
  .service-card:focus-visible .service-more-btn {
    background: var(--color-header-bg);
    border-color: var(--color-header-bg);
  }
  .service-card:focus-visible {
    border-color: var(--color-header-bg);
    outline-offset: 6px;
  }
  .service-card:focus-visible h3 { color: var(--color-header-bg); }
}

/* Home page services: per-service colours, all widths (16 Oct 2026). Same ink colours as the Services page cards. */
.services-grid .service-card { --svc-ink: #9d704f; --svc-ink-hover: color-mix(in srgb, var(--svc-ink) 65%, #000); }
.services-grid .service-card--mixed-use { --svc-ink: #612405; }
.services-grid .service-card--town-centres     { --svc-ink: #586480; }
.services-grid .service-card--asset-management { --svc-ink: #5e5335; }
.services-grid .service-card--meanwhile { --svc-ink: #483a54; }
.services-grid .service-card--surveying { --svc-ink: #1c705d; }
.services-grid .service-card--sales-marketing { --svc-ink: #414f40; }
.services-grid .service-card h3 { color: var(--svc-ink); }
.services-grid .service-card:hover h3,
.services-grid .service-card:focus-visible h3 { color: var(--svc-ink-hover); }
.services-grid .service-card .service-more-btn { background: var(--svc-ink); border-color: var(--svc-ink); }
.services-grid .service-card:hover .service-more-btn,
.services-grid .service-card:active .service-more-btn,
.services-grid .service-card:focus-visible .service-more-btn { background: var(--svc-ink-hover); border-color: var(--svc-ink-hover); }
@media (min-width: 701px) {
  .services-grid .service-card { border-left-color: var(--svc-ink); }
  .services-grid .service-card:hover,
  .services-grid .service-card:focus-visible { border-left-color: var(--svc-ink-hover); }
}


/* All pages, all widths (16 Oct 2026): main content sections use the
   paler cream page colour (#f3ece0, as the Services page). Where two
   content sections meet with nothing between them, the second takes the
   slightly darker #EFE9DD so each section has a visible break (Projects:
   Also involved stays #EFE9DD under the project sheets). Sections already
   separated by the dark quote banners, the Who we work with band (#E5DAC9)
   or the footer stay cream. */
.page-stack,
.stats-band,
.method,
#services,
#projects,
.services-page,
.inner-page { background: var(--color-bg); }

/* ---------- Team page, all widths (16 Oct 2026): cards ----------
   From Paul's team.jpg mockup. Four cards in the first row, two on the
   left of the second. Each card: beige frame, sepia photo (assets/img/team/
   sepia, same tone as the mockup), beige name band (name, letters, role,
   specialism), cream body with the bio centred. Bands and bodies line up
   across a row (subgrid). Sizes follow the grid width (cqi on .team-grid; a card is about 23.5cqi
   on desktop) with rem floors for tablet and phone. Desktop (981px+) 4
   across, tablet (701 to 980px) 2 across, phone 1 per row. */
.team-photo picture { display: contents; }
@media all {
  .team-grid {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: var(--space-6);
    row-gap: 0;
    margin-top: var(--space-10);
  }
  .team-grid .team-member,
  .team-grid .team-member--reverse {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    margin-bottom: var(--space-6);
    border: 4px solid #d6c8ad;
    border-radius: 0;
    background: #f3ece0;
  }
  .team-grid .team-member .team-photo,
  .team-grid .team-member--reverse .team-photo {
    order: 0;
    grid-area: auto;
    grid-row: 1;
    display: block;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    aspect-ratio: 1 / 1;
  }
  .team-grid .team-member .team-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .team-grid .team-member .team-info,
  .team-grid .team-member--reverse .team-info {
    order: 0;
    display: contents;
  }
  .team-grid .team-info h2 {
    grid-area: auto;
    grid-row: 2;
    margin: 0;
    padding: clamp(1rem, 1.41cqi, 1.5rem) clamp(0.75rem, 1.17cqi, 1.5rem) 0;
    background: #d6c8ad;
    font-size: clamp(1.15rem, 1.65cqi, 1.6rem);
    font-weight: 700;
    line-height: 1.1;
    color: #36261a;
    text-align: center;
  }
  .team-grid .team-info h2 .team-nominal {
    display: block;
    margin-top: 0.3em;
    font-size: clamp(0.72rem, 0.85cqi, 0.85rem);
    font-weight: 600;
    color: #5a4634;
    white-space: normal;
  }
  .team-grid .team-position {
    grid-area: auto;
    grid-row: 3;
    margin: 0;
    padding: 0.1rem clamp(0.75rem, 1.17cqi, 1.5rem) clamp(1rem, 1.29cqi, 1.4rem);
    background: #d6c8ad;
    font-size: clamp(0.85rem, 1.13cqi, 1.05rem);
    line-height: 1.35;
    color: #382818;
    text-align: center;
  }
  .team-grid .team-position-sub {
    display: block;
    font-size: clamp(0.78rem, 1.0cqi, 0.95rem);
  }
  .team-grid .team-paren { display: none; }
  /* Cards show the role only: no letters after names, no specialism line. */
  .team-grid .team-info h2 .team-nominal,
  .team-grid .team-position-sub { display: none; }
  .team-grid .team-bio {
    grid-area: auto;
    grid-row: 4;
    margin: 0;
    padding: clamp(1.1rem, 1.48cqi, 1.6rem) clamp(1rem, 1.65cqi, 1.6rem) clamp(1.2rem, 1.65cqi, 1.7rem);
    font-size: clamp(0.875rem, 1.22cqi, 1.1rem);
    line-height: 1.32;
    color: #33291f;
    text-align: center;
  }
}
@media (min-width: 701px) and (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Tablet and phone: cards about 10% smaller (grid 90% wide, centred). */
@media (max-width: 980px) {
  .team-grid { width: 90%; margin-inline: auto; }
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-8); margin-inline: auto; }
  .team-grid .team-member,
  .team-grid .team-member--reverse { margin-bottom: var(--space-5); }
}

/* Team cards, desktop with a mouse (17 Oct 2026): hovering a card fades
   the sepia photo to the colour version. Tablet and phone unchanged. */
.team-grid .team-photo .team-photo-colour { display: none; }
@media (hover: hover) and (min-width: 981px) {
  .team-grid .team-member .team-photo { position: relative; }
  .team-grid .team-member .team-photo .team-photo-colour {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .team-grid .team-member:hover .team-photo .team-photo-colour { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .team-grid .team-member .team-photo .team-photo-colour { transition: none; }
}

/* ---------- Team cards, desktop only (981px+), 17 Oct 2026 ----------
   From Paul's second team.jpg mockup: three across, wide office photos
   (assets/img/team/wide, sepia in wide/sepia, colour on hover), an outer
   #D6C8AD frame with cream padding, a left-aligned #D6C8AD band with the
   name, letters after the name in a smaller size, the role and the
   specialism after a spaced hyphen, then the bio in two paragraphs on a
   #E8E2D4 panel. Tablet and phone keep the 16 Oct cards.
   17 Oct 2026 (Paul): extended to tablet (701px+), one card per row there. */
@media (min-width: 701px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 2.4cqi, 2.25rem);
  }
  .team-grid .team-member,
  .team-grid .team-member--reverse {
    padding: clamp(0.75rem, 1cqi, 1rem) clamp(0.75rem, 1cqi, 1rem) clamp(0.9rem, 1.3cqi, 1.3rem);
    margin-bottom: clamp(1.5rem, 2.4cqi, 2.25rem);
    border-width: 3px;
    background: #f3ece0;
  }
  .team-grid .team-member .team-photo,
  .team-grid .team-member--reverse .team-photo,
  .team-grid .team-member .team-photo img {
    aspect-ratio: 1623 / 1040;
  }
  .team-grid .team-info h2 {
    margin-top: clamp(0.3rem, 0.42cqi, 0.45rem);
    padding: clamp(0.85rem, 1.15cqi, 1.15rem) clamp(1rem, 1.45cqi, 1.4rem) 0;
    font-size: clamp(1.2rem, 1.6cqi, 1.5rem);
    line-height: 1.15;
    text-align: left;
  }
  .team-grid .team-info h2 .team-nominal {
    display: inline;
    margin: 0 0 0 0.3em;
    font-size: 0.62em;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #5a4634;
    white-space: nowrap;
  }
  .team-grid .team-position {
    padding: 0.2rem clamp(1rem, 1.45cqi, 1.4rem) clamp(0.85rem, 1.15cqi, 1.15rem);
    font-size: clamp(0.875rem, 1.03cqi, 0.95rem);
    text-align: left;
  }
  .team-grid .team-position-sub {
    display: inline;
    font-size: 1em;
  }
  .team-grid .team-position-sub::before { content: "- "; }
  .team-grid .team-bio {
    margin-top: clamp(0.4rem, 0.55cqi, 0.55rem);
    padding: clamp(1rem, 1.35cqi, 1.35rem) clamp(1rem, 1.45cqi, 1.4rem) clamp(1.1rem, 1.5cqi, 1.5rem);
    background: #e8e2d4;
    font-size: clamp(0.9rem, 1.04cqi, 1rem);
    line-height: 1.38;
    text-align: left;
  }
  .team-grid .team-bio-part { display: block; }
  .team-grid .team-bio-part + .team-bio-part { margin-top: 0.85em; }
}

/* ---------- Testimonials page, all views (17 Oct 2026): cards ----------
   From Paul's testimonials.jpg mockup. Each card takes its client colour
   (--t-accent, set inline, a lighter version of the old name colour taken
   from the photo): solid in the quote circle, 14% in the card. Quote set
   one sentence per paragraph with the client's name in bold, then photo,
   name, company and job title. Desktop 2 across (last card left), tablet
   and phone 1 per row. Replaces the old zig-zag rows (.testimonial-row). */
.tcard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4.5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  margin-top: var(--space-10);
}
.tcard {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  column-gap: 1.6rem;
  align-items: start;
  padding: 1.4rem 2.25rem 2.1rem 1.5rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--t-accent) 14%, transparent);
  font-family: var(--font-body-nunito);
}
.tcard-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--t-accent);
}
.tcard-mark span {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  transform: translateY(0.252em); /* quote ink sits high in the em box; measured to centre it */
}
.tcard-body { padding-top: 0.95rem; }
.tcard-quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.0625rem;
  font-style: normal;
  line-height: 1.36;
  color: #33291f;
}
.tcard-quote p { margin: 0 0 1em; }
.tcard-quote p:last-child { margin-bottom: 0; }
.tcard-quote strong { font-weight: 700; color: #33291f; }
.tcard-author {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.9rem;
}
.tcard-photo {
  flex: none;
  width: 5.25rem;
  height: 5.25rem;
  object-fit: cover;
  border-radius: 0;
}
.tcard-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #36261a;
}
.tcard-name { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.tcard-company { font-size: 1.125rem; line-height: 1.3; margin-top: 0.4rem; }
.tcard-job { font-size: 0.8125rem; line-height: 1.3; margin-top: 0.15rem; }
@media (max-width: 980px) {
  .tcard-grid { grid-template-columns: minmax(0, 1fr); width: 90%; margin-inline: auto; }
}
@media (max-width: 700px) {
  .testimonials-page .inner-page { background: transparent; padding-bottom: var(--space-12, 3rem); }
  .tcard-grid { width: 100%; margin-top: var(--space-8); gap: var(--space-5); }
  .tcard { grid-template-columns: minmax(0, 1fr); padding: 1.25rem 1.25rem 1.5rem; }
  .tcard-mark { width: 3rem; height: 3rem; }
  .tcard-mark span { font-size: 4rem; }
  .tcard-body { padding-top: 0.9rem; }
  .tcard-quote { font-size: 1rem; line-height: 1.42; }
  .tcard-author { margin-top: 1.4rem; gap: 0.9rem; }
  .tcard-photo { width: 4.5rem; height: 4.5rem; }
  .tcard-name { font-size: 1.2rem; }
  .tcard-company { font-size: 1rem; margin-top: 0.25rem; }
}

/* Team cards (17 Oct 2026): colour photos on every view (sepia files no
   longer used). The dark brown hover on the frame and text was removed
   later on 17 Oct (Paul: it adds nothing; he will think of something else). */

/* Team cards, all views (17 Oct 2026): rounded corners, 16px to match the
   testimonial cards. overflow: hidden clips the tablet/phone photo, which
   runs up to the border, to the curve. */
.team-grid .team-member,
.team-grid .team-member--reverse {
  border-radius: 16px;
  overflow: hidden;
}

/* Testimonial and service cards, all views (17 Oct 2026): the team card
   outer frame. Testimonial borders use each card's quote circle colour
   (--t-accent, Paul 17 Oct).
   Service borders are each card's background tint taken a couple of shades
   darker (20% of the ink mixed in), with no inner line (Paul 17 Oct). 3px #D6C8AD border, 16px corners, then a cream gap
   (team card cream: #f3ece0 desktop, #f3ece0 tablet and phone) around the
   existing coloured card, which keeps its colours and layout. The gap is
   an inset shadow, so no markup changes; content padding and the service
   icon move in by the same amount. No hover effects. */
.tcard,
.svc-tile {
  --frame-gap: 0.75rem;
  --frame-cream: #f3ece0;
  border: 3px solid #d6c8ad;
  border-radius: 16px;
}
@media (max-width: 980px) {
  .tcard,
  .svc-tile { --frame-cream: #f3ece0; }
}
.tcard {
  border-color: var(--t-accent);
  box-shadow: inset 0 0 0 var(--frame-gap) var(--frame-cream);
  padding: calc(1.4rem + var(--frame-gap)) calc(2.25rem + var(--frame-gap)) calc(2.1rem + var(--frame-gap)) calc(1.5rem + var(--frame-gap));
}
.svc-tile {
  border-color: color-mix(in srgb, var(--ink) 20%, var(--tint));
  box-shadow: inset 0 0 0 var(--frame-gap) var(--frame-cream);
  padding: calc(3.5% + var(--frame-gap)) calc(3.9% + var(--frame-gap)) calc(4% + var(--frame-gap)) calc(4.5% + var(--frame-gap));
}
.svc-tile .svc-tile-icon {
  top: calc(clamp(0.8rem, 3.25cqi, 1.3rem) + var(--frame-gap));
  right: calc(clamp(0.9rem, 4.3cqi, 1.5rem) + var(--frame-gap));
}
@media (max-width: 700px) {
  .tcard {
    padding: calc(1.25rem + var(--frame-gap)) calc(1.25rem + var(--frame-gap)) calc(1.5rem + var(--frame-gap));
  }
  .svc-tile {
    padding: calc(1.15rem + var(--frame-gap)) calc(1.1rem + var(--frame-gap)) calc(1.3rem + var(--frame-gap)) calc(1.2rem + var(--frame-gap));
  }
  .svc-tile .svc-tile-icon {
    top: calc(1rem + var(--frame-gap));
    right: calc(1.1rem + var(--frame-gap));
  }
}

/* Team cards, desktop (981px+), 17 Oct 2026: two across instead of three,
   to try (Paul). Six cards in three rows. */
@media (min-width: 981px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Projects page, the four main schemes, all views (17 Oct 2026): the team
   card frame (Paul). 3px #D6C8AD border, 16px corners, team card cream
   (#f3ece0 desktop, #f3ece0 at 980px and below). The photo sits inset by
   the 12px cream gap, as on the team cards; the text has a wider inset.
   Grid gaps match the team grid, and the phone dashed dividers are no
   longer needed between framed cards. No hover. */
.project-sheet {
  --frame-gap: 0.75rem;
  border: 3px solid #d6c8ad;
  border-radius: 16px;
  background: #f3ece0;
  padding: var(--frame-gap) var(--frame-gap) calc(var(--frame-gap) + 1.1rem);
}
.project-sheet-media { margin-bottom: var(--space-5); }
.project-sheet h2,
.project-sheet > p,
.project-sheet-facts { padding-inline: 1.1rem; }
.project-sheet-grid {
  column-gap: clamp(1.5rem, 2.4vw, 2.25rem);
  row-gap: clamp(1.5rem, 2.4vw, 2.25rem);
}
@media (max-width: 980px) {
  .project-sheet { background: #f3ece0; }
}
@media (max-width: 700px) {
  .project-sheet-grid { row-gap: var(--space-5); }
  .project-sheet:not(:first-child)::before { content: none; }
  .project-sheet h2,
  .project-sheet > p,
  .project-sheet-facts { padding-inline: 0.6rem; }
}

/* Home page services, desktop and tablet (701px+), 17 Oct 2026 (Paul):
   small cards in the Services page colours (tint fill, ink title and text,
   border = tint with 20% ink), 3px border, 16px corners, no "More Details"
   buttons. Hover (mouse only): soft shadow and a slight size increase.
   Phone keeps its own list with buttons, untouched. */
@media (min-width: 701px) {
  .services-grid .service-card--mixed-use        { --svc-ink: #7a2a0a; --svc-tint: #f6e8e1; }
  .services-grid .service-card--town-centres     { --svc-ink: #3d5a99; --svc-tint: #e8eefa; }
  .services-grid .service-card--asset-management     { --svc-ink: #7a5b14; --svc-tint: #f2ecdd; }
  .services-grid .service-card--meanwhile        { --svc-ink: #5c3a80; --svc-tint: #f5ebff; }
  .services-grid .service-card--surveying        { --svc-ink: #0e7462; --svc-tint: #e8fef9; }
  .services-grid .service-card--sales-marketing  { --svc-ink: #36692b; --svc-tint: #e9fae7; }
  .services-grid { row-gap: var(--space-6); column-gap: var(--space-6); }
  .services-grid .service-card,
  .services-grid .service-card:hover,
  .services-grid .service-card:focus-visible {
    border: 3px solid color-mix(in srgb, var(--svc-ink) 20%, var(--svc-tint));
    border-radius: 16px;
  }
  .services-grid .service-card {
    background: var(--svc-tint);
    padding: var(--space-5) var(--space-6) var(--space-6);
    gap: var(--space-3);
    transition: transform 220ms ease, box-shadow 220ms ease;
  }
  .services-grid .service-card h3,
  .services-grid .service-card:hover h3,
  .services-grid .service-card:focus-visible h3 { color: var(--svc-ink); }
  .services-grid .service-card-panel p { color: var(--svc-ink); }
  .services-grid .service-more-btn { display: none; }
  .services-grid .service-card:focus-visible { outline-offset: 4px; }
}
@media (min-width: 701px) and (hover: hover) {
  .services-grid .service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--svc-ink) 40%, transparent);
  }
}
@media (min-width: 701px) and (prefers-reduced-motion: reduce) {
  .services-grid .service-card { transition: none; }
  .services-grid .service-card:hover { transform: none; }
}

/* Home page services, phone (700px and below), 17 Oct 2026 (Paul): the new
   Services page inks on the titles and buttons. Layout unchanged. */
@media (max-width: 700px) {
  .services-grid .service-card--mixed-use        { --svc-ink: #7a2a0a; }
  .services-grid .service-card--town-centres     { --svc-ink: #3d5a99; }
  .services-grid .service-card--asset-management     { --svc-ink: #7a5b14; }
  .services-grid .service-card--meanwhile        { --svc-ink: #5c3a80; }
  .services-grid .service-card--surveying        { --svc-ink: #0e7462; }
  .services-grid .service-card--sales-marketing  { --svc-ink: #36692b; }
}

/* Team cards, tablet (701 to 980px), 17 Oct 2026 (Paul): the desktop card
   (wide photo, name band, bio panel) one per row. */
@media (min-width: 701px) and (max-width: 980px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Properties page, desktop and tablet (701px+), 17 Oct 2026 (Paul): the
   team card principle, three per row (two per row 17 to 24 Oct; back to
   three 24 Oct, Paul). 3px #D6C8AD border, 16px corners,
   team card cream (#f3ece0 desktop, #f3ece0 tablet), photo inset by the
   12px cream gap, text on the cream. Hover (mouse only): soft shadow and a
   slight size increase, in place of the old lift. Phone keeps its
   tap-to-expand rows, untouched. */
@media (min-width: 701px) {
  .property-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.4vw, 2.25rem);
  }
  .property-card {
    --frame-gap: 0.75rem;
    padding: var(--frame-gap);
    border: 3px solid #d6c8ad;
    border-radius: 16px;
    background: #f3ece0;
    box-shadow: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
  }
  .property-card:hover {
    transform: none;
    box-shadow: none;
  }
  .property-card-body { padding: 0.9rem 0.6rem 0.35rem; }
  /* 24 Oct (Paul): with three cards per row the address is 13px, one line,
     long ones end with "..." (base rule); the details below (Rent, Floor,
     Size, Available, Use) are 12px. */
  .property-address { font-size: 0.8125rem; }
  .property-facts dt,
  .property-facts dd { font-size: 0.75rem; }
}
/* 24 Oct (Paul): tablet and smaller desktops (701px to 1199px) two across;
   three across from 1200px up. */
@media (min-width: 701px) and (max-width: 1199px) {
  .property-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 980px) {
  .property-card { background: #f3ece0; }
}
@media (min-width: 701px) and (hover: hover) {
  .property-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 34px -14px rgba(58, 42, 30, 0.38);
  }
}
@media (min-width: 701px) and (prefers-reduced-motion: reduce) {
  .property-card { transition: none; }
  .property-card:hover { transform: none; }
}

/* Property cards, desktop and tablet: status and Download PDF labels scale
   with the card (17 Oct 2026, Paul). The old 10px label sat on a card
   about 380px wide (2.6% of it); same proportion now, never below the old
   10px and capped at 14.4px. The inset from the photo edge scales too. */
@media (min-width: 701px) {
  .property-card-media { container-type: inline-size; }
  .property-card .property-status,
  .property-card .property-pdf { font-size: clamp(0.625rem, 2.6cqi, 0.9rem); }
  .property-card .property-status {
    top: clamp(0.5rem, 1.6cqi, 0.8rem);
    left: clamp(0.5rem, 1.6cqi, 0.8rem);
  }
  .property-card .property-pdf {
    right: clamp(0.5rem, 1.6cqi, 0.8rem);
    bottom: clamp(0.5rem, 1.6cqi, 0.8rem);
  }
}

/* Testimonials, all views (18 Oct 2026, Paul): same card width and spacing
   as the team cards. Column gap and row spacing use the team grid's values
   (row spacing as a card margin, as on the team grid); on phone the grid is
   90% wide and centred with 20px between cards, as on the team page. */
.tcard-grid {
  container-type: inline-size;
  column-gap: clamp(1.5rem, 2.4vw, 2.25rem);
  row-gap: 0;
}
.tcard-grid .tcard { margin-bottom: clamp(1.5rem, 2.4cqi, 2.25rem); }
@media (max-width: 700px) {
  .tcard-grid { width: 90%; margin-inline: auto; }
  .tcard-grid .tcard { margin-bottom: var(--space-5); }
}

/* Home page services, desktop and tablet (18 Oct 2026, Paul): the same
   border and cream gap as the Services page cards. A 12px cream ring sits
   inside the 3px border (#f3ece0 desktop, #f3ece0 tablet); padding grows by
   the same amount so the text keeps its spacing. */
@media (min-width: 701px) {
  .services-grid .service-card {
    --frame-gap: 0.75rem;
    --frame-cream: #f3ece0;
    box-shadow: inset 0 0 0 var(--frame-gap) var(--frame-cream);
    padding: calc(var(--space-5) + var(--frame-gap)) calc(var(--space-6) + var(--frame-gap)) calc(var(--space-6) + var(--frame-gap));
  }
}
@media (min-width: 701px) and (max-width: 980px) {
  .services-grid .service-card { --frame-cream: #f3ece0; }
}
@media (min-width: 701px) and (hover: hover) {
  .services-grid .service-card:hover {
    box-shadow:
      inset 0 0 0 var(--frame-gap) var(--frame-cream),
      0 14px 30px -12px color-mix(in srgb, var(--svc-ink) 40%, transparent);
  }
}

/* Home page services, desktop and tablet (18 Oct 2026, Paul): description
   text sized so each card's text sits on 3 lines. It scales with the card
   (5.1% of the card width), capped at 16px and never below 14px for
   readability. 3 lines from about 340px card width up; the narrowest cards
   (laptop 1024 to 1150px, tablet 701 to 770px) still run to 4 lines at 14px. */
@media (min-width: 701px) {
  .services-grid .service-card { container-type: inline-size; }
  .services-grid .service-card-panel p { font-size: clamp(0.875rem, 5.1cqi, 1rem); }
}

/* Home page services, narrow cards only (18 Oct 2026, Paul): less side
   padding so the text fits on 3 lines. Laptop 981 to 1199px (3 across) and
   tablet 701 to 819px (2 across): inner side padding 24px to 8px (the 12px
   cream gap is kept, so text sits 20px inside the border), text fixed at
   13px (Paul) so it does not grow into the extra width. Later on 18 Oct
   (Paul): gaps between cards 24px to 16px and inner side padding 8px to
   10px (text 22px inside the border). */
@media (min-width: 981px) and (max-width: 1199px), (min-width: 701px) and (max-width: 819px) {
  .services-grid { column-gap: 1rem; row-gap: 1rem; }
  .services-grid .service-card {
    padding-left: calc(0.625rem + var(--frame-gap));
    padding-right: calc(0.625rem + var(--frame-gap));
  }
  .services-grid .service-card-panel p { font-size: 0.8125rem; }
}

/* Testimonials, all views (18 Oct 2026, Paul): quote circles removed from
   the cards; the text now uses the full card width. Borders keep each
   card's accent colour (--t-accent). */
.tcard { grid-template-columns: minmax(0, 1fr); }
.tcard-body { padding-top: 0; }
@media (min-width: 701px) {
  .tcard { padding-left: calc(2.25rem + var(--frame-gap)); }
}

/* Services page, all views (18 Oct 2026, Paul): service titles bold
   (600 to 700, the heaviest weight loaded for Nunito Sans). */
.svc-tile h2 { font-weight: 700; }

/* Team and Testimonials, all views (18 Oct 2026, Paul): the last row of
   cards drops the row-spacing margin, so the space below the cards matches
   the other pages (Services, Projects, Properties). Team desktop is 2
   across (6 cards), so its last 2 cards; testimonials (5 cards) end on a
   single card at every width. Phone testimonials page bottom padding
   48px to 40px, as on the team page. */
.tcard-grid .tcard:last-child { margin-bottom: 0; }
.team-grid .team-member:last-child { margin-bottom: 0; }
@media (min-width: 981px) {
  .team-grid .team-member:nth-last-child(-n+2) { margin-bottom: 0; }
}
@media (max-width: 700px) {
  .testimonials-page .inner-page { padding-bottom: 40px; }
}

/* Testimonials, all views (18 Oct 2026, Paul): the photo and name sit at
   the bottom of each card, so cards side by side line up when one quote is
   shorter (Craig's next to David's). The quote keeps its normal gap above
   the author as a minimum. */
.tcard { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.tcard-body { display: flex; flex-direction: column; }
.tcard-quote { flex: 1 0 auto; }

/* Contact page, desktop and tablet (18 Oct 2026, Paul): the map and the two
   enquiry forms get the team card frame: 3px #D6C8AD border, 16px corners,
   12px cream gap inside the border. The forms keep their own background and
   the gap is an inset shadow; the map sits inside a cream padded frame.
   Phone untouched. */
@media (min-width: 701px) {
  .contact-map,
  .enquiry-form {
    --frame-gap: 0.75rem;
    --frame-cream: #f3ece0;
    border: 3px solid #d6c8ad;
    border-radius: 16px;
  }
  .contact-map {
    padding: var(--frame-gap);
    background: var(--frame-cream);
  }
  .contact-map iframe { border-radius: 4px; }
  .enquiry-form {
    box-shadow: inset 0 0 0 var(--frame-gap) var(--frame-cream);
    padding: calc(var(--space-8) + var(--frame-gap));
  }
}
@media (min-width: 701px) and (max-width: 980px) {
  .contact-map,
  .enquiry-form { --frame-cream: #f3ece0; }
}

/* Testimonials, phone only (20 Oct 2026, Paul): the name, company and
   position sit below the photo instead of beside it, left aligned with the
   quote. Desktop and tablet untouched. */
@media (max-width: 700px) {
  .tcard-author { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
/* Testimonials, phone only (20 Oct 2026, Paul): quote text slightly
   smaller, 16px to 15px (line height kept at 1.42). */
@media (max-width: 700px) {
  .tcard-quote { font-size: 0.9375rem; }
}
/* Testimonials, phone only (20 Oct 2026, Paul): cards full content width,
   lining up left and right with the heading and intro text above (was 90%
   wide and centred). */
@media (max-width: 700px) {
  .tcard-grid { width: 100%; }
}

/* Team, phone only (20 Oct 2026, Paul): cards full content width, lining up
   with the heading and intro text (was 90% wide and centred), and the wide
   office photos (team/wide, 1623:1040) instead of the square ones, so the
   cards are shorter. The wide photo now loads at every width. */
@media (max-width: 700px) {
  .team-grid { width: 100%; }
  .team-grid .team-member .team-photo,
  .team-grid .team-member--reverse .team-photo,
  .team-grid .team-member .team-photo img {
    aspect-ratio: 1623 / 1040;
  }
}
/* Team, phone only (20 Oct 2026, Paul): the card frame used on desktop and
   tablet: 3px #D6C8AD border, 16px corners and a 12px cream gap around the
   photo, name band and bio (was a 4px border with the content tight to it). */
@media (max-width: 700px) {
  .team-grid .team-member,
  .team-grid .team-member--reverse {
    border-width: 3px;
    border-radius: 16px;
    padding: 12px;
  }
}
/* Team, phone only (20 Oct 2026, Paul): cards styled like desktop and
   tablet, at the tablet's smallest sizes: small cream gap between photo and
   name band, name, letters, role and specialism left aligned (specialism
   after a spaced hyphen, now shown on phone), bio on its own #E8E2D4 panel
   below a small cream gap, in two paragraphs. */
@media (max-width: 700px) {
  .team-grid .team-member,
  .team-grid .team-member--reverse { padding-bottom: 0.9rem; }
  .team-grid .team-info h2 {
    margin-top: 0.3rem;
    padding: 0.85rem 1rem 0;
    font-size: 1.2rem;
    line-height: 1.15;
    text-align: left;
  }
  .team-grid .team-info h2 .team-nominal {
    display: inline;
    margin: 0 0 0 0.3em;
    font-size: 0.62em;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #5a4634;
    white-space: nowrap;
  }
  .team-grid .team-position {
    padding: 0.2rem 1rem 0.85rem;
    font-size: 0.875rem;
    text-align: left;
  }
  .team-grid .team-position-sub { display: inline; font-size: 1em; }
  .team-grid .team-position-sub::before { content: "- "; }
  .team-grid .team-paren { display: none; }
  .team-grid .team-bio {
    margin-top: 0.4rem;
    padding: 1rem 1rem 1.1rem;
    background: #e8e2d4;
    font-size: 0.9rem;
    line-height: 1.38;
    text-align: left;
  }
  .team-grid .team-bio-part { display: block; }
  .team-grid .team-bio-part + .team-bio-part { margin-top: 0.85em; }
}
/* Team, phone only (20 Oct 2026, Paul): the job title (role and
   specialism) always on one line. It never wraps, and the text shrinks with
   the card width so the longest title ("Managing Director - Development
   Consultancy", 295px at 14px) fits: 14px at about 410px and wider, about
   13.4px at 390px, 12px at 360px, 10px at 320px. 100cqi is the .team-grid width (= card
   width on phone); 62px = border, card padding and band padding. */
@media (max-width: 700px) {
  .team-grid .team-position {
    white-space: nowrap;
    font-size: min(0.875rem, calc((100cqi - 62px) * 0.0465));
  }
}

/* Homepage, all views (20 Oct 2026, Paul): the three dark pull-quote bands
   were removed (text and markup kept in archive/home-pull-quotes.md), and
   the sections below the hero alternate. 25 Oct 2026, Paul: How We Work and
   Commercial Services swapped places in home.html, and the alternation now
   starts with cream: Stats cream, Services white, Method cream, Projects
   white. Partners keeps its own beige. Cream is the page cream #f3ece0.
   The Projects gallery stage follows its section (white). */
main#top > .page-stack > .stats-band,
main#top > .page-stack > .method { background: #f3ece0; }
main#top > .page-stack > #services,
main#top > .page-stack > #projects { background: #ffffff; }
main#top > .page-stack > #projects .project-gallery-stage { background: #ffffff; }
/* Homepage (20 Oct 2026, Paul): no divider lines on the Stats section now
   the sections alternate white and cream (the 1px #DED6C6 lines showed as a
   darker line between Stats and Method). */
main#top > .page-stack > .stats-band { border-top: 0; border-bottom: 0; }
/* Homepage services cards, desktop and tablet (20 Oct 2026, Paul): the gap
   inside the border is white to match the new white Services section. */
@media (min-width: 701px) {
  main#top #services .services-grid .service-card { --frame-cream: #ffffff; }
}
/* Homepage, all views (20 Oct 2026, Paul, for review): Headline Stats in
   four blues, medium to dark (was navy, green, amber, red); 25 Oct 2026,
   Paul: now four petrol teals, medium to dark (#1F6F6B, #175D5A, #104A48,
   #0A3634, 5.0:1 or better on the cream Stats section), and the How We
   Work stages in three greens, medium to dark (was navy, teal, green).
   All pass 4.5:1 contrast on their backgrounds. Bars, lines, figures,
   labels and stage tabs follow these colours. */
.stat-item:nth-child(1), .stat-row:nth-child(1) { color: #1f6f6b; }
.stat-item:nth-child(2), .stat-row:nth-child(2) { color: #175d5a; }
.stat-item:nth-child(3), .stat-row:nth-child(3) { color: #104a48; }
.stat-item:nth-child(4), .stat-row:nth-child(4) { color: #0a3634; }
.method-card:nth-child(1) { color: #337a3d; }
.method-card:nth-child(2) { color: #23662f; }
.method-card:nth-child(3) { color: #134b20; }
.method-card:nth-child(1) .method-stage { background: #337a3d; }
.method-card:nth-child(2) .method-stage { background: #23662f; }
.method-card:nth-child(3) .method-stage { background: #134b20; }
/* How We Work stages (20 Oct 2026, Paul): more distinct greens: a lighter
   leaf green, a mid emerald and a deep forest green (contrast on cream
   4.5, 6.5 and 12.2 to 1). */
.method-card:nth-child(1) { color: #4d7c0f; }
.method-card:nth-child(2) { color: #1a6340; }
.method-card:nth-child(3) { color: #0a3524; }
.method-card:nth-child(1) .method-stage { background: #4d7c0f; }
.method-card:nth-child(2) .method-stage { background: #1a6340; }
.method-card:nth-child(3) .method-stage { background: #0a3524; }
/* How We Work stages, all views (25 Oct 2026, Paul): burnt oranges, light
   to dark, in place of the greens (contrast on the pale beige 3.9, 6.0 and
   9.9 to 1; white chip text 4.6, 7.1 and 11.6 to 1). Later on 25 Oct, Paul:
   first orange deepened from #b85c14 to #a3510f (4.78:1 on the pale beige,
   white chip text 4.98:1). */
.method-card:nth-child(1) { color: #a3510f; }
.method-card:nth-child(2) { color: #8f4310; }
.method-card:nth-child(3) { color: #5e2a0a; }
.method-card:nth-child(1) .method-stage { background: #a3510f; }
.method-card:nth-child(2) .method-stage { background: #8f4310; }
.method-card:nth-child(3) .method-stage { background: #5e2a0a; }
/* Homepage Headline Stats, desktop and tablet (20 Oct 2026, Paul): the
   coloured lines brought closer to the figures and labels, about half the
   old gap: 18px at 1440 (was 35), about 13px at 1024 (was 25), 12px on
   tablet (was 24). Phone unchanged. */
@media (min-width: 981px) {
  .stat-item, .stat-item:nth-child(n) { padding-left: clamp(12px, 1.25vw, 18px); }
}
@media (min-width: 701px) and (max-width: 980px) {
  .stat-item, .stat-item:nth-child(n) { padding-left: 12px; }
}

/* Homepage projects (20 Oct 2026, Paul): the thumbnail column on the right
   is removed. The main image takes the full width and Back and Next sit
   below it, left and right: a white arrow in a 48px brown circle (header
   brown #3A2A1E) with the word beside it. The section shows on desktop only
   (already hidden on tablet and phone). */
.project-gallery--split .project-gallery-stage { width: 100%; margin-right: 0; }
.project-gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-5);
}
.gallery-step {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-header-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.gallery-step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-header-bg);
  color: #ffffff;
  transition: background 160ms ease, transform 160ms ease;
}
.gallery-step-circle svg { width: 22px; height: 22px; display: block; }
.gallery-step:hover .gallery-step-circle,
.gallery-step:focus-visible .gallery-step-circle { background: var(--color-header-bg-active); transform: scale(1.06); }
.gallery-step:focus-visible { outline: 2px solid var(--color-header-bg); outline-offset: 4px; border-radius: 28px; }
@media (prefers-reduced-motion: reduce) {
  .gallery-step-circle { transition: none; }
}
/* Homepage projects (21 Oct 2026, Paul): image smaller, Back on the left
   and Next on the right of it, vertically centred, each label under its
   arrow. Columns: 120px button, image, 120px button, 24px gaps (image
   about 920px wide at 1440, was 1216). */
.project-gallery--split .project-gallery-board {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  align-items: center;
  column-gap: var(--space-6);
}
.project-gallery--split .project-gallery-stage { width: 100%; margin: 0; }
.gallery-step { flex-direction: column; gap: 0.6rem; justify-self: center; }
.gallery-step:focus-visible { border-radius: 12px; }
/* Homepage projects (21 Oct 2026, Paul): the photo gets the card frame used
   elsewhere: 3px #D6C8AD border, 16px corners and a 12px gap in the
   section's cream (#f3ece0) between the border and the photo. */
.project-gallery--split .project-gallery-stage {
  position: relative;
  border: 3px solid #d6c8ad;
  border-radius: 16px;
  background: #f3ece0;
  overflow: hidden;
}
.project-gallery--split .project-gallery-slides {
  position: absolute;
  inset: 12px;
  width: auto;
  height: auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-header-bg);
}

/* Homepage stacking scroll, desktop only (21 Oct 2026, Paul): each section
   below the hero is sticky. It stops when its top reaches the nav bar (or,
   if taller than the screen, when its bottom reaches the screen bottom; the
   script in home.html sets --stack-top) and the next section scrolls up over
   it. A soft shadow on each section's top edge shows the overlap. */
@media (min-width: 981px) {
  main#top > .page-stack > section {
    position: sticky;
    top: var(--stack-top, var(--header-offset, 0px));
  }
  .page-stack > section + section { box-shadow: 0 -10px 24px -12px rgba(36, 24, 17, 0.18); }
}
@media (min-width: 981px) and (prefers-reduced-motion: reduce) {
  main#top > .page-stack > section { position: relative; top: auto; }
  .page-stack > section + section { box-shadow: none; }
}
/* Homepage stacking scroll, desktop (21 Oct 2026, Paul): Projects is the
   last section to stack. It slides up over Services, and from there the page
   scrolls normally: Projects and Partners do not stick. */
@media (min-width: 981px) {
  main#top > .page-stack > #projects,
  main#top > .page-stack > .partners { position: relative; top: auto; }
  main#top > .page-stack > .partners { box-shadow: none; }
}
/* Homepage, desktop (21 Oct 2026, Paul, for review): the same soft shadow on
   the top edge of every section below the hero (Stats, Method, Services,
   Projects, Partners), so it looks consistent while Paul decides whether to
   keep it. */
@media (min-width: 981px) {
  main#top > .page-stack > section,
  main#top > .page-stack > .partners { box-shadow: 0 -10px 24px -12px rgba(36, 24, 17, 0.18); }
}
@media (min-width: 981px) and (prefers-reduced-motion: reduce) {
  main#top > .page-stack > section,
  main#top > .page-stack > .partners { box-shadow: none; }
}
/* Homepage, desktop (21 Oct 2026, Paul): section top-edge shadow removed
   from every section; only the white and cream backgrounds mark the
   overlap. */
@media (min-width: 981px) {
  main#top > .page-stack > section,
  main#top > .page-stack > section + section,
  main#top > .page-stack > .partners { box-shadow: none; }
}

/* Inner pages, all views (25 Oct 2026, Paul): the first section is white
   and a second section that is not Partners (only Projects "Also involved")
   is the pale beige #F3ECE0. Partners keeps its own beige. Home is not an
   inner page (its sections sit in .page-stack) and is untouched.
   Projects page, the four main schemes: inner card light beige #F3ECE0
   inside a 12px white gap (the white gap matches the new white section, as
   on the home services cards), and the photo runs to the edge of the beige
   inner card again (border, white gap, then photo). */
main#top > .section-lead-offset { background: #ffffff; }
main#top > .projects-also { background: #f3ece0; }
.project-sheet {
  --frame-cream: #ffffff;
  background: #f3ece0;
  box-shadow: inset 0 0 0 var(--frame-gap) var(--frame-cream);
  padding: var(--frame-gap) var(--frame-gap) calc(var(--frame-gap) + 1.1rem);
}
@media (max-width: 980px) {
  .project-sheet { background: #f3ece0; }
}

/* Headlines, all pages and all views except the homepage hero (25 Oct 2026,
   Paul): Nunito Sans bold, the font used for the text on the other pages,
   at the same sizes as before (was Newsreader 500). Nunito Sans 700 is
   already loaded on every page. (Briefly self-hosted Nunito 700; Paul
   chose Nunito Sans instead.) The homepage hero h1 has no .section-title
   and is untouched. */
.section-title,
.page-header .section-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
}

/* Card frames, all pages and all views (25 Oct 2026, Paul): the 12px gap
   inside the 3px card border is the colour of the section the card sits on.
   Every framed card is now on a white section (inner first sections and the
   home Services section), so the gap is white. Team cards: the card itself
   is the gap (photo, name band and bio panel sit on it), so it is white.
   Properties cards keep their cream inside, with a 12px white ring that
   stays on hover. */
.tcard,
.svc-tile { --frame-cream: #ffffff; }
.team-grid .team-member { background: #ffffff; }
@media (min-width: 701px) {
  .contact-map,
  .enquiry-form { --frame-cream: #ffffff; }
  .property-card { box-shadow: inset 0 0 0 var(--frame-gap) #ffffff; }
  .property-card:hover { box-shadow: inset 0 0 0 var(--frame-gap) #ffffff; }
}
@media (min-width: 701px) and (hover: hover) {
  .property-card:hover {
    box-shadow: inset 0 0 0 var(--frame-gap) #ffffff, 0 16px 34px -14px rgba(58, 42, 30, 0.38);
  }
}

/* Headline line limits (25 Oct 2026, Paul): desktop (981px+) always one
   line; tablet and phone no more than two. Each .section-title carries
   --hl-r, its text width per 1px of font size (measured in Nunito Sans 700,
   plus 1%), set inline in the HTML. The size is the normal size unless the
   text would not fit, then it shrinks just enough. Content width: the
   1216px wrap less 32px padding each side (20px at 640px and below), with
   room for a desktop scrollbar. Two-line fit allows for word breaks
   (--hl-f). Update --hl-r if a headline's wording changes. */
@media (min-width: 981px) {
  .section-title,
  .page-header .section-title {
    white-space: nowrap;
    font-size: min(var(--text-2xl), calc(min(1216px, 100vw - 82px) / var(--hl-r, 1)));
  }
}
@media (max-width: 980px) {
  .section-title,
  .page-header .section-title {
    --hl-f: 1.6;
    font-size: min(var(--text-2xl), calc((100vw - 82px) * var(--hl-f) / var(--hl-r, 0.01)));
  }
}
@media (max-width: 640px) {
  .section-title,
  .page-header .section-title {
    font-size: min(var(--text-2xl), calc((100vw - 58px) * var(--hl-f) / var(--hl-r, 0.01)));
  }
}

/* Projects page, the four main schemes, all views (25 Oct 2026, Paul): a
   gap between the photo and the text. The text sits in its own light beige
   panel (.project-sheet-body) 5px below the photo, the same gap as between
   the photo and the name band on the team cards. The card inside the 3px
   border is white, so the 12px gap and the 5px gap are both white. The
   text keeps its inset (1.1rem, 0.6rem on phone). */
.project-sheet {
  background: #ffffff;
  padding: var(--frame-gap);
}
@media (max-width: 980px) {
  .project-sheet { background: #ffffff; }
}
.project-sheet-media { margin-bottom: 5px; }
.project-sheet-body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background: #f3ece0;
  padding: var(--space-5) 1.1rem 1.1rem;
}
.project-sheet-body > p {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
}
.project-sheet .project-sheet-body h2,
.project-sheet .project-sheet-body > p,
.project-sheet .project-sheet-body .project-sheet-facts { padding-inline: 0; }
@media (max-width: 700px) {
  .project-sheet-body { padding-inline: 0.6rem; }
}

/* Team, desktop only (981px+), 29 Oct 2026 (Paul): three across (was two),
   positions shortened: Matthew and Stephen "Managing Director" only (the
   specialism is hidden), Mark "Research Director", Farkid "Building
   Consultancy". Tablet and phone keep the full titles (.team-pos-other). */
.team-grid .team-pos-desk { display: none; }
@media (min-width: 981px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid .team-position-sub { display: none; }
  .team-grid .team-pos-desk { display: inline; }
  .team-grid .team-pos-other { display: none; }
  .team-grid .team-member:nth-last-child(-n+3) { margin-bottom: 0; }
}

/* Testimonials, desktop only (981px+), 29 Oct 2026 (Paul): three across
   (was two). Inner padding reduced for the narrower cards (1.1rem plus the
   12px frame gap, was 1.4 to 2.25rem), photo 68px (was 84px), and the name,
   company and job title made smaller so each stays on one line. From 1240px
   the photo sits beside the name; from 981 to 1239px the cards are too
   narrow for that, so the photo sits above the name (as on phone). Row
   spacing is a row gap rather than a card margin, so the last card
   (Matthew) is not stretched taller than the card beside it (Richard).
   Tom's two middle paragraphs run as one on desktop: .tq-break is a
   paragraph-sized break on tablet and phone, hidden on desktop. */
.tq-break { display: block; height: 1em; }
@media (min-width: 981px) {
  .tq-break { display: none; }
  .tcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(1.5rem, 2.4cqi, 2.25rem); }
  .tcard-grid .tcard { margin-bottom: 0; }
  .tcard {
    padding: calc(1.25rem + var(--frame-gap)) calc(1.1rem + var(--frame-gap)) calc(1.4rem + var(--frame-gap));
  }
  .tcard-author { gap: 0.75rem; margin-top: 1.5rem; }
  .tcard-photo { width: 4.25rem; height: 4.25rem; }
  .tcard-meta { min-width: 0; }
  .tcard-name,
  .tcard-company,
  .tcard-job { white-space: nowrap; }
  .tcard-name { font-size: 1.25rem; }
  .tcard-company { font-size: 0.9375rem; margin-top: 0.3rem; }
  .tcard-job { font-size: clamp(0.625rem, 0.93cqi, 0.75rem); }
}
@media (min-width: 981px) and (max-width: 1239px) {
  .tcard-author { flex-direction: column; align-items: flex-start; }
  .tcard-company { font-size: 1rem; }
  .tcard-job { font-size: min(0.8125rem, 1.2cqi); }
}

/* Projects page, all views, 29 Oct 2026 (Paul): the four main schemes are
   now the same small cards as the other schemes, in one grid in the first
   section (the "Also involved" section is removed). The intro is kept.
   Markup only; the existing .project-involved card styles apply. */

/* Home page services, desktop and tablet (701px+), 29 Oct 2026 (Paul;
   desktop first, tablet added later the same day): each card
   has its service icon centred at the top, in the card's text colour
   (--svc-ink), with the title and text centred below. The icons are the
   Services page line icons (assets/img/icons/tab), used as a mask so they
   take the ink colour. Hidden on phone. */
.service-card-icon { display: none; }
@media (min-width: 701px) {
  .services-grid .service-card { align-items: center; text-align: center; }
  .services-grid .service-card-head { justify-content: center; }
  .services-grid .service-card-icon {
    display: block;
    flex: none;
    width: 4.55rem; /* 30% bigger (was 3.5rem), 29 Oct 2026 (Paul) */
    aspect-ratio: 409 / 376;
    margin-bottom: 0.25rem;
    background-color: var(--svc-ink);
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
  }
  .services-grid .service-card--mixed-use .service-card-icon        { -webkit-mask-image: url('../img/icons/tab/mixed-use.png'); mask-image: url('../img/icons/tab/mixed-use.png'); }
  .services-grid .service-card--asset-management .service-card-icon { -webkit-mask-image: url('../img/icons/tab/asset-management.png'); mask-image: url('../img/icons/tab/asset-management.png'); }
  .services-grid .service-card--town-centres .service-card-icon     { -webkit-mask-image: url('../img/icons/tab/town-centre.png'); mask-image: url('../img/icons/tab/town-centre.png'); }
  .services-grid .service-card--meanwhile .service-card-icon        { -webkit-mask-image: url('../img/icons/tab/meanwhile-matters.png'); mask-image: url('../img/icons/tab/meanwhile-matters.png'); }
  .services-grid .service-card--surveying .service-card-icon        { -webkit-mask-image: url('../img/icons/tab/surveying.png'); mask-image: url('../img/icons/tab/surveying.png'); }
  .services-grid .service-card--sales-marketing .service-card-icon  { -webkit-mask-image: url('../img/icons/tab/sales-marketing.png'); mask-image: url('../img/icons/tab/sales-marketing.png'); }
}

/* Homepage Headline Stats, tablet (701 to 980px), 29 Oct 2026 (Paul): all
   four stats on one line (was 2 x 2 below 920px). Figures, labels and gaps
   scale with the screen width so the four columns fit at every tablet
   width. Desktop and phone unchanged. */
@media (min-width: 701px) and (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2vw;
    row-gap: 0;
  }
  .stat-figure { font-size: 4.4vw; }
  .stat-label { margin-top: 1.2vw; font-size: 1.38vw; }
}

/* Footer, tablet (701 to 980px), 29 Oct 2026 (Paul): Email Enquiries sits
   in the centre, between General Enquiries and Current Properties. Visual
   order only; desktop and phone unchanged. */
@media (min-width: 701px) and (max-width: 980px) {
  .footer-contact-item:nth-child(2) { order: 3; }
  .footer-contact-item:nth-child(3) { order: 2; }
}

/* Team, tablet (701 to 980px), 29 Oct 2026 (Paul): two cards per row (was
   one per row since 17 Oct), using the full content width (was 90% wide
   and centred), lining up with the heading and intro. The last row's
   row-spacing margin is dropped, as on desktop. Desktop and phone unchanged. */
@media (min-width: 701px) and (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .team-grid .team-member:nth-last-child(-n+2) { margin-bottom: 0; }
}

/* Testimonials, tablet (701 to 980px), 29 Oct 2026 (Paul): two across (was
   one per row), with the desktop card treatment from earlier the same day:
   full content width (was 90%), reduced inner padding, 68px photo, smaller
   name, company and job title each on one line, row gap instead of a card
   margin (so cards in a row match), and Tom's two middle paragraphs as one.
   From 701 to 829px the photo sits above the name (as on narrow desktop)
   so the job titles stay on one line; from 830px it sits beside the name.
   Phone unchanged. */
@media (min-width: 701px) and (max-width: 980px) {
  .tq-break { display: none; }
  .tcard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    row-gap: clamp(1.5rem, 2.4cqi, 2.25rem);
  }
  .tcard-grid .tcard { margin-bottom: 0; }
  .tcard {
    padding: calc(1.25rem + var(--frame-gap)) calc(1.1rem + var(--frame-gap)) calc(1.4rem + var(--frame-gap));
  }
  .tcard-author { gap: 0.75rem; margin-top: 1.5rem; }
  .tcard-photo { width: 4.25rem; height: 4.25rem; }
  .tcard-meta { min-width: 0; }
  .tcard-name,
  .tcard-company,
  .tcard-job { white-space: nowrap; }
  .tcard-name { font-size: 1.25rem; }
  .tcard-company { font-size: 0.9375rem; margin-top: 0.3rem; }
  .tcard-job { font-size: clamp(0.625rem, 1.45cqi, 0.75rem); }
  .tcard-quote { font-size: 1rem; } /* 17px to 16px, 29 Oct 2026 (Paul) */
}
/* Testimonials, tablet (701 to 980px), 29 Oct 2026 (Paul): photo on the
   left, with name, company and job title to its right, at all tablet
   widths (the 701 to 829px photo-above-name rule is removed). */
@media (min-width: 701px) and (max-width: 980px) {
  .tcard-author { flex-direction: row; justify-content: flex-start; align-items: center; }
}
/* Testimonials, tablet (701 to 980px), 29 Oct 2026 (Paul): Matthew Essex's
   job title shortened to "Operational Director, Planning" (desktop keeps
   "Operational Director, Planning Department"; phone keeps its own line). */
.tj-tab { display: none; }
@media (min-width: 701px) and (max-width: 980px) {
  .tj-desk { display: none; }
  .tj-tab { display: inline; }
}

/* ---------- Services page cards, all views (desktop and tablet 30 Oct 2026, phone added the same day) (Paul) ----------
   New design from Paul's services.png: no fill, an open line frame in the
   service's pastel colour that starts at a dot top left, runs down, along
   the bottom and up the right side to a second dot below a large pastel
   circle holding the white service icon (top right). Title, bullet list,
   then the short description, all in the service's dark ink. Three across
   from 1200px, two across from 701 to 1199px (tablet and small laptops,
   where three would squeeze the text). Every size is a
   share of the card width (padding in %, everything inside in cqi), taken
   from the mockup (--u is 1% of the card width). Phone (700px and below) uses the same design, one card per row, with a
   smaller circle (--cs, the circle size in % of the card width). */
.svc-tile--mixed-use        { --svc-line: #ddc2b6; }
.svc-tile--town-centres     { --svc-line: #99b2e6; }
.svc-tile--asset-management     { --svc-line: #f8a539; }
.svc-tile--meanwhile        { --svc-line: #cbb7e2; }
.svc-tile--surveying        { --svc-line: #99dcd0; }
.svc-tile--sales-marketing  { --svc-line: #a6d39e; }
@media all {
  .svc-tiles .svc-tile.svc-tile--asset-management { --ink: #ad5000; } /* was #c15b01, deepened for readability 30 Oct (Paul) */
  .svc-tiles .svc-tile.svc-tile--meanwhile    { --ink: #5c3a90; }
  .svc-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 1.7vw, 1.5rem); /* was clamp(1.75rem, 3.3vw, 3rem): wider cards (30 Oct, Paul) */
    row-gap: clamp(2.25rem, 4vw, 3.75rem);
  }
  .svc-tiles .svc-tile {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    /* Text moved closer to the left line (30 Oct, Paul): left padding 8.5%
       (was 12.66%); right 9% (was 12%, cards widened 30 Oct). Then more
       room both sides (30 Oct, Paul): left 10.5%, right 13%, so the text
       sits evenly between the frame lines. */
    padding: 16.2% 13% 7.2% 10.5%;
    /* 1% of the card's full width (cqi counts only the box inside the padding). */
    --u: calc(100cqi / 76.5);
    --cs: 29.1; /* circle size, % of the card width */
    --lt: 27.7; /* right line starts just below the circle */
    --dt: 32.85; /* second dot (top edge) */
  }
  /* The frame: left side from the top dot, the bottom with rounded corners,
     and the right side from the second dot down (clipped above it). */
  .svc-tiles .svc-tile::before {
    content: "";
    position: absolute;
    left: calc(calc(3.27 * var(--u)) - 1.5px);
    right: calc(calc(5.6 * var(--u)) - 1.5px);
    top: calc(8 * var(--u));
    bottom: 0;
    border: 3px solid var(--svc-line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, calc(100% - 6px) calc(var(--lt) * var(--u)), 100% calc(var(--lt) * var(--u)), 100% 100%, 0 100%);
    pointer-events: none;
  }
  /* The two dots. */
  .svc-tiles .svc-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(closest-side, var(--svc-line) calc(100% - 1px), transparent 100%) calc(0.02 * var(--u)) calc(4.75 * var(--u)) / calc(6.5 * var(--u)) calc(6.5 * var(--u)) no-repeat,
      radial-gradient(closest-side, var(--svc-line) calc(100% - 1px), transparent 100%) calc(91.55 * var(--u)) calc(var(--dt) * var(--u)) / calc(5.7 * var(--u)) calc(5.7 * var(--u)) no-repeat;
    pointer-events: none;
  }
  /* The circle with the white icon. */
  .svc-tiles .svc-tile .svc-tile-icon {
    top: 0;
    right: 0;
    width: calc(var(--cs) * var(--u));
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--svc-line);
    -webkit-mask: none;
    mask: none;
  }
  .svc-tiles .svc-tile .svc-tile-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64%; /* was 52% (30 Oct, Paul: bigger icons, same circles) */
    aspect-ratio: 409 / 376;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
  }
  .svc-tiles .svc-tile.svc-tile--mixed-use .svc-tile-icon::before        { -webkit-mask-image: url('../img/icons/tab/mixed-use.png'); mask-image: url('../img/icons/tab/mixed-use.png'); }
  .svc-tiles .svc-tile.svc-tile--asset-management .svc-tile-icon::before { -webkit-mask-image: url('../img/icons/tab/asset-management.png'); mask-image: url('../img/icons/tab/asset-management.png'); }
  .svc-tiles .svc-tile.svc-tile--town-centres .svc-tile-icon::before     { -webkit-mask-image: url('../img/icons/tab/town-centre.png'); mask-image: url('../img/icons/tab/town-centre.png'); }
  .svc-tiles .svc-tile.svc-tile--meanwhile .svc-tile-icon::before        { -webkit-mask-image: url('../img/icons/tab/meanwhile-matters.png'); mask-image: url('../img/icons/tab/meanwhile-matters.png'); }
  .svc-tiles .svc-tile.svc-tile--surveying .svc-tile-icon::before        { -webkit-mask-image: url('../img/icons/tab/surveying.png'); mask-image: url('../img/icons/tab/surveying.png'); }
  .svc-tiles .svc-tile.svc-tile--sales-marketing .svc-tile-icon::before  { -webkit-mask-image: url('../img/icons/tab/sales-marketing.png'); mask-image: url('../img/icons/tab/sales-marketing.png'); }
  .svc-tiles .svc-tile h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(0.95rem, calc(5.06 * var(--u)), 1.5rem);
    line-height: 1.2;
    margin: 0 0 calc(4.9 * var(--u));
    padding-right: 0;
  }
  /* Text wraps around the circle (30 Oct, Paul: smaller title gap, and any
     text that would hit a circle breaks to the line below). An invisible
     float shaped like the circle plus a 4% clear margin sits at the top
     right; the title and the lines beside the circle wrap round its curve,
     everything below runs full width. */
  .svc-tiles .svc-tile h2::before {
    content: "";
    float: right;
    width: calc((var(--cs) + 4) * var(--u));
    height: calc((var(--cs) - 12.2) * var(--u));
    margin-right: calc(-13 * var(--u)); /* = minus the card's right padding */
    shape-outside: circle(calc((var(--cs) / 2 + 4) * var(--u)) at calc((var(--cs) / 2 + 4) * var(--u)) calc((var(--cs) / 2 - 16.2) * var(--u)));
  }
  .svc-tiles .svc-tile-list {
    /* Bullets evenly spaced, description straight after the list (30 Oct,
       Paul: no irregular spacing; the Mixed-Use and Sales & Marketing
       bullets were lengthened instead). Lines break evenly. */
    margin: 0;
    padding-left: calc(4.85 * var(--u));
    font-size: clamp(0.875rem, calc(3.6 * var(--u)), 1.0625rem);
    line-height: 1.28;
  }
  .svc-tiles .svc-tile-list li { padding-left: 0; text-wrap: pretty; }
  /* Bullets are small ticks in the service's text colour (30 Oct, Paul). */
  .svc-tiles .svc-tile-list { list-style: none; }
  .svc-tiles .svc-tile-list li { position: relative; }
  .svc-tiles .svc-tile-list li::before {
    content: "";
    position: absolute;
    left: calc(-4.85 * var(--u) + 0.12em);
    top: 0.2em;
    width: 0.3em;
    height: 0.62em;
    /* Text colour, original thickness (30 Oct, Paul: the thicker pastel
       ticks were tried and dropped). */
    border: solid var(--ink);
    border-width: 0 0.15em 0.15em 0;
    transform: rotate(40deg);
  }
  /* Small space between bullets (30 Oct, Paul). */
  .svc-tiles .svc-tile-list li + li { margin-top: 0.4em; }
  .svc-tiles .svc-tile-desc { text-wrap: pretty; }
  .svc-tiles .svc-tile-desc {
    margin: calc(3.6 * var(--u)) 0 0;
    padding-right: 0;
    font-size: clamp(0.875rem, calc(3.6 * var(--u)), 1.0625rem);
    line-height: 1.28;
  }
}
/* Phone, 700px and below (30 Oct, Paul: same format and wording as desktop
   and tablet, circle reduced for the narrower card). One card per row. */
@media (max-width: 700px) {
  .svc-tiles { grid-template-columns: minmax(0, 1fr); row-gap: 2.25rem; }
  .svc-tiles .svc-tile { --cs: 22; --lt: 22.3; --dt: 27.4; }
}
@media (min-width: 701px) and (max-width: 1199px) {
  .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Home page services, all views (30 Oct 2026, Paul): colours matched to the
   new Services page cards. Titles, text, icons and phone buttons use the
   same inks (Town Centre Strategies now orange #ad5000 (first #c15b01), Meanwhile Matters
   #5c3a90); on desktop and tablet the card border is the service's pastel
   line colour, and the Town Centre Strategies fill is a pale orange to suit
   (the other fills are unchanged). */
.services-grid .service-card--mixed-use        { --svc-line: #ddc2b6; }
.services-grid .service-card--town-centres     { --svc-line: #99b2e6; }
.services-grid .service-card--asset-management     { --svc-line: #f8a539; --svc-ink: #ad5000; }
.services-grid .service-card--meanwhile        { --svc-line: #cbb7e2; --svc-ink: #5c3a90; }
.services-grid .service-card--surveying        { --svc-line: #99dcd0; }
.services-grid .service-card--sales-marketing  { --svc-line: #a6d39e; }
@media (min-width: 701px) {
  .services-grid .service-card--asset-management { --svc-tint: #fdecd5; }
  .services-grid .service-card,
  .services-grid .service-card:hover,
  .services-grid .service-card:focus-visible { border-color: var(--svc-line); }
}

/* Home page services, phone (30 Oct 2026, Paul): "More Details" buttons in
   each service's pastel circle colour, matching the Services page circles,
   with dark text so the small capitals stay readable (the service inks on
   these pastels would be too faint, orange only 2.2:1). Pressing darkens
   the pastel slightly. */
@media (max-width: 700px) {
  .services-grid .service-card .service-more-btn {
    background: var(--svc-line);
    border-color: var(--svc-line);
    color: #1b1a16;
  }
  .services-grid .service-card:hover .service-more-btn,
  .services-grid .service-card:active .service-more-btn,
  .services-grid .service-card:focus-visible .service-more-btn {
    background: color-mix(in srgb, var(--svc-line) 80%, #1b1a16);
    border-color: color-mix(in srgb, var(--svc-line) 80%, #1b1a16);
  }
}

/* Footer, desktop only (2 Nov 2026, Paul): logo as wide as the
   PLAN: DELIVER: MANAGE line below it (line about 12.36em of its font;
   logo 800 x 172, so height = 12.36 / 4.651 = 2.658em). */
@media (min-width: 981px) {
  .footer-brand-logo .logo-img-wrap { height: calc(var(--text-lg) * 2.658); }
}

/* ---------- Projects page: client logos top right of the photo, all views (3 Nov 2026) ----------
   Same rule as the "Who we work with" partner grid: every logo file is the same 628 x 147 canvas with its
   padding already balanced, shown at one fixed size; "Smaller" logos (Notion Size) at 91%, the grid's
   is-compact ratio (162 of 178px wide). White copies in assets/img/clients/white/, cropped at the sides only (full 147px height kept, so the scale is unchanged). */
.project-involved .pi-media {
  position: relative;
  display: block;
}
.project-involved .pi-media img.pi-logo {
  position: absolute;
  top: 0;
  right: 0;
  margin: calc(2% + 5px) 4% 0 0; /* % of the photo width, plus 5px lower (Paul 3 Nov); files are cropped at the sides only, so every logo's right edge lines up */
  width: var(--lw, 38%); /* 38% x (cropped width / 628), the partner grid scale; 34.6% base for is-compact */
  height: auto;
  aspect-ratio: var(--ar, 628 / 147);
  object-fit: contain;
  background: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 2;
}
.project-involved .pi-media img.pi-logo.is-compact {
  margin-top: calc(2.4% + 5px); /* same vertical centre as a standard logo: half of (38% - 34.6%) x 147/628 = 0.4% */
}
/* Soft black fade at the top of logo photos so the white logos stand out */
.project-involved .pi-media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 1;
}

/* How We Work infographic, desktop only (4 Nov 2026, Paul, from his
   PDM.png design): a line icon and a chevron (shadow behind it, towards the
   icon) before each stage (Stage tag, title, copy). Desktop (981px and up):
   proportions taken from PDM.png (1543px wide) in container units of the
   section: icon 4.67cqw, chevron 2.6 x 11.9cqw. Text block (tag 0.95cqw,
   title 3.75cqw, copy 1.22cqw on 3 lines) centred on the chevron and kept
   within its height (5 Nov 2026, Paul: larger text, title no longer tied
   to the chevron point). Plan copy ends "shapes commercial strategy"
   on desktop. Tablet and phone stay as before (5 Nov 2026, Paul: tablet back
   to how it was): icon and chevron hidden, "from day one" kept. */
.method-icon,
.method-chevron,
.method-card p br.method-br { display: none; }
@media (max-width: 980px) {
  .method-card p span.method-tail { display: inline; }
}
@media (min-width: 981px) {
  .method-icon,
  .method-chevron { display: block; color: inherit; }
  .method-icon svg,
  .method-chevron svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .method-chevron { filter: drop-shadow(-4px 0 3px rgba(60, 30, 10, 0.30)); }
  .method-card p span { display: inline; white-space: normal; }
  .method-card p span.method-tail { display: none; }
  .method-card,
  .method-card:nth-child(n) {
    display: grid;
    align-items: start;
    align-content: start;
    justify-content: stretch;
  }
  .method-card > p { margin-top: 0; }
}
@media (min-width: 981px) {
  .method-infographic { container-type: inline-size; }
  .method-grid { column-gap: 2.6cqw; }
  .method-card,
  .method-card:nth-child(n) {
    grid-template-columns: 4.67cqw 2.6cqw minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    align-content: stretch;
    column-gap: 0;
    row-gap: 0;
  }
  .method-card .method-heading { display: contents; }
  .method-icon { grid-column: 1; grid-row: 1 / 6; align-self: center; width: 4.67cqw; height: 4.67cqw; }
  .method-chevron { grid-column: 2; grid-row: 1 / 6; align-self: center; width: 2.6cqw; height: 11.9cqw; margin-left: 0.5cqw; }
  .method-card .method-stage { grid-column: 3; grid-row: 2; align-self: end; margin: 0 0 var(--mw-tag-gap, 1.01cqw) 2.2cqw; font-size: var(--mw-tag-fs, 0.95cqw); padding: 0.3em 0.9em; }
  .method-card h3,
  .method-grid .method-card h3 { grid-column: 3; grid-row: 3; margin-left: 2.2cqw; font-size: var(--mw-h3-fs, 3.75cqw); line-height: 1; }
  .method-card > p { grid-column: 3; grid-row: 4; align-self: start; margin: var(--mw-p-gap, 0.71cqw) 0 0 2.2cqw; font-size: var(--mw-p-fs, 1.22cqw); line-height: 1.3; }
  .method-card > p { white-space: nowrap; }
  .method-card p span { display: inline; white-space: nowrap; }
  .method-card p br.method-br { display: inline; }
}

/* Home page Services cards, desktop only (5 Nov 2026, Paul): text and
   button about 10% smaller, icons unchanged, and more space between the
   cards (40px, was 24px). Tablet and phone unchanged. */
@media (min-width: 981px) {
  .services-grid { column-gap: 40px; row-gap: 40px; }
  .services-grid .service-card h3 { font-size: calc(var(--text-lg) * 0.9); }
  .services-grid .service-card-panel p { font-size: calc(clamp(0.875rem, 5.1cqi, 1rem) * 0.93); }
  .services-grid .service-card .service-more-btn { font-size: calc(0.72rem * 0.9); }
}

/* Contact page property dropdown, phone only (8 Nov 2026, Paul, option 2):
   14px text, except on iPhone and iPad (WebKit with -webkit-touch-callout),
   which keep 16px so Safari does not zoom the page when it is tapped. */
@media (max-width: 700px) {
  .enquiry-form select#propAddress { font-size: 14px; }
  @supports (-webkit-touch-callout: none) {
    .enquiry-form select#propAddress { font-size: 16px; }
  }
}

/* ---------- Individual property page (property.html, 9 Nov 2026) ---------- */
.property-detail-page { font-family: var(--font-body); }
.property-detail-page .wrap { max-width: var(--content-wide); }
.pp { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65; color: var(--color-text); }
.pp *, .pp h1, .pp h2, .pp h3 { font-family: var(--font-body); }
.pp-missing { padding-block: var(--space-12); color: var(--color-text-muted); }
.pp-top { margin-bottom: var(--space-6); }
.pp-bottom { margin-top: var(--space-10); }
.pp-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  background: #E10600; color: #fff; text-decoration: none;
  font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.02em;
  border-radius: var(--radius-md); transition: background 0.18s ease;
}
.pp-back:hover, .pp-back:focus-visible { background: #B80500; color: #fff; }
.pp-back svg { width: 18px; height: 18px; flex: none; }
.pp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); margin-bottom: var(--space-6); }
.pp-head-main { min-width: 0; }
.pp-eyebrow { margin: 0 0 0.35rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.pp-title { margin: 0; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.15; font-weight: 700; color: var(--color-text); overflow-wrap: anywhere; }
.pp-sub { margin: 0.4rem 0 0; color: var(--color-text-muted); font-size: var(--text-base); }
.pp-price { text-align: right; flex: none; }
.pp-status { display: inline-block; padding: 0.2rem 0.6rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius-sm); background: #448361; color: #fff; }
.pp-status.is-under-offer { background: #CB912F; }
.pp-status.is-let { background: #787774; }
.pp-status.is-withdrawn { background: #D44C47; }
.pp-rent { margin: 0.5rem 0 0; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 700; line-height: 1.2; }
.pp-rent span { font-size: var(--text-base); font-weight: 400; color: var(--color-text-muted); }
.pp-perft { margin: 0.2rem 0 0; color: var(--color-text-muted); font-size: var(--text-base); }

/* Gallery mosaic: one large tile plus up to four small ones */
.pp-gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.4 / 1; margin-bottom: var(--space-6); }
.pp-tile { position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; overflow: hidden; background: var(--color-divider); cursor: zoom-in; border-radius: var(--radius-md); }
.pp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.pp-tile:hover img { transform: scale(1.03); }
.pp-tile.is-plan { background: #fff; }
.pp-tile.is-plan img { object-fit: cover; object-position: center; padding: 0; }
.pp-tile:first-child { grid-row: 1 / span 2; }
.pp-tile.is-empty { grid-column: 1 / -1; cursor: default; }
.pp-tile.is-extra { display: none; } /* phone swipe gallery only (13 Nov 2026) */
.pp-tile-label { position: absolute; left: 10px; bottom: 10px; padding: 0.2rem 0.55rem; background: rgba(20,24,29,0.72); color: #fff; font-size: var(--text-xs); font-weight: 700; border-radius: var(--radius-sm); }
.pp-tiles-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pp-tiles-1 .pp-tile:first-child { grid-row: auto; }
.pp-tiles-2 { grid-template-columns: 2fr 1fr; }
.pp-tiles-2 .pp-tile:nth-child(2) { grid-row: 1 / span 2; }
.pp-tiles-3 { grid-template-columns: 2fr 1fr; }
.pp-tiles-4 { grid-template-columns: 2fr 1fr 1fr; }
.pp-tiles-4 .pp-tile:nth-child(2) { grid-row: 1 / span 2; }
.pp-actions-inline { display: none; }

/* Layout: content plus sticky sidebar */
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-10); align-items: start; }
.pp-main { min-width: 0; }
.pp-side { position: sticky; top: calc(var(--header-offset, 88px) + 16px); display: grid; gap: var(--space-5); }
.pp-spec { display: grid; grid-template-columns: repeat(var(--cols, 5), auto); margin: 0 0 var(--space-8); background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.pp-spec-cell { padding: 0.9rem 1rem; border-right: 1px solid var(--color-divider); min-width: 0; }
.pp-spec-cell:last-child { border-right: 0; }
.pp-spec dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.pp-spec dd { margin: 0.2rem 0 0; font-size: var(--text-base); font-weight: 700; overflow-wrap: break-word; }
/* The site-wide section padding (128px desktop) must not apply here. */
.pp .pp-section { padding-block: 0; }
.pp-section { margin-top: calc(var(--space-8) + 1lh); }
.pp-section:first-of-type { margin-top: 0; }
.pp-section h2 { margin: 0 0 var(--space-3); padding-bottom: var(--space-2); border-bottom: 2px solid var(--color-header-bg); font-size: var(--text-lg); font-weight: 700; color: var(--color-text); }
.pp-section h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-base); font-weight: 700; }
.pp-section p { margin: 0 0 var(--space-3); font-size: var(--text-base); max-width: 72ch; }
.pp-section ul { margin: 0 0 var(--space-4); padding-left: 1.2rem; font-size: var(--text-base); max-width: 72ch; }
.pp-section li { margin-bottom: 0.3rem; }
.pp-features { list-style: none; padding-left: 0 !important; display: grid; gap: 0.35rem; margin-bottom: var(--space-5) !important; }
.pp-features li { position: relative; padding-left: 1.4rem; margin: 0; font-weight: 600; }
.pp-features li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 8px; height: 8px; background: #E10600; border-radius: 1px; }
.pp-details { margin: 0; }
.pp-detail-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: var(--space-4); padding: 0.65rem 0; border-bottom: 1px solid var(--color-divider); font-size: var(--text-base); }
.pp-detail-row dt { font-weight: 700; font-size: var(--text-base); color: var(--color-text); }
.pp-detail-row dd { margin: 0; font-size: var(--text-base); overflow-wrap: anywhere; }
.pp-detail-row dd ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.pp-map { height: 380px; background: var(--color-divider); border-radius: var(--radius-md); overflow: hidden; z-index: 0; position: relative; }
.pp-map-note { margin: 0; padding: var(--space-6); color: var(--color-text-muted); }
.pp-map-links { margin-top: var(--space-2) !important; font-size: var(--text-sm) !important; }
.pp-map-links a { color: var(--color-header-bg); font-weight: 700; }
/* Open in Google Maps button with the Maps pin (13 Nov 2026, Paul, all views) */
.pp-map-links a.pp-btn-map { display: inline-flex; gap: 0.6rem; margin-top: var(--space-1); padding: 0.6rem 1.1rem; background: #F5F1E8; color: var(--color-header-bg); border: 1px solid var(--color-divider); }
.pp-map-links a.pp-btn-map:hover { background: #EDE5D6; color: var(--color-header-bg); }
.pp-gmaps-icon { width: auto; height: 22px; flex: none; }
.pp-pin span { display: block; width: 26px; height: 26px; background: #E10600; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.pp .leaflet-container,
.pp .leaflet-container a,
.pp .leaflet-bar a,
.pp .leaflet-control-attribution { font-family: var(--font-body); }

/* Sidebar cards */
.pp-card { padding: var(--space-6); background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.pp-card h2 { margin: 0 0 var(--space-3); font-size: var(--text-lg); font-weight: 700; }
.pp-viewing { background: var(--color-header-bg); border-color: var(--color-header-bg); color: #F5F1E8; }
.pp-viewing h2 { color: #fff; }
.pp-viewing-intro { margin: 0 0 var(--space-4); font-size: var(--text-sm); color: #E6DCCB; }
.pp-contact { padding: var(--space-3) 0; border-top: 1px solid rgba(255,255,255,0.18); display: grid; gap: 0.1rem; }
.pp-contact-name { margin: 0; font-weight: 700; color: #fff; }
.pp-contact-name span { font-weight: 400; font-size: var(--text-sm); color: #D9CCB6; }
.pp-contact a { color: #F5F1E8; text-decoration: none; font-size: var(--text-base); overflow-wrap: anywhere; }
.pp-contact a:hover { text-decoration: underline; }
.pp-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: var(--space-3); padding: 0.6rem 1rem; font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.03em; text-decoration: none; text-align: center; border-radius: var(--radius-md); transition: background 0.18s ease, color 0.18s ease; }
.pp-btn-light { background: #F5F1E8; color: var(--color-header-bg); }
.pp-btn-light:hover { background: #fff; color: var(--color-header-bg); }
.pp-btn-red { background: #E10600; color: #fff; }
.pp-btn-red:hover { background: #B80500; color: #fff; }
.pp-office { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: #E6DCCB; }
.pp-office a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pp-also h2 { font-size: var(--text-base); }
.pp-mini { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-top: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; }
.pp-mini:hover strong { text-decoration: underline; }
.pp-mini-img { display: block; width: 76px; height: 54px; overflow: hidden; background: var(--color-divider); border-radius: var(--radius-sm); }
.pp-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-mini-text { display: grid; min-width: 0; font-size: var(--text-sm); line-height: 1.4; }
.pp-mini-text strong { font-weight: 700; overflow-wrap: anywhere; }
.pp-mini-text span { color: var(--color-text-muted); }
.pp-disclaimer { margin: var(--space-10) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--color-divider); font-size: var(--text-xs); line-height: 1.6; color: var(--color-text-muted); max-width: none; }

/* Lightbox */
.pp-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(12,10,8,0.92); }
.pp-lightbox[hidden] { display: none; }
html.pp-lb-open { overflow: hidden; }
.pp-lb-figure { margin: 0; max-width: min(92vw, 1400px); max-height: 88vh; display: grid; gap: 0.6rem; justify-items: center; }
.pp-lb-figure img { max-width: 100%; max-height: 80vh; object-fit: contain; background: #fff; }
.pp-lb-figure figcaption { color: #F5F1E8; font-family: var(--font-body); font-size: var(--text-sm); }
.pp-lb-close, .pp-lb-prev, .pp-lb-next { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; }
.pp-lb-close:hover, .pp-lb-prev:hover, .pp-lb-next:hover { background: rgba(255,255,255,0.28); }
.pp-lb-close { top: 16px; right: 16px; }
.pp-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pp-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.pp-lb-prev svg, .pp-lb-next svg { width: 26px; height: 26px; }

/* Tablet and phone */
@media (max-width: 980px) {
  .pp-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .pp-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .pp-actions-inline { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: calc(var(--space-2) * -1) 0 var(--space-6); }
  .pp-actions-inline .pp-btn { margin-top: 0; }
  .pp-actions-inline .pp-btn-light { background: var(--color-header-bg); color: #fff; }
  .pp-actions-inline .pp-btn-light:hover { background: var(--color-header-bg-active); }
}
@media (max-width: 700px) {
  .pp-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .pp-price { text-align: left; }
  .pp-gallery { display: flex; aspect-ratio: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--space-5) * -1); padding-inline: var(--space-5); scrollbar-width: none; }
  .pp-gallery::-webkit-scrollbar { display: none; }
  .pp-tile { flex: 0 0 86%; height: auto; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .pp-tiles-1 .pp-tile { flex-basis: 100%; }
  .pp-tile.is-extra { display: block; }
  .pp-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-spec-cell { border-bottom: 1px solid var(--color-divider) !important; border-right: 1px solid var(--color-divider) !important; }
  .pp-spec-cell:nth-child(2n) { border-right: 0 !important; }
  .pp-spec-cell:nth-last-child(-n+2):nth-child(2n+1), .pp-spec-cell:nth-last-child(-n+2):nth-child(2n+1) ~ .pp-spec-cell { border-bottom: 0 !important; }
  .pp-spec-cell:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0 !important; }
  .pp-detail-row { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .pp-map { height: 300px; }
  .pp-side { grid-template-columns: minmax(0, 1fr); }
  .pp-lb-prev, .pp-lb-next { top: auto; bottom: 18px; transform: none; }
  .pp-lb-prev { left: calc(50% - 60px); }
  .pp-lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .pp-tile img, .pp-back, .pp-btn { transition: none; }
}

/* Property cards, all views (9 Nov 2026, Paul): the whole card opens the
   full page listing. "View full details" is a full-width brown strip under
   the details; its ::after covers the card so a click anywhere opens it.
   Download PDF sits above the cover and still opens the PDF. */
.property-card { position: relative; }
.property-card-link {
  display: flex; align-items: center; justify-content: center;
  margin-top: auto; padding: 0.9em 1rem;
  background: var(--color-header-bg); color: #fff;
  font-family: inherit; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em;
  line-height: 1.2; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border-radius: 0 0 4px 4px;
  transition: background 0.18s ease;
}
/* (9 Nov 2026, Paul: all caps like the other card buttons, smaller, gap above matches the address gap)
   Same type as .property-status and .property-pdf. The gap above the strip is the
   body bottom padding, set equal to the body top padding (the address gap). */
.property-card-body { padding-bottom: 0.82rem; }
@media (min-width: 701px) {
  .property-card-body { padding-bottom: 0.9rem; }
  .property-card { container-type: inline-size; }
  .property-card-link { font-size: clamp(0.625rem, 2.6cqi, 0.9rem); }
}
.property-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.property-card:hover .property-card-link,
.property-card-link:focus-visible { background: var(--color-header-bg-active); color: #fff; }
.property-card-link:focus-visible { outline: 3px solid #E10600; outline-offset: 2px; }
.property-card .property-pdf { z-index: 2; }
.property-card { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .property-card-link { transition: none; } }

/* Two-line address (9 Nov 2026): street line, then area and postcode */
.pp-title-line { display: block; }
.pp-title-line:first-child { font-size: 1.5em; line-height: 1.1; }
/* Size breakdown by floor (9 Nov 2026): figures line up under each other */
.pp-size-table { display: inline-grid; grid-template-columns: auto auto auto auto; column-gap: 0; }
.pp-size-row > span { padding-right: 0.45rem; }
.pp-size-row > span:last-child { padding-right: 0; }
.pp-size-row { display: contents; }
.pp-size-row > .pp-size-label { padding-right: 1rem; }
.pp-size-num { text-align: right; font-variant-numeric: tabular-nums; }
.pp-size-m { font-variant-numeric: tabular-nums; }
.pp-size-row.is-total > span { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--color-header-bg); font-weight: 700; }
.pp-size-note { display: block; margin-top: 0.35rem; }

/* Property page, tablet only (9 Nov 2026, Paul): Arrange a viewing runs full
   width; heading and intro across the top, then the agents on the left and the
   buttons and office phone on the right; Also at and Nearby sit side by side below (Also at on the left). */
@media (min-width: 701px) and (max-width: 980px) {
  .pp-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-side > .pp-viewing { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-8); align-items: start; }
  .pp-side > .pp-viewing + .pp-also:last-child { grid-column: 1 / -1; }
  .pp-viewing-actions > .pp-btn:first-child { margin-top: 0; }
  .pp-side > .pp-viewing > h2, .pp-side > .pp-viewing > .pp-viewing-intro { grid-column: 1 / -1; }
  .pp-side > .pp-viewing > .pp-viewing-info { justify-self: start; width: max-content; max-width: 100%; }
  .pp-side > .pp-viewing > .pp-viewing-actions { align-self: end; }
}

/* ---------- Services page: + cards, all views (15 Nov 2026, Paul) ----------
   From Paul's new-services mockup. Each service: a thin frame with rounded
   corners, a solid title bar with the title in white, the short
   description, then the tick list. A square + button sits on the bottom
   right corner of the frame (the frame stops short of it, cut by a white
   ring round the button). Pressing + opens the full description below the
   list and the button becomes -. Colours are darker versions of the
   current pastel lines (frame, bar, button; all at least 4.6:1 against
   white) with the text a darker version of the current ink; to be refined.
   Two independent columns from 861px, so opening a card moves only the
   cards below it in the same column (a script keeps the closed cards in
   each row the same height); one column below 861px. */
.svcx-grid { margin-top: var(--space-10); }
.svcx--mixed-use        { --fx: #9d5f46; --tx: #622208; }
/* 15 Nov 2026 (Paul): Asset Management and Town Centre colours swapped on Services and Home, all views.
   Every colour rule for the two services had its slug exchanged; icons are unchanged. */
.svcx--town-centres     { --fx: #5974b0; --tx: #31487a; }
.svcx--asset-management     { --fx: #b45806; --tx: #8a4000; }
.svcx--meanwhile        { --fx: #8366ad; --tx: #4a2e73; }
.svcx--surveying        { --fx: #1c7e6d; --tx: #0b5d4e; }
.svcx--sales-marketing  { --fx: #4c7e42; --tx: #2b5422; }
.svcx {
  --btn: 2rem;
  position: relative;
  scroll-margin-top: 6.5rem;
  border: 3px solid var(--fx);
  border-radius: 10px;
  background: #ffffff;
  color: var(--tx);
  padding: 1.35rem 1.1rem 1.6rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.12vw, 1.0625rem);
  line-height: 1.24;
}
.svcx-main { display: flow-root; }
.svcx .svcx-title {
  margin: 0 0 1.05em;
  padding: 0.42em 0.55em 0.45em;
  background: var(--fx);
  color: #ffffff;
  font-family: var(--font-body-nunito, 'Nunito Sans', sans-serif);
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
.svcx-desc,
.svcx-list,
.svcx-more-inner { padding-inline: 0.6rem; }
.svcx-desc { margin: 0; color: var(--tx); text-wrap: pretty; }
/* Ticks in the text colour; no extra space between bullets (mockup). */
.svcx-list {
  list-style: none;
  margin: 1.2em 0 0;
  padding-left: calc(0.6rem + 1.15em);
}
.svcx-list li { position: relative; text-wrap: pretty; }
.svcx-list li::before {
  content: "";
  position: absolute;
  left: calc(-1.15em + 0.12em);
  top: 0.2em;
  width: 0.3em;
  height: 0.62em;
  border: solid var(--tx);
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(40deg);
}
/* The full description: opens smoothly below the list. */
.svcx-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms ease;
}
.svcx.is-open .svcx-more { grid-template-rows: 1fr; }
.svcx-more-inner { min-height: 0; overflow: hidden; }
.svcx-more-inner p { margin: 0; line-height: 1.4; text-wrap: pretty; }
.svcx-more-inner p:first-child { margin-top: 1.2em; }
.svcx-more-inner p + p { margin-top: 0.8em; }
/* The + / - button, centred on the bottom right corner of the frame. */
.svcx-toggle {
  position: absolute;
  right: calc(var(--btn) / -2 - 1.5px);
  bottom: calc(var(--btn) / -2 - 1.5px);
  width: var(--btn);
  height: var(--btn);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--fx);
  box-shadow: 0 0 0 0.6rem #ffffff;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.svcx-toggle::before,
.svcx-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 3.5px;
  border-radius: 1px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;
}
.svcx-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.svcx.is-open .svcx-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
/* Card borders in the home page services card border colours (15 Nov
   2026, Paul); title bar and button keep the darker colour. */
.svcx--mixed-use        { --bx: #ddc2b6; }
.svcx--town-centres     { --bx: #99b2e6; }
.svcx--asset-management     { --bx: #eac086; } /* was #f8a539, too vibrant, then #eecda0 (15 Nov, Paul): the pale orange fill, darker */
.svcx--meanwhile        { --bx: #cbb7e2; }
.svcx--surveying        { --bx: #99dcd0; }
.svcx--sales-marketing  { --bx: #a6d39e; }
.svcx { border-color: var(--bx, var(--fx)); }
.svcx-toggle:hover { background: color-mix(in srgb, var(--fx) 82%, #000000); }
.svcx-toggle:focus-visible { outline: 2px solid var(--fx); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .svcx-more,
  .svcx-toggle,
  .svcx-toggle::before,
  .svcx-toggle::after { transition: none; }
}
@media (min-width: 861px) {
  .svcx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 3.6vw, 3.25rem);
    align-items: start;
  }
  .svcx-col { display: flex; flex-direction: column; gap: clamp(2.5rem, 3.4vw, 3rem); }
  .svcx { padding: 1.5rem 1.15rem 1.75rem; }
}
/* One column: cards back in service order. */
@media (max-width: 860px) {
  .svcx-grid { display: flex; flex-direction: column; gap: 2.5rem; }
  .svcx-col { display: contents; }
  .svcx { order: var(--o); }
}
@media (max-width: 700px) {
  .svcx-grid { margin-top: var(--space-8); gap: 2.25rem; padding-right: calc(var(--btn) / 2 + 2px); }
  .svcx { padding: 1.15rem 0.85rem 1.45rem; }
  .svcx-desc,
  .svcx-list,
  .svcx-more-inner { padding-inline: 0.35rem; }
  .svcx-list { padding-left: calc(0.35rem + 1.15em); }
}

/* Town Centre Strategies border, Home page cards (701px+), 15 Nov 2026
   (Paul): #f8a539 was too vibrant; now the card's pale orange fill
   (#fdecd5) darker (first #eecda0, then #eac086), the same as the Services page card border.
   The phone More Details button keeps #f8a539. */
@media (min-width: 701px) {
  .services-grid .service-card--asset-management,
  .services-grid .service-card--asset-management:hover,
  .services-grid .service-card--asset-management:focus-visible { border-color: #eac086; }
}

/* Home page Available Properties (15 Nov 2026, Paul): replaces the Projects
   gallery. Desktop and tablet only (phone keeps no section here, as before).
   Cards are the Properties page cards: three across from 1200px, the first
   two across from 701px to 1199px. Picked at random by home-properties.js. */
@media (min-width: 701px) and (max-width: 980px) {
  #projects.home-props { display: block; }
}
@media (max-width: 700px) {
  #projects.home-props { display: none; }
}
.home-props .home-props-list { margin-top: var(--space-2); }
.home-props .property-address { margin: 0; }
@media (min-width: 701px) and (max-width: 1199px) {
  .home-props .home-props-list .property-card:nth-child(n+3) { display: none; }
}
.home-props .home-props-more { margin-top: clamp(1.5rem, 2.4vw, 2.25rem); text-align: center; }

/* Home page Headline Stats, desktop and tablet (15 Nov 2026, Paul's stats
   mockup): the Plan Deliver Manage format. Each stat has a line icon, the
   shadowed chevron, then the figure and a two-line label, in the stats
   teals. Four across on desktop (981px+), 2 by 2 on tablet (701-980px).
   Phone keeps its plain list (.stats-list-mobile), unchanged. Sizes are
   in cqw of the stats block so the layout scales with the width. */
.stats-chevs { display: none; }
@media (min-width: 701px) {
  .stats-band .stats-infographic { display: none; }
  .stats-chevs {
    --ic: 4.5cqw; --cw: 2.6cqw; --ch: 11.5cqw; --cg: 1cqw; --tg: 1.6cqw;
    --ff: 3.4cqw; --lf: max(12px, 1.15cqw);
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.5cqw;
    margin-top: 64px;
  }
  .stat-chev {
    display: grid;
    grid-template-columns: var(--ic) var(--cw) minmax(0, 1fr);
    align-items: center;
    min-width: 0;
  }
  /* Colours from Paul's stats.png mockup (15 Nov 2026): navy, green, amber, red. */
  .stat-chev:nth-child(1) { color: #041f66; }
  .stat-chev:nth-child(2) { color: #1d7e22; }
  .stat-chev:nth-child(3) { color: #aa6800; }
  .stat-chev:nth-child(4) { color: #ae0000; }
  .stat-chev-icon { width: var(--ic); height: var(--ic); }
  .stat-chev-line {
    width: var(--cw); height: var(--ch); margin-left: var(--cg);
    filter: drop-shadow(-4px 0 3px rgba(0, 0, 0, 0.28));
  }
  .stat-chev-icon svg,
  .stat-chev-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .stat-chev-text { margin-left: calc(var(--tg) + var(--cg)); min-width: 0; }
  .stat-chev-figure {
    margin: 0; font-family: var(--font-body); font-size: var(--ff); font-weight: 700;
    line-height: 1; color: inherit; max-width: none; white-space: nowrap;
  }
  .stat-chev-label {
    margin: 0.55em 0 0; font-size: var(--lf); font-weight: 600; line-height: 1.3;
    color: inherit; max-width: none; white-space: nowrap;
  }
}
@media (min-width: 701px) and (max-width: 980px) {
  .stats-chevs {
    --ic: 8cqw; --cw: 4.4cqw; --ch: 19cqw; --cg: 1.6cqw; --tg: 2.6cqw;
    --ff: 6.2cqw; --lf: 2.2cqw;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4cqw; row-gap: 5cqw;
    margin-top: 48px;
  }
}

/* Phone Headline Stats list (15 Nov 2026, Paul): same wording and mockup
   colours as the desktop and tablet chevron stats. */
@media (max-width: 700px) {
  .stat-row:nth-child(1) { color: #041f66; }
  .stat-row:nth-child(2) { color: #1d7e22; }
  .stat-row:nth-child(3) { color: #aa6800; }
  .stat-row:nth-child(4) { color: #ae0000; }
}

/* Home link (#top) on the Home page (15 Nov 2026, Paul): on desktop and tablet
   the hero is fixed and the page content starts one screen down, so jumping
   to #top stopped just above Headline Stats. A large scroll margin makes the
   jump clamp to the very top of the page. All views (Paul: desktop and
   tablet first, then "sort phone as well"). */
#top { scroll-margin-top: 200vh; }

/* Infographic fonts (15 Nov 2026, Paul: "use Nunito Sans in both
   infographics"), desktop only. The Plan Deliver Manage stage titles move
   from Nunito to Nunito Sans, and the Headline Stats figure and label match
   the PDM title (3.75cqw, bold) and copy (1.22cqw, regular). Both sections
   are the same width, so the sizes match in pixels too. Stage titles in
   Title Case (Plan, Deliver, Manage), not capitals (Paul, same day). */
@media (min-width: 981px) {
  .method-card h3,
  .method-grid .method-card h3 { font-family: var(--font-body); text-transform: none; }
  .stats-chevs { --ff: 3.75cqw; --lf: 1.22cqw; }
  .stat-chev-label { font-weight: 400; }
}

/* Infographics on tablet and phone (15 Nov 2026, Paul: "change the
   infographics to match on all views. Let PDM sit under each other").
   Plan Deliver Manage gets the desktop format (line icon, shadowed chevron,
   Stage tag, title, copy) with the three stages stacked one under another.
   Headline Stats keep the chevron format (2 by 2 on tablet, stacked on
   phone; the phone plain list is retired). Both use the same sizes on each
   view: icon, chevron, title = figure, copy = label, in cqw of the section
   width (both sections are the same width). Titles in Nunito Sans, Title
   Case, as on desktop. */
@media (max-width: 980px) {
  .method-infographic,
  .stats-chevs {
    container-type: inline-size;
    --ic: 8cqw; --cw: 4.4cqw; --ch: 19cqw; --cg: 1.6cqw; --tg: 2.6cqw;
    --ff: 6.2cqw; --lf: 2.2cqw; --tag: 1.75cqw;
  }
  .method-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 5cqw; column-gap: 0; }
  .method-icon,
  .method-chevron { display: block; color: inherit; }
  .method-icon svg,
  .method-chevron svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .method-chevron { filter: drop-shadow(-4px 0 3px rgba(60, 30, 10, 0.30)); }
  .method-card,
  .method-card:nth-child(n) {
    display: grid;
    grid-template-columns: var(--ic) var(--cw) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    align-content: stretch;
    justify-content: stretch;
    column-gap: 0; row-gap: 0;
    min-height: var(--ch);
  }
  .method-card .method-heading { display: contents; }
  .method-icon { grid-column: 1; grid-row: 1 / 6; align-self: center; width: var(--ic); height: var(--ic); }
  .method-chevron { grid-column: 2; grid-row: 1 / 6; align-self: center; width: var(--cw); height: var(--ch); margin-left: var(--cg); }
  .method-card .method-stage { grid-column: 3; grid-row: 2; align-self: end; justify-self: start; margin: 0 0 0.6em calc(var(--tg) + var(--cg)); font-size: var(--tag); padding: 0.3em 0.9em; }
  .method-card h3,
  .method-grid .method-card h3 {
    grid-column: 3; grid-row: 3; margin: 0 0 0 calc(var(--tg) + var(--cg));
    font-family: var(--font-body); font-weight: 700; text-transform: none;
    font-size: var(--ff); line-height: 1;
  }
  .method-card > p { grid-column: 3; grid-row: 4; align-self: start; margin: 0.55em 0 0 calc(var(--tg) + var(--cg)); font-size: var(--lf); line-height: 1.3; max-width: none; }
  .method-card p span { display: inline; white-space: normal; }
  .method-card p br.method-br { display: none; }
}
@media (max-width: 700px) {
  .method-infographic,
  .stats-chevs {
    /* Chevron taller on phone so the four-line PDM copy stays within it;
       capped so wide phones (up to 700px) do not get oversized text. */
    --ic: min(13cqw, 55px); --cw: min(9.6cqw, 40px); --ch: min(44cqw, 185px);
    --cg: min(2.5cqw, 10px); --tg: min(3.5cqw, 15px);
    --ff: min(10cqw, 42px); --lf: min(4.3cqw, 18px); --tag: min(3.3cqw, 14px);
  }
  .method-grid { row-gap: 9cqw; }
  .stats-list-mobile { display: none !important; }
  .stats-chevs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 9cqw;
    margin-top: 40px;
  }
  .stat-chev {
    display: grid;
    grid-template-columns: var(--ic) var(--cw) minmax(0, 1fr);
    align-items: center;
    min-width: 0;
  }
  .stat-chev:nth-child(1) { color: #041f66; }
  .stat-chev:nth-child(2) { color: #1d7e22; }
  .stat-chev:nth-child(3) { color: #aa6800; }
  .stat-chev:nth-child(4) { color: #ae0000; }
  .stat-chev-icon { width: var(--ic); height: var(--ic); }
  .stat-chev-line { width: var(--cw); height: var(--ch); margin-left: var(--cg); filter: drop-shadow(-4px 0 3px rgba(0, 0, 0, 0.28)); }
  .stat-chev-icon svg,
  .stat-chev-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .stat-chev-text { margin-left: calc(var(--tg) + var(--cg)); min-width: 0; }
  .stat-chev-figure { margin: 0; font-family: var(--font-body); font-size: var(--ff); font-weight: 700; line-height: 1; color: inherit; max-width: none; white-space: nowrap; }
  .stat-chev-label { margin: 0.55em 0 0; font-size: var(--lf); font-weight: 600; line-height: 1.3; color: inherit; max-width: none; white-space: nowrap; }
}
/* Label weight matches the PDM copy (regular) on every view. */
.stat-chev-label { font-weight: 400; }

/* Plan Deliver Manage copy on phone (15 Nov 2026, Paul): Plan drops
   "from day one"; Manage uses shorter phone-only wording. Desktop and
   tablet unchanged. */
.method-card p span.method-copy-phone { display: none; }
/* Phone stats chevron: same width and line weight as the PDM chevron but
   shorter (its own drawing, so the arms keep the PDM thickness). */
.stat-chev-line svg.chev-phone { display: none; }
@media (max-width: 700px) {
  .stat-chev-line svg.chev-std { display: none; }
  .stat-chev-line svg.chev-phone { display: block; }
}
@media (max-width: 700px) {
  .method-card p span.method-tail { display: none; }
  .method-card p span.method-copy-phone { display: inline; }
  .method-card p span.method-copy-phone ~ span,
  .method-card p:has(> span.method-copy-phone) > span:not(.method-copy-phone) { display: none; }
}

/* Phone Headline Stats chevrons (15 Nov 2026, Paul): shorter, so the chevron
   is in proportion to the figure and two-line label, as the PDM chevrons are
   to their text. Same chevron shape (40:184). */
@media (max-width: 700px) {
  .stats-chevs { --ch: min(25cqw, 105px); --cw: min(9.6cqw, 36px); }
  /* PDM: capped so wide phones (where the copy is two lines) do not get a
     chevron much taller than the text. */
  /* Smaller Stage tags and slightly shorter chevrons (Paul, same day), so
     the three stages sit further apart. */
  .method-infographic { --tag: clamp(9.5px, 2.7cqw, 11px); --ch: min(41.5cqw, 152px); --cw: min(9cqw, 33px); }
  .method-grid { row-gap: 13cqw; }
  .method-card .method-stage { margin-bottom: 0.45em; padding: 0.25em 0.8em; }
}
