/* ==========================================================================
   Victory Construction, Mookgophong
   Quickees Web Design

   Visual language: a construction drawing set. Title blocks, gridline bubbles,
   dimension lines, hatching and a works programme, in the black and red of the
   client's own logo. There are no photographs on this site by design.

   Type: Archivo (variable width) for everything, Cinzel only on the
   foundation stone, where engraved Roman capitals are the real thing.
   ========================================================================== */

:root {
  --ink: #1d1b1a;
  --ink-2: #242120;
  --ink-3: #2e2a28;
  --concrete: #f4f0ea;
  --paper: #fbf9f5;
  --screed: #ece6dd;
  --text: #24211f;
  --muted: #625d57;
  --line: rgba(36, 33, 31, .12);
  --r: 14px;
  --r-s: 8px;
  --light: #f4f1ec;
  --light-muted: rgba(244, 241, 236, .68);
  --light-line: rgba(244, 241, 236, .16);
  --red: #bf0d0d;
  --red-hi: #e5231b;
  --red-dk: #9c0a0a;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(52px, 6.5vw, 88px);
  --head-h: 78px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.03rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-weight: 680;
  font-stretch: 104%;
  letter-spacing: -.018em;
  line-height: 1.08;
  margin: 0;
}

h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
h3 { font-size: 1.28rem; letter-spacing: -.01em; line-height: 1.2; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }

/* the small condensed caps used for labels, as on a drawing */
.sheet-rule span, .titleblock dt, .svc-no, .g-axis, .qd-th {
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------------- buttons and links ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-s);
  font-weight: 650; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(191,13,13,.22); }
.btn-red:hover { background: var(--red-dk); }
.btn-ink { background: var(--ink); color: var(--light); }
.btn-ink:hover { background: var(--red); }
.btn.wide { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.light { color: var(--light); }

/* section header: a thick rule with a sheet number, like a drawing strip */
.sheet-rule {
  display: flex; gap: 12px; align-items: baseline;
  margin-bottom: 14px;
  font-size: .8rem; font-weight: 650; color: var(--muted);
}
.sheet-rule span:first-child { color: var(--red); font-weight: 800; }
.sheet-rule.light { color: var(--light-muted); }
.sheet-rule.light span:first-child { color: var(--red-hi); }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--light-line);
}
.masthead-in {
  height: var(--head-h);
  display: flex; align-items: center; gap: 28px;
}
.brand img { height: 50px; width: auto; }
.brand { margin-right: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 26px); }
.nav a {
  color: var(--light-muted); text-decoration: none; font-size: .94rem; font-weight: 550;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--light); border-bottom-color: var(--red-hi); }
.nav a.nav-cta {
  color: #fff; background: var(--red); padding: 10px 18px; border: 0;
  border-radius: var(--r-s);
  font-weight: 650;
}
.nav a.nav-cta:hover { background: var(--red-dk); }

.mast-phone {
  color: var(--light); text-decoration: none; font-weight: 700; font-stretch: 90%;
  font-size: 1rem; letter-spacing: .02em; white-space: nowrap;
  padding-left: 22px; border-left: 1px solid var(--light-line);
}
.mast-phone:hover { color: var(--red-hi); }

.burger {
  display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--light-line);
  cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; border-radius: var(--r-s);
}
.burger span { display: block; height: 2px; background: var(--light); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1040px) {
  .mast-phone { display: none; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .brand img { height: 40px; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--head-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--light-line);
    padding: 8px var(--gut) 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--light-line); font-size: 1.05rem; }
  .nav a:hover { border-bottom-color: var(--light-line); }
  .nav a.nav-cta { margin-top: 16px; text-align: center; padding: 14px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(244,241,236,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,236,.05) 1px, transparent 1px),
    linear-gradient(rgba(244,241,236,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,236,.022) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px -1px;
  color: var(--light);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.hero::after {
  /* fade the drafting grid out toward the edges so it reads as paper, not wallpaper */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 42%, rgba(255,210,160,.07), transparent 55%),
    radial-gradient(ellipse at 62% 45%, transparent 30%, var(--ink) 88%);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(32px, 4.5vw, 60px); padding-bottom: clamp(16px, 2vw, 28px);
}

