/* JH Decorating. Quiet, dark and exact, in the manner of the best luxury sites:
   menu left, logo centred, full bleed photography, few words, spaced capitals for labels, no boxes or icons.
   Spacing scale (px): 4 8 12 16 24 32 48 64 96 120. Nothing else. */

@font-face { font-family: "Libre Caslon Display"; src: url("/fonts/libre-caslon-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --ground: #101315;     /* deep blue black */
  --band: #161A1D;       /* alternate band */
  --panel: #1E2428;      /* form fields */
  --plaster: #ECE6DA;    /* text, 15.6:1 on ground */
  --stone: #A9A296;      /* secondary text, 7.6:1 */
  --brass: #C6A46A;      /* fine rules and accents, 8.2:1 */
  --brass-hi: #D9BE8C;
  --line: rgba(236, 230, 218, 0.12);
  --line-strong: rgba(236, 230, 218, 0.32);

  --f-display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 120px;
  --gutter: 20px;
  --sec: clamp(64px, 40px + 5vw, 96px);     /* above and below each section: 64 on phones, 96 on desktop */
  --block: clamp(48px, 36px + 2.5vw, 64px);  /* between blocks inside a section: 48 on phones, 64 on desktop */
  --max: 1200px;
  --head-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 400px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --gutter: 32px; --head-h: 88px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; --head-h: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--s4)); }
body {
  margin: 0; background: var(--ground); color: var(--plaster);
  font: 300 1.0625rem/1.75 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 500; }
:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 4px; }
::selection { background: var(--brass); color: var(--ground); }
a, button, summary, input, select, textarea, label, video { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.skip { position: absolute; left: -9999px; top: var(--s3); z-index: 100; background: var(--plaster); color: var(--ground); padding: var(--s3) var(--s4); text-decoration: none; }
.skip:focus { left: var(--s3); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding: var(--sec) 0; }
.section:not(.band) + .section:not(.band), .band + .band { padding-top: 0; }
.band { background: var(--band); }
.center { text-align: center; }
.center .measure, .center .lede { margin-left: auto; margin-right: auto; }
.fill { background: #F5E58A; color: #1A1F23; padding: 0 var(--s1); }
.chips { display: none; }

/* ---------- type ---------- */
/* Headings are set in spaced capitals across the site. The words stay in normal case in the page itself,
   so search engines and screen readers get ordinary text. Capitals read larger, so the sizes step down. */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; text-transform: uppercase; letter-spacing: 0.04em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.12; max-width: 18em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.3rem); line-height: 1.16; max-width: 22em; }
h3 { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem); line-height: 1.3; letter-spacing: 0.05em; }
.center h1, .center h2 { margin-left: auto; margin-right: auto; }
.kicker { display: block; font: 500 0.75rem/1.4 var(--f-text); letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); margin: 0 0 var(--s5); }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.7; max-width: 36em; color: var(--plaster); }
.statement { font: 400 clamp(1.5rem, 1.15rem + 1.4vw, 2.3rem)/1.4 var(--f-display); max-width: 30em; margin: 0 auto; text-wrap: balance; text-transform: none; letter-spacing: 0; }
.muted { color: var(--stone); }
.small { font-size: 0.9375rem; }
.measure { max-width: 64ch; }
.prose p, .prose li { max-width: 64ch; }
.prose h2 { margin: var(--block) 0 var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--s7) 0 var(--s4); }
.prose ul { padding-left: 1.1em; margin: 0 0 var(--s5); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--brass); }
.rule { width: 48px; height: 1px; background: var(--brass); border: 0; margin: var(--s6) 0; }
.center .rule { margin-left: auto; margin-right: auto; }

