/* Sandbanks Skylights: a surveyor's readout set in huge wide type on near-black.
   Tokens from STYLE-GUIDE.md / design-dna.json. One spacing scale, one container system,
   grids with named minimums (§7c.1), one .on-night correction class (§7c.3). */

:root {
	--night: #0a0a0a;
	--night-2: #1d1d1d;
	--night-rule: #313131;
	--paper: #f2efea;
	--paper-2: #e6e2db;
	--white: #fff;
	--ink: #111214;
	--ink-soft: #55524d;
	--on-night: #f2efea;
	--on-night-mute: #a8a39c;
	--coral: #e8604a;
	--coral-deep: #b23e2a;

	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
	--band-pad: clamp(64px, 9vw, 128px);
	--band-pad-sm: clamp(48px, 6vw, 80px);
	--prose: 66ch;
	--std: 1180px;
	--wide: 1360px;
	--gutter: clamp(16px, 4vw, 48px);

	--f-display: "Unbounded", "Unbounded Fallback", "Arial Black", sans-serif;
	--f-body: "Sora", "Sora Fallback", "Segoe UI", system-ui, sans-serif;
	--f-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "Cascadia Mono", monospace;

	--fs-hero: clamp(36px, 4.9vw, 78px);
	--fs-page: clamp(36px, 4.6vw, 72px);
	--fs-xxl: clamp(40px, 5.4vw, 84px);
	--fs-xl: clamp(32px, 4vw, 60px);
	--fs-lg: clamp(28px, 3vw, 44px);
	--fs-article: clamp(30px, 3.4vw, 46px);
	--fs-h3: clamp(18px, 1.5vw, 21px);
	--radius: 4px;
	--hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--night);
	color: var(--on-night);
	font: 400 18px/1.7 var(--f-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--coral); color: var(--night); padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- containers ---------- */
