/* Pritchard & Sons Roofing
   Direction: classic and established. Brunswick green with a brass accent,
   a crest wordmark under a drawn roof pitch, and slate courses as the signature divider. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --primary:      #1f4234;
  --primary-mid:  #2c5a46;
  --primary-dark: #132a20;
  --accent:       #d3a64a;
  --accent-mid:   #e6c47a;
  --accent-ink:   #7a5a18;

  /* Slate tones for the course bands */
  --slate:        #3e4950;
  --slate-light:  #4d5960;
  --slate-joint:  #1d2427;

  /* Neutrals */
  --bg:        #f5f1e7;
  --surface:   #fffdf7;
  --border:    #dcd3c0;
  --text:      #1b2420;
  --text-soft: #45504a;
  --text-muted:#5d6660;
  --on-dark:      #f4efe3;
  --on-dark-soft: #c8d2c9;

  /* Typography */
  --font-display: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-body:    'Libre Franklin', 'Helvetica Neue', Helvetica, sans-serif;

  /* Spacing and shape */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      3px;
  --radius-lg:   6px;
  --ease:        cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { max-width: 65ch; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.section { padding-block: var(--section-pad); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--primary-dark);
  padding: .6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Shared type pieces ---------- */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .9rem;
}
.on-dark .eyebrow { color: var(--accent); }

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-head::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: .95rem;
  margin: 0 auto 1.2rem;
  background: var(--accent-ink);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 86% 100%, 50% 24%, 14% 100%);
}
.on-dark .section-head::before { background: var(--accent); }
.section-head p {
  margin: 1.1rem auto 0;
  color: var(--text-soft);
  font-size: 1.1rem;
}
.on-dark .section-head p { color: var(--on-dark-soft); }

.on-dark {
  background: var(--primary);
  color: var(--on-dark);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.1rem;
  padding: .8rem 1.6rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }

.btn-brass {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-brass:hover, .btn-brass:focus-visible { background: var(--accent-mid); }

.btn-line {
  border-color: rgba(244, 239, 227, .55);
  color: var(--on-dark);
  background: transparent;
}
.btn-line:hover, .btn-line:focus-visible {
  border-color: var(--accent);
  color: var(--accent-mid);
}

.btn-green {
  background: var(--primary);
  color: var(--on-dark);
}
.btn-green:hover, .btn-green:focus-visible { background: var(--primary-mid); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: color .2s, text-underline-offset .2s;
}
.text-link:hover { color: var(--primary); text-underline-offset: .45em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary-dark);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(211, 166, 74, .35);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(10, 22, 17, .35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--on-dark);
}
.brand-mark {
  width: 2.4rem;
  height: auto;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linejoin: miter;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; }
.brand-sub {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .2rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(211, 166, 74, .6);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: rgba(211, 166, 74, .12); border-color: var(--accent); }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--accent);
  transition: transform .25s var(--ease), background .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-links {
  list-style: none;
  display: none;
}
.nav-links a {
  display: block;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent-mid); }
.nav-links a[aria-current="page"] { color: var(--accent); }

/* Mobile open panel */
.nav-links.open {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--primary-dark);
  border-bottom: 2px solid var(--accent);
  padding: .5rem clamp(1rem, 5vw, 2rem) 1.25rem;
  box-shadow: 0 14px 24px rgba(10, 22, 17, .35);
}
.nav-links.open a {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(244, 239, 227, .12);
}
.nav-links.open li:last-child a { border-bottom: 0; }

/* ---------- Crest (hero) ---------- */

.hero {
  position: relative;
  text-align: center;
  background-color: var(--primary-dark);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 47px),
    radial-gradient(ellipse at 50% 30%, var(--primary) 0%, var(--primary-dark) 70%);
  color: var(--on-dark);
  padding-top: clamp(2.75rem, 7vw, 5.5rem);
  overflow: hidden;
}

.crest { display: flex; flex-direction: column; align-items: center; }

.crest-svg {
  width: min(17rem, 72vw);
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: square;
  stroke-linejoin: miter;
  overflow: visible;
}
.crest-svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.crest-svg .roof       { stroke-width: 3; }
.crest-svg .roof-inner { stroke-width: 1.2; opacity: .7; }
.crest-svg .chimney    { stroke-width: 2.4; }

.crest-name {
  font-size: clamp(2.15rem, 9.5vw, 5.75rem);
  letter-spacing: -.01em;
  margin-top: -.15em;
  line-height: 1.05;
}
.crest-name .amp {
  font-style: italic;
  color: var(--accent);
}