.text-link { color: var(--plaster); text-decoration: none; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease), opacity .12s; }
@media (hover: hover) { .text-link:hover { background-size: 0 1px; background-position: 100% 100%; } }
.link-line { font: 500 0.75rem/1.4 var(--f-text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--plaster); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; }
.link-line::after { content: ""; width: 32px; height: 1px; background: var(--brass); transition: width .3s var(--ease); flex: none; }
@media (hover: hover) { .link-line:hover::after { width: 48px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s6); border: 1px solid var(--line-strong); border-radius: 0;
  font: 500 0.75rem/1.2 var(--f-text); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--plaster);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), scale .16s var(--ease);
}
.btn-solid, .btn-brass { background: var(--plaster); border-color: var(--plaster); color: var(--ground); }
.btn-small { min-height: 44px; padding: 0 var(--s5); }
@media (hover: hover) {
  .btn:hover { border-color: var(--plaster); background: rgba(236, 230, 218, 0.06); }
  .btn-solid:hover, .btn-brass:hover { background: transparent; color: var(--plaster); }
}
.actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ground); transition: background-color .4s var(--ease), translate .4s var(--ease), border-color .4s; border-bottom: 1px solid var(--line); }
.site-head.away { translate: 0 -100%; }
.site-head.overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.site-head.overlay.solid, .site-head.overlay.open { background: var(--ground); border-bottom-color: var(--line); }
.head-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s4); height: var(--head-h); padding: 0 var(--gutter); max-width: 1680px; margin: 0 auto; }
.logo { display: block; color: var(--plaster); }
.logo svg { display: block; width: 100%; height: auto; }
.head-logo { width: 132px; grid-column: 2; }
@media (min-width: 768px) { .head-logo { width: 168px; } }
.head-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--s6); }
.head-tel { display: none; text-decoration: none; font: 400 0.875rem/1 var(--f-text); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--plaster); }
@media (min-width: 1100px) { .head-tel { display: inline; } }
.head-cta { display: none; }
@media (min-width: 560px) { .head-cta { display: inline-flex; } }
.menu-toggle { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0; background: none; border: 0; color: var(--plaster); font: 500 0.75rem/1 var(--f-text); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; }
.menu-toggle .bars { width: 24px; height: 9px; position: relative; flex: none; }
.menu-toggle .bars i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle .bars i:first-child { top: 0; } .menu-toggle .bars i:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .bars i:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:last-child { top: 4px; transform: rotate(-45deg); }
.menu-sheet { position: fixed; inset: var(--head-h) 0 0 0; background: var(--ground); overflow-y: auto; border-top: 1px solid var(--line); }
.menu-sheet[hidden] { display: none; }
.sheet-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s7) var(--gutter) var(--s8); display: grid; gap: var(--s8); }
.sheet-list { list-style: none; }
.sheet-list a { display: block; padding: var(--s2) 0; font: 400 clamp(2rem, 1.4rem + 2.6vw, 3.4rem)/1.2 var(--f-display); text-decoration: none; color: var(--plaster); transition: color .25s, padding-left .35s var(--ease); }
.sheet-list a[aria-current="page"] { color: var(--brass-hi); }
@media (hover: hover) { .sheet-list a:hover { color: var(--brass-hi); padding-left: var(--s3); } }
.sheet-list a.pressed { color: var(--brass-hi); }
.sheet-side { color: var(--stone); display: grid; gap: var(--s5); align-content: start; }
.sheet-side .kicker { margin: 0; }
.sheet-side a:not(.btn) { color: var(--plaster); text-decoration: none; line-height: 2; }
@media (min-width: 900px) { .sheet-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding-top: var(--s9); } }
@media (prefers-reduced-motion: no-preference) {
  .menu-sheet:not([hidden]) .sheet-list li { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
}
html.menu-open { overflow: hidden; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: var(--s6); font: 500 0.6875rem/1.4 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); }
.crumbs li + li::before { content: "/"; margin-right: var(--s3); color: var(--line-strong); }
.crumbs a { text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--plaster); } }

