/* Kueppers Property Services - style.css v3 (2026-09-07, edit round 5)
   Palette: Atlantic-sky grey ground, ink fields, PEI clay red as the single accent.
   Type: EB Garamond (display) + Public Sans (body and navigation), self-hosted.
   Shape language: hard rectangles, 1px hairlines, no radius anywhere. */

@font-face { font-family: "EB Garamond"; src: url("fonts/ebgaramond-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --sky: #DDE4E8;
  --sky-raised: #EDF1F3;
  --sky-sunk: #C9D3D9;
  --ink: #14202A;
  --ink-raised: #1E2C38;
  --ink-soft: #3D4C58;
  --clay: #9E3B26;
  --clay-deep: #7E2E1D;
  --clay-light: #C9765F;
  --white: #FFFFFF;
  --hair: 1px solid var(--sky-sunk);
  --hair-light: 1px solid rgba(255,255,255,.22);
  --display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --head-h: 156px;
  --head-h-small: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(46px, 7.6vw, 100px); letter-spacing: -0.01em; }
h2 { font-size: clamp(33px, 4.3vw, 54px); }
h3 { font-size: clamp(22px, 2.3vw, 29px); letter-spacing: 0; }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 300; }
.skip:focus { left: 8px; }

/* Buttons. Container link rules are scoped a:not(.btn) so they never touch these. */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: 0;
  background: var(--clay); color: var(--white); text-decoration: none; padding: 14px 24px; border: 0; cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--clay-deep); color: var(--white); }
.btn--light { background: var(--white); color: var(--clay); }
.btn--light:hover { background: var(--sky); color: var(--clay-deep); }

/* ---------- Header: logo left, sections across the top, Call now at the end.
   Big and transparent over the hero, shrinks to an ink bar on scroll. ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--head-h);
  display: flex; align-items: center; gap: var(--s4); padding: 0 var(--gutter);
  transition: height .28s ease, background-color .28s ease, box-shadow .28s ease;
}
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,32,42,.55) 0%, rgba(20,32,42,0) 100%);
  opacity: 1; transition: opacity .28s ease;
}
/* A tone of its own. On --ink it disappeared the moment it crossed an ink block. */
body.scrolled .site-head, body.no-hero .site-head, body.menu-open .site-head {
  background: var(--ink-raised); height: var(--head-h-small);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 18px rgba(9,16,22,.34); }
body.scrolled .site-head::before, body.no-hero .site-head::before, body.menu-open .site-head::before { opacity: 0; }
body.menu-open { overflow: hidden; }
.site-head .logo { display: block; flex: 0 0 auto; }
.site-head .logo img { height: 132px; width: auto; transition: height .28s ease; }
body.scrolled .site-head .logo img, body.no-hero .site-head .logo img, body.menu-open .site-head .logo img { height: 66px; }
.site-head__right { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }

.nav ul { display: flex; align-items: center; gap: var(--s4); }
.nav a {
  color: var(--white); text-decoration: none; font-family: var(--body); font-weight: 500; font-size: 16px;
  letter-spacing: 0; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); border-bottom-color: var(--clay-light); }
.nav a[aria-current="page"] { border-bottom-color: var(--clay-light); }
.head-call { white-space: nowrap; }
.nav__foot { display: none; }