.wrap { width: 100%; max-width: calc(var(--std) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.wrap--prose { max-width: calc(760px + 2 * var(--gutter)); }
.wrap--prose-wide { max-width: calc(980px + 2 * var(--gutter)); }

/* ---------- bands: padding only, never vertical margin (§7b.4, §7c.4) ---------- */
.band { padding-block: var(--band-pad); position: relative; }
.band--night { background: var(--night); color: var(--on-night); }
.band--paper { background: var(--paper); color: var(--ink); }
.band + .band--night.band, .band--night + .band--night { border-top: 1px solid var(--night-rule); }

/* the ONE dark-ground correction mechanism; outranks band-level rules */
.on-night, .on-night .prose { color: var(--on-night); }
.on-night a:not(.btn):not(.tile a) { color: var(--on-night); text-decoration-color: var(--coral); }
.on-night .kicker, .on-night .readout__label { color: var(--coral); }
.on-night .muted, .on-night .readout__note { color: var(--on-night-mute); }
.band--paper .kicker, .band--paper .readout__label { color: var(--coral-deep); }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 600; text-transform: lowercase; line-height: 0.98; letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: none; }
.display--hero { font-size: var(--fs-hero); font-weight: 700; }
.display--page { font-size: var(--fs-page); font-weight: 700; }
.display--xxl { font-size: var(--fs-xxl); }
.display--xl { font-size: var(--fs-xl); }
.display--lg { font-size: var(--fs-lg); }
.display--article { font-size: var(--fs-article); text-transform: none; line-height: 1.08; }
.display .line { display: block; }
.display--hero .line.coral { font-size: 0.74em; white-space: nowrap; }
@media (max-width: 599px) { .display--hero .line.coral { white-space: normal; } }
.coral { color: var(--coral); }
.band--paper .display .coral { color: var(--coral-deep); }
/* coral on paper is 2.95:1 (fails even large text); every coral glyph on paper uses coral-deep (5.06:1). See the paper-ground block at the end. */
.kicker { font: 500 13px/1.4 var(--f-mono); letter-spacing: 0.04em; text-transform: lowercase; color: var(--coral); margin: 0 0 var(--s4); }
.kicker--lg { font-size: 16px; }
h3 { font: 600 var(--fs-h3)/1.3 var(--f-body); }
.outline { color: transparent; -webkit-text-stroke: 1.2px var(--coral); font-weight: 300; }
@media (forced-colors: active) { .outline { color: CanvasText; -webkit-text-stroke: 0; } }
.numeral { display: block; font: 300 clamp(64px, 7vw, 112px)/0.9 var(--f-display); letter-spacing: -0.04em; }
.numeral.outline { color: var(--coral); -webkit-text-stroke: 0; font-weight: 200; }
.numeral--md { font-size: clamp(48px, 5vw, 72px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: var(--radius); font: 600 16px/1.2 var(--f-body); text-decoration: none; white-space: nowrap; flex: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.btn--coral { background: var(--coral); color: var(--night); }
.btn--coral:hover { background: #d9553f; }
.btn--ghost { border-color: var(--on-night); color: var(--on-night); background: transparent; }
.btn--ghost:hover { background: var(--on-night); color: var(--night); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }

/* ---------- header (§4a) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--night); border-bottom: 1px solid var(--night-rule); }
.site-header__bar { display: flex; align-items: center; gap: var(--s5); height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-night); flex: none; }
.brand .mark { color: var(--coral); }
.brand__word { font: 600 21px/1 var(--f-body); letter-spacing: -0.01em; white-space: nowrap; }
.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { font: 400 16px/1 var(--f-body); color: var(--on-night); text-decoration: none; padding: 28px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__item.is-current > .nav__link, .nav__link[aria-current="page"] { border-bottom-color: var(--coral); }
.nav__link:hover { color: var(--coral); }
.nav__caret { background: none; border: 0; color: var(--on-night); padding: 6px; margin-left: 2px; cursor: pointer; display: inline-flex; min-width: 28px; min-height: 28px; align-items: center; justify-content: center; }
.nav__caret svg { transition: transform .2s; }
.nav__caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub { position: absolute; top: 100%; left: -20px; min-width: 300px; list-style: none; margin: 0; padding: 10px 0; background: var(--night-2); border: 1px solid var(--night-rule); border-top: 2px solid var(--coral); display: none; }
.nav__item.has-sub:hover .nav__sub, .nav__item.has-sub:focus-within .nav__sub, .nav__item.is-open .nav__sub { display: block; }
.nav__sub a { display: block; padding: 9px 20px; color: var(--on-night); text-decoration: none; font-size: 15px; line-height: 1.35; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--coral); }
.nav__sub-all a { font-family: var(--f-mono); font-size: 13px; color: var(--coral); border-top: 1px solid var(--night-rule); margin-top: 6px; padding-top: 12px; }
.nav__mobile-extra { display: none; }
.site-header__ctas { display: flex; align-items: center; gap: var(--s4); flex: none; }
.hdr-phone, .hdr-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--on-night); text-decoration: none; font-size: 15px; white-space: nowrap; flex: none; }
.hdr-phone { font-weight: 600; }
.hdr-wa:hover, .hdr-phone:hover { color: var(--coral); }
.burger { display: none; background: none; border: 0; color: var(--on-night); padding: 8px; min-width: 44px; min-height: 44px; cursor: pointer; }
@media (max-width: 1439px) { .hdr-wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
/* 1024-1299: full nav kept on laptops; phone + WhatsApp go icon-only, gaps and wordmark tighten. */
@media (min-width: 1024px) and (max-width: 1299px) {
	.site-header__bar { gap: var(--s4); }
	.brand__word { font-size: 18px; }
	.nav__list { gap: 18px; }
	.nav__link { font-size: 15px; }
	.site-header__ctas { gap: 14px; }
	.hdr-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1151px) { .site-header__bar { gap: var(--s3); } .nav__list { gap: 14px; } }
@media (max-width: 1023px) {
	.site-header__ctas { margin-left: auto; }
	.burger { display: inline-flex; align-items: center; justify-content: center; }
	.hdr-wa { display: none; }
	.nav { position: fixed; inset: var(--hdr) 0 auto 0; margin: 0; background: var(--night); border-bottom: 1px solid var(--night-rule); max-height: calc(100dvh - var(--hdr)); overflow-y: auto; overscroll-behavior: contain; display: none; padding: var(--s4) var(--gutter) var(--s6); }
	.nav.is-open { display: block; }
	html.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--night-rule); }
	.nav__link { flex: 1; padding: 16px 0; font-size: 18px; border-bottom: 0; }
	.nav__item.is-current > .nav__link { color: var(--coral); }
	.nav__caret { min-width: 44px; min-height: 44px; }
	.nav__sub, .nav__item.has-sub:hover .nav__sub, .nav__item.has-sub:focus-within .nav__sub { position: static; display: none; min-width: 0; width: 100%; background: transparent; border: 0; padding: 0 0 12px 12px; }
	.nav__item.is-open .nav__sub { display: block; }
	.nav__sub a { padding: 10px 0; font-size: 16px; color: var(--on-night-mute); }
	.nav__sub-all a { border-top: 0; margin: 0; }
	.nav__mobile-extra { display: flex; flex-direction: column; gap: var(--s4); padding-top: var(--s5); }
	.nav__phone { display: inline-flex; gap: 10px; align-items: center; color: var(--on-night); text-decoration: none; font-weight: 600; font-size: 18px; }
}
@media (max-width: 560px) { .hdr-quote { display: none; } .hdr-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .brand__word { font-size: 16px; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 3vw, 48px) clamp(40px, 4vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__sub { max-width: 46ch; margin-top: var(--s5); font-size: 17px; color: var(--on-night); }
.hero__media { margin: 0; aspect-ratio: 1 / 0.86; overflow: hidden; background: var(--night-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero--page .hero__media { aspect-ratio: 1 / 0.92; }
@media (max-width: 899px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero__media { aspect-ratio: 16 / 10; } }

.crumbs ol { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 500 13px/1.4 var(--f-mono); color: var(--coral); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--on-night-mute); }
.crumbs a { color: var(--coral) !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--on-night-mute); }

/* ---------- columns rows (trust, proof, facts, homes) ---------- */
.cols { list-style: none; margin: 0; padding: 0; display: grid; }
.cols--5 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.cols--4 { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
@media (min-width: 1024px) { .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cols--3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.col { min-width: 0; padding: var(--s5) clamp(16px, 2vw, 32px); border-left: 1px solid var(--night-rule); }
.col:first-child { border-left: 0; }
@media (max-width: 899px) { .col { border-left: 0; border-top: 1px solid var(--night-rule); } .col:first-child { border-top: 0; } }
.trust .col, .proof .col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s5); font-size: clamp(19px, 1.6vw, 23px); font-weight: 300; line-height: 1.3; }
.trust .icon, .proof .icon { width: clamp(64px, 6vw, 92px); height: auto; stroke-width: 1.1; }
.trust .icon, .proof .icon, .homes .icon { color: var(--on-night); }
.trust { padding-block: var(--band-pad-sm); }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split--proof { align-items: center; }
@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); } }
.numbered { counter-reset: none; }
.problem .col h3 { margin: var(--s4) 0 var(--s3); font-size: 21px; }
.problem .col p { color: var(--on-night); font-size: 17px; font-weight: 300; }

.steps .step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: start; }
.steps .step { align-items: center; }
.steps .step h3 { margin: 0 0 8px; font-size: clamp(22px, 1.9vw, 27px); }
.steps .step p { color: var(--on-night); font-size: 17px; font-weight: 300; }
.steps--stacked .step { grid-template-columns: minmax(0, 1fr); }
.process { padding-block: var(--band-pad-sm); }