/* ---------- home hero: full bleed photograph, few words ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--band); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,19,21,.55) 0%, rgba(16,19,21,0) 22%, rgba(16,19,21,0) 42%, rgba(16,19,21,.82) 78%, rgba(16,19,21,.96) 100%); }
.hero-copy { padding-top: calc(var(--head-h) + var(--s8)); padding-bottom: var(--s8); text-shadow: 0 1px 24px rgba(16,19,21,.35); }
.hero .kicker { color: var(--plaster); }
/* desktop: the photo is darkened from the left so the copy always sits on a dark ground, whatever the screen shape */
@media (min-width: 900px) {
  .hero-media::after { background:
    linear-gradient(90deg, rgba(16,19,21,.93) 0%, rgba(16,19,21,.9) 34%, rgba(16,19,21,.62) 56%, rgba(16,19,21,.18) 76%, rgba(16,19,21,0) 90%),
    linear-gradient(180deg, rgba(16,19,21,.55) 0%, rgba(16,19,21,0) 22%, rgba(16,19,21,0) 48%, rgba(16,19,21,.78) 74%, rgba(16,19,21,.94) 100%); }
  .hero-copy { text-shadow: 0 1px 2px rgba(16,19,21,.5), 0 2px 30px rgba(16,19,21,.6); }
  .hero-media img { object-position: 72% 12%; }
}
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; z-index: 0; height: min(60svh, 600px); min-height: 360px; }
  .hero-media img { object-position: 64% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(16,19,21,.6) 0%, rgba(16,19,21,0) 18%, rgba(16,19,21,0) 64%, rgba(16,19,21,.82) 90%, var(--ground) 100%); }
  .hero-copy { position: relative; z-index: 1; margin-top: -40px; padding-top: 0; padding-bottom: var(--s8); }
  .hero .hero-copy h1 { margin-bottom: var(--s5); }
  .hero .hero-copy .actions { margin-top: var(--s2); }
  .hero .hero-foot { gap: var(--s5); }
  .hero .hero-award { font-size: 0.75rem; line-height: 1.45; gap: var(--s3); max-width: none; }
  .hero .hero-award img { width: 40px; height: 40px; }
}
@media (max-width: 899px) and (max-height: 700px) { .hero-media { height: 54svh; min-height: 320px; } }
.hero h1 { margin-bottom: var(--s6); font-size: clamp(1.7rem, 1.1rem + 2.5vw, 3.35rem); line-height: 1.14; letter-spacing: 0.045em; text-transform: uppercase; max-width: 19em; }
.hero .actions { margin-top: var(--s6); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s6); }
.hero-award { display: flex; align-items: center; gap: var(--s4); color: var(--plaster); font-size: 0.875rem; line-height: 1.5; max-width: 38em; }
.hero-award img { width: 56px; height: 56px; flex: none; }
@media (min-width: 900px) { .hero-copy { padding-bottom: var(--s9); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1.1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; } .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .hero-media img { animation: settle 2.4s var(--ease) both; }
  @keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  @keyframes settle { from { opacity: 0; scale: 1.04; } to { opacity: 1; scale: 1; } }
}

/* ---------- inner page hero ---------- */
.page-hero { padding: var(--block) 0 var(--sec); }
.page-hero + .section:not(.band) { padding-top: 0; }
.page-hero h1 { margin-bottom: var(--s6); }
.page-hero .lede { margin-bottom: var(--s6); color: var(--stone); }
.page-hero-grid { display: grid; gap: var(--block); align-items: center; }
.page-hero-media { overflow: hidden; background: var(--band); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s9); }
}
.award-line { margin-top: var(--s7); color: var(--stone); font-size: 0.875rem; line-height: 1.6; max-width: 34em; }

/* ---------- facts list ---------- */
.facts { display: grid; margin: 0; }
.facts div { display: grid; gap: var(--s1); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { font: 500 0.6875rem/1.6 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.facts dd { margin: 0; }
@media (min-width: 560px) { .facts div { grid-template-columns: 10rem 1fr; gap: var(--s5); align-items: baseline; } }

/* ---------- section heads ---------- */
.sec-head { display: grid; gap: var(--s5); margin-bottom: var(--block); }
.sec-head p { color: var(--stone); max-width: 36em; }
.sec-head.town-services { margin-bottom: 0; align-items: start; }
.town-services .more { margin-top: var(--s5); }
@media (min-width: 900px) { .sec-head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--s9); } }