/* Mobile menu button and panel */
.menu-btn {
  display: none; position: relative; width: 46px; height: 40px; padding: 0;
  background: transparent; border: 0; cursor: pointer; color: var(--white);
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-btn::before { top: 12px; }
.menu-btn span { top: 19px; }
.menu-btn::after { top: 26px; }
body.menu-open .menu-btn::before { top: 19px; transform: rotate(45deg); }
body.menu-open .menu-btn span { opacity: 0; }
body.menu-open .menu-btn::after { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero--photos { height: min(90svh, 880px); min-height: 460px; }
/* A contained photo gets wider as the frame gets taller, so the ink margins either side
   stay narrow. Never solve those margins by cropping the picture. */
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media picture img { object-position: center 52%; }
/* Three-photo hero, the Mauldin crossfade: slides stack, only .active is opaque.
   The photos are shown WHOLE (object-fit: contain on the ink ground), never cover-cropped
   into a wide band: a hero that zooms into a third of the picture looks worse than one
   that shows all of it. The hero height is set from the photos' own 4:3 so the bars are
   narrow. See creative-learnings.md, "never zoom a photo to fill a frame". */
.hero__media--slides { background: var(--ink); }
html.js .hero--photos { cursor: pointer; }
.hero--photos:focus-visible { outline: 3px solid var(--clay-light); outline-offset: -3px; }
.hero-slide picture { position: absolute; inset: 0; }
/* Full bleed to every edge. The frame is kept close to the photographs' own 4:3 so cover
   shaves only a little sky and a little grass instead of zooming into the middle of the
   picture: at 1440x880 the frame is 1.64:1 against a 1.33:1 photo, so about 81% of the
   height survives. Never solve a frame by cutting the picture down to a band. */
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.no-js .hero-slide:first-child, html:not(.js) .hero-slide:first-child { opacity: 1; }
.hero-dots { position: absolute; left: auto; right: var(--gutter); bottom: clamp(30px, 5vh, 58px); transform: none; display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.42); cursor: pointer; transition: background .3s ease; }
.hero-dots button.active { background: var(--clay-light); }
.hero__media video + img, .hero__media video ~ img { display: none; }  /* the video's poster fallback only */
.hero__media picture, .hero__media picture img { display: block; }
@media (prefers-reduced-motion: reduce) {
  .hero__media video { display: none; }
  .hero__media video ~ img, .hero__media video + img { display: block; }
}
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(20,32,42,.46) 0%, rgba(20,32,42,.12) 34%, rgba(20,32,42,.10) 52%, rgba(20,32,42,.58) 82%, rgba(20,32,42,.80) 100%); }
.hero__title { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--head-h) var(--gutter); color: var(--white); }
/* The logo sits low and left, in the quiet part of the frame, rather than across the middle
   of whatever building is in the photograph. */
.hero__mark { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(28px, 5vh, 56px); color: var(--white); z-index: 2; }
.hero__mark h1 { margin: 0; color: var(--white); max-width: 15ch;
  font-size: clamp(38px, 5.4vw, 74px);
  text-shadow: 0 0 14px rgba(255,255,255,.10), 0 2px 26px rgba(0,0,0,.62); }
.hero__mark p { margin: var(--s2) 0 0; font-family: var(--display); font-weight: 600; letter-spacing: 0;
  font-size: clamp(17px, 1.9vw, 24px); line-height: 1.3; max-width: 40ch;
  text-shadow: 0 0 12px rgba(255,255,255,.08), 0 2px 18px rgba(0,0,0,.62); }
.hero__title h1 { color: var(--white); max-width: 14ch;
  text-shadow: 0 0 14px rgba(255,255,255,.10), 0 2px 26px rgba(0,0,0,.58); }
/* The hero standfirst is set in the display serif, not the body sans: at this size the sans
   read as a caption under a serif headline rather than as part of the same sentence. */
.hero__title p { margin: var(--s3) 0 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(19px, 2.3vw, 27px); line-height: 1.3; max-width: 30ch; letter-spacing: 0;
  text-shadow: 0 0 12px rgba(255,255,255,.08), 0 2px 18px rgba(0,0,0,.58); }
/* The frame is the clip's own 16:9, so cover crops nothing and the whole shot is on screen.
   Capped so it cannot run past the fold on a wide monitor. */
.hero--page { height: auto; aspect-ratio: 16 / 9; max-height: 92svh; min-height: 300px; background: var(--ink); }
/* contain as well as the matching box, so that even where the cap bites on a tall window
   the clip is letterboxed rather than having its roofline cut off. */
.hero--page .hero__media video, .hero--page .hero__media img { object-fit: contain; }
.hero--page .hero__mark h1 { max-width: 18ch; font-size: clamp(34px, 4.4vw, 62px); }
.hero__cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: var(--white); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.hero__cue svg { width: 22px; height: 22px; }

/* ---------- Badge strip, directly under the hero ---------- */
/* Service subtitle: the one line that has to be read before the paragraph. */
.block__sub { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: 0; margin: calc(var(--s2) * -1) 0 var(--s3); color: var(--clay-light); }
.block:not(.block--ink) .block__sub { color: var(--clay); }

/* A small bordered box that reads as a doorway to the fuller page. */
.more-box { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s3);
  padding: 14px 18px; border: 1px solid var(--sky-sunk); color: inherit; text-decoration: none;
  font-weight: 600; font-size: 16px; transition: background .2s ease, border-color .2s ease; }
.more-box svg { width: 15px; height: 15px; color: var(--clay); }
.more-box:hover { background: var(--sky-raised); border-color: var(--clay); }
.block--ink .more-box { border-color: rgba(255,255,255,.28); }
.block--ink .more-box:hover { background: var(--ink-raised); border-color: var(--clay-light); }
.block--ink .more-box svg { color: var(--clay-light); }