/* ---------- service tiles ---------- */
.tiles-head { margin-bottom: var(--s6); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile a, .band--paper .tile a { display: block; text-decoration: none; background: var(--night); color: var(--on-night); height: 100%; transition: transform .2s; }
.tile a:hover { transform: translateY(-2px); }
.tile img { width: 100%; aspect-ratio: 1 / 0.8; object-fit: cover; }
.tile__name, .band--paper .tile__name { display: block; padding: 12px 14px; font-size: 15px; line-height: 1.3; color: var(--on-night); }
.services--town .tiles-head { margin-bottom: var(--s5); }

/* ---------- areas (home) ---------- */
.areas { padding: 0; }
.areas__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.15fr); min-height: 560px; }
.areas__copy .display--xl { font-size: clamp(32px, 3.6vw, 58px); }
.areas__map, .town-map__map { position: relative; min-height: 420px; }
.areas__copy { padding: var(--band-pad-sm) var(--gutter); align-self: center; }
.areas__copy p { color: var(--on-night-mute); font-size: 16px; margin-top: var(--s5); }
@media (max-width: 1023px) { .areas__grid { grid-template-columns: minmax(0, 1fr); } .areas__map { min-height: 380px; } }
.chips { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--night-rule); border-radius: 999px; font-size: 14px; text-decoration: none; }
.chips a:hover { border-color: var(--coral); color: var(--coral); }
.chips__all { border-color: var(--coral) !important; color: var(--coral) !important; }

/* ---------- map ---------- */
.map-fig { margin: 0; position: absolute; inset: 0; }
.contact-map .map-fig, .idx ~ .band .map-fig { position: relative; height: 460px; margin-top: var(--s6); }
.band .wrap > .map-fig { position: relative; height: 480px; margin-top: var(--s6); }
.map { width: 100%; height: 100%; background: #1a1c20; }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) saturate(0.55) brightness(0.62) contrast(1.35); opacity: .9; }
.map-home { color: var(--coral); }
.leaflet-tooltip.map-label--area { color: #9db08e; font: 500 14px var(--f-mono); }
.leaflet-tooltip.map-label--ring { color: var(--coral); font: 500 14px var(--f-mono); }
.map .leaflet-container, .leaflet-container { background: #1a1c20; font-family: var(--f-body); }
.leaflet-tooltip.map-label { background: transparent; border: 0; box-shadow: none; color: var(--on-night); font: 500 15px/1.2 var(--f-body); padding: 0; text-shadow: 0 0 3px #000, 0 0 6px #000; white-space: nowrap; }
.leaflet-tooltip.map-label::before { display: none; }
.leaflet-tooltip.map-label--home { color: var(--on-night); font-weight: 600; font-size: 18px; }
.map-label a { color: inherit; text-decoration: none; }
.leaflet-control-attribution { background: rgba(17, 18, 20, .8) !important; color: var(--on-night-mute) !important; font-size: 11px; }
.leaflet-control-attribution a { color: var(--on-night) !important; }
.leaflet-bar a { background: var(--night-2); color: var(--on-night); border-color: var(--night-rule); }

/* ---------- town page sections ---------- */
.homes__list .col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); }
.homes .icon { width: clamp(80px, 8vw, 112px); height: auto; stroke-width: 1.1; }
.homes__label { font-size: 19px; font-weight: 600; }
.homes__note { font-size: 15px; color: var(--on-night-mute); line-height: 1.5; }
#homes-title { margin-bottom: var(--s6); }
.readout-band { padding-block: var(--band-pad-sm); }
.readout--town { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr); gap: var(--s6); align-items: center; color: var(--ink); margin: 0; }
.ruler--miles { position: relative; display: flex; justify-content: space-between; align-items: flex-start; font: 500 18px/1 var(--f-mono); padding-bottom: 0; height: 64px; opacity: 1; border-bottom-width: 2px; background-size: 100% 6px, 100% 12px, 100% 20px; }
.ruler--miles span { transform: translateX(-30%); }
.ruler--miles span:last-child { transform: translateX(30%); }
.ruler__unit { font: 500 12px var(--f-mono); text-align: right; margin: 4px 0 var(--s4); color: var(--ink-soft); }
.readout--town .figs__item { border-left-color: var(--ink-soft); }
.readout--town .figs__item:first-child { border-left: 0; }
.readout--town .display .coral { color: var(--coral); }
@media (max-width: 899px) { .readout--town { grid-template-columns: minmax(0, 1fr); } }
.readout--town .coral-num { color: var(--coral) !important; font: 300 clamp(44px, 4.6vw, 72px)/1 var(--f-display) !important; }
.town-map { padding: 0; }
.town-map__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); min-height: 420px; }
.town-map__near { padding: var(--band-pad-sm) var(--gutter); align-self: center; }
.town-map__near ul { list-style: none; margin: 0; padding: 0; }
.town-map__near a { display: block; font: 600 clamp(24px, 2.2vw, 32px)/1.5 var(--f-body); text-decoration: none; }
.town-map__near a:hover { color: var(--coral); }
@media (max-width: 899px) { .town-map__grid { grid-template-columns: minmax(0, 1fr); } .town-map__map { min-height: 340px; } }

