/* ============================================================================
   CLOSED CELL — DESIGN LAYER v2  ·  "premium engineering atelier"
   Loads after site.css + theme-extras.css. Pure addition: nothing here edits
   the base files, so reverting = removing one stylesheet.
   Motifs: the gold seam · blueprint texture · two-tone icons · Fraunces accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,9..144,440;1,9..144,560&family=Archivo:wght@400;500&display=swap');

:root {
  --ff-serif-accent: 'Fraunces', Georgia, serif;
  --seam: 1px solid rgba(185, 148, 71, 0.55);
  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
  /* faint blueprint grid for light surfaces */
  --tex-grid: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56'><path d='M56 0H0v56' fill='none' stroke='%231d2a44' stroke-width='1' opacity='0.045'/></svg>");
  /* fine grain for dark surfaces */
  --tex-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Body settles into the brand grotesque; Inter is retired. */
body { font-family: 'Archivo', system-ui, sans-serif; letter-spacing: 0.004em; }

/* ============================ ICON SYSTEM ============================ */
/* Phosphor duotone: glyph in currentColor, secondary layer tinted brand gold */
.ic { vertical-align: -0.18em; }
.ic path[opacity] { fill: var(--gold); opacity: 0.5; }

/* ===================== EDITORIAL TYPE ACCENTS ======================== */
h1 em, h2 em, .sec-head h2 em, .page-hero h1 em {
  font-family: var(--ff-serif-accent);
  font-style: italic;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.tmo blockquote {
  font-family: var(--ff-serif-accent);
  font-style: italic;
  font-weight: 440;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* ======================= HOMEPAGE HERO — DARK ======================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 86% -20%, rgba(185, 148, 71, 0.22), transparent 58%),
    radial-gradient(900px 700px at -10% 110%, rgba(38, 56, 92, 0.85), transparent 60%),
    linear-gradient(168deg, #223254 0%, var(--navy) 48%, var(--navy-3) 100%);
  border-bottom: var(--seam);
  padding: 76px 0 84px;
}

.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--paper); }
.hero .lede { color: #c9d1e2; }
.hero .eye { color: var(--gold); }
.hero .btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 14px 30px -10px rgba(160, 126, 52, 0.6); }
.hero .btn-primary:hover { background: var(--gold-soft); }
.hero .btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.45); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--navy); }

/* the light-theme marker highlight reads as a grey smear on navy — swap for italic serif */
.hero h1 em { font-style: italic; }
.hero h1 em::after { content: none; }

/* padlock emoji → clean text */
.form-consent::before { content: none; }

/* trust row becomes chips */
.hero-trust { gap: 10px; margin-top: 26px; }
.hero-trust > span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(212, 184, 120, 0.4);
  border-radius: 999px;
  background: rgba(15, 22, 38, 0.45);
  color: #d8dfee;
  backdrop-filter: blur(4px);
}
.hero-trust strong { color: var(--gold); }
.hero-trust .stars { font-size: 0.92rem; }