.badges { background: var(--sky-raised); border-bottom: var(--hair); }
.badges ul { display: flex; }
.badges li { flex: 1 1 0; padding: var(--s3) var(--s3) var(--s3) 0; border-right: var(--hair); font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 23px); letter-spacing: 0; }
.badges li:last-child { border-right: 0; }
.badges li + li { padding-left: var(--s3); }

/* ---------- Inner page head ---------- */
.page-head { background: var(--ink); color: var(--white); padding: calc(var(--head-h-small) + var(--s6)) 0 var(--s6); }
.page-head h1 { color: var(--white); max-width: 16ch; }
.page-head p { color: var(--sky-sunk); font-size: clamp(17px, 1.6vw, 21px); margin: var(--s3) 0 0; max-width: 52ch; }

/* ---------- Programme blocks ---------- */
.block { padding: var(--s7) 0; border-bottom: var(--hair); }
.block__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: start; }
.block__grid--flip .block__text { order: 2; }
.block__text { max-width: 54ch; }
.block__text h2 { margin-bottom: var(--s3); }
.title-link { color: inherit; text-decoration: none; }
.title-link::after { content: " \203A"; color: var(--clay); font-weight: 400; }
.title-link:hover { color: var(--clay-deep); }
.block--ink .title-link { color: var(--white); }
.block--ink .title-link::after { color: var(--clay-light); }
.block--ink .title-link:hover { color: var(--clay-light); }
.block__text .more { display: inline-block; margin-top: var(--s2); font-weight: 600; font-size: 17px; }
.block__grid > figure { max-width: 640px; }
.block__grid > figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 38%; }
.fig--mid { max-width: 560px; }
.fig--small { max-width: 480px; }
.fig--top img { object-position: center 22%; }
.fig--upper img { object-position: center 30%; }
.block--ink { background: var(--ink); color: var(--white); border-bottom: 0; }
.block--ink h2, .block--ink h3 { color: var(--white); }
.block--ink a:not(.btn) { color: var(--white); }
.block--ink a:not(.btn):hover { color: var(--clay-light); }
.block--raised { background: var(--sky-raised); }

/* ---------- The storey stack ---------- */
.stack { position: relative; margin-top: var(--s6); padding-left: 30px; }
.stack__spine { position: absolute; left: 0; top: 0; width: 3px; height: 100%; overflow: visible; }
.stack__spine line { stroke: var(--clay-light); stroke-width: 3; stroke-linecap: butt; }
.storey { border-top: 1px solid rgba(255,255,255,.22); padding: var(--s3) 0 var(--s4); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s2) var(--s5); position: relative; }
.storey:first-child { border-top: 0; }
.storey h3 { margin: 0; }
.storey p { margin: 0; max-width: 56ch; color: var(--sky-sunk); }
.storey p + p { margin-top: var(--s2); }
.storey--managed { border-top: 1px solid rgba(255,255,255,.22); }
.tag { display: inline-block; margin-top: var(--s1); font-size: 14px; font-weight: 600; color: var(--clay-light); }
.stack--compact .storey { padding: var(--s2) 0 var(--s3); }

.stack--compact .storey h3 { font-size: 20px; }
.stack--compact .storey p { font-size: 16px; }
.stack--full .storey { padding: var(--s4) 0 var(--s5); }


/* ---------- Promise row ---------- */
.promise { padding: var(--s6) 0; border-bottom: var(--hair); }
.promise__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.promise__row > div { padding: var(--s3) var(--s3) var(--s3) 0; border-right: var(--hair); font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.9vw, 25px); letter-spacing: 0; }
.promise__row > div:last-child { border-right: 0; }
.promise__row > div + div { padding-left: var(--s3); }
.promise__text { max-width: 62ch; margin-top: var(--s4); font-size: 18px; }

/* ---------- Placeholder panel ---------- */
.ph { border: 1px dashed var(--ink-soft); background: var(--sky-sunk); padding: var(--s3); color: var(--ink); }
.ph__label { font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--clay-deep); margin-bottom: var(--s1); display: block; }
.ph p { font-size: 15px; margin: 0; max-width: 60ch; }
.block--ink .ph { background: var(--ink-raised); border-color: rgba(255,255,255,.35); color: var(--white); }
.block--ink .ph__label { color: var(--clay-light); }

/* ---------- Contact ---------- */
.contact-panel { background: var(--ink); color: var(--white); padding: var(--s7) 0; }
.contact-panel h2 { color: var(--white); margin-bottom: var(--s4); }
.contact-panel a:not(.btn) { color: var(--white); }
.contact-panel a:not(.btn):hover { color: var(--clay-light); }
.facts { display: grid; grid-template-columns: 1fr; border-top: var(--hair-light); max-width: 640px; }
.facts > div { padding: var(--s2) 0; border-bottom: var(--hair-light); display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--s2); font-size: 16px; }
.facts dt { color: var(--sky-sunk); margin: 0; }
.facts dd { margin: 0; font-family: var(--body); font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }
.contact-panel .btn { margin-top: var(--s4); }