/* ---------- service page sections ---------- */
.facts { padding-block: var(--band-pad-sm); }
.facts__list .col { text-align: center; }
.facts__word { display: block; font: 300 clamp(36px, 4vw, 62px)/1 var(--f-display); letter-spacing: -0.03em; text-transform: lowercase; overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 899px) { .facts__word { white-space: normal; } }
.facts__cap { display: block; margin-top: var(--s4); font: 400 14px/1.5 var(--f-mono); color: var(--on-night-mute); }
.measure__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: var(--s6); }
@media (max-width: 1023px) { .measure__grid { grid-template-columns: minmax(0, 1fr); } }
.measure__fig { margin: 0; color: var(--ink); align-self: start; }
.measure__grid { align-items: start; }
.measure__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); }
.measure__points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: start; }
.measure__points h3 { margin: 6px 0 6px; }
.measure__points p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.opt-cards { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: var(--s6); }
.opt-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); border-right: 1px solid var(--night-rule); padding-right: var(--s5); }
.opt-card:last-child { border-right: 0; }
.opt-card img { width: 100%; height: 100%; aspect-ratio: 1 / 0.95; object-fit: cover; }
.opt-card h3 { font-size: 21px; margin-bottom: var(--s3); }
.opt-card ul { list-style: none; margin: 0; padding: 0; }
.opt-card li { font-size: 14px; color: var(--on-night-mute); padding: 8px 0; border-top: 1px solid var(--night-rule); line-height: 1.4; }
@media (max-width: 899px) { .opt-card { border-right: 0; padding-right: 0; } }

/* ---------- diagrams ---------- */
.diagram { width: 100%; height: auto; display: block; }
.diagram text { font: 500 19px var(--f-mono); fill: var(--coral); stroke: none; }
.band--paper .diagram text { fill: var(--coral-deep); }
.diagram .dim { stroke: var(--coral); stroke-width: 2; }
.js-motion .diagram .dim { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s ease-out .2s; }
.js-motion .is-in .diagram .dim, .js-motion .diagram.is-in .dim { stroke-dashoffset: 0; }

/* ---------- long read (A4 spec sheet) ---------- */
.lr-intro { padding-block: var(--band-pad) var(--band-pad-sm); }
.lr-intro__stand { max-width: 60ch; margin-top: var(--s5); font-size: 19px; color: var(--on-night); }
.mindex { margin-top: var(--s7); }
.mindex__k { font: 500 13px var(--f-mono); color: var(--coral); margin-bottom: var(--s3); }
.mindex__list { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); border-top: 1px solid var(--on-night-mute); position: relative; }
.mindex__list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--on-night-mute) 0 1px, transparent 1px 40px); }
.mindex__list li { position: relative; }
.mindex__list li::before { content: ""; position: absolute; left: 50%; top: -18px; height: 22px; border-left: 2px solid var(--on-night); }
.mindex__list li { min-width: 0; }
.mindex__list a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; text-decoration: none; text-align: center; }
.mindex__n { font: 200 clamp(40px, 3.8vw, 58px)/1 var(--f-display); color: var(--coral); }
.mindex__t { font-size: 15px; line-height: 1.3; }
.mindex__list a:hover .mindex__t { color: var(--coral); }