/* form card: gold seam + glow */
.hero .form-card {
  border-top: 3px solid var(--gold);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 80px -20px rgba(5, 10, 22, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* orchestrated entrance */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.hero .eye        { animation: riseIn 0.7s var(--ease-luxe) 0.05s backwards; }
.hero h1          { animation: riseIn 0.8s var(--ease-luxe) 0.16s backwards; }
.hero .lede       { animation: riseIn 0.8s var(--ease-luxe) 0.30s backwards; }
.hero .hero-cta   { animation: riseIn 0.8s var(--ease-luxe) 0.42s backwards; }
.hero .hero-trust { animation: riseIn 0.8s var(--ease-luxe) 0.54s backwards; }
.hero .form-card  { animation: riseIn 0.9s var(--ease-luxe) 0.34s backwards; }

/* ======================== INNER PAGE HEROES ========================== */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: var(--tex-grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eye  { animation: riseIn 0.6s var(--ease-luxe) 0.05s backwards; }
.page-hero h1    { animation: riseIn 0.7s var(--ease-luxe) 0.14s backwards; }
.page-hero .lede, .page-hero p { animation: riseIn 0.7s var(--ease-luxe) 0.26s backwards; }

/* ======================= SURFACE TEXTURES ============================ */
.band-tint, .section-cream {
  background-image: var(--tex-grid);
}
.band-dark, .cta-band {
  position: relative;
}
.band-dark::after, .cta-band::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: var(--tex-grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.cta-band { border-top: var(--seam); }

/* ====================== HEADER & NAVIGATION ========================== */
.site-header { transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out); }
.site-header.scrolled {
  box-shadow: 0 10px 30px -18px rgba(15, 22, 38, 0.35);
  background: rgba(255, 255, 255, 0.97);
}
.site-header.scrolled .nav { padding: 9px 0; }
.nav { transition: padding 0.3s var(--ease-out); }
.nav-links > li > a { position: relative; }
.nav-links > li > a::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.28s var(--ease-luxe);
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li > a:hover { background: transparent; }

/* ========================== BUTTONS ================================== */
.btn { transition: transform 0.22s var(--ease-luxe), background 0.18s, color 0.18s, box-shadow 0.22s, border-color 0.18s; }
.btn-gold:hover, .btn-primary:hover { transform: translateY(-1px); }
.btn-gold { box-shadow: 0 8px 20px -10px rgba(160, 126, 52, 0.45); }

/* ============================ CARDS ================================== */
.card .card-icon {
  background: var(--navy-tint);
  border: 1px solid var(--line);
  color: var(--navy);
}
.card { position: relative; overflow: hidden; }
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-luxe);
}
.card:hover::before { transform: scaleX(1); }
.card .card-icon {
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-spring), color 0.35s;
}
.card:hover .card-icon {
  background: var(--navy);
  color: var(--gold);
  transform: rotate(-5deg) scale(1.06);
}
.card:hover .card-icon .ic .g { stroke: var(--gold-soft); }
.card .card-link { transition: letter-spacing 0.25s var(--ease-out); }
.card:hover .card-link { letter-spacing: 0.03em; }

/* ========================== TRUST BAR ================================ */
.trustbar { border-bottom: 1px solid rgba(212, 184, 120, 0.25); }
.trustbar .t-item { transition: transform 0.3s var(--ease-spring), color 0.3s; }
.trustbar .t-item:hover { transform: translateY(-2px); color: #fff; }
.trustbar .ic { color: var(--gold); }

/* ======================== LENDER MARQUEE ============================= */
.lender-marquee {
  position: relative;
  padding: 26px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.lender-marquee .lm-label {
  text-align: center;
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.lm-track {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lm-row {
  display: flex; align-items: center; gap: 44px;
  flex-shrink: 0;
  padding-right: 44px;
  animation: lm-scroll 38s linear infinite;
}
.lm-track:hover .lm-row { animation-play-state: paused; }
.lm-row span {
  display: inline-flex; align-items: center; gap: 44px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.25s;
}
.lm-row span:hover { opacity: 1; }
.lm-row .ic { opacity: 0.8; width: 11px; height: 11px; }
@keyframes lm-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ========================= VIDEO BLOCKS ============================== */
.video-block {
  box-shadow: 0 30px 70px -28px rgba(5, 10, 22, 0.7);
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -1px;
}

/* ====================== PROCESS TIMELINE ============================= */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  top: 10px; bottom: 10px; left: 29px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(185, 148, 71, 0.25));
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 1.4s var(--ease-luxe) 0.2s;
}
.timeline.in::before { transform: scaleY(1); }
.timeline .step-num {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, var(--paper-2) 0%, var(--paper-2) 62%, transparent 63%);
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}
@media (max-width: 720px) { .timeline::before { display: none; } }

/* big outline step numbers on the homepage strip too */
.steps .step-num {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  font-weight: 900;
  transition: -webkit-text-stroke-color 0.3s;
}
.step:hover .step-num { -webkit-text-stroke-color: var(--gold-2); }

/* ============================= FAQ =================================== */
.faq-item { transition: border-color 0.25s, box-shadow 0.25s; }
.faq-item[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq-item summary::after { transition: transform 0.3s var(--ease-spring), color 0.2s; color: var(--gold-2); }
.faq-item[open] summary::after { transform: rotate(180deg); }
@keyframes faqFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-item[open] .faq-body { animation: faqFade 0.35s var(--ease-luxe); }

/* ============================ STATS ================================== */
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat:hover::after { opacity: 1; }
.stat .stat-n { font-variant-numeric: tabular-nums; }

/* ============================ FOOTER ================================= */
.site-footer { position: relative; border-top: var(--seam); }
.site-footer::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: var(--tex-grain);
  opacity: 0.04;
  mix-blend-mode: overlay;
}
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer a { transition: color 0.2s, padding-left 0.25s var(--ease-out); }
.f-grid ul a:hover { padding-left: 6px; }

/* ====================== SCROLL REVEAL v2 ============================= */
/* richer travel + blur for the engine site.js already runs */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(5px);
          transition: opacity 0.75s var(--ease-luxe), transform 0.75s var(--ease-luxe), filter 0.75s var(--ease-luxe); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ================= DARK-BAND BUTTON CONTRAST ========================= */
.band-dark .btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(160, 126, 52, 0.55);
}
.band-dark .btn-primary:hover { background: var(--gold-soft); }

