/* Thornbury Surveyors: ochre, corporate and serious, laid out as a collage of prints, tape and paper on survey grid. */
@view-transition { navigation: auto; }
:root {
  --paper: #F2ECDF; --sheet: #FFFDF8; --ink: #1F1B16; --ochre: #7E5410; --tape: #D19A2E; --muted: #625A4E;
  --line: #DCCFB5; --kraft: #E6D7B8;
  --hf: 'Libre Baskerville', Georgia, serif; --bf: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.4, .5, 1);
  --shadow: 0 1px 0 rgba(31, 27, 22, .06), 0 14px 30px -10px rgba(60, 40, 10, .28);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; color: var(--ink); font: 400 17px/1.65 var(--bf); overflow-x: hidden;
  background: var(--paper) linear-gradient(rgba(126, 84, 16, .07) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(126, 84, 16, .07) 1px, transparent 1px) 0 0 / 32px 32px; background-color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--ochre); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--hf); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.18rem; line-height: 1.3; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--ochre); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #3A342B; max-width: 62ch; }
.small { font-size: .87rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 60px; z-index: 9999; background: var(--ink); color: var(--sheet); padding: 10px 16px; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* paper pieces */
.sheet { position: relative; background: var(--sheet); box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); padding: 24px; }
.sheet::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(126, 84, 16, .05) 1px, transparent 1px) 0 0 / 4px 4px; }
.tape { position: absolute; z-index: 3; top: -12px; left: 50%; width: 108px; height: 26px; margin-left: -54px; background: rgba(209, 154, 46, .55); transform: rotate(-3deg); clip-path: polygon(3% 0, 97% 4%, 100% 30%, 97% 60%, 100% 100%, 2% 96%, 0 65%, 3% 35%, 0 8%); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.tape.t-l { left: 18px; margin: 0; transform: rotate(-38deg); top: 4px; width: 90px; }
.tape.t-r { left: auto; right: 18px; margin: 0; transform: rotate(36deg); top: 4px; width: 90px; }
.print { position: relative; margin: 0; padding: 10px 10px 12px; background: #fff; box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); transition: transform .6s var(--spring); }
.print:hover { transform: rotate(0deg) scale(1.02); z-index: 5; }
.pcap { display: block; margin-top: 8px; font: italic 400 14px/1.3 var(--hf); color: #3A342B; }
.stamp { color: rgba(126, 84, 16, .75); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 3px; font: 600 15.5px/1.2 var(--bf); text-decoration: none; border: 0; cursor: pointer; transition: transform .35s var(--spring), background .2s, color .2s; }
.btn:hover { transform: translateY(-2px) rotate(-.5deg); }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover { background: #3A3127; }
.btn-ochre { background: var(--tape); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line-l { background: transparent; color: var(--sheet); box-shadow: inset 0 0 0 1.5px rgba(255, 253, 248, .6); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.kicker { display: inline-flex; gap: 10px; align-items: center; font: 700 12.5px/1 var(--bf); letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); margin: 0 0 18px; }
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--ochre); }

/* header: split nav around a centred logo */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(242, 236, 223, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.hdr-top { display: flex; justify-content: center; gap: 22px; align-items: center; height: 36px; padding: 0 16px; background: var(--ink); color: #E9DFCB; font-size: 13px; overflow: hidden; transition: height .3s var(--ease); }
.hdr-top span, .hdr-top a { display: inline-flex; gap: 6px; align-items: center; color: inherit; text-decoration: none; white-space: nowrap; }
.hdr-top .ic { width: 15px; height: 15px; }
.hdr-req { color: var(--tape) !important; font-weight: 600; }
.scrolled .hdr-top { height: 0; }
.hdr-main { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); justify-self: center; }
.logo-mark { width: 44px; height: 44px; view-transition-name: logo; flex: none; }
.logo b { display: block; font: 700 23px/1 var(--hf); letter-spacing: .01em; }
.logo small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: none; gap: 4px; }
.nav-r { justify-content: flex-end; }
.nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--tape); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.menu-btn { justify-self: end; display: inline-flex; gap: 8px; align-items: center; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); font: 600 14.5px/1 var(--bf); cursor: pointer; border-radius: 3px; grid-column: 3; }
.hdr-main .logo { grid-column: 1; justify-self: start; }
@media (min-width: 1180px) { .nav { display: flex; } .hdr-main .logo { grid-column: 2; justify-self: center; } .hdr-main .menu-btn { display: none; } .nav-l { grid-column: 1; } .nav-r { grid-column: 3; } }
@media (max-width: 640px) { .hdr-top span { display: none; } .hdr-top { justify-content: space-between; } .logo small { font-size: 10px; letter-spacing: .04em; } }

/* menu: an index sheet */
.menu { position: fixed; inset: 0; z-index: 2147483000; background: rgba(31, 27, 22, .5); padding: 64px 12px 12px; overflow-y: auto; opacity: 0; transition: opacity .25s; }
.menu.open { opacity: 1; }
.menu-in { max-width: 860px; margin: 0 auto; transform: rotate(-1.5deg) translateY(20px); transition: transform .5s var(--spring); padding: 30px 26px; }
.menu.open .menu-in { transform: rotate(-.4deg); }
.menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.menu-title { font: 700 1.6rem/1 var(--hf); margin: 0; }
.menu-x { width: 48px; height: 48px; border: 1.5px solid var(--ink); background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu-cols { display: grid; gap: 22px; }
@media (min-width: 700px) { .menu-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.menu-k { font: 700 12px/1 var(--bf); letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); margin: 0 0 8px; }
.menu-col a { display: flex; align-items: center; min-height: 46px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; font: 400 1.08rem/1.25 var(--hf); }
.menu-col a[aria-current] { color: var(--ochre); font-style: italic; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; position: relative; z-index: 2; }
.menu-foot svg { width: 20px; height: 20px; }

/* sections */
main { display: block; outline: none; overflow-x: clip; }
.sec { padding: clamp(56px, 8vw, 110px) 16px; position: relative; }
.sec > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.sh { margin-bottom: clamp(26px, 4vw, 46px); }
.sh h2 { max-width: 22ch; }
.fileno { margin: 0 0 14px; }
.fileno span { display: inline-block; padding: 5px 12px; background: var(--kraft); font: 700 12px/1 var(--bf); letter-spacing: .16em; text-transform: uppercase; color: #4B3A1E; transform: rotate(-1.5deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.vt-title { view-transition-name: page-title; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-12px) rotate(-.3deg); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(16px) rotate(.3deg); } }

/* page hero with a small collage */
.phero { padding: clamp(40px, 6vw, 86px) 16px clamp(36px, 5vw, 70px); }
.phero-in { max-width: 1240px; margin: 0 auto; display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .phero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.phero h1 { max-width: 17ch; }
.phero-art { position: relative; }
.phero-art .print + .sheet, .phero-art .print + .print { margin-top: -40px; margin-left: 18%; }

/* photos */
.ph { position: relative; aspect-ratio: var(--ar, 4/3); background: linear-gradient(135deg, #E3D3B1, #CDB98F); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(.92); }
.cap { font: italic 400 14px/1.4 var(--hf); color: var(--muted); margin-top: 10px; }

/* facts sheet */
.sheet-k { display: flex; gap: 8px; align-items: center; font: 700 12px/1 var(--bf); letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); margin-bottom: 12px; }
.facts { margin: 0 0 8px; }
.facts div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* index cards */
.cards { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: block; padding: 26px 24px 24px 30px; color: var(--ink); text-decoration: none; background: var(--sheet) repeating-linear-gradient(transparent 0 29px, rgba(126, 84, 16, .12) 29px 30px); background-position: 0 56px; box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); transition: transform .5s var(--spring), box-shadow .3s; }
.card::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 1.5px; background: rgba(209, 154, 46, .7); }
a.card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 22px 40px -12px rgba(60, 40, 10, .35); }
.card-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 50%; margin-bottom: 16px; color: var(--ochre); background: var(--sheet); }
.card-ic .ic { width: 24px; height: 24px; }
.card p { margin: 0; color: #3A342B; }
.card .more { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 600; color: var(--ochre); }
.split { display: grid; gap: 34px; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .split.center { align-items: center; } .split.wide-l { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); } }
.prose p, .prose li { color: #3A342B; max-width: 66ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 4px; border: 1.5px solid var(--ink); background: linear-gradient(45deg, transparent 45%, var(--ochre) 45% 58%, transparent 58%), linear-gradient(-45deg, transparent 45%, var(--ochre) 45% 58%, transparent 58%); }

/* numbered */
.numbered { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.numbered li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.numbered .n { font: italic 400 2rem/1 var(--hf); color: var(--ochre); }
.numbered p { margin: 0; color: #3A342B; }
@media (min-width: 940px) { .numbered.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 22px; background: var(--sheet); box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); }
.stat b { display: block; font: 700 clamp(1.9rem, 3.6vw, 2.9rem)/1 var(--hf); color: var(--ink); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14.5px; color: var(--muted); }

/* table */
.tbl { overflow-x: auto; padding: 8px 10px; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15.5px; position: relative; z-index: 1; }
.tbl caption { caption-side: bottom; text-align: left; padding: 12px 8px; font-size: 13.5px; color: var(--muted); }
.tbl th, .tbl td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font: 700 12px/1.2 var(--bf); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); border-bottom: 2px solid var(--ink); }
.tbl tbody th { font-weight: 600; }

/* quotes */
.quote { margin: 0; padding: 30px 26px 22px; }
.quote p { font: italic 400 1.12rem/1.6 var(--hf); margin: 0 0 14px; position: relative; z-index: 1; }
.quote figcaption { font-weight: 600; font-size: 14.5px; color: var(--ochre); position: relative; z-index: 1; }
.quotes { display: grid; gap: 26px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FAQ */
.qas { padding: 6px 24px; }
.qa { border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.qa:last-child { border-bottom: 0; }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; padding: 14px 0; cursor: pointer; font: 700 1.05rem/1.35 var(--hf); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 16px; height: 16px; position: relative; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ochre); transition: transform .3s; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa-a p { color: #3A342B; max-width: 72ch; }

/* CTA */
.cta-band { position: relative; display: grid; gap: 20px; align-items: center; padding: clamp(28px, 4vw, 50px); background: var(--kraft); box-shadow: var(--shadow); transform: rotate(-.6deg); }
.cta-band p { margin: 0; color: #3A342B; max-width: 56ch; }
.cta-stamp { position: absolute; right: 22px; top: -36px; width: 110px; transform: rotate(14deg); opacity: .85; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }

/* related */
.rels { display: grid; gap: 18px; }
@media (min-width: 800px) { .rels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 18px 20px; background: var(--sheet); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transform: rotate(var(--rot)); transition: transform .5s var(--spring); }
.rel:hover { transform: rotate(0) translateY(-3px); }
.rel-k { font: 700 11.5px/1 var(--bf); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }
.rel-t { font: 700 1.05rem/1.3 var(--hf); grid-column: 1; }
.rel .ic { grid-column: 2; grid-row: 1 / 3; align-self: center; }

/* gallery */
.gallery { display: grid; gap: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 0; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-item { position: relative; padding: 9px 9px 26px; background: #fff; border: 0; box-shadow: var(--shadow); cursor: zoom-in; transform: rotate(var(--rot)); transition: transform .5s var(--spring); }
.g-item:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.g-item .tape { width: 70px; margin-left: -35px; }
.lightbox { position: fixed; inset: 0; z-index: 2147483100; background: rgba(31, 27, 22, .92); display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; padding: 60px 8px 20px; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox .lb-img img { max-height: 74vh; margin: 0 auto; border: 10px solid #fff; background: var(--kraft); min-height: 200px; min-width: 200px; object-fit: contain; }
.lightbox figcaption { color: #E9DFCB; font: italic 400 15px var(--hf); margin-top: 12px; }
.lightbox button { width: 48px; height: 48px; background: var(--sheet); color: var(--ink); border: 0; font-size: 26px; cursor: pointer; }
.lb-x { position: absolute; top: 60px; right: 12px; }

/* forms */
.form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); position: relative; z-index: 1; }
@media (min-width: 700px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-sheet { padding: clamp(22px, 3vw, 36px); }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label, .lab { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 16px/1.4 var(--bf); color: var(--ink); background: #fff; border: 0; border-bottom: 2px solid #8C7D66; padding: 12px 12px; min-height: 50px; width: 100%; border-radius: 0; background-image: linear-gradient(var(--paper), var(--paper)); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--ochre); outline: 2px solid rgba(209, 154, 46, .5); outline-offset: 0; }
[aria-invalid=true] { border-bottom-color: #A1301C; }
.err { color: #8E2A17; font-size: 14px; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--ochre); }
.thanks { position: relative; padding: 32px 28px; background: var(--sheet); box-shadow: var(--shadow); outline: none; border-top: 4px solid var(--tape); }
.thanks-mark svg { width: 56px; height: 56px; fill: none; stroke: var(--ochre); stroke-width: 2.4; margin-bottom: 10px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; background: var(--sheet); color: var(--ink); border: 1.5px solid var(--ink); font: 600 14.5px/1 var(--bf); cursor: pointer; border-radius: 3px; }
.chip[aria-pressed=true] { background: var(--ink); color: var(--sheet); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 15px; border: 1.5px solid #8C7D66; background: var(--sheet); cursor: pointer; font-size: 15px; font-weight: 500; }
.seg input:checked + span { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: 2px; }
.searchbox { position: relative; max-width: 520px; }
.searchbox .ic { position: absolute; left: 12px; top: 15px; color: var(--muted); }
.searchbox input { padding-left: 42px; }

/* home hero collage */
.hero { padding: clamp(30px, 5vw, 70px) 16px clamp(50px, 7vw, 100px); overflow: hidden; }
.hero-in { max-width: 1260px; margin: 0 auto; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14.5px; color: #3A342B; }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta .ic { color: var(--ochre); }
.collage { position: relative; height: clamp(440px, 52vw, 620px); }
.collage > * { position: absolute; }
.c-a { left: 0; top: 4%; width: 60%; z-index: 2; }
.c-b { right: 0; top: 0; width: 46%; z-index: 1; }
.c-c { left: 8%; bottom: 0; width: 54%; z-index: 3; padding: 10px; }
.c-c .plan-svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.c-d { right: 2%; bottom: 8%; width: 38%; z-index: 4; }
.c-note { right: 30%; top: 42%; z-index: 5; width: 190px; padding: 14px 16px; background: #FCEFC7; box-shadow: var(--shadow); transform: rotate(4deg); font: italic 400 14px/1.45 var(--hf); }
.c-note b { display: block; font-style: normal; font: 700 12px/1 var(--bf); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); margin-bottom: 6px; }
.c-stamp { left: 46%; top: -2%; width: 120px; z-index: 6; transform: rotate(-12deg); }
@media (max-width: 640px) { .collage { height: 420px; } .c-note { width: 150px; font-size: 12.5px; right: 26%; top: 46%; } .c-stamp { width: 84px; left: 50%; } .pcap { font-size: 12px; } }
.draw { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js-anim .draw { animation: drawp 2.4s .4s var(--ease) both; }
@keyframes drawp { from { stroke-dashoffset: 1400; } }

/* property map tool */
.vtool { display: grid; gap: 26px; }
@media (min-width: 1040px) { .vtool { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } .vt-out { position: sticky; top: 140px; } }
.mapwrap { padding: 14px; }
.pmap { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.pmap .dist { fill: #F7EFDD; stroke: #8C7D66; stroke-width: 1.4; cursor: pointer; transition: fill .25s; outline: none; }
.pmap .dist:hover { fill: #F1DFB6; }
.pmap .dist:focus-visible { stroke: var(--ink); stroke-width: 3; }
.pmap .dist.on { fill: var(--tape); stroke: var(--ink); stroke-width: 2.4; }
.pmap .dlab { font: 600 11.5px var(--bf); fill: var(--ink); pointer-events: none; }
.pmap .road { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.pmap .road2 { fill: none; stroke: #C9B89A; stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.pmap .pin { pointer-events: none; }
.dist-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; position: relative; z-index: 1; }
.dist-list button { min-height: 40px; padding: 0 12px; font-size: 14px; }
.vt-out { padding: 26px; }
.vt-out > * { position: relative; z-index: 1; }
.vt-fee { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 14px 0; flex-wrap: wrap; }
.vt-fee b { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--hf); }
.band { padding: 14px 16px; background: #FCEFC7; margin: 12px 0; font-size: 15px; }
.band b { font-family: var(--hf); }
.steps-v { display: grid; gap: 18px; }
.steps-v fieldset { padding: 18px 20px; background: var(--sheet); box-shadow: var(--shadow); position: relative; }
.steps-v legend { font: 700 1.05rem/1.3 var(--hf); float: left; width: 100%; margin-bottom: 12px; }
.steps-v legend span { font: 700 11.5px/1 var(--bf); letter-spacing: .16em; color: var(--ochre); text-transform: uppercase; display: block; margin-bottom: 6px; }
.steps-v .seg { clear: both; }
input[type=range] { padding: 0; min-height: 44px; border: 0; background: none; accent-color: var(--ochre); }

/* wizard and calendar */
.wiz-steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.wiz-steps li { flex: 1 1 120px; padding: 10px 0; border-bottom: 3px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.wiz-steps li.on { border-color: var(--ink); color: var(--ink); }
.wiz-steps li.done { border-color: var(--tape); }
.wiz-body, .wiz-done { position: relative; z-index: 1; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 12px; font-weight: 700; text-align: center; color: var(--muted); padding: 4px 0; }
.cal button { min-height: 46px; background: #fff; color: var(--ink); border: 1px solid var(--line); font: 600 15px/1 var(--bf); cursor: pointer; }
.cal button:disabled { background: transparent; color: #A89C88; cursor: not-allowed; text-decoration: line-through; }
.cal button[aria-pressed=true] { background: var(--ink); color: var(--sheet); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head b { font: 700 1.15rem/1 var(--hf); }
.cal-head button { width: 44px; height: 44px; background: #fff; border: 1.5px solid var(--ink); cursor: pointer; font-size: 20px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* engagement drawer */
.cart-fab { position: fixed; left: 16px; bottom: 16px; z-index: 69; box-shadow: var(--shadow); }
.drawer { position: fixed; top: 48px; right: 0; bottom: 0; width: min(420px, 100%); z-index: 2147483050; background: var(--sheet); display: flex; flex-direction: column; transform: translateX(105%) rotate(2deg); transition: transform .45s var(--spring); box-shadow: -18px 0 40px rgba(31, 27, 22, .25); }
.drawer.open { transform: none; }
.drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 2px solid var(--ink); }
.drawer-h h2 { font-size: 1.4rem; margin: 0; }
.drawer-b { flex: 1; overflow: auto; padding: 12px 20px; }
.drawer-f { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ci { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.ci small { color: var(--muted); }
.ci .rm { background: none; border: 0; color: var(--ochre); text-decoration: underline; cursor: pointer; min-height: 44px; font: inherit; font-size: 14px; }
.tot { display: flex; justify-content: space-between; align-items: baseline; }
.tot b { font: 700 1.6rem/1 var(--hf); }
.scrim { position: fixed; inset: 0; background: rgba(31, 27, 22, .4); z-index: 2147483040; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--tape); color: var(--ink); font-size: 13px; font-weight: 700; }

/* areas and case files */
.areas { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.area { padding: 22px; }
.area > * { position: relative; z-index: 1; }
.area h3 { margin-bottom: 4px; }
.area .zone { font: 700 11.5px/1 var(--bf); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }
.area dl { margin: 12px 0 0; }
.area dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.area dt { color: var(--muted); }
.area dd { margin: 0; font-weight: 600; text-align: right; }
.case { display: grid; gap: 16px; padding: 20px; }
.case > * { position: relative; z-index: 1; }
@media (min-width: 760px) { .case { grid-template-columns: 220px minmax(0, 1fr); } }
.case .print { transform: rotate(-2deg); }
.case-list { display: grid; gap: 28px; }

/* team */
.team { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.person { margin: 0; }
.person .print { margin-bottom: 14px; }
.person h3 { margin: 0 0 2px; }
.person .role { color: var(--ochre); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.person p { font-size: 15px; color: #3A342B; margin: 0; }

/* map placeholder */
.map { padding: 10px; }
.map svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }

/* article */
.article { max-width: 780px; margin: 0 auto; padding: clamp(24px, 4vw, 52px); }
.article > * { position: relative; z-index: 1; }
.article p, .article li { font-size: 18px; color: #2E2922; }
.article h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: 1.4em; }
.article p:first-of-type::first-letter { float: left; font: 700 3.6rem/.9 var(--hf); margin: 6px 10px 0 0; color: var(--ochre); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.posts { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post { color: var(--ink); text-decoration: none; display: grid; gap: 10px; align-content: start; }
.post .print { transform: rotate(var(--rot)); }
.post h3 { margin: 0; }
.post p { margin: 0; color: #3A342B; font-size: 15.5px; }
.tag { justify-self: start; display: inline-block; padding: 4px 10px; background: var(--kraft); font: 700 11.5px/1.2 var(--bf); letter-spacing: .14em; text-transform: uppercase; color: #4B3A1E; }

/* footer: the back of the folder */
.foot { background: var(--ink); color: #E9DFCB; padding: 0 16px; margin-top: 40px; position: relative; }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: var(--ink); clip-path: polygon(0 100%, 0 30%, 12% 30%, 15% 0, 32% 0, 35% 30%, 100% 30%, 100% 100%); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 50px 0 24px; }
.foot a { color: #F3E3BF; }
.foot-top { display: grid; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid rgba(233, 223, 203, .2); }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.f-big { font: 700 clamp(1.5rem, 3vw, 2.4rem)/1.2 var(--hf); color: #FFFDF8; margin: 0 0 8px; max-width: 24ch; }
.foot-top p { color: #CFC3AB; max-width: 60ch; }
.foot .logo { color: #FFFDF8; justify-self: start; }
.foot .logo small { color: #CFC3AB; }
.foot-grid { display: grid; gap: 28px; padding: 32px 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.foot address { font-style: normal; margin-top: 14px; line-height: 1.8; font-size: 15px; }
.foot .small { color: #BFB39B; }
.f-k { font: 700 12px/1 var(--bf); letter-spacing: .18em; text-transform: uppercase; color: var(--tape); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; font-size: 15px; color: #E9DFCB; }
.foot li a:hover { color: var(--tape); }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid rgba(233, 223, 203, .2); font-size: 14px; color: #BFB39B; }
.foot-base p { margin: 0; }
.ld-btn { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 14px; background: transparent; border: 1.5px solid rgba(233, 223, 203, .5); color: #E9DFCB; font: 600 14px/1 var(--bf); cursor: pointer; }
.ld-btn[aria-pressed=true] { background: var(--tape); color: var(--ink); border-color: var(--tape); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px) rotate(-1deg); opacity: 0; z-index: 2147483200; background: #FCEFC7; color: var(--ink); padding: 12px 20px; box-shadow: var(--shadow); font-weight: 600; font-size: 15px; transition: .35s var(--spring); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }

/* reveals: pieces drop onto the desk */
[data-reveal] { transition: opacity .8s var(--ease), transform .9s var(--spring); transition-delay: calc(var(--i, 0) * 80ms); }
.js-reveal [data-reveal]:not(.in) { opacity: 0; transform: translateY(34px) rotate(calc(var(--rot, 0deg) + 3deg)); }
.js-reveal .card[data-reveal]:not(.in), .js-reveal .g-item[data-reveal]:not(.in), .js-reveal .rel[data-reveal]:not(.in) { opacity: 0; transform: translateY(34px) rotate(calc(var(--rot, 0deg) + 4deg)); }

/* Vablus chat */
.vb { position: fixed; right: 16px; bottom: 16px; z-index: 2147482000; }
.vb-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; background: var(--ink); color: var(--sheet); border: 0; font: 700 15px/1 var(--bf); cursor: pointer; box-shadow: var(--shadow); border-radius: 3px; }
.vb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tape); }
.vb.open .vb-launch { display: none; }
.vb-panel { position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 90px)); display: flex; flex-direction: column; background: var(--sheet); box-shadow: 0 30px 60px rgba(31, 27, 22, .35); border-top: 4px solid var(--tape); }
.vb-head { display: flex; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; border-bottom: 2px solid var(--ink); }
.vb-av { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--tape); font: 700 18px/1 var(--hf); flex: none; }
.vb-t { margin: 0; font-weight: 700; font-size: 15px; }
.vb-s { margin: 0; font-size: 12.5px; color: var(--muted); }
.vb-x { margin-left: auto; width: 44px; height: 44px; background: none; border: 1.5px solid var(--ink); font-size: 22px; cursor: pointer; color: var(--ink); }
.vb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: repeating-linear-gradient(transparent 0 27px, rgba(126, 84, 16, .08) 27px 28px); }
.vb-m { max-width: 86%; padding: 10px 14px; font-size: 15px; line-height: 1.5; }
.vb-bot { background: #fff; align-self: flex-start; box-shadow: 0 2px 8px rgba(60, 40, 10, .12); border-left: 3px solid var(--tape); }
.vb-me { background: var(--ink); color: var(--sheet); align-self: flex-end; }
.vb-me a { color: var(--tape); }
.vb-typing { display: flex; gap: 4px; }
.vb-typing i { width: 6px; height: 6px; background: var(--ochre); border-radius: 50%; animation: blink 1s infinite; }
.vb-typing i:nth-child(2) { animation-delay: .2s; } .vb-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.vb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 10px; }
.vb-chips button { min-height: 40px; padding: 0 12px; background: var(--sheet); color: var(--ink); border: 1.5px solid var(--ink); font: 600 13.5px/1 var(--bf); cursor: pointer; }
.vb-form { display: flex; border-top: 1px solid var(--line); }
.vb-form input { border-bottom: 0; flex: 1; min-width: 0; }
.vb-form button { width: 52px; background: var(--ink); color: var(--sheet); border: 0; font-size: 20px; cursor: pointer; }

/* Receivly modal */
.rv-wrap { position: fixed; inset: 0; z-index: 2147483300; display: grid; place-items: center; padding: 60px 12px 12px; background: rgba(31, 27, 22, .6); overflow-y: auto; }
.rv { width: min(440px, 100%); background: #fff; color: #17201B; border-radius: 14px; overflow: hidden; font-family: var(--bf); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.rv-head { display: flex; gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid #ECEFEA; }
.rv-logo { width: 40px; height: 40px; display: grid; place-items: center; background: #11231B; border-radius: 10px; flex: none; }
.rv-logo svg { width: 22px; height: 22px; fill: none; stroke: #5CF2B6; stroke-width: 2.4; }
.rv-k { margin: 0; font-size: 12px; color: #4A5A53; font-weight: 600; }
.rv h2 { font: 700 1.2rem/1.2 var(--bf); margin: 2px 0 0; letter-spacing: 0; }
.rv-x { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: #F1F4F2; border: 0; font-size: 22px; cursor: pointer; }
.rv-body { padding: 16px 18px 20px; }
.rv-for { font-size: 15px; color: #33433C; }
.rv [role=tablist] { display: flex; gap: 4px; border-bottom: 1px solid #ECEFEA; margin-bottom: 14px; }
.rv [role=tab] { min-height: 44px; padding: 0 14px; background: none; border: 0; border-bottom: 2px solid transparent; font: 600 15px/1 var(--bf); color: #4A5A53; cursor: pointer; }
.rv [role=tab][aria-selected=true] { color: #11231B; border-bottom-color: #11231B; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.rv-span { grid-column: 1 / -1; }
.rv-f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #33433C; }
.rv-f input { border: 1px solid #CBD5D0; border-radius: 8px; background: #F6F8F7; }
.rv-note { font-size: 13px; color: #4A5A53; margin: 10px 0; }
.rv-bank, .rv-rec { margin: 0; }
.rv-bank div, .rv-rec div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ECEFEA; font-size: 14px; }
.rv-bank dt, .rv-rec dt { color: #4A5A53; }
.rv-bank dd, .rv-rec dd { margin: 0; font-weight: 600; text-align: right; }
.rv-pay, .rv-done, .rv-print { width: 100%; min-height: 50px; margin-top: 12px; background: #11231B; color: #fff; border: 0; border-radius: 10px; font: 700 16px/1 var(--bf); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.rv-print { background: #EAF0ED; color: #11231B; }
.rv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-sec { text-align: center; font-size: 12px; color: #5A6A63; margin: 12px 0 0; }
.rv-spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rv-ok { text-align: center; outline: none; }
.rv-ok svg { width: 56px; height: 56px; fill: none; stroke: #13A06A; stroke-width: 2.6; }
.rv-ok h3 { font: 700 1.2rem var(--bf); margin: 6px 0 2px; }
.rv-ok p { color: #4A5A53; font-size: 14px; }

.modal-open, .menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.lowdata *, .lowdata *::before, .lowdata *::after { animation: none !important; transition: none !important; }
@media print { .hdr, .vb, .foot, #covorn-ribbon { display: none !important; } body { background: #fff; } }
@media (max-width: 480px) { body { font-size: 16px; } .numbered li { grid-template-columns: 50px minmax(0, 1fr); } .sheet { padding: 20px 16px; } .qas { padding: 4px 16px; } }