.readout { margin-bottom: var(--s7); }
.readout__label { font: 500 13px var(--f-mono); margin-bottom: var(--s3); }
.readout__ex { display: inline-block; white-space: nowrap; margin-left: 10px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; }
.ruler { height: 26px; border-bottom: 1px solid currentColor; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px) bottom / 100% 8px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 50px) bottom / 100% 16px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 100px) bottom / 100% 26px no-repeat; opacity: .55; }
.readout__value { margin: var(--s5) 0 var(--s4); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.readout__value .outline { font: 200 clamp(72px, 10vw, 168px)/0.9 var(--f-display); letter-spacing: -0.04em; color: var(--coral); -webkit-text-stroke: 0; }
.band--paper .readout__value .outline { color: var(--coral-deep); }
.readout__main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s6); align-items: center; }
.readout--side .readout__main .mod { margin: 0; max-width: none; }
@media (max-width: 899px) { .readout__main { grid-template-columns: minmax(0, 1fr); } }
.ruler--scale { display: flex; justify-content: space-between; align-items: flex-start; height: 44px; font: 500 12px/1 var(--f-mono); opacity: .8; }
.ruler--scale span { transform: translateY(-2px); }
.readout__unit { font: 300 clamp(36px, 4vw, 64px)/1 var(--f-display); color: var(--coral); }
.band--paper .readout__unit { color: var(--coral-deep); }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); margin: 0; border-top: 1px solid var(--paper-2); border-bottom: 1px solid var(--paper-2); }
.on-night .figs { border-color: var(--night-rule); }
.figs__item { padding: var(--s4) var(--s5); border-left: 1px solid #b9b3aa; min-width: 0; }
.on-night .figs__item { border-color: var(--night-rule); }
.figs__item:first-child { border-left: 0; }
.figs dt { font: 500 12px var(--f-mono); letter-spacing: .03em; opacity: .85; }
.figs dd { margin: 6px 0 0; font: 300 clamp(18px, 1.7vw, 26px)/1.2 var(--f-display); color: var(--coral); overflow-wrap: normal; word-break: normal; }
.band--paper .figs dd { color: var(--coral-deep); }
.readout--town .figs dd { color: var(--ink); font: 400 clamp(18px, 1.6vw, 23px)/1.3 var(--f-body); }
.readout--town .display--lg { font-size: clamp(28px, 2.8vw, 44px); }
.homes__title { margin-bottom: var(--s6); }
.readout__note { font-size: 15px; margin: var(--s4) 0 0; color: var(--ink-soft); }
.readout--inset { border: 1px solid var(--night-rule); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: end; max-width: 1180px; }
.readout--inset .figs { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.readout--inset .figs dd { white-space: nowrap; }
@media (max-width: 899px) { .readout--inset .figs dd { white-space: normal; } }
.readout--inset .ruler, .readout--inset .readout__label { grid-column: 1 / -1; }
.readout--inset .readout__value { margin: 0; }
.readout--inset .readout__value .outline { font-size: clamp(64px, 7vw, 120px); white-space: nowrap; }
@media (min-width: 900px) { .readout--inset { grid-template-columns: auto minmax(0, 1fr) !important; align-items: center !important; } }
@media (min-width: 900px) { .readout--inset .readout__main { grid-row: span 2; } }
.readout--inset .figs dd { white-space: normal; }
.readout--inset .readout__note { grid-column: 1 / -1; }
@media (max-width: 899px) { .readout--inset .readout__value .outline { white-space: normal; } }
@media (max-width: 899px) { .readout--inset { grid-template-columns: minmax(0, 1fr); } }

.lr-ch { padding-block: var(--band-pad); }
.lr-ch__body { max-width: 760px; margin-inline: auto; }
.lr-ch__body--aside { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 1023px) { .lr-ch__body--aside { grid-template-columns: minmax(0, 1fr); } }
.lr-ch__title { font: 600 clamp(28px, 2.8vw, 37px)/1.12 var(--f-display); letter-spacing: -0.02em; margin-bottom: var(--s5); }
.lr-ch__dek { font-size: 20px; line-height: 1.55; margin-bottom: var(--s5); }
.band--paper .lr-ch__dek { color: var(--ink-soft); }
.on-night .lr-ch__dek { color: var(--on-night-mute); }
.prose { max-width: var(--prose); }
.lr-ch__body .prose, .feature .prose, .answer .prose, .article .prose { margin-inline: auto; }
.prose p, .prose li { font-size: 18px; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.band--paper .prose a, .band--paper a:not(.btn) { color: var(--ink); text-decoration-color: var(--coral-deep); }
.prose h3 { margin: 1.6em 0 .5em; }
.prose strong { font-weight: 600; }
.list { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.list li { position: relative; padding-left: 28px; margin-bottom: .5em; }
ul.list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 12px; height: 2px; background: var(--coral); }
ol.list { counter-reset: li; }
ol.list li::before { counter-increment: li; content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 500 13px var(--f-mono); color: var(--coral); }
.band--paper ol.list li::before { color: var(--coral-deep); }
.band--paper ul.list li::before { background: var(--coral-deep); }
.callout { border-left: 3px solid var(--coral); padding: 4px 0 4px 20px; margin: 1.4em 0; font-weight: 600; }
.pull { font: 600 clamp(22px, 2.2vw, 29px)/1.3 var(--f-display); letter-spacing: -0.02em; margin: 1.4em 0; padding: 18px 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.prose--after { max-width: 760px; margin: var(--s7) auto 0; }

.figure { margin: 2em 0; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure--block { margin-inline: auto; }
.figure figcaption { font: 500 13px/1.5 var(--f-mono); margin-top: 10px; opacity: .8; }
.figure--lead { margin-top: 0; }

/* modules */
.mod { margin: var(--s7) auto 0; max-width: 1080px; }
.mod--wide { max-width: 1120px; }
.spec-card { margin: 0; border: 1.5px solid var(--ink); border-radius: 6px; padding: var(--s5); background: transparent; color: var(--ink); }
.on-night .spec-card { border-color: var(--on-night-mute); }
.on-night .spec-card { background: var(--night-2); color: var(--on-night); border-color: var(--night-rule); }
.spec-card__title { font: 500 15px var(--f-mono); color: var(--coral-deep); margin-bottom: var(--s4); }
.on-night .spec-card__title { color: var(--coral); }
.spec-card dl { margin: 0; }
.spec-card dl div { padding: 12px 0; border-top: 1px solid var(--paper-2); display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; }
.spec-card dl div .icon { grid-row: span 2; color: var(--ink); width: 34px; height: 34px; }
.on-night .spec-card dl div .icon { color: var(--on-night); }
.on-night .spec-card dl div { border-color: var(--night-rule); }
.spec-card dt { font-weight: 600; font-size: 15px; }
.spec-card dd { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.myth-fact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s5); }
.mf { border: 1px solid currentColor; border-radius: 6px; padding: var(--s5); }
.mf__k { font: 500 13px var(--f-mono); color: var(--coral-deep); margin-bottom: 6px; }
.on-night .mf__k { color: var(--coral); }
.mf__h { font: 300 clamp(20px, 1.8vw, 26px)/1.25 var(--f-display); letter-spacing: -0.02em; color: var(--coral-deep); }
.on-night .mf__h { color: var(--coral); }
.mf--fact { border-color: currentColor; }
.readout--side .readout__main { margin-top: var(--s5); }
.mf p:last-child { font-size: 16px; margin: 0; }
.glossary__title, .cost-band__title { font: 500 14px var(--f-mono); color: var(--coral-deep); margin-bottom: var(--s4); }
.on-night .glossary__title, .on-night .cost-band__title { color: var(--coral); }
.glossary__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--s3); margin: 0; }
.glossary .chip { border: 1px solid var(--paper-2); border-radius: 6px; padding: 14px 16px; }
.on-night .glossary .chip { border-color: var(--night-rule); }
.glossary dt { font: 600 15px var(--f-body); }
.glossary dt::before { content: "#"; color: var(--coral-deep); margin-right: 4px; font-family: var(--f-mono); }
.glossary dd { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.cost-band ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 2px solid var(--coral); }
.cost-band li { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--paper-2); }
.on-night .cost-band li { border-color: var(--night-rule); }
.cost-band__label { display: block; font: 600 17px var(--f-body); }
.cost-band__note { display: block; font-size: 15px; line-height: 1.5; margin-top: 4px; }
.fig-strip dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin: 0; }
.fig-strip dl div { padding: var(--s4); border-left: 1px solid var(--paper-2); }
.fig-strip dl div:first-child { border-left: 0; }
.on-night .fig-strip dl div { border-color: var(--night-rule); }
.fig-strip dt { font: 500 13px var(--f-mono); }
.fig-strip dd { margin: 6px 0 0; font: 300 clamp(34px, 3.4vw, 52px)/1 var(--f-display); }