.crest-trade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(100%, 30rem);
  margin-top: 1rem;
}
.crest-trade::before,
.crest-trade::after {
  content: "";
  flex: 1 1 4rem;
  height: 1px;
  background: var(--accent);
}
.crest-trade span {
  font-size: clamp(.8rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: .32em;
  margin-right: -.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.crest-place {
  margin-top: .75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--on-dark-soft);
}

.hero-lede {
  margin: clamp(1.5rem, 4vw, 2.25rem) auto 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 2rem;
}

/* Triptych standing on the slate courses */
.triptych {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  align-items: end;
  gap: clamp(.5rem, 2vw, 1.5rem);
  max-width: 62rem;
  margin: clamp(2.75rem, 6vw, 4.5rem) auto 0;
}
.triptych > div { position: relative; overflow: hidden; background: var(--primary); }
.triptych img { width: 100%; height: 100%; object-fit: cover; }
.tri-side { aspect-ratio: 3 / 4; }
.tri-centre {
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
}
.tri-centre img { object-position: 58% 40%; }

/* ---------- Page entrance ---------- */

@keyframes draw  { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes rule  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes track { from { opacity: 0; letter-spacing: .7em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes part-l { from { opacity: 0; transform: translateX(30%); } to { opacity: 1; transform: none; } }
@keyframes part-r { from { opacity: 0; transform: translateX(-30%); } to { opacity: 1; transform: none; } }
@keyframes lift  { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.crest-svg .roof       { animation: draw 1.1s var(--ease) .15s both; }
.crest-svg .roof-inner { animation: draw 1s var(--ease) .45s both; }
.crest-svg .chimney    { animation: draw .55s ease-out .95s both; }
.crest-name            { animation: rise .9s var(--ease) .55s both; }
.crest-trade::before   { transform-origin: right center; animation: rule .8s var(--ease) 1s both; }
.crest-trade::after    { transform-origin: left center;  animation: rule .8s var(--ease) 1s both; }
.crest-trade span      { animation: track 1s var(--ease) .95s both; }
.crest-place           { animation: fade .8s ease 1.2s both; }
.hero-lede             { animation: rise .8s var(--ease) 1.3s both; }
.hero-actions          { animation: rise .8s var(--ease) 1.45s both; }
.tri-centre            { animation: lift 1s var(--ease) 1.35s both; }
.tri-left              { animation: part-l 1s var(--ease) 1.6s both; }
.tri-right             { animation: part-r 1s var(--ease) 1.6s both; }

/* ---------- Slate courses (signature divider) ---------- */

.slate-courses {
  height: 3.75rem;
  border-top: 3px solid var(--accent);
  background-color: var(--slate);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0, transparent 35%, rgba(0, 0, 0, .28) 92%, var(--slate-joint) 92%),
    linear-gradient(90deg, var(--slate-joint) 0 2px, transparent 2px),
    linear-gradient(90deg, var(--slate-joint) 0 2px, transparent 2px),
    linear-gradient(90deg, var(--slate-joint) 0 2px, transparent 2px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .05) 46px 92px, transparent 92px 184px, rgba(0, 0, 0, .08) 184px 230px, transparent 230px 322px);
  background-size:
    100% 33.34%,
    46px 33.34%,
    46px 33.34%,
    46px 33.34%,
    100% 100%;
  background-position:
    0 0,
    0 0,
    23px 50%,
    0 100%,
    0 0;
  background-repeat:
    repeat-y,
    repeat-x,
    repeat-x,
    repeat-x,
    no-repeat;
}

/* ---------- Home: intro ---------- */

.intro { text-align: center; }
.intro .lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0 auto;
  max-width: 40rem;
}
.intro .lead + p {
  margin: 1.4rem auto 0;
  color: var(--text-soft);
}

/* ---------- Home: ledger of services ---------- */

.ledger {
  list-style: none;
  border-top: 1px solid var(--border);
  max-width: 64rem;
  margin-inline: auto;
}
.ledger-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--border);
}
.ledger-num {
  grid-row: span 3;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent-ink);
}
.ledger-item h3 { margin-bottom: .5rem; }
.ledger-item p { color: var(--text-soft); margin-bottom: .9rem; }
.ledger-item .text-link { justify-self: start; }

/* ---------- Home: re-roof signs ---------- */

.signs {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 68rem;
  margin-inline: auto;
}
.signs-figure { margin-inline: auto; width: min(100%, 22rem); }
.gable-frame {
  background: var(--accent);
  padding: 5px;
  clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
}
.gable-frame > * {
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 19.4%, 50% 0, 100% 19.4%, 100% 100%, 0 100%);
  overflow: hidden;
}
.gable-frame img { width: 100%; height: 100%; object-fit: cover; }