/* ---------- film ---------- */
.film { display: grid; gap: var(--block); align-items: center; }
.film-player { scroll-margin-top: 24px; position: relative; width: min(100%, 420px, calc((100svh - 48px) * 9 / 16)); margin: 0 auto; aspect-ratio: 9 / 16; background: var(--band); overflow: hidden; }
.film-player video { width: 100%; height: 100%; object-fit: cover; }
.film-facts { margin: var(--s6) 0 var(--s5); }
@media (min-width: 560px) { .film-facts div { grid-template-columns: 8.5rem 1fr; } }
.film-player:not(.ready) .film-play { display: none; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s4); background: linear-gradient(180deg, rgba(16,19,21,0) 40%, rgba(16,19,21,.55)); border: 0; color: var(--plaster); cursor: pointer; font: 500 0.75rem/1 var(--f-text); letter-spacing: 0.22em; text-transform: uppercase; }
.film-play .ring { width: 84px; height: 84px; border: 1px solid var(--plaster); border-radius: 50%; display: grid; place-items: center; transition: scale .35s var(--ease), background-color .35s; }
.film-play .ring::before { content: ""; margin-left: 5px; border-left: 14px solid var(--plaster); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@media (hover: hover) { .film-play:hover .ring { scale: 1.06; background: rgba(236,230,218,.08); } }
.film-player.playing .film-play { display: none; }
@media (min-width: 900px) { .film { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9); } .film-player { width: min(100%, 400px, calc((100svh - 64px) * 9 / 16)); margin: 0; justify-self: end; } }

/* ---------- before and after ---------- */
.compare-wrap { display: grid; gap: var(--s6); }
.compare { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--band); --x: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
@media (min-width: 700px) { .compare { aspect-ratio: 16 / 9; } }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; margin-left: -0.5px; background: var(--plaster); pointer-events: none; }
.compare .handle { position: absolute; top: 50%; left: var(--x); width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 1px solid var(--plaster); background: rgba(16,19,21,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.compare .handle::before, .compare .handle::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-top: 1px solid var(--plaster); border-left: 1px solid var(--plaster); }
.compare .handle::before { left: 15px; rotate: -45deg; } .compare .handle::after { right: 15px; rotate: 135deg; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare input[type="range"]:focus-visible ~ .handle { outline: 1px solid var(--brass-hi); outline-offset: 6px; }
.compare .tag { position: absolute; bottom: var(--s5); font: 500 0.6875rem/1 var(--f-text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--plaster); pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.compare .tag-before { left: var(--s5); } .compare .tag-after { right: var(--s5); }
.compare-controls { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: center; }
.compare-controls .btn { min-height: 44px; border: 0; padding: 0; letter-spacing: 0.22em; color: var(--stone); }
.compare-controls .btn[aria-pressed="true"] { color: var(--plaster); background: none; }
@media (hover: hover) { .compare-controls .btn:hover { background: none; color: var(--plaster); } }
.compare-note { color: var(--stone); font-size: 0.9375rem; }

/* ---------- three services ---------- */
.trio { display: grid; gap: var(--s7) var(--s5); }
.trio a { text-decoration: none; display: grid; gap: var(--s4); }
.trio .ph { overflow: hidden; background: var(--band); }
.trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: scale 1.2s var(--ease); }
.trio h3 { margin-top: var(--s2); }
.trio p { color: var(--stone); font-size: 0.9375rem; }
@media (hover: hover) { .trio a:hover img { scale: 1.035; } }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- editorial project blocks ---------- */
.story { display: grid; gap: var(--s6); align-items: center; }
.story + .story { margin-top: var(--sec); }
.story .ph { overflow: hidden; background: var(--band); }
.story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story .ph.whole img { aspect-ratio: auto; } /* shows the whole photo at its own shape */
.story h3 { font-size: clamp(1.3rem, 1.12rem + 0.8vw, 1.85rem); margin-bottom: var(--s4); }
.story p { color: var(--stone); max-width: 30em; }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s9); }
  .story.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .story.flip .ph { order: 2; }
  .story img { aspect-ratio: 4 / 3; }
}