/* tables fit, never scroll (§ ruling): fixed layout, wrap, stack on mobile */
.table-fig { margin: 1.6em 0; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.45; }
.data-table caption { text-align: left; font: 500 13px var(--f-mono); color: var(--coral-deep); padding-bottom: 10px; }
.on-night .data-table caption { color: var(--coral); }
.data-table { border: 1px solid var(--paper-2); font-size: 16px; }
.on-night .data-table { border-color: var(--night-rule); }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border: 1px solid var(--paper-2); vertical-align: top; overflow-wrap: anywhere; }
.on-night .data-table th, .on-night .data-table td { border-color: var(--night-rule); }
.data-table thead th { font: 500 15px var(--f-body); color: var(--coral-deep); border-bottom: 2px solid currentColor; }
.on-night .data-table thead th { color: var(--coral); }
.data-table tbody th { font-weight: 600; }
@media (max-width: 699px) {
	.data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td, .data-table caption { display: block; width: 100%; }
	.data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.data-table tr { padding: 12px 0; border-bottom: 1px solid var(--paper-2); }
	.data-table th, .data-table td { border: 0; padding: 4px 0; }
	.data-table td[data-label]::before { content: attr(data-label) ": "; font: 500 12px var(--f-mono); color: var(--coral-deep); display: block; }
	.on-night .data-table td[data-label]::before { color: var(--coral); }
}

/* signature panel */
.lr-sig { padding-block: var(--band-pad); }
.lr-sig__fig .diagram text { font-size: 24px; }
.lr-sig .display--lg { font-size: clamp(34px, 3.6vw, 56px); overflow-wrap: normal; word-break: keep-all; }
.lr-sig__grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 899px) { .lr-sig__grid { grid-template-columns: minmax(0, 1fr); } }
.lr-sig__fig { margin: 0; color: var(--on-night); }
.lr-sig__fig figcaption { font: 500 13px/1.5 var(--f-mono); color: var(--on-night-mute); margin-top: 12px; }

/* light long read on town pages: no index nav, quieter chapter heads */
.lr--light .lr-intro { padding-block: var(--band-pad-sm); }

/* ---------- FAQ ---------- */
.faq-band { padding-block: var(--band-pad-sm); }
.faq { max-width: 1080px; }
.faq__title { font: 600 var(--fs-lg)/1.05 var(--f-display); text-transform: lowercase; letter-spacing: -0.02em; margin-bottom: var(--s5); }
.faq__list { border: 1px solid var(--night-rule); border-radius: 6px; padding: 0 var(--s5); }
.band--paper .faq__list { border-color: var(--paper-2); }
.faq__item { border-bottom: 1px solid var(--night-rule); }
.faq__item:last-child { border-bottom: 0; }
.band--paper .faq__item { border-color: var(--paper-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 22px 4px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 300; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; transition: transform .2s; color: currentColor; }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__a { padding: 0 4px 18px; max-width: 70ch; }
.faq__a p { font-size: 17px; }
.on-night .faq__a { color: var(--on-night-mute); }
.feature__faq .faq { grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s7); }

/* ---------- spokes, related ---------- */
.spokes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--s6); margin-top: var(--s6); }
.spokes__k { font: 500 13px var(--f-mono); color: var(--coral-deep); margin-bottom: var(--s3); }
.spokes__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.spokes__list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 16px 0; border-bottom: 1px solid var(--paper-2); text-decoration: none; font-weight: 600; }
.spokes__list a svg { flex: none; color: var(--coral-deep); }
.spokes__list a:hover span { text-decoration: underline; text-decoration-color: var(--coral-deep); }
.related { padding-block: var(--band-pad-sm); }
.related__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s6); }
@media (max-width: 899px) { .related__grid { grid-template-columns: minmax(0, 1fr); } }
.related__hub { font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--f-display); letter-spacing: -0.02em; }
.related__hub a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 6px; }
.related__list { list-style: none; margin: 0; padding: 0; }
.related__list a { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--night-rule); text-decoration: none; }
.related__t { font: 500 12px/2 var(--f-mono); color: var(--coral); }
.related__list a:hover span:last-child { color: var(--coral); }