/* ---------- Form ---------- */
.form { background: var(--sky-raised); padding: var(--s4); border: var(--hair); max-width: 640px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.form .field { margin-bottom: var(--s3); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--ink-soft); background: var(--white); color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form small { display: block; margin-top: var(--s2); color: var(--ink-soft); font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: start; padding: var(--s7) 0; }
.contact-grid .facts { border-top: 2px solid var(--ink); }
.contact-grid .facts > div { border-bottom: var(--hair); }
.contact-grid .facts dt { color: var(--ink-soft); }
.contact-grid .facts dd a { color: var(--ink); }
.contact-grid .facts dd a:hover { color: var(--clay-deep); }
.contact-grid figure { margin-top: var(--s5); max-width: 520px; }

/* ---------- Photo rows ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: start; margin-top: var(--s5); }
.pair img { width: 100%; }
.pair--square img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.plain-list { border-top: 2px solid var(--ink); max-width: 720px; }
.plain-list li { border-bottom: var(--hair); padding: var(--s2) 0; }
.plain-list h3 { font-size: 20px; margin-bottom: 4px; }
.plain-list p { font-size: 16px; }
.block__grid--media { align-items: stretch; }
.media-col { position: relative; min-height: 340px; }
.phone-inset { position: relative; background: var(--ink); padding: 12px; max-width: 380px; }
@media (min-width: 961px) {
  .phone-inset { position: absolute; inset: 0; max-width: none; display: flex; align-items: center; justify-content: center; }
}
.vid-controls { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; justify-content: flex-end; }
.vid-btn { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(20,32,42,.72); color: var(--white); border: 0; cursor: pointer; padding: 0; }
.vid-btn:hover { background: var(--clay); }
.vid-btn svg { width: 18px; height: 18px; fill: currentColor; }
.phone-inset video:fullscreen, .phone-inset video:-webkit-full-screen { object-fit: contain; background: #000; width: 100%; height: 100%; }
.phone-inset video { width: 100%; height: auto; max-height: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (min-width: 961px) { .phone-inset video { width: auto; height: 100%; } }
.phone-inset img { display: none; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .phone-inset video { display: none; }
  .phone-inset img { display: block; }
}

/* ---------- Gallery (Symmetrics lightbox pattern) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s5) 0 0; }
.filters button { font: inherit; font-weight: 600; font-size: 15px; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 9px 16px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filters button:hover { background: var(--clay); border-color: var(--clay); color: var(--white); }
html:not(.js) .filters { display: none; }
.gallery { column-count: 3; column-gap: var(--s3); padding: var(--s4) 0 var(--s7); }
.gallery a.is-hidden { display: none; }
.gal-tile { display: block; line-height: 0; overflow: hidden; background: var(--sky-sunk); break-inside: avoid; margin: 0 0 var(--s3); }
.gal-tile img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.gal-tile:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,32,42,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 88vh; width: auto; height: auto; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: var(--white); font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: .85; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 14px; right: 18px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 60px; }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 60px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--sky-sunk); padding: var(--s6) 0 calc(var(--s6) + 64px); border-top: var(--hair-light); }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.site-foot img { height: 110px; width: auto; }
.site-foot a:not(.btn) { color: var(--white); text-decoration: none; }
.site-foot a:not(.btn):hover { text-decoration: underline; }
.site-foot ul li { padding: 5px 0; font-weight: 500; }
.site-foot p { font-size: 15px; }
.site-foot__credit { margin-top: var(--s4); font-size: 14px; }
.site-foot__credit a:not(.btn) { color: var(--sky-sunk); }

.callbar { display: none; }
.simple { padding: var(--s7) 0 var(--s8); max-width: 60ch; }
.simple h2 { margin-bottom: var(--s3); }

/* ---------- Motion: one-shot rise-in on entry. Never masks text mid-scroll. ---------- */
html.js .rise { opacity: 0; transform: translateY(18px); }
html.js .rise.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
html.js .stack__spine line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .stack.is-in .stack__spine line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease .1s; }
@media (prefers-reduced-motion: reduce) {
  html.js .rise { opacity: 1; transform: none; }
  html.js .stack__spine line { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav ul { gap: var(--s3); }
  .nav a { font-size: 15px; }
  .site-head__right { gap: var(--s3); }
}
@media (max-width: 960px) {
  :root { --head-h: 112px; --head-h-small: 72px; }
  .site-head .logo img { height: 84px; }
  body.scrolled .site-head .logo img, body.no-hero .site-head .logo img, body.menu-open .site-head .logo img { height: 50px; }
  .menu-btn { display: block; }
  html.js .nav {
    position: fixed; inset: var(--head-h-small) 0 0 0; background: var(--ink); display: none;
    padding: var(--s4) var(--gutter) var(--s7); overflow: auto;
  }
  html.js .nav.is-open { display: block; }
  html.js .nav ul { display: block; }
  html.js .nav li { border-bottom: var(--hair-light); }
  html.js .nav a { display: block; padding: 18px 0; font-size: 20px; font-weight: 500; border-bottom: 0; }
  html.js .nav a[aria-current="page"] { color: var(--clay-light); }
  html.js .nav.is-open .nav__foot { display: block; margin-top: var(--s5); color: var(--sky-sunk); font-size: 16px; }
  html.js .nav__foot a { display: inline; padding: 0; font-size: 16px; color: var(--white); }
  html.js .nav__foot p { margin-bottom: var(--s1); }
  html:not(.js) .nav ul { flex-wrap: wrap; gap: var(--s2); }
  .head-call { display: none; }
  .block__grid, .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .block__grid--flip .block__text { order: 0; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: 520px; }
  /* On a phone the photograph keeps its own 4:3 and runs edge to edge, so nothing is cropped,
     and the mark drops onto an ink strip UNDER it rather than sitting on the picture: at this
     width a logo laid over the photo collides with the one in the header. */
  .hero--photos { height: auto; min-height: 0; display: block; }
  .hero--photos .hero__media--slides { position: relative; aspect-ratio: 4 / 3; }
  .hero--page { height: auto; aspect-ratio: auto; max-height: none; min-height: 0; display: block; }
  .hero--page .hero__media { position: relative; aspect-ratio: 16 / 9; }
  .hero--page .hero__shade { inset: 0 0 auto 0; aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, rgba(20,32,42,.55) 0%, rgba(20,32,42,.10) 42%, rgba(20,32,42,0) 70%); }
  .hero--page .hero__mark { position: static; background: var(--ink); padding: var(--s4) var(--gutter); }
  .hero--page .hero__mark h1 { text-shadow: none; font-size: clamp(32px, 8.4vw, 42px); }
  .hero--page .hero__mark p { text-shadow: none; max-width: none; }
  .hero--photos .hero__shade { inset: 0 0 auto 0; aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(20,32,42,.52) 0%, rgba(20,32,42,.10) 38%, rgba(20,32,42,0) 66%); }
  .hero--photos .hero__mark { position: static; background: var(--ink); padding: var(--s4) var(--gutter); }
  .hero--photos .hero__mark h1 { text-shadow: none; font-size: clamp(34px, 9vw, 44px); }
  .hero--photos .hero__mark p { text-shadow: none; max-width: none; }
  .hero--photos .hero-dots { top: calc(75vw - 24px); bottom: auto; right: var(--gutter); }
  .block { padding: var(--s6) 0; }
  .storey { grid-template-columns: 1fr; gap: var(--s1); }
  .stack { padding-left: 20px; }

  .badges ul { display: block; }
  .badges li { padding: 14px 0; border-right: 0; border-bottom: var(--hair); font-size: 18px; }
  .badges li:last-child { border-bottom: 0; }
  .badges li + li { padding-left: 0; }
  .promise__row { grid-template-columns: 1fr; }
  .promise__row > div { border-right: 0; border-bottom: var(--hair); padding: var(--s2) 0; }
  .promise__row > div + div { padding-left: 0; }
  .facts > div { grid-template-columns: 110px minmax(0, 1fr); }
  .pair { grid-template-columns: 1fr; }
  .gallery { column-count: 2; column-gap: var(--s2); }
  .gal-tile { margin-bottom: var(--s2); }
  .site-foot__grid { grid-template-columns: 1fr; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--clay); color: var(--white); text-decoration: none; justify-content: center; align-items: center; gap: 10px; padding: 16px; font-weight: 600; font-size: 17px; box-shadow: 0 -1px 0 rgba(0,0,0,.2); }
  .callbar:hover { background: var(--clay-deep); color: var(--white); }
  .site-foot { padding-bottom: calc(var(--s6) + 60px); }
  .form { padding: var(--s3); }
  .lb-prev, .lb-next { font-size: 40px; padding: 10px 8px; }
}
@media (max-width: 480px) {
  .gallery { column-count: 1; }
}