/* ---------- recognition ---------- */
.recognition img.seal { width: 112px; height: 112px; margin: 0 auto var(--s6); }
.recognition .lines { display: grid; gap: var(--s4); margin: var(--s6) auto 0; max-width: 34em; }
.recognition .lines p { font: 400 clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem)/1.35 var(--f-display); }
.recognition .lines span { display: block; font: 500 0.6875rem/1.6 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-top: var(--s1); }
.recognition .rule { margin: var(--block) auto; }
.recognition .partner { display: grid; justify-items: center; gap: var(--s4); }
.recognition .tk, .awards .tk { width: 64px; height: 64px; }
.recognition .partner-title { font: 400 clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem)/1.35 var(--f-display); margin: var(--s2) 0 0; }
.recognition .partner-title span { display: block; font: 500 0.6875rem/1.6 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-top: var(--s1); }
.recognition .partner-note { color: var(--stone); font-size: 0.9375rem; }
.awards .badges { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s6); }
.awards .badges .seal { margin-bottom: 0; }

/* ---------- closing ---------- */
.closing { position: relative; min-height: min(72vh, 600px); display: grid; place-items: center; text-align: center; isolation: isolate; padding: var(--sec) 0; }
@media (min-width: 900px) { .closing { min-height: min(84vh, 720px); } }
.closing .bg { position: absolute; inset: 0; z-index: -1; }
.closing .bg img { width: 100%; height: 100%; object-fit: cover; }
.closing .bg::after { content: ""; position: absolute; inset: 0; background: rgba(16, 19, 21, 0.72); }
.closing h2 { margin: 0 auto var(--s5); }
.closing p { color: var(--plaster); max-width: 32em; margin: 0 auto var(--s7); }
.closing .actions { justify-content: center; }
.closing .tel { display: block; font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.2 var(--f-display); text-decoration: none; margin-bottom: var(--s6); }

/* ---------- features, used on inner pages ---------- */
.feature { display: grid; gap: var(--block); align-items: center; }
.feature-media { overflow: hidden; background: var(--band); }
.feature-media img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; }
.feature h2 { margin-bottom: var(--s5); }
.feature .facts { margin: var(--s7) 0; }
.feature > .facts { margin: 0; }
.feature .facts:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9); } .feature.flip .feature-media { order: 2; } }

/* ---------- services list (services page and area pages) ---------- */
.service-list { list-style: none; }
.service-list li + li { border-top: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: var(--s5); align-items: center; padding: var(--s6) 0; text-decoration: none; }
.service-list a > div { order: -1; }
.service-list img { width: 96px; height: 96px; object-fit: cover; opacity: .9; transition: opacity .3s; }
.service-list h3 { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); margin-bottom: var(--s2); transition: color .25s; }
.service-list p { color: var(--stone); font-size: 0.9375rem; line-height: 1.6; max-width: 36em; }
@media (min-width: 700px) { .service-list a { grid-template-columns: minmax(0, 1fr) 160px; gap: var(--s7); } .service-list img { width: 160px; height: 120px; } }
@media (hover: hover) { .service-list a:hover h3 { color: var(--brass-hi); } .service-list a:hover img { opacity: 1; } }
@media (min-width: 900px) { .services-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s9); align-items: start; } .services-split .sec-head { position: sticky; top: calc(var(--head-h) + var(--s7)); margin-bottom: 0; } }