/* ---------- page heroes, feature, answer, article ---------- */
.page-hero { padding-block: clamp(40px, 5vw, 72px) clamp(48px, 5vw, 80px); }
.page-hero--short { padding-bottom: clamp(36px, 4vw, 56px); }
.page-hero__dek { font-size: 20px; line-height: 1.55; max-width: 58ch; margin-top: var(--s5); color: var(--on-night); }
.page-hero__meta { font: 500 13px var(--f-mono); color: var(--on-night-mute); margin-top: var(--s5); }
.feature, .answer, .article { padding-block: var(--band-pad-sm) var(--band-pad); }
.dropcap::first-letter { float: left; font: 700 4.2em/0.82 var(--f-display); margin: 0.06em 0.1em 0 0; color: var(--coral-deep); }
.feature__ch { margin-top: var(--s8); }
.feature__num { text-align: center; position: relative; margin: 0 0 var(--s5); }
.feature__num::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink); }
.feature__num span { position: relative; display: inline-block; padding: 0 18px; background: var(--paper); font: 300 40px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.2px var(--coral-deep); }
.feature__ch h2, .answer__sec h2, .article__sec h2 { font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--f-display); letter-spacing: -0.02em; margin-bottom: var(--s5); text-align: center; }
.answer__sec h2, .article__sec h2 { text-align: left; }
.answer-box { margin-top: var(--s6); border: 1.5px solid var(--coral); border-radius: 6px; padding: clamp(20px, 3vw, 32px); background: var(--night-2); max-width: 780px; }
.answer-box__k { font: 500 13px var(--f-mono); color: var(--coral); margin-bottom: 8px; }
.answer-box__a { font: 600 clamp(19px, 1.8vw, 23px)/1.5 var(--f-body); margin: 0; }
.answer__sec { margin-top: var(--s7); }
.answer__sec:first-child { margin-top: 0; }
.article__sec { margin-top: var(--s7); }
.article__sec:first-child { margin-top: 0; }
.article__k { font: 500 13px var(--f-mono); color: var(--coral-deep); margin-bottom: 6px; }
.article .mod { max-width: none; }

/* ---------- indexes ---------- */
.idx { padding-block: var(--band-pad-sm) var(--band-pad); }
.idx-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s5); }
.idx-card a { display: flex; flex-direction: column; height: 100%; background: var(--white); text-decoration: none; color: var(--ink) !important; border: 1px solid var(--paper-2); transition: transform .2s; }
.idx-card a:hover { transform: translateY(-2px); }
.idx-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.idx-card__body { padding: var(--s5); display: flex; flex-direction: column; gap: 8px; }
.idx-card__k { font: 500 12px var(--f-mono); color: var(--coral-deep); }
.idx-card__t { font: 600 20px/1.25 var(--f-display); letter-spacing: -0.02em; }
.idx-card__s { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.idx-jump ul { list-style: none; margin: var(--s7) 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.idx-jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; text-decoration: none; }
.idx-jump a:hover { background: var(--ink); color: var(--paper) !important; }
.idx-group { margin-top: var(--s7); }
.idx-group__h { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--f-display); letter-spacing: -0.02em; margin-bottom: var(--s4); text-transform: lowercase; }
.idx-group__h span { font: 500 14px var(--f-mono); color: var(--coral-deep); margin-left: 8px; }
.idx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); column-gap: var(--s6); border-top: 1px solid var(--ink); }
.idx-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--paper-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.idx-list a svg { flex: none; color: var(--coral-deep); }
.idx-list__m { font: 500 13px var(--f-mono); color: var(--ink-soft); flex: none; }
.idx-list--towns { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.idx-outro { padding-top: 0; }

/* ---------- quote band (#quote) ---------- */
.quote__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 1023px) { .quote__grid { grid-template-columns: minmax(0, 1fr); } }
.quote__copy .display--xl { font-size: clamp(32px, 4vw, 64px); }
.quote__points { list-style: none; margin: var(--s5) 0 0; padding: 0; font-size: 17px; }
.quote__points li { padding: 4px 0; }
.quote__panel-h { font: 600 20px/1.3 var(--f-display); letter-spacing: -0.02em; margin: 6px 6px 14px; color: var(--ink); }
.quote__grid { align-items: start; }
.quote__copy { padding-top: var(--s5); }
.quote--paper .quote__panel { background: var(--white); border: 1px solid var(--paper-2); }
.quote--paper .quote__points { color: var(--ink); }
.quote--paper .kicker { color: var(--coral-deep); }
.quote__panel { background: var(--paper); border-radius: 10px; padding: clamp(12px, 2vw, 24px); color: var(--ink); min-width: 0; }
.quote__panel iframe { min-height: 620px; }

/* contact */
.contact { padding-block: var(--band-pad-sm); scroll-margin-top: var(--hdr); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 1023px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
.contact__h { font: 600 22px/1.25 var(--f-display); letter-spacing: -0.02em; margin: 6px 6px var(--s4); }
.contact__card { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 10px; padding: var(--s6); }
.contact__card .contact__h { margin: 0 0 var(--s5); }
.contact__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.contact__lines li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 17px; overflow-wrap: anywhere; }
.contact__lines svg { color: var(--coral); }
.contact__note { margin-top: var(--s5); font-size: 15px; color: var(--on-night-mute); }
.contact-map { padding-top: 0; }
.contact-map__note { margin-top: var(--s4); font-size: 15px; color: var(--on-night-mute); }