.signs-col { display: grid; gap: 2rem; }
.sign h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--accent-mid);
  margin-bottom: .45rem;
}
.sign p { color: var(--on-dark-soft); }
.signs-foot {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.signs-foot p {
  margin: 0 auto 1.5rem;
  color: var(--on-dark);
  font-size: 1.1rem;
}

/* ---------- Home: family statement ---------- */

.family {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.family::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: min(120vw, 60rem);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: rgba(31, 66, 52, .06);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 94% 100%, 50% 12%, 6% 100%);
  pointer-events: none;
}
.family-statement {
  font-size: clamp(2.3rem, 7vw, 4.75rem);
  line-height: 1.1;
  margin: .25rem auto 1.25rem;
}
.family-statement em { color: var(--accent-ink); }
.family p { margin-inline: auto; color: var(--text-soft); }

.places {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 0;
  margin: 2.25rem auto 0;
  max-width: 44rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary);
}
.places li { padding-inline: .9rem; position: relative; }
.places li + li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-ink);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- CTA band ---------- */

.cta {
  text-align: center;
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.cta-inner {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: -8px;
}
.cta h2 { margin-bottom: 1rem; }
.cta p { margin: 0 auto 1.75rem; color: var(--text-soft); }
.cta-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.75rem);
  color: var(--primary);
  text-decoration: none;
  margin-bottom: .4rem;
  transition: color .2s;
}
.cta-phone:hover { color: var(--accent-ink); }
.cta-email {
  display: block;
  color: var(--text-soft);
  overflow-wrap: anywhere;
  margin-bottom: 1.75rem;
}

/* ---------- Inner page heading ---------- */

.page-head {
  text-align: center;
  background-color: var(--primary-dark);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 47px),
    radial-gradient(ellipse at 50% 20%, var(--primary) 0%, var(--primary-dark) 70%);
  color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-head .crest-svg { width: min(9rem, 40vw); margin: 0 auto .5rem; }
.page-head h1 {
  font-size: clamp(2.3rem, 7vw, 4.25rem);
  animation: rise .9s var(--ease) .5s both;
}
.page-head .eyebrow {
  color: var(--accent);
  animation: track 1s var(--ease) .9s both;
  margin: 1rem auto 0;
  text-align: center;
  letter-spacing: .32em;
}
.page-head p {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  color: var(--on-dark-soft);
  font-size: 1.1rem;
  animation: rise .8s var(--ease) 1.1s both;
}

/* ---------- Services page ---------- */

.jump {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.jump a {
  display: inline-block;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.jump a:hover { border-color: var(--accent-ink); background: #fbf6ea; }

.service {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}
.service:last-child { border-bottom: 0; }

.media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--primary);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(244, 239, 227, .55);
  pointer-events: none;
}
.tag {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  background: rgba(19, 42, 32, .9);
  color: var(--on-dark);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 2px;
}

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent-ink);
  display: block;
  margin-bottom: .25rem;
}
.service h2 { margin-bottom: 1rem; }
.service p { color: var(--text-soft); margin-bottom: 1rem; }
.service h3 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 1.5rem 0 .75rem;
}

.chev-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.5rem; }
.chev-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-soft);
}
.chev-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .85rem;
  height: .45rem;
  background: var(--accent-ink);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 35%, 20% 100%);
}

/* Drawn flat roof section */
.diagram {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}
.diagram svg { width: 100%; height: 100%; }
.diagram::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(211, 166, 74, .5);
  pointer-events: none;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 68rem;
  margin-inline: auto;
}
.gallery-col { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); align-content: start; }
.plate { margin: 0; }
.plate .media, .plate .diagram { aspect-ratio: 4 / 3; }
.plate figcaption {
  margin-top: .75rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-soft);
}
.plate-centre .gable-frame > * { aspect-ratio: 3 / 4; }
.plate-centre { width: min(100%, 24rem); margin-inline: auto; }
.plate-centre .gable-frame { position: relative; }
.plate-centre .tag { bottom: 18px; }

.note {
  max-width: 40rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}

/* ---------- About: plaque ---------- */