/* ---------- projects grid ---------- */
.project-grid { display: grid; gap: var(--block) var(--s6); align-items: start; }
.project-card { text-decoration: none; display: grid; gap: var(--s4); }
.project-card .ph { overflow: hidden; background: var(--band); }
.project-card img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; transition: scale 1.2s var(--ease); }
.project-card h3 { transition: color .25s; }
.project-card p { color: var(--stone); font-size: 0.9375rem; }
@media (hover: hover) { .project-card:hover img { scale: 1.03; } .project-card:hover h3 { color: var(--brass-hi); } }
@media (min-width: 760px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Galleries: laid out in full rows by tools/galleries.py. Upright photos (3:4) and wide landscapes share one row height,
   worked out from the gallery's own width so every row lines up exactly. */
.gallery { --g: var(--s3); display: grid; gap: var(--g); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; container-type: inline-size; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--band); }
.gallery .w, .gallery .h, .gallery .f, .gallery .m-full { grid-column: span 2; }
.gallery .w img, .gallery .h img { aspect-ratio: 4 / 3; }
.gallery .f img { aspect-ratio: 3 / 2; }
.gallery .m-full img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .gallery { --g: var(--s5); grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row; }
  .gallery figure, .gallery .m-full { grid-column: span 2; }
  .gallery .w { grid-column: span 4; }
  .gallery .h { grid-column: span 3; }
  .gallery .f { grid-column: span 6; }
  .gallery img, .gallery .m-full img, .gallery .w img { aspect-ratio: auto; height: calc((2 * (100cqi - 5 * var(--g)) / 6 + var(--g)) * 4 / 3); }
  .gallery .h img { aspect-ratio: auto; height: calc((3 * (100cqi - 5 * var(--g)) / 6 + 2 * var(--g)) * 3 / 4); }
  .gallery .f img { aspect-ratio: auto; height: calc(100cqi * 9 / 20); }
}
.gallery figcaption { padding: var(--s3) 0 0; color: var(--stone); font-size: 0.875rem; }

/* ---------- reviews ---------- */
.pull { margin: 0 auto; max-width: 46rem; text-align: center; }
.pull blockquote { margin: 0 0 var(--s6); font: 400 clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem)/1.5 var(--f-display); letter-spacing: 0; }
.pull figcaption, .quote figcaption { font: 500 0.6875rem/1.6 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.pull figcaption strong, .quote figcaption strong { color: var(--plaster); font-weight: 500; }
.quotes { display: grid; gap: var(--block); margin-top: var(--sec); }
.quote { margin: 0; padding-top: var(--s6); border-top: 1px solid var(--line); }
.quote blockquote { margin: 0 0 var(--s5); font: 300 1.0625rem/1.8 var(--f-text); color: var(--plaster); max-width: 62ch; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7); } }
.review-list { display: grid; gap: var(--block); }
@media (min-width: 900px) { .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--block) var(--s9); } }

/* ---------- awards block on About ---------- */
.awards { display: grid; gap: var(--block); align-items: center; }
.awards ul { list-style: none; }
.awards li { padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.awards li:first-child { border-top: 1px solid var(--line); }
.awards li strong { display: block; font: 400 1.4rem/1.25 var(--f-display); margin-bottom: var(--s1); }
.awards li span { font: 500 0.6875rem/1.6 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.awards-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 30%; }
.awards .seal { width: 88px; height: 88px; margin-bottom: var(--s6); }
@media (min-width: 900px) { .awards { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--s9); } }

/* ---------- areas ---------- */
.town-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s5); }
.town-list a, .town-list span { display: block; padding: var(--s2) 0; text-decoration: none; color: var(--stone); }
.town-list a { color: var(--plaster); }
@media (min-width: 760px) { .town-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (hover: hover) { .town-list a:hover { color: var(--brass-hi); } }

/* ---------- area pages: the local guide (homes in each town) and the planning notes ---------- */
.guide-grid { list-style: none; display: grid; gap: var(--s7); }
.guide-grid li { border-top: 1px solid var(--line); padding-top: var(--s5); }
.guide-grid h3 { margin-bottom: var(--s3); }
.guide-grid p { color: var(--stone); max-width: 60ch; }
@media (min-width: 760px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s8); } }
.local-notes { display: grid; gap: var(--block); }
.local-notes h2 { margin-bottom: var(--s5); }
.local-notes .facts dd { overflow-wrap: anywhere; }
@media (min-width: 900px) { .local-notes { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s9); align-items: start; } }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: var(--s7); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s4); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 0.75rem/2.2 var(--f-text); letter-spacing: 0.2em; color: var(--brass); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--stone); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--block) var(--s9); } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5); align-items: center; padding: var(--s5) 0; font: 400 clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem)/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--plaster), var(--plaster)) center / 12px 1px no-repeat, linear-gradient(var(--plaster), var(--plaster)) center / 1px 12px no-repeat; transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq .a { padding: 0 0 var(--s5); color: var(--stone); max-width: 62ch; }