/* ================= COOL-TINT UNIFICATION (no warm surfaces) ========== */
.callout-box {
  background: var(--navy-tint);
  border-left: 3px solid var(--gold);
}
.legal-note {
  background: var(--paper-2);
  border-color: var(--line);
}
.ty-icon {
  background: var(--navy-tint);
  border: 1px solid var(--line);
  color: var(--gold-2);
}
.sticky-quote { border-width: 1px; box-shadow: 0 24px 60px -28px rgba(15, 22, 38, 0.4); }

/* =========================== MAP ==================================== */
#areas-map { box-shadow: 0 24px 60px -30px rgba(15, 22, 38, 0.45); }
#areas-map .leaflet-popup-content-wrapper { border-radius: 12px; border-top: 3px solid var(--gold); }

/* ======================= COOKIE BANNER =============================== */
.cookie-banner { border-top: var(--seam); animation: riseIn 0.5s var(--ease-luxe); }

/* ======================= MOBILE HEADER FIT =========================== */
html, body { overflow-x: clip; }
@media (max-width: 560px) {
  .brand img { height: 36px; width: auto; }
  .nav-cta .btn { display: none; } /* sticky bottom bar already carries the CTA */
  .nav-cta { gap: 6px; }
}

/* ===================== REDUCED MOTION GUARDS ========================= */
@media (prefers-reduced-motion: reduce) {
  .hero .eye, .hero h1, .hero .lede, .hero .hero-cta, .hero .hero-trust, .hero .form-card,
  .page-hero .eye, .page-hero h1, .page-hero .lede, .page-hero p,
  .cookie-banner { animation: none; }
  .lm-row { animation: none; }
  .lm-track { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .timeline::before { transform: scaleY(1); transition: none; }
}

/* ============================================================================
   V3.1 — CRITIQUE PANEL FIXES (13-agent review)
   ========================================================================== */

/* ---- gold token split: text-gold passes contrast on both surfaces ---- */
:root {
  --gold-text: #8a6b2a;        /* on light surfaces ≥4.5:1 */
  --gold-text-dark: #d2a958;   /* on navy surfaces ≥6:1   */
}
.eye { color: var(--gold-text); }
.hero .eye, .page-hero .eye, .band-dark .eye, .cta-band .eye { color: var(--gold-text-dark); }
h1 em, h2 em, .sec-head h2 em, .page-hero h1 em { color: var(--gold-text-dark); }
.sec-head h2 em { color: var(--gold-text); }
.timeline ~ * .eye, .band-tint .eye { color: var(--gold-text); }

/* ---- headline & paragraph wrapping: no more widows ---- */
h1, h2, h3, .sec-head h2 { text-wrap: balance; }
p, .card p, .lede, .video-caption { text-wrap: pretty; }

/* ---- ONE gold fill per viewport: hero CTA becomes white ---- */
.hero .btn-primary { background: var(--paper); color: var(--navy); box-shadow: 0 14px 30px -14px rgba(5, 10, 22, 0.55); }
.hero .btn-primary:hover { background: #eef1f7; color: var(--navy); }

/* ---- hero background: flatter, off-axis, no banding vignette ---- */
.hero {
  background:
    radial-gradient(820px 460px at 88% -14%, rgba(185, 148, 71, 0.13), transparent 62%),
    linear-gradient(170deg, #1f2e4e 0%, var(--navy) 55%, #121c30 100%);
}

/* ---- hero trust chips: calmer geometry, white numerals ---- */
.hero-trust > span { border-radius: 10px; background: rgba(15, 22, 38, 0.4); }
.hero-trust strong { color: #fff; }
.hero-trust .stars { color: var(--gold-text-dark); }

/* ---- form card: clipped gold bar instead of border artifact ---- */
.hero .form-card { border-top: 0; position: relative; overflow: hidden; }
.hero .form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold);
}

/* ---- form geometry: match the card's shape system ---- */
.form-card .btn[type="submit"], .form-card button[type="submit"] { border-radius: 12px; }
.btn-ghost { border-radius: 12px; }
.field textarea { resize: vertical; min-height: 96px; }
.field label .optional { font-weight: 400; color: var(--muted); }

/* property-type chips: clear selected state */
.chip { border-radius: 10px; font-weight: 500; }
.chip[aria-checked="true"] {
  background: var(--navy); color: #fff; border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* native selects: styled chevron, no raw OS control */
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231d2a44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ---- header: hairline when scrolled; calmer phone cluster ---- */
.site-header { border-bottom-color: transparent; }
.site-header.scrolled { border-bottom: 1px solid rgba(21, 32, 54, 0.08); }
.nav-phone strong { font-size: 0.98rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-phone small { font-size: 0.66rem; }

/* ---- lender marquee: readable, labelled, deliberate ---- */
.lm-row span { opacity: 1; color: #44546b; }
.lender-marquee .lm-label { color: var(--gold-text); }

/* ---- page-hero: hairline base, not a 3px slab ---- */
.page-hero { border-bottom: 1px solid rgba(185, 148, 71, 0.45); }

/* ---- cards: links share a baseline; flex column ---- */
.card { display: flex; flex-direction: column; }
.card .card-link { margin-top: auto; padding-top: 14px; }

/* ---- testimonials: anchored attribution, tamed quote mark ---- */
.tmo { display: flex; flex-direction: column; }
.tmo blockquote { position: relative; z-index: 1; }
.tmo cite { margin-top: auto; border-top-style: solid !important; }
.tmo blockquote::before { opacity: 0.1; top: -10px; right: 8px; z-index: 0; }

/* dotted/dashed hairlines read 2010s — solid throughout */
.form-card hr, .card hr, aside hr { border-top-style: solid !important; }

/* ---- check-list: styled gold checks instead of ✓ glyphs / discs ---- */
.check-list { list-style: none; padding: 0 !important; margin: 10px 0 0; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 5px 0 !important;
}
.check-list li::before {
  content: '';
  flex: 0 0 16px; height: 16px; margin-top: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.5 8.5 6 12l7.5-8' fill='none' stroke='%238a6b2a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

/* ---- FAQ page: right-sized category headings + active pills ---- */
h2[id^="faq-"] { font-size: 1.55rem; margin-top: 52px; }
.faq-filter a[aria-current="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.faq-item summary::after { color: var(--gold-text); }

/* ---- process timeline: labels never wrap, line knocked out + finished ---- */
.timeline .eye { white-space: nowrap; }
.timeline .step-num { background: var(--paper-2); }
.timeline::before { z-index: 0; }
.timeline > div { position: relative; z-index: 1; }
.timeline::after {
  content: '';
  position: absolute; left: 25px; bottom: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
}

/* ---- stats: readable labels ---- */
.stat .stat-l { color: #3e4a61; letter-spacing: 0.06em; font-size: 0.8rem; }

/* ---- map: brand-consistent, UK-framed ---- */
#areas-map { height: 600px; }
#areas-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(0.92); }
#areas-map .leaflet-control-zoom a {
  background: var(--navy); color: #fff; border: 0;
}
#areas-map .leaflet-control-zoom a:hover { background: var(--navy-2); color: var(--gold); }
#areas-map .leaflet-control-zoom { border: 0; box-shadow: 0 4px 14px rgba(15, 22, 38, 0.25); border-radius: 8px; overflow: hidden; }
#areas-map .leaflet-control-attribution { background: rgba(255, 255, 255, 0.85); font-size: 10px; }
#areas-map .leaflet-control-attribution a { color: #6b7280; }

/* ---- small caption widows ---- */
small, .form-note, .form-consent { text-wrap: pretty; }

/* ---- service hero visual (photo card on the right) ---- */
.hero-visual { position: relative; }
.hero-visual .hero-photo {
  width: 100%; max-height: 420px; object-fit: cover; display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px -30px rgba(5, 10, 22, 0.8);
  outline: 1px solid rgba(255, 255, 255, 0.18);
  outline-offset: -1px;
}
.hero-visual .hero-visual-tag {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 13px;
  background: rgba(15, 22, 38, 0.78);
  color: #e7ddc4;
  font-family: var(--ff-head);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.hero-visual .imgph { min-height: 380px; }
@media (max-width: 980px) { .hero-visual { display: none; } }

/* ---- postcode checker: matched geometry, sentence-case placeholder ---- */
.pc-input-row input { border-radius: 10px; }
.pc-input-row .btn { border-radius: 10px; }
#pc-input::placeholder { text-transform: none; letter-spacing: normal; color: #9ca3af; }

/* ============================================================================
   V4 — second-round refinements
   ========================================================================== */

/* About photo under the promise card */
.about-photo { margin: 20px 0 0; }
.about-photo .about-photo-img,
.about-photo .imgph {
  width: 100%; max-height: 330px; object-fit: cover; display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-photo figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.about-photo figcaption em {
  font-family: var(--ff-serif-accent);
  font-style: italic;
  color: var(--gold-text);
}

/* Dark-band stats: editorial strip instead of four white template cards */
.band-dark .stats { gap: 0; }
.band-dark .stat {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: none;
  padding: 8px 32px;
  text-align: left;
  transition: none;
}
.band-dark .stat:first-child { border-left: 0; padding-left: 0; }
.band-dark .stat:hover { transform: none; box-shadow: none; }
.band-dark .stat::after { content: none; }
.band-dark .stat .stat-n {
  color: var(--paper);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1;
}
.band-dark .stat .stat-l {
  color: var(--gold-text-dark);
  font-family: var(--ff-serif-accent);
  font-style: italic;
  font-weight: 440;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  margin-top: 8px;
}
@media (max-width: 980px) {
  .band-dark .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; }
  .band-dark .stat:first-child { border-top: 0; }
}

/* Testimonials: asymmetric editorial header */
.tmo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.tmo-head .sec-head-inline { text-align: left; max-width: none; margin: 0; }
.tmo-head .tmo-note {
  font-family: var(--ff-serif-accent); font-style: italic;
  color: var(--gold-text); font-size: 1.02rem;
  padding-bottom: 6px;
}

/* ============================================================================
   V4.1 — round-2 panel fixes
   ========================================================================== */

/* display type: stop word-space collapse at heavy weights */
h1, h2 { word-spacing: 0.05em; }

/* serif accent utility (form card heading etc.) */
.accent-serif { font-family: var(--ff-serif-accent); font-style: italic; font-weight: 560; color: inherit; }

/* mirrored eyebrow rule in centered lockups */
.sec-head .eye::after, .cta-band .eye::after {
  content: ''; display: inline-block;
  width: 26px; height: 2px; background: var(--gold);
}

/* flat, tight button shadows (no 2015 glow) */
.btn-gold { box-shadow: 0 1px 2px rgba(5, 10, 22, 0.3); }
.btn-gold:hover { box-shadow: 0 3px 8px rgba(5, 10, 22, 0.3); }
.hero .btn-primary { box-shadow: 0 1px 2px rgba(5, 10, 22, 0.35); }

/* CTA pairs share pill geometry */
.cta-row .btn, .hero-cta .btn, .page-hero .btn { border-radius: 999px; }

/* form card gold bar follows the card radius */
.hero .form-card::before { border-radius: 20px 20px 0 0; }

/* form affordance: visible field borders, 48px chips */
.field input, .field select, .field textarea { border-color: #98a2b3; }
.chip { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }

/* lender marquee: contained, deliberate band */
.lender-marquee {
  background: var(--paper-2);
  background-image: var(--tex-grid);
  border-top: 1px solid var(--line);
}

/* sticky mobile bar: visible edge + clear two-action hierarchy */
.mob-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -10px 28px rgba(5, 10, 22, 0.45);
}
.mob-cta .mob-ghost {
  color: var(--paper);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

/* utility bar: one calm line on phones */
@media (max-width: 640px) {
  .utility .u-left { display: none; }
  .utility .wrap { justify-content: center; }
}

/* mobile vertical budget */
@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  .page-hero { padding: 56px 0 48px; }
  .eye { font-size: 0.7rem; letter-spacing: 0.18em; }
}

/* hamburger: confident glyph */
.menu-toggle { font-weight: 700; font-size: 1.3rem; line-height: 1; }

/* ---- mobile drawer: branded, hierarchical, conversion-aware ---- */
.mnav { background-image: var(--tex-grid); display: none; }
.mnav.open { display: flex; flex-direction: column; }
.mnav ul { flex: 1; list-style: none; margin: 0; padding: 0; }
.mnav ul li { border-bottom: 0 !important; }
.mnav ul li a { display: block; padding: 11px 0; font-size: 1.18rem; font-weight: 600; color: var(--navy); }
.mnav .mnav-label {
  margin-top: 14px; padding: 4px 0;
  font-family: var(--ff-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text);
}
.mnav .sub-m a { padding: 8px 0 8px 16px; font-size: 1.02rem; font-weight: 500; color: var(--ink-2); border-left: 2px solid var(--line); }
.mnav .menu-toggle { min-width: 44px; min-height: 44px; }
.mnav-foot { padding: 18px 0 8px; border-top: 1px solid var(--line); }
.mnav-foot .mnav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; color: var(--navy);
}
.mnav-foot .mnav-trust { margin: 2px 0 12px; font-size: 0.9rem; color: var(--muted); }
.mnav-foot .mnav-trust em { font-family: var(--ff-serif-accent); font-style: italic; color: var(--gold-text); }
.mnav-foot .mnav-cta { display: block; text-align: center; padding: 15px 20px; border-radius: 12px; }

/* dark-band check-list variant */
.band-dark .check-list li::before, .hero .check-list li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.5 8.5 6 12l7.5-8' fill='none' stroke='%23d2a958' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.band-dark .check-list li strong { color: #fff; }

/* footer credentials row */
.f-creds {
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  padding: 24px 0 4px; margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.f-creds span { display: inline-flex; align-items: center; gap: 9px; color: #c8d0de; font-size: 0.92rem; }
.f-creds .ic { color: var(--gold-text-dark); flex: none; }
.f-bottom { margin-top: 16px; }
.f-legal-links { display: flex; gap: 18px; }
.f-legal-links a { color: #8f96a8; }
.f-legal-links a:hover { color: var(--gold); }
.f-legal { display: none; } /* superseded by f-creds + merged bottom row */

/* ---- location hero: postcode monogram fills the right half ---- */
.loc-hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.loc-monogram {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 260px at 80% 0%, rgba(185, 148, 71, 0.14), transparent 65%),
    rgba(15, 22, 38, 0.35);
  padding: 36px 38px;
  text-align: center;
  backdrop-filter: blur(3px);
}
.loc-mono-pc {
  font-family: var(--ff-serif-accent);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 1;
  color: var(--gold-text-dark);
}
.loc-mono-sub {
  font-family: var(--ff-head);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #aab6cd;
  margin-top: 8px;
}
.loc-mono-list { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.loc-mono-list li { padding: 5px 0; color: #c9d1e2; font-size: 0.95rem; }
.loc-mono-list strong { color: #fff; }
@media (max-width: 980px) {
  .loc-hero-grid { grid-template-columns: 1fr; }
  .loc-monogram { display: none; }
}

/* map: attribution never clipped, controls themed (mobile) */
@media (max-width: 720px) {
  #areas-map { height: 420px; }
}

/* ============================================================================
   V5 — design-logic pass
   ========================================================================== */

/* calculator result: the promised payoff, styled like one */
.calc-result { text-align: center; padding: 10px 4px 4px; }
.calc-result-range {
  font-family: var(--ff-serif-accent);
  font-style: italic; font-weight: 560;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  color: var(--gold-text);
}
.calc-result-note { margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; }
.calc-result-next {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem;
}

/* hero CTA scrolls to the adjacent form */
html { scroll-behavior: smooth; }

/* sticky mobile bar steps aside while the hero form is on screen */
.mob-cta.yield { transform: translateY(110%); }
.mob-cta { transition: transform 0.35s var(--ease-luxe); }

/* badge dot joins the palette (was alert-red) */
.video-block > .video-badge:not([style*="background"])::before { color: var(--gold); }

/* ============================================================================
   V6 — truth pass support
   ========================================================================== */

/* gold buttons deepen on hover instead of washing out */
.btn-gold:hover,
.band-dark .btn-primary:hover,
.page-hero .btn-primary:hover {
  background: #aa873c;
  color: var(--navy);
}

/* ===== V8: sticky lead-form rail rollout ===== */
/* Homepage problem section: same column ratio and gap as .hero-grid so
   its video renders the same size as the video-showcase one below it. */
@media (min-width: 981px) {
  .problem .grid { grid-template-columns: 1.2fr 1fr; gap: 52px; }
}

/* FAQ page variant: content left, form rail right */
.longform.lf-right { grid-template-columns: 1fr 300px; gap: 56px; }
@media (max-width: 980px) {
  .longform.lf-right { grid-template-columns: 1fr; }
}

/* ===================== V9: MOBILE PASS =============================== */

/* Process timeline rows: header (number + day) beside the card on desktop,
   stacked above it on mobile, where the old 60/110px columns crushed the
   card text to a few words per line. */
.tl-row { display: grid; grid-template-columns: 175px 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
.tl-head { display: flex; gap: 16px; align-items: flex-start; }
.tl-head .step-num { font-size: 3rem; }
.tl-head .eye { padding-top: 18px; }
@media (max-width: 720px) {
  .tl-row { grid-template-columns: 1fr; gap: 10px; }
  .tl-head { align-items: center; gap: 12px; }
  .tl-head .step-num { font-size: 1.6rem; }
  .tl-head .eye { padding-top: 0; }
}

/* Hero H1 subtitles: the clause after the mid-dot becomes a block subtitle
   on mobile instead of wrapping the heading to four lines. */
.h1-sub::before { content: ' \00b7 '; }
@media (max-width: 640px) {
  .h1-sub { display: block; font-size: 0.55em; font-weight: 700; letter-spacing: -0.01em; margin-top: 8px; line-height: 1.25; }
  .h1-sub::before { content: none; }
}

@media (max-width: 980px) {
  /* Areas page: the single column track inherited a 398px min-content width
     and pushed the map + every card off the right edge. */
  .areas-grid { grid-template-columns: minmax(0, 1fr); }
  .areas-grid > div { min-width: 0; }
  .pc-input-row input { min-width: 0; flex: 1; }

  /* Longform pages read content-first on mobile: the rail (TOC + form)
     moves below the article and the TOC rows are dropped — the sticky
     bottom bar already covers "get in touch" while reading. */
  .longform aside { order: 2; }
  .longform article { order: 1; min-width: 0; }
  .longform aside { min-width: 0; }
  .longform aside > h4, .longform aside > ol { display: none; }
  .longform aside .sticky-quote { margin-top: 0 !important; }
}

/* Touch targets and iOS zoom: 16px inputs stop Safari auto-zooming on
   focus; 48px height meets the touch-size guideline. */
@media (max-width: 768px) {
  input[type="text"], input[type="tel"], input[type="email"], select, textarea { font-size: 16px; min-height: 48px; }
  textarea { min-height: 84px; resize: none; }
  .sticky-quote .field input { min-height: 48px; }
  .calc-back { padding: 12px 10px; margin: -8px 0 -8px -10px; font-size: 0.9rem; }
}

/* Stacked CTA pairs: equal width, primary first, no ragged stagger. */
@media (max-width: 480px) {
  .hero-cta .btn, .page-hero .btn, .cta-band .cta-row .btn { width: 100%; max-width: 340px; justify-content: center; }
  .form-card button[type="submit"], .form-card [data-qnext] { width: 100%; }
}

/* City/town link lists: two columns with a visible link affordance instead
   of a one-per-row sitemap dump. */
.region-col ul a { text-decoration: underline; text-decoration-color: rgba(202, 162, 88, 0.55); text-underline-offset: 3px; }
@media (max-width: 560px) {
  .region-list { grid-template-columns: 1fr; gap: 20px; }
  .region-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
  .region-col li { padding: 7px 0; }
  ul[style*="columns"] { columns: 1 !important; }
}

/* Inline prose links: navy with a gold underline so conversion links read
   as links (was near-invisible against body text). */
.longform article a, .callout-box a, .video-caption a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(202, 162, 88, 0.65); text-underline-offset: 3px; }

/* Step + stat grids: collapse cleanly instead of crushing. */
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat .stat-n { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .trustbar .wrap { grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
}

/* Service/sector cards: compact icon-beside-text variant so six stacked
   cards don't cost three screens of scroll. */
@media (max-width: 560px) {
  .services-grid .card { display: grid; grid-template-columns: 46px 1fr; gap: 2px 16px; padding: 18px 20px; }
  .services-grid .card .card-icon { grid-row: 1 / span 3; width: 46px; height: 46px; margin: 0; }
  .services-grid .card h3 { margin: 0 0 4px; font-size: 1.05rem; }
  .services-grid .card p { margin: 0 0 6px; font-size: 0.92rem; }
}

/* Eyebrow labels: 12px floor on mobile (11.2px failed comfortably-legible);
   the rule ornament goes entirely — it's what orphaned onto its own line. */
@media (max-width: 768px) {
  .eye { font-size: 0.75rem; letter-spacing: 0.16em; }
  .eye::before { display: none; }
}

/* Sticky bottom bar: clearance lives inside the navy footer (no white strip
   below the footer), and anchored content scrolls clear of both fixed bars. */
@media (max-width: 980px) {
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(28px + 64px + env(safe-area-inset-bottom)); }
  html { background: var(--navy-3); }
  h2[id], h3[id], .faq-item { scroll-margin-top: 86px; scroll-margin-bottom: 76px; }
}

/* FAQ filter: one-line swipeable chip strip; active category is filled. */
@media (max-width: 768px) {
  .faq-filter { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .faq-filter::-webkit-scrollbar { display: none; }
  .faq-filter .btn { flex: 0 0 auto; }
}
.faq-filter a[aria-current="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* FAQ accordion: the +/- anchors beside line one of the question, and
   multi-line questions keep heading-weight leading. */
.faq-item summary { line-height: 1.35; position: relative; }
.faq-item summary::after { position: absolute; right: 22px; top: 19px; }

/* Footer boundary: gold hairline so consecutive navy bands read as two
   sections instead of one wall. */
.site-footer { border-top: 1px solid rgba(202, 162, 88, 0.32); }

/* Video caption: drop the play-glyph pseudo-bullet (the video autoplays;
   the glyph read as a broken control). */
.video-caption::before { content: none; }

/* Mobile menu: group label legible, no stray double divider. */
.mnav .mnav-label { font-size: 0.78rem; margin-top: 20px; }
.mnav ul li:last-child a { border-bottom: 0; }

/* Small copy/dedup hides on phones */
@media (max-width: 560px) {
  .tmo-note { display: none; }       /* duplicates the testimonial cites */
  .about-creds { display: none; }    /* footer carries the same badges */
}

/* About page: promise card aligns with the story column on desktop only. */
@media (min-width: 981px) { .about-promise { margin-top: 58px; } }

/* ============== V9.1: BRANDED HAMBURGER + NAVY DRAWER ================ */

/* Toggle: three drawn lines, the middle one gold and short — the same
   seam motif used on section borders. Replaces the OS glyph in a box. */
.menu-toggle {
  border: 0; border-radius: 0; padding: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  background: none;
}
.mt-bars { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.mt-bars i {
  display: block; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease-luxe), opacity 0.2s, width 0.3s var(--ease-luxe);
}
.mt-bars i:nth-child(2) { width: 15px; background: var(--gold); }
.menu-toggle:hover .mt-bars i:nth-child(2),
.menu-toggle:focus-visible .mt-bars i:nth-child(2) { width: 24px; }

/* The drawer's close button: same component, pre-folded into an X. */
.mt-close .mt-bars i { background: var(--paper); }
.mt-close .mt-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mt-close .mt-bars i:nth-child(2) { opacity: 0; }
.mt-close .mt-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mt-close:hover .mt-bars i, .mt-close:focus-visible .mt-bars i { background: var(--gold); }

/* Drawer: the same dark surface language as the hero — navy gradient,
   grain, gold seam — instead of a plain paper sheet. */
.mnav {
  background:
    radial-gradient(700px 420px at 90% -10%, rgba(185, 148, 71, 0.18), transparent 60%),
    linear-gradient(170deg, #223254 0%, var(--navy) 52%, var(--navy-3) 100%);
}
.mnav::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: var(--tex-grain);
  opacity: 0.05; mix-blend-mode: overlay;
}
.mnav > * { position: relative; z-index: 1; }
.mnav.open { animation: drawerIn 0.32s var(--ease-luxe); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.mnav .mnav-top { border-bottom: 1px solid rgba(212, 184, 120, 0.28); }
.mnav .brand img { max-height: 40px; }
.mnav ul li a { color: var(--paper); }
.mnav ul li a:hover { color: var(--gold); }
.mnav .mnav-label { color: var(--gold); }
.mnav .sub-m a { color: #c9d1e2; border-left: 2px solid rgba(212, 184, 120, 0.3); }
.mnav .sub-m a:hover { color: var(--gold); border-left-color: var(--gold); }
.mnav-foot { border-top: 1px solid rgba(212, 184, 120, 0.28); }
.mnav-foot .mnav-phone { color: var(--paper); }
.mnav-foot .mnav-trust { color: #9aa5bd; }
.mnav-foot .mnav-trust em { color: var(--gold); }