.plaque {
  max-width: 50rem;
  margin-inline: auto;
  background: var(--primary);
  color: var(--on-dark);
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: -10px;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}
.plaque h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.75rem; }
.plaque dl { display: grid; text-align: center; }
.plaque dl > div {
  padding-block: 1rem;
  border-top: 1px solid rgba(211, 166, 74, .3);
}
.plaque dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .3rem;
}
.plaque dd {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.prose { max-width: 42rem; margin-inline: auto; }
.prose h2 { margin-bottom: 1rem; }
.prose h2:not(:first-child) { margin-top: 2.75rem; }
.prose p { color: var(--text-soft); margin-bottom: 1.1rem; }
.prose p a { color: var(--accent-ink); }
.prose .chev-list { margin-top: .5rem; }
.prose-centre { text-align: center; }
.prose-centre p { margin-inline: auto; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: 68rem;
  margin-inline: auto;
}
.contact-card {
  background: var(--primary);
  color: var(--on-dark);
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: -8px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  align-self: start;
}
.contact-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 1.5rem; }
.contact-card dl { display: grid; gap: 1.4rem; }
.contact-card dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .25rem;
}
.contact-card dd { font-family: var(--font-display); font-size: 1.2rem; overflow-wrap: anywhere; }
.contact-card dd a { text-decoration: none; color: var(--on-dark); border-bottom: 1px solid var(--accent); transition: color .2s; }
.contact-card dd a:hover { color: var(--accent-mid); }
.contact-card .big { font-size: clamp(1.5rem, 5vw, 1.9rem); }

.form-wrap h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: .6rem; }
.form-wrap > p { color: var(--text-soft); margin-bottom: 1.75rem; }

.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #b9b09d;
  border-radius: var(--radius);
  padding: .85rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--accent-ink); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211, 166, 74, .45);
}
.contact-form .btn { justify-self: start; }

.form-thanks {
  border: 1px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: -8px;
  background: var(--surface);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.form-thanks:focus { outline-offset: -8px; }
.form-thanks h2 { margin-bottom: .75rem; }
.form-thanks p { margin-inline: auto; color: var(--text-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--primary-dark);
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .95rem;
}
.footer-inner {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}
.footer-brand .brand { justify-content: center; }
.footer-brand p { margin: 1rem auto 0; max-width: 22rem; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.footer-links { list-style: none; display: grid; gap: .4rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent-mid); text-decoration: underline; text-underline-offset: .25em; }
.footer-contact p { margin-inline: auto; overflow-wrap: anywhere; }
.footer-contact p + p { margin-top: .4rem; }

.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(211, 166, 74, .25);
  display: grid;
  gap: .5rem;
  text-align: center;
  font-size: .85rem;
}
.footer-base p { margin-inline: auto; max-width: none; }
.footer-base .sep { color: var(--accent); padding-inline: .4rem; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Tablet and up ---------- */

@media (min-width: 768px) {
  .site-header { position: relative; }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: .9rem;
    padding-block: 1.25rem 0;
  }
  .brand-mark { width: 2.9rem; }
  .brand-name { font-size: 1.45rem; }
  .nav-toggle { display: none; }
  .site-nav {
    width: 100%;
    border-top: 1px solid rgba(211, 166, 74, .3);
  }
  .nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.25rem);
  }
  .nav-links a { position: relative; padding-block: 1rem; font-size: .8rem; }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%) scaleX(0);
    transition: transform .25s var(--ease);
  }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

  .ledger { display: grid; grid-template-columns: 1fr 1fr; }
  .ledger-item:nth-child(odd)  { padding-right: clamp(1.5rem, 4vw, 3.5rem); border-right: 1px solid var(--border); }
  .ledger-item:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 3.5rem); }

  .signs { grid-template-columns: 1fr minmax(0, 20rem) 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
  .signs-left  { text-align: right; }
  .signs-left p { margin-left: auto; }

  .service { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .service:nth-child(even) .service-media { order: 2; }

  .gallery { grid-template-columns: 1fr 1.25fr 1fr; align-items: center; }

  .plaque dl > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: baseline;
  }
  .plaque dt { text-align: right; margin: 0; }
  .plaque dd { text-align: left; }

  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }

  .footer-inner { grid-template-columns: 1fr 1.3fr 1fr; align-items: start; }
  .footer-brand { order: 2; }
  .footer-nav   { order: 1; }
  .footer-contact { order: 3; }
  .footer-base { grid-template-columns: 1fr auto; text-align: left; }
  .footer-base p { margin: 0; }
  .footer-base p:last-child { text-align: right; }
}

@media (min-width: 1024px) {
  body { font-size: 1.09rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile nav guard: must stay last ----------
   Under 768px the links are hidden in every header state
   until the menu button adds the open class. */
@media (max-width: 767.98px) {
  .site-header .nav-links,
  .site-header.scrolled .nav-links,
  .site-header.scrolled .site-nav .nav-links {
    display: none;
  }
  .site-header .site-nav .nav-links.open,
  .site-header.scrolled .site-nav .nav-links.open {
    display: flex;
  }
}