/* ---------- call to action (inner pages) ---------- */
.cta-band { text-align: center; padding: var(--block) 0 0; border-top: 1px solid var(--line); }
.band + .section .cta-band { border-top: 0; padding-top: 0; }
.cta-band h2 { margin: 0 auto var(--s5); }
.cta-band p { color: var(--stone); max-width: 34em; margin: 0 auto var(--s6); }
.cta-band .tel { font: 400 clamp(1.5rem, 1.3rem + 0.8vw, 2rem)/1.2 var(--f-display); text-decoration: none; display: inline-block; margin-bottom: var(--s6); }
.cta-band .actions { justify-content: center; }

/* ---------- enquiry form ---------- */
.form-panel { padding: 0; }
.form-grid { display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--s2); }
.field label, .field legend { font: 500 0.6875rem/1.6 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.field .opt { color: var(--stone); font-weight: 400; letter-spacing: 0.1em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--s3) 0; font: 300 1.0625rem/1.4 var(--f-text); color: var(--plaster);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--plaster) 50%), linear-gradient(135deg, var(--plaster) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 4px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--s6); }
.field select option { background: var(--ground); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-grid { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line-strong); font-size: 0.9375rem; transition: border-color .2s, background-color .2s; }
.choice input:checked + span { border-color: var(--plaster); background: rgba(236, 230, 218, 0.1); }
.choice input:focus-visible + span { outline: 1px solid var(--brass-hi); outline-offset: 3px; }
.form-foot { display: grid; gap: var(--s5); margin-top: var(--s7); }
.form-foot p { color: var(--stone); font-size: 0.875rem; }
.form-status { padding: var(--s4) 0 var(--s4) var(--s5); border-left: 1px solid var(--brass); }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-img { display: none; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: var(--block) 0 var(--s6); text-align: center; font-size: 0.9375rem; color: var(--stone); }
.foot-logo { width: 168px; margin: 0 auto var(--s6); }
@media (min-width: 768px) { .foot-logo { width: 200px; margin-bottom: var(--s7); } }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s5); margin-bottom: var(--s5); }
@media (min-width: 768px) { .foot-nav { gap: var(--s2) var(--s6); margin-bottom: var(--s6); } }
.foot-nav a { font: 500 0.6875rem/1 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--plaster); padding: var(--s3) 0; }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); margin-bottom: var(--s6); }
.foot-contact a { text-decoration: none; color: var(--stone); overflow-wrap: anywhere; }
@media (hover: hover) { .foot-nav a:hover, .foot-contact a:hover { color: var(--brass-hi); } }
.foot-areas { max-width: 44em; margin: 0 auto var(--s4); font-size: 0.875rem; }
.foot-towns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s5); max-width: 52em; margin: 0 auto var(--s4); font-size: 0.875rem; }
.foot-towns + .foot-towns { margin-bottom: var(--s6); }
.foot-towns a { color: var(--stone); text-decoration: none; padding: 5px 0; }
@media (max-width: 767px) { .foot-towns { font-size: 0.8125rem; gap: 0 var(--s4); } }
@media (hover: hover) { .foot-towns a:hover { color: var(--brass-hi); } }
.foot-areas a { color: var(--stone); }
.legal { display: grid; gap: var(--s3); padding-top: var(--s6); border-top: 1px solid var(--line); font-size: 0.75rem; }
.legal a { color: var(--stone); }

/* ---------- press feel (touch) ---------- */
.btn.pressed { scale: 0.955; }
.project-card.pressed, .service-list a.pressed, .trio a.pressed { scale: 0.982; }
.project-card, .service-list a, .trio a { transition: scale .16s var(--ease); }
a.dim { opacity: 0.5; }