.hero-place {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 1.02rem; font-weight: 500; color: var(--light-muted); margin: -4px 0 18px;
}
.hero-place b { color: var(--light); font-weight: 600; }
.hero-place i { width: 5px; height: 5px; border-radius: 50%; background: var(--red-hi); flex: none; }
/* keep the dot with the words that follow it, so a phone never strands it */
.hero-place .since { display: inline-flex; align-items: center; gap: 12px; }

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.7rem);
  font-weight: 700; font-stretch: 106%;
  letter-spacing: -.025em; line-height: 1.02;
  margin-bottom: 20px;
}
.hero h1 span { display: block; color: var(--red-hi); }

.hero-lede { font-size: 1.14rem; color: var(--light-muted); max-width: 32em; margin-bottom: 28px; }
.hero-act { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.hero-fig { margin: 0 -24% 0 0; width: 124%; will-change: transform; }
.frame-draw { width: 100%; height: auto; display: block; fill: none; overflow: visible; }

.frame-draw .ln   { stroke: rgba(244,241,236,.62); stroke-width: 1.3; stroke-linejoin: round; }
.frame-draw .ln-b { stroke: var(--light); stroke-width: 3.2; stroke-linejoin: round; fill: none; }
.frame-draw .lt   { stroke: rgba(244,241,236,.32); stroke-width: 1; }
.frame-draw .s0   { stroke: rgba(244,241,236,.4); }
.frame-draw .dash { stroke-dasharray: 5 4; stroke: rgba(244,241,236,.35); }
.frame-draw .bub  { stroke: rgba(244,241,236,.6); }
.frame-draw .ln-r { stroke: var(--red-hi); stroke-width: 1.5; fill: none; }
.frame-draw .bubt { fill: var(--light-muted); font-weight: 700; font-stretch: 80%; text-anchor: middle; }
.frame-draw .dimt { fill: var(--red-hi); font-size: 17px; font-weight: 700; font-stretch: 80%; letter-spacing: .08em; text-anchor: middle; }

/* the building goes up: slab, then each frame in turn, then the purlins, the
   bracing and finally the setting out. pathLength="1" on each line makes a
   dash of 1 exactly one line long. */
@media (prefers-reduced-motion: no-preference) {
  .frame-draw .ln:not(.dash):not(.bub), .frame-draw .ln-b, .frame-draw .ln-r {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 1s cubic-bezier(.55,.1,.25,1) forwards;
  }
  .frame-draw .dash, .frame-draw .bub, .frame-draw text { opacity: 0; animation: fade .8s ease forwards; }

  .frame-draw .g-slab * { animation-delay: .15s; animation-duration: 1.2s; }
  .frame-draw .f0 * { animation-delay: .45s; animation-duration: 1.3s; }
  .frame-draw .f1 * { animation-delay: .65s; }
  .frame-draw .f2 * { animation-delay: .8s; }
  .frame-draw .f3 * { animation-delay: .95s; }
  .frame-draw .f4 * { animation-delay: 1.08s; }
  .frame-draw .f5 * { animation-delay: 1.2s; }
  .frame-draw .f6 * { animation-delay: 1.3s; }
  .frame-draw .f7 * { animation-delay: 1.4s; }
  .frame-draw .runs * { animation-delay: 1.7s; animation-duration: 1.1s; }
  .frame-draw .brace * { animation-delay: 2.3s; animation-duration: .7s; }
  .frame-draw .grid * { animation-delay: 2.6s; }
  .frame-draw .dims * { animation-delay: 2.8s; animation-duration: .8s; }
  .frame-draw .dims text { animation-delay: 3.3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* title block */
.titleblock {
  display: grid; grid-template-columns: 1.2fr .8fr 1.1fr 1.5fr 1fr;
  margin: 0; border: 1px solid rgba(244,241,236,.14);
  border-radius: var(--r); overflow: hidden;
  background: rgba(255,255,255,.035);
}
.titleblock > div { padding: 14px 20px 15px; border-left: 1px solid rgba(244,241,236,.12); }
.titleblock > div:first-child { border-left: 0; }
.titleblock dt { font-size: .7rem; font-weight: 600; color: rgba(244,241,236,.55); margin-bottom: 3px; }
.titleblock dd { margin: 0; font-weight: 550; font-size: 1rem; }
.titleblock > div:first-child dd { color: var(--red-hi); }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-fig { order: 2; width: auto; margin: 0 -8px; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div { border-left: 0; border-top: 1px solid rgba(244,241,236,.12); }
  .titleblock > div:nth-child(-n+2) { border-top: 0; }
  .titleblock > div:nth-child(even) { border-left: 1px solid rgba(244,241,236,.12); }
  .titleblock > div:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ==========================================================================
   Services: a schedule of work with a detail sheet
   ========================================================================== */
.services { padding-block: var(--sec); }

.svc-intro {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px);
}
.svc-intro h2 { max-width: 13em; }
.svc-intro p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 28em; }

.svc-list {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-rows: repeat(8, auto);
  column-gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.svc-head {
  grid-column: 1;
  display: grid; grid-template-columns: 54px 1fr; column-gap: 8px;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--line);
  padding: 16px 16px 16px 0;
  position: relative;
  transition: background-color .25s;
}
.svc-head:last-of-type { border-bottom: 1px solid var(--line); }
.svc-head::before {
  content: ""; position: absolute; left: -14px; top: -1px; bottom: 0; width: 4px;
  background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .3s;
}
.svc-no { grid-row: 1 / span 2; font-size: .92rem; font-weight: 800; color: var(--muted); padding-top: 5px; transition: color .2s; }
.svc-name {
  font-size: clamp(1.15rem, 1.8vw, 1.42rem); font-weight: 620; font-stretch: 102%;
  letter-spacing: -.01em; line-height: 1.2; transition: transform .25s, color .2s;
}
.svc-tag { font-size: .92rem; color: var(--muted); margin-top: 2px; }

.svc-head:hover .svc-name { transform: translateX(6px); }
.svc-head:hover .svc-no { color: var(--red); }
.svc-head[aria-expanded="true"] .svc-no { color: var(--red); }
.svc-head[aria-expanded="true"]::before { transform: scaleY(1); }
.svc-head[aria-expanded="true"] .svc-name { color: var(--ink); }

.svc-body { grid-column: 2; grid-row: 1 / span 8; align-self: start; }
.js .svc-body:not(.is-open) { display: none; }

.svc-sheet {
  position: sticky; top: calc(var(--head-h) + 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 18px 40px rgba(70, 50, 30, .08);
  display: grid; grid-template-rows: auto 1fr;
}
.svc-body.is-open .svc-sheet { animation: sheetIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.svc-art {
  width: 100%; height: auto; display: block; fill: none;
  border-bottom: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 28px);
  background-image:
    linear-gradient(rgba(17,17,18,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,18,.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.svc-art .k   { stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.svc-art .b   { stroke-width: 2.4; }
.svc-art .lt  { stroke-width: .9; stroke-opacity: .55; }
.svc-art .dash { stroke-dasharray: 6 4; }
.svc-art .r   { stroke: var(--red); stroke-width: 1.3; stroke-linecap: round; }
.svc-art .r.b { stroke-width: 3.2; }
.svc-art .r.lt { stroke-opacity: 1; }
.svc-art .dash-r { stroke-dasharray: 7 5; }
.svc-art .fill-s { fill: var(--screed); }
.svc-art .paper  { fill: var(--paper); }
.svc-art .t   { fill: var(--ink); font-size: 12.5px; font-weight: 700; font-stretch: 78%; letter-spacing: .06em; text-anchor: middle; stroke: none; }
.svc-art .t.s { font-size: 10.5px; text-anchor: start; }
.svc-art .t.c { text-anchor: middle; }
.svc-art .r-t { fill: var(--red); }

.svc-text { padding: clamp(22px, 3vw, 34px); }
.svc-text h3 { font-size: 1.45rem; margin-bottom: 10px; }
.svc-text p { color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.ticks li { position: relative; padding-left: 20px; font-size: .96rem; line-height: 1.4; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}

@media (max-width: 960px) {
  .svc-intro { grid-template-columns: 1fr; gap: 16px; }
  .svc-list { grid-template-columns: 1fr; grid-template-rows: none; }
  .svc-head, .svc-body { grid-column: 1; grid-row: auto; }
  .svc-head::before { left: calc(-1 * var(--gut)); }
  .svc-sheet { position: static; margin: 0 0 22px; }
  .svc-head[aria-expanded="true"] { border-bottom: 0; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .svc-sheet { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .svc-art { border-bottom: 0; border-right: 1px solid var(--line); align-self: stretch; }
  .svc-text .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ticks { grid-template-columns: 1fr; }
  .svc-head { grid-template-columns: 42px 1fr; }
}

/* ==========================================================================
   Recent work
   Photographs keep their own shape (no cropping), laid out in columns so a
   tall bathroom and a wide floor can sit beside each other honestly.
   ========================================================================== */
.work { padding-block: var(--sec); background: var(--paper); }

.work-intro {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 44px);
}
.work-intro h2 { max-width: 12em; }
.work-intro p { color: var(--muted); font-size: 1.06rem; margin: 0; max-width: 30em; }

.work-set { margin-bottom: clamp(30px, 4vw, 48px); }
.work-set:last-of-type { margin-bottom: 0; }

.set-name {
  font-size: 1.06rem; font-weight: 620; color: var(--text);
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.set-name::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.set-note { color: var(--muted); margin: -8px 0 16px; max-width: 46em; }

/* Rows are justified: each photo grows in proportion to its own shape, so a
   whole row shares one height and meets the margin on both sides. */
.row { display: flex; gap: 18px; margin-bottom: 18px; align-items: flex-start; }

.shot { margin: 0; flex: 1 1 0; min-width: 0; }
.shot.p { flex-grow: .75; }      /* upright photo */
.shot.l { flex-grow: 1.51; }     /* wide photo */
.shot.s { flex-grow: 1; }        /* square photo */

.shot button {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; position: relative; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 10px 26px rgba(70, 50, 30, .12);
}
.shot.p button { aspect-ratio: 3 / 4; }
.shot.l button { aspect-ratio: 151 / 100; }
.shot.s button { aspect-ratio: 1 / 1; }

.shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.shot button::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(36,33,31,.1);
  background: linear-gradient(to top, rgba(29,27,26,.28), transparent 42%);
  opacity: 0; transition: opacity .35s;
}
.shot button:hover img, .shot button:focus-visible img { transform: scale(1.04); }
.shot button:hover::after, .shot button:focus-visible::after { opacity: 1; }
.shot figcaption { font-size: .9rem; color: var(--muted); line-height: 1.4; padding: 9px 2px 0; }

/* before and after: both frames share one shape so the rooms line up */
.ba-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }
.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; box-shadow: 0 10px 26px rgba(70, 50, 30, .06);
}
.pair .shot button { aspect-ratio: 4 / 3; }
.tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(29,27,26,.82); color: var(--light);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
}
.tag.on { background: var(--red); }

.work-foot {
  margin: clamp(26px, 3.5vw, 40px) 0 0; color: var(--muted);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.work-foot .link-arrow { color: var(--text); }

@media (max-width: 860px) {
  .work-intro { grid-template-columns: 1fr; gap: 14px; }
  .ba-pairs { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* one row per photo, and let each keep a comfortable shape */
  .row { flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
  .shot { flex: 1 1 100%; }
  .shot.p button { aspect-ratio: 4 / 5; }
  .shot.l button { aspect-ratio: 3 / 2; }
}

/* ---------------- lightbox ---------------- */
.lb[hidden] { display: none; }      /* display:grid below would otherwise beat the hidden attribute */
.lb {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(4px, 2vw, 20px); padding: clamp(14px, 3vw, 34px);
  background: rgba(20, 18, 17, .975);
  animation: lbIn .2s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; }
.lb-fig img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--r-s); box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.lb-fig figcaption {
  color: var(--light-muted); font-size: .96rem; text-align: center; max-width: 42em;
}

.lb-close, .lb-nav {
  background: rgba(255,255,255,.1); color: var(--light); border: 0; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%; line-height: 1;
  display: grid; place-items: center; transition: background-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-nav { font-size: 2rem; padding-bottom: 5px; }
.lb-close { position: absolute; top: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 22px); font-size: 1.8rem; padding-bottom: 4px; z-index: 1; }

@media (max-width: 620px) {
  .lb { grid-template-columns: 1fr; grid-template-areas: "fig"; }
  .lb-fig { grid-area: fig; }
  .lb-nav { position: absolute; bottom: 18px; }
  .lb-prev { left: 22%; }
  .lb-next { right: 22%; }
  .lb-fig figcaption { padding-bottom: 60px; }
}

/* ==========================================================================
   Promise
   ========================================================================== */
.promise {
  padding-block: var(--sec);
  background-color: var(--ink-2);
  background-image:
    radial-gradient(ellipse at 78% 50%, rgba(255,210,160,.06), transparent 55%),
    linear-gradient(rgba(244,241,236,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,236,.025) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  color: var(--light);
  overflow: hidden;
}
.promise-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.promise h2 { max-width: 12em; margin-bottom: 16px; }
.promise-lede { color: var(--light-muted); font-size: 1.1rem; max-width: 30em; margin-bottom: 22px; }

.promise-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.promise-list li {
  counter-increment: p;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 8px;
  padding: 16px 0;
}
.promise-list li::before {
  content: counter(p, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-weight: 800; font-stretch: 75%; font-size: 1rem; color: var(--red-hi); padding-top: 2px;
}
.promise-list h3 { font-size: 1.2rem; margin-bottom: 6px; }
.promise-list p { color: var(--light-muted); margin: 0; }

/* the quotation, with the stamp */
.quote-doc { margin: 0; position: relative; padding: 10px 10px 20px; }
.qd-sheet {
  background: var(--paper); color: var(--ink);
  padding: clamp(22px, 3vw, 34px);
  transform: rotate(-1.6deg);
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 2px 0 rgba(0,0,0,.15);
  max-width: 470px; margin-left: auto;
  position: relative;
}
.qd-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 14px;
}
.qd-head img { width: 150px; }
.qd-title { text-align: right; line-height: 1.2; }
.qd-title b { display: block; font-size: 1.3rem; font-weight: 820; font-stretch: 120%; text-transform: uppercase; letter-spacing: .02em; }
.qd-title span { font-size: .68rem; font-stretch: 75%; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.qd-row {
  display: grid; grid-template-columns: 44px 1fr 72px; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(17,17,18,.1);
  font-size: .82rem; font-weight: 650; font-stretch: 80%;
}
.qd-th { font-size: .66rem; color: var(--muted); border-bottom: 1px solid var(--ink); padding-top: 0; }
.qd-th span:last-child { text-align: right; }
.bar { display: block; height: 7px; background: #dcd7cf; }
.w40 { width: 100%; justify-self: end; }
.w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w85 { width: 85%; }
.bar.dark { background: var(--ink); height: 9px; }
.qd-total { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.qd-sign {
  display: flex; align-items: flex-end; gap: 14px; margin-top: 26px;
  font-size: .66rem; font-stretch: 75%; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.qd-sign svg { width: 150px; height: 38px; border-bottom: 1px solid var(--ink); }
.qd-sign path { fill: none; stroke: #1c2a5c; stroke-width: 1.6; stroke-linecap: round; }

.stamp {
  position: absolute; right: 26px; bottom: 64px;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 20px 11px;
  color: var(--red);
  border: 3px solid currentColor;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--red);
  background: rgba(248,246,242,.2);
  transform: rotate(-11deg);
  text-transform: uppercase; line-height: 1.1; text-align: center;
  mix-blend-mode: multiply;
  opacity: .92;
}
.st-top, .st-bot { font-size: .64rem; font-weight: 700; font-stretch: 75%; letter-spacing: .16em; }
.st-mid { font-size: 1.7rem; font-weight: 900; font-stretch: 122%; letter-spacing: .02em; margin: 3px 0; }

.js .stamp { opacity: 0; transform: rotate(-11deg) scale(1.7); }
.js .stamp.stamped {
  opacity: .92; transform: rotate(-11deg) scale(1);
  transition: transform .32s cubic-bezier(.3,1.5,.5,1), opacity .12s linear;
}

@media (max-width: 960px) {
  .promise-in { grid-template-columns: 1fr; }
  .qd-sheet { margin: 0 auto; }
}
@media (max-width: 560px) {
  .promise-list li { grid-template-columns: 40px 1fr; }
  .quote-doc { padding-inline: 4px; }
  .qd-head img { width: 104px; }
  .qd-title b { font-size: 1rem; }
  .qd-title span { font-size: .6rem; }
  .qd-row { grid-template-columns: 30px 1fr 52px; gap: 10px; }
  .stamp { bottom: 56px; right: 12px; padding: 9px 14px 8px; }
  .st-mid { font-size: 1.25rem; }
  .st-top, .st-bot { font-size: .55rem; }
}

/* ==========================================================================
   Programme (Gantt)
   ========================================================================== */
.programme { padding-block: var(--sec); background: var(--paper); }

.prog-intro {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px);
}
.prog-intro p { color: var(--muted); font-size: 1.06rem; margin: 0; max-width: 30em; }

.gantt { --lab: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 24px 8px; box-shadow: 0 18px 40px rgba(70, 50, 30, .06); }
.g-axis {
  display: flex; justify-content: space-between;
  margin-left: var(--lab); padding: 10px 0 8px;
  font-size: .7rem; font-weight: 650; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.g-row {
  display: grid; grid-template-columns: var(--lab) 1fr; align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.g-row:last-child { border-bottom: 0; }
.g-label { padding: 14px 24px 14px 0; line-height: 1.35; }
.g-label b { display: block; font-weight: 620; font-size: 1.04rem; margin-bottom: 2px; }
.g-label span { font-size: .9rem; color: var(--muted); }

.g-track {
  position: relative; min-height: 70px;
  border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.3333% - 1px), rgba(17,17,18,.07) calc(8.3333% - 1px), rgba(17,17,18,.07) 8.3333%);
}
.g-bar {
  position: absolute; top: 50%; height: 14px; margin-top: -7px;
  background: var(--ink);
  border-radius: 999px;
  transform-origin: left center;
}
.gb1 { left: 0; width: 9%; }
.gb2 { left: 8%; width: 11%; }
.gb3 { left: 18%; width: 10%; }
.gb4 { left: 27%; width: 57%; height: 28px; margin-top: -14px; overflow: hidden; }
.gb5 { left: 83%; width: 15.5%; }
.g-bar.red { background: var(--red); }

.ms {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center;
  padding-left: 9px; font-style: normal; color: #fff;
  font-size: .68rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .07em;
  border-left: 1px solid rgba(255,255,255,.5); white-space: nowrap;
}
.m1 { left: 6px; border-left: 0; } .m2 { left: 26%; } .m3 { left: 52%; } .m4 { left: 74%; }

.g-diamond {
  position: absolute; top: 50%; right: 0; width: 18px; height: 18px; margin-top: -9px; border-radius: 3px;
  background: var(--red); transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .js .g-bar { transform: scaleX(0); transition: transform .9s cubic-bezier(.6,.05,.25,1); }
  .js .g-diamond { transform: rotate(45deg) scale(0); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
  .js .ms { opacity: 0; transition: opacity .5s; }
  .js .gantt.in .g-bar { transform: scaleX(1); }
  .js .gantt.in .g-diamond { transform: rotate(45deg) scale(1); transition-delay: 2s; }
  .js .gantt.in .ms { opacity: 1; transition-delay: 1.6s; }
  .js .gantt.in .gb2 { transition-delay: .25s; }
  .js .gantt.in .gb3 { transition-delay: .5s; }
  .js .gantt.in .gb4 { transition-delay: .75s; transition-duration: 1.2s; }
  .js .gantt.in .gb5 { transition-delay: 1.6s; }
}

@media (max-width: 960px) {
  .prog-intro { grid-template-columns: 1fr; gap: 16px; }
  .gantt { --lab: 220px; }
  .ms { display: none; }
}
@media (max-width: 640px) {
  .g-axis { margin-left: 0; }
  .g-row { grid-template-columns: 1fr; }
  .g-label { padding: 16px 0 8px; }
  .g-track { min-height: 34px; margin-bottom: 14px; border-left: 0; }
}

/* ==========================================================================
   About and the foundation stone
   ========================================================================== */
.about { padding-block: var(--sec); }
.about-in {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.about h2 { margin-bottom: 18px; max-width: 12em; }
.about-copy p { color: var(--muted); max-width: 36em; }
.about-sign { color: var(--text) !important; margin-top: 20px; display: flex; flex-direction: column; font-size: .92rem; }
.about-sign b { font-size: 1.1rem; font-weight: 650; }
.about-legal { font-size: .85rem; margin-top: 18px; }

.cornerstone { margin: 0; }
.brickwall {
  /* charcoal face brick in stretcher bond */
  background-color: #43403c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44'%3E%3Cg%3E%3Crect x='2' y='2' width='56' height='18' fill='%23302d2a'/%3E%3Crect x='62' y='2' width='56' height='18' fill='%23363230'/%3E%3Crect x='-28' y='24' width='56' height='18' fill='%232b2826'/%3E%3Crect x='32' y='24' width='56' height='18' fill='%23393532'/%3E%3Crect x='92' y='24' width='56' height='18' fill='%232b2826'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='132'%3E%3Cg fill='%23000' fill-opacity='.14'%3E%3Crect x='62' y='2' width='56' height='18'/%3E%3Crect x='212' y='46' width='56' height='18'/%3E%3Crect x='32' y='90' width='56' height='18'/%3E%3Crect x='272' y='112' width='56' height='18'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.05'%3E%3Crect x='182' y='2' width='56' height='18'/%3E%3Crect x='92' y='68' width='56' height='18'/%3E%3Crect x='302' y='24' width='56' height='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 44px, 360px 132px;
  padding: clamp(40px, 7vw, 76px) clamp(20px, 5vw, 56px);
  box-shadow: inset 0 0 80px rgba(0,0,0,.45);
  border-radius: var(--r);
}

.plaque {
  position: relative;
  max-width: 400px; margin: 0 auto;
  padding: 34px 26px 30px;
  text-align: center;
  color: #4b453e;
  border-radius: 4px;
  background:
    radial-gradient(circle, #8b8479 0 3px, transparent 3.6px) left 12px top 12px / 12px 12px no-repeat,
    radial-gradient(circle, #8b8479 0 3px, transparent 3.6px) right 12px top 12px / 12px 12px no-repeat,
    radial-gradient(circle, #8b8479 0 3px, transparent 3.6px) left 12px bottom 12px / 12px 12px no-repeat,
    radial-gradient(circle, #8b8479 0 3px, transparent 3.6px) right 12px bottom 12px / 12px 12px no-repeat,
    radial-gradient(ellipse at 30% 20%, #e4dfd6, #d3ccc1 70%);
  box-shadow:
    inset 0 0 0 7px rgba(255,255,255,.18),
    inset 0 0 0 8px rgba(0,0,0,.16),
    0 2px 0 rgba(255,255,255,.08),
    0 22px 34px rgba(0,0,0,.55);
}
.plaque p { margin: 0; font-family: "Cinzel", "Times New Roman", serif; text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(0,0,0,.18); }
.plaque-mark { width: 64px; margin: 0 auto 14px; filter: grayscale(1) brightness(.85) contrast(.9); mix-blend-mode: multiply; opacity: .6; }
.pl-name { font-weight: 700; font-size: clamp(1.25rem, 2.3vw, 1.6rem); letter-spacing: .06em; line-height: 1.15; }
.pl-town { font-size: .78rem; letter-spacing: .34em; margin-top: 8px !important; }
.pl-values {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .76rem; letter-spacing: .2em; margin: 20px 0 16px !important; padding: 12px 0;
  border-top: 1px solid rgba(75,69,62,.35); border-bottom: 1px solid rgba(75,69,62,.35);
}
.pl-values i { width: 5px; height: 5px; background: #6d665c; transform: rotate(45deg); }
.pl-year { font-weight: 700; font-size: 1.12rem; letter-spacing: .22em; }

.cornerstone figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

@media (max-width: 960px) {
  .about-in { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding-block: var(--sec); background: var(--screed); }
.contact-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

.contact-side {
  background: var(--ink); color: var(--light);
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--r) 0 0 var(--r);
}
.contact-side h2 { margin-bottom: 14px; }
.contact-blurb { color: var(--light-muted); margin-bottom: 24px; }
.contact-facts { margin: 26px 0 0; }
.contact-facts > div { padding: 12px 0; }
.contact-facts dt { font-size: .85rem; color: rgba(244,241,236,.55); margin-bottom: 2px; }
.contact-facts dd { margin: 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.contact-facts a { text-decoration: none; }
.contact-facts a:hover { color: var(--red-hi); }
.map-link { display: table; margin-top: 8px; font-size: .88rem; color: var(--light-muted); border-bottom: 1px solid currentColor; }

.q-form {
  background: var(--paper);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line); border-left: 0;
  border-radius: 0 var(--r) var(--r) 0;
}
.q-form-head { font-size: 1.2rem; font-weight: 650; color: var(--text); margin-bottom: 18px; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: .9rem; font-weight: 550; color: var(--text); }
.field i { font-style: normal; color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid #d8d1c6; border-radius: var(--r-s);
  padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111112' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(191,13,13,.16);
}
.field [aria-invalid="true"] { border-color: var(--red); }
::placeholder { color: #9b958c; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 22px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }

.f-note { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.f-note.bad { color: var(--red); }
.f-note.ok { color: #1d6b35; }

@media (max-width: 960px) {
  .contact-in { grid-template-columns: 1fr; }
  .contact-side { border-radius: var(--r) var(--r) 0 0; }
  .q-form { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); }
}
@media (max-width: 560px) {
  .f-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--ink); color: var(--light-muted); padding-top: clamp(44px, 5.5vw, 64px); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.foot-brand img { width: 230px; margin-bottom: 18px; }
.foot-brand p { max-width: 26em; font-size: .95rem; }
.foot h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: var(--light); }
.foot-nav, .foot-contact { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red-hi); }
.foot address { font-style: normal; margin-bottom: 8px; line-height: 1.55; }

.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  position: relative;
  padding-top: 20px; padding-bottom: 24px; font-size: .82rem;
}
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); border-top: 1px solid var(--light-line); }
.foot-base p { margin: 0; }
.credit { display: inline-flex; align-items: center; gap: 8px; }
.credit-logo { height: 16px; width: auto; filter: brightness(0) invert(1); opacity: .72; }

@media (max-width: 800px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-in { grid-template-columns: 1fr; gap: 32px; }
  .foot-nav { flex-direction: row; flex-wrap: wrap; column-gap: 20px; }
  .foot-nav h4 { flex-basis: 100%; }
}

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

body.lb-open { overflow: hidden; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