/* ---------- footer (§4b) ---------- */
.site-footer { background: var(--night); border-top: 1px solid var(--night-rule); padding-top: var(--s8); }
.site-footer__grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2.4fr) minmax(340px, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: var(--s7); }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.lockup__link { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.lockup .mark { color: var(--coral); flex: none; }
.lockup__words { display: flex; flex-direction: column; }
.lockup__name { font: 600 clamp(24px, 2.1vw, 31px)/1.02 var(--f-display); letter-spacing: -0.02em; color: var(--on-night); }
.lockup__town { font: 600 clamp(20px, 1.8vw, 26px)/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--coral); }
.footer-contact { list-style: none; margin: 0; padding: 0 0 0 var(--s6); border-left: 1px solid var(--night-rule); display: grid; gap: var(--s4); align-content: start; }
@media (max-width: 1023px) { .footer-contact { border-left: 0; padding-left: 0; } }
.footer-contact a { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 16px; overflow-wrap: normal; word-break: normal; }
.footer-contact a span { min-width: 0; overflow-wrap: anywhere; }
.footer-contact svg { color: var(--coral); flex: none; }
.footer-contact__note { font-size: 14px; color: var(--on-night-mute); }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--s5); }
@media (min-width: 1024px) { .footer-links { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); } }
.footer-links__h { font: 600 15px var(--f-body); color: var(--coral); margin-bottom: var(--s4); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; font-size: 14px; line-height: 1.4; }
@media (min-width: 1500px) { .footer-links a { white-space: nowrap; } }
.footer-links a:hover { color: var(--coral); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); border-top: 1px solid var(--night-rule); padding-block: var(--s5) var(--s5); font-size: 14px; }
.site-footer__base p { margin: 0; }
.footer-sitemap span { color: var(--on-night-mute); margin-left: 14px; }
@media (max-width: 1023px) { .site-footer__base { padding-bottom: calc(var(--s5) + 76px); flex-direction: column; } }

/* ---------- WhatsApp (§4g) + mobile bar ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
.wa__fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 999px; background: #1f7a4a; color: #fff; font: 600 16px var(--f-body); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); cursor: pointer; }
.wa__fab:hover { background: #18663d; }
.wa__panel { position: absolute; right: 0; bottom: 64px; width: min(360px, calc(100vw - 36px)); max-height: min(560px, calc(100dvh - 160px)); overflow-y: auto; background: var(--paper); color: var(--ink); border-radius: 10px; padding: var(--s5); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.wa__panel[hidden] { display: none; }
.wa__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.wa__title { font: 600 18px var(--f-display); margin: 0; }
.wa__close { background: none; border: 0; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); }
.wa__form label { display: block; font: 600 14px var(--f-body); margin: 10px 0 4px; }
.wa__form input, .wa__form textarea, .wa__form select { width: 100%; font: 16px var(--f-body); padding: 10px 12px; border: 1px solid #8f8a83; border-radius: var(--radius); background: #fff; color: var(--ink); }
.wa__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; }
.wa__send { width: 100%; margin-top: var(--s4); }
.mbar { display: none; }
@media (max-width: 1023px) {
	.mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--night-rule); }
	.mbar__btn { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; border: 1.5px solid var(--on-night); border-radius: var(--radius); color: var(--on-night); text-decoration: none; font-weight: 600; }
	.mbar__btn--coral { background: var(--coral); border-color: var(--coral); color: var(--night); }
	.wa { bottom: 86px; right: 12px; }
	.wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.wa__fab { padding: 12px; min-width: 52px; justify-content: center; }
}

/* ---------- motion (CSS only; hidden states only under .js-motion, §7c.6) ---------- */
.js-motion .hero .display .line { opacity: 0; transform: translateY(12px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.js-motion .hero .display .line:nth-child(2) { animation-delay: .06s; }
.js-motion .hero .display .line:nth-child(3) { animation-delay: .12s; }
.js-motion .hero .display .line:nth-child(4) { animation-delay: .18s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-motion .reveal.is-in { opacity: 1; transform: none; }

/* sandbox-only Fidelity view: nothing extra; long read is not rendered under ?sbk_fid=1 */

/* town module pool additions: steps, compare */
.steps-mod__list { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 0; border-top: 2px solid var(--coral); }
.steps-mod__list li { counter-increment: st; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--paper-2); }
.on-night .steps-mod__list li { border-color: var(--night-rule); }
.steps-mod__list li::before { content: counter(st, decimal-leading-zero); grid-row: span 2; font: 300 34px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.2px var(--coral); }
.steps-mod__t { font-weight: 600; font-size: 17px; }
.steps-mod__b { font-size: 16px; line-height: 1.55; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0; border: 1px solid var(--paper-2); border-radius: 6px; }
.on-night .compare { border-color: var(--night-rule); }
.compare__col { padding: var(--s5); min-width: 0; }
.compare__col + .compare__col { border-left: 1px solid var(--paper-2); }
.on-night .compare__col + .compare__col { border-color: var(--night-rule); }
@media (max-width: 699px) { .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--paper-2); } }
.compare__h { font: 600 20px/1.25 var(--f-display); letter-spacing: -0.02em; margin-bottom: var(--s4); }
.compare .list li { font-size: 16px; }

@media (max-width: 1023px) { :root { --hdr: 64px; } }

/* Paper-ground contrast (a11y gate): coral #e8604a on paper is 2.95:1, below even the 3:1 large-text bar,
   so every coral glyph on a paper band is coral-deep (5.06:1). Night bands keep coral (5.85:1). */
.band--paper .coral,
.band--paper .display .coral,
.band--paper .readout--town .display .coral,
.band--paper .readout--town .coral-num,
.band--paper .numeral.outline,
.band--paper .readout__value .outline { color: var(--coral-deep) !important; }
.band--paper .outline:not(.numeral) { -webkit-text-stroke-color: var(--coral-deep); }

/* §4c small index: every entry a card with read time */
.idx-card__rt { margin-top: auto; padding-top: 10px; font: 500 12px var(--f-mono); color: var(--coral-deep); }
.idx-cards--group { margin-top: var(--s4); }
.idx-list__m { flex: none; font: 500 12px var(--f-mono); color: var(--coral-deep); }