/* ---------- first visit: the logo intro (shown once per browser, see HEAD_JS in build.mjs) ---------- */
.intro-veil { display: none; }
html.intro .intro-veil {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--ground); cursor: pointer;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
html.intro-out .intro-veil { opacity: 0; visibility: hidden; }
.intro-logo { width: min(72vw, 420px); height: auto; color: var(--plaster); overflow: visible; transition: translate .9s var(--ease), opacity .7s var(--ease); }
html.intro-out .intro-logo { translate: 0 -12px; opacity: 0; }
.intro-word { animation: intro-word 1.1s var(--ease) .1s both; }
.intro-logo .chip { transform-box: fill-box; transform-origin: 50% 50%; animation: intro-chip .7s var(--ease) both; animation-delay: calc(.45s + var(--i) * 90ms); }
@keyframes intro-word { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes intro-chip { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
/* the hero waits for the intro, then rises as the veil lifts */
html.intro:not(.intro-out) :is(.hero-copy > *, .hero-media img),
html.arriving:not(.arriving-out) :is(.hero-copy > *, .hero-media img, .page-hero h1, .page-hero .lede, .page-hero .actions, .page-hero .facts, .page-hero .award-line, .page-hero-media, .page-hero-media img) { animation-play-state: paused; }

/* ---------- between pages: the six colour squares from the logo ---------- */
.nav-veil {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: var(--ground);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
html.leaving .nav-veil { opacity: 1; visibility: visible; transition: opacity .26s var(--ease), visibility 0s; }
html.arriving .nav-veil { opacity: 1; visibility: visible; transition: opacity .55s var(--ease), visibility 0s linear .55s; }
html.arriving-out .nav-veil { opacity: 0; visibility: hidden; }
.dots { display: flex; gap: 10px; }
.dots i { width: 12px; height: 12px; background: var(--c); opacity: .3; }
/* one wave: 700ms per square, 60ms apart. The new page continues the wave from where the old page left it (--nav-t) */
html.leaving .dots i, html.arriving .dots i { animation: dot .7s var(--ease) infinite both; animation-delay: calc(var(--i) * 60ms + var(--nav-t, 0ms)); }
@keyframes dot { 0%, 100% { opacity: .3; translate: 0 0; } 35% { opacity: 1; translate: 0 -7px; } 70% { opacity: .55; translate: 0 0; } }

/* ---------- elements settle into place as they scroll into view (site.js adds .rv to anything below the fold) ---------- */
.rv { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease) var(--d, 0s), translate 1.2s var(--ease) var(--d, 0s), scale .16s var(--ease); }
.rv.in { opacity: 1; translate: 0 0; }
.rv-img { opacity: 0; clip-path: inset(7% 5% 7% 5%); transition: opacity 1s var(--ease) var(--d, 0s), clip-path 1.5s var(--ease) var(--d, 0s); }
.rv-img.in { opacity: 1; clip-path: inset(0 0 0 0); }
.rv-line { transform: scaleX(0); transform-origin: 50% 50%; transition: transform 1.2s var(--ease) var(--d, 0s); }
.rv-line.in { transform: none; }
/* inner page headings arrive gently on load */
@media (prefers-reduced-motion: no-preference) {
  .page-hero h1, .page-hero .lede, .page-hero .actions, .page-hero .facts, .page-hero .award-line { animation: rise .9s var(--ease) both; }
  .page-hero .lede { animation-delay: .08s; } .page-hero .actions, .page-hero .facts { animation-delay: .16s; } .page-hero .award-line { animation-delay: .24s; }
  .page-hero-media { animation: fade-in 1.2s var(--ease) both; }
  .page-hero-media img { animation: settle 1.8s var(--ease) both; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn.pressed, .project-card.pressed, .service-list a.pressed, .trio a.pressed { scale: 1; }
  .rv, .rv-img { opacity: 1; translate: none; clip-path: none; }
  .rv-line { transform: none; }
}

/* ?count=off and ?count=on confirmation */
.count-note { position: fixed; left: 50%; top: 16px; translate: -50% 0; z-index: 200; margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--ground, #101315); color: #fff; font: 600 14px/1.3 system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); }
/* the spam check on the quote form */
.turnstile { margin-top: var(--s5); min-height: 65px; }
