/* Layered — design system
   Warm editorial look for an interior-design audience: ivory paper, espresso ink, terracotta accent,
   serif display type, large photography. System fonts only (no font requests) for fast loading. */

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --sand: #f1e9dd;
  --sand-2: #e6dac7;
  --ink: #231e19;
  --ink-2: #4a423a;
  --muted: #6c6258;
  --line: #e6dccd;
  --line-2: #d6c9b6;
  --brand: #a9582f;
  --brand-dark: #874622;
  --brand-tint: #f6e6da;
  --espresso: #2a211b;
  --espresso-2: #3a2e26;
  --gold: #a07a1c;
  --ok: #1b7f4e;
  --ok-bg: #e7f6ee;
  --err: #b3261e;
  --err-bg: #fdecea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(42, 33, 27, .06), 0 2px 8px rgba(42, 33, 27, .05);
  --shadow-md: 0 10px 30px -10px rgba(42, 33, 27, .25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1vw, 2.15rem); margin: 0 0 8px; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: .92rem; }
.small { font-size: .84rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.55; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
section.wrap { padding-top: 56px; padding-bottom: 56px; }
section.wrap.page-head, article.page-head { padding-top: 8px; padding-bottom: 16px; }
section.wrap.related { padding-top: 0; }
section p.section-sub { color: var(--muted); margin: 0 0 30px; max-width: 62ch; font-size: 1.04rem; }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
a.eyebrow:hover { text-decoration: none; color: var(--brand-dark); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { text-decoration: none; color: var(--brand-dark); }
.main-nav a.btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; border: 1.5px solid var(--brand); cursor: pointer; font-size: .96rem; font-family: var(--sans); transition: background .18s, transform .18s, box-shadow .18s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 8px 18px; font-size: .88rem; }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-dark); box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #8f1e18; border-color: #8f1e18; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }

.flash { padding: 12px 0; }
.flash .wrap { padding: 12px 24px; border-radius: var(--radius-sm); }
.flash-ok .wrap { background: var(--ok-bg); color: var(--ok); }
.flash-err .wrap { background: var(--err-bg); color: var(--err); }
.preview-bar { background: var(--espresso); color: #fff; text-align: center; padding: 10px 16px; font-size: .9rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; background:
  radial-gradient(900px 420px at 88% 0%, var(--brand-tint), transparent 70%),
  radial-gradient(700px 360px at 0% 100%, var(--sand), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 500; }
.hero p.lead { color: var(--ink-2); font-size: 1.14rem; max-width: 52ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stats { display: flex; gap: 36px; margin-top: 38px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ink); font-weight: 600; }
.stat span { color: var(--muted); font-size: .88rem; }
.hero-art { position: relative; }
.hero-art .arch { border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); background: var(--sand); }
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .float-card { position: absolute; left: -22px; bottom: 36px; background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center; max-width: 250px; }
.hero-art .float-card b { font-family: var(--serif); font-size: 1.35rem; display: block; line-height: 1; }
.hero-art .float-card span { color: var(--muted); font-size: .8rem; line-height: 1.3; display: block; }
.hero-art .float-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand); font-size: 1.1rem; flex: none; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-art .float-card { left: 8px; }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }
.thumb { position: relative; overflow: hidden; background: var(--sand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.card:hover .thumb img { transform: scale(1.05); }

/* Designer cards */
.designer-card { display: flex; flex-direction: column; height: 100%; }
.designer-card .thumb { aspect-ratio: 4 / 3; }
.designer-card .body { padding: 18px 20px 20px; flex: 1; }
.designer-card h3 { margin: 0 0 2px; font-size: 1.25rem; color: var(--ink); }
.pill-featured { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.94); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pill-featured::before { content: "★"; color: var(--gold); margin-right: 5px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag { background: var(--sand); color: var(--ink-2); font-size: .74rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.badge-hdb { background: #e7f1fb; color: #14507f; border-color: #c4dcf2; }
.badge-casetrust { background: #e8f5ec; color: #1d6a3a; border-color: #c3e3cd; }
.badge-gold { background: #fbf0cf; color: #6e5100; border-color: #ecd68a; }

/* Property type photo tiles */
.photo-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--espresso); isolation: isolate; }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.photo-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,14,10,0) 35%, rgba(20,14,10,.78) 100%); }
.photo-tile:hover { text-decoration: none; color: #fff; }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile .label { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.photo-tile h3 { color: #fff; font-size: 1.45rem; margin: 0 0 4px; }
.photo-tile .more { color: rgba(255,255,255,.9); font-weight: 600; font-size: .86rem; }
.photo-tile .more::after { content: " →"; transition: margin .2s; }
.photo-tile:hover .more::after { margin-left: 4px; }

.link-card .body, .guide-card .body { padding: 22px 24px; }
.guide-card h2, .guide-card h3 { font-size: 1.25rem; margin: 0 0 8px; color: var(--ink); }
.guide-card p { margin: 0 0 12px; color: var(--muted); font-size: .96rem; }
.more { font-weight: 600; color: var(--brand-dark); font-size: .9rem; }
.guide-feature { margin-bottom: 24px; background: linear-gradient(135deg, var(--brand-tint), var(--sand)); border-color: var(--sand-2); }
.guide-feature .body { padding: 32px 36px; max-width: 760px; }
.guide-feature h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.guide-feature p { color: var(--ink-2); font-size: 1.04rem; }

/* ---------- Page heads, breadcrumbs, prose ---------- */
.page-head { padding-top: 12px; padding-bottom: 12px; }
.page-head h1 { margin: 6px 0 14px; }
.breadcrumbs { font-size: .84rem; margin: 22px 0 8px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 9px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-dark); }

.prose { max-width: 720px; font-size: 1.07rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { margin-top: 2.2em; margin-bottom: .5em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .45em 0; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { background: var(--sand); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose-section > * { max-width: 760px; }
.prose-section > .faq { margin-top: 36px; }
.checklist { padding-left: 1.3em; max-width: 760px; margin-top: 8px; }
.checklist li { margin: 9px 0; }
.byline { font-size: .9rem; color: var(--muted); margin: 0 0 20px; }

.table-scroll { overflow-x: auto; margin: 1.4em 0; border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--sand); color: var(--ink-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; max-width: 720px; margin: 22px 0; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.faq { max-width: 760px; margin-top: 44px; }
.faq h2 { margin-bottom: 12px; }
.faq h3 { font-size: 1.12rem; margin: 22px 0 6px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.faq p { margin: 0; color: var(--ink-2); }
.cta-box { background: var(--espresso); color: #f3ebe0; border-radius: var(--radius); padding: 30px 34px; max-width: 760px; margin: 44px 0; }
.cta-box h2 { margin-top: 0; color: #fff; }
.cta-box p { color: #d9cdbd; }
.cta-box .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-box .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.related { margin-top: 36px; }
.related ul { padding-left: 18px; }
.related-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.related-cols h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 700px) { .related-cols { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
form.panel, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; max-width: 640px; }
form.panel.wide, .panel.wide { max-width: 100%; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--ink); }
.field .hint, .hint { color: var(--muted); font-size: .8rem; margin: 5px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-size: .96rem; font-family: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
textarea { resize: vertical; min-height: 100px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-2); padding: 7px 14px; border-radius: 999px; font-weight: 500; font-size: .88rem; cursor: pointer; background: #fff; }
.chip-group input { width: auto; }
.lead-form-section { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-sm); }
.lead-form-section h2 { margin-bottom: 6px; }
.lead-form-section form.panel { border: 0; padding: 0; box-shadow: none; }
@media (max-width: 620px) { .lead-form-section { padding: 24px 20px; } }
.split-auth { display: flex; min-height: calc(100vh - 72px); align-items: center; justify-content: center; padding: 40px 0; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
form.inline { display: inline; }

/* ---------- Directory ---------- */
.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 6px; margin-bottom: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 100% !important; }
.filter-bar .field { margin-bottom: 14px; }
@media (max-width: 760px) { .filter-bar { grid-template-columns: 1fr; } }

/* ---------- Profile ---------- */
.profile-hero { position: relative; color: #fff; padding: 72px 0 36px; background: var(--espresso) center/cover no-repeat; isolation: isolate; }
.profile-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25,18,13,.35) 0%, rgba(25,18,13,.82) 100%); }
.profile-hero .row { display: flex; gap: 28px; align-items: flex-end; }
.profile-hero h1 { color: #fff; margin: 0 0 6px; }
.profile-hero .muted { color: rgba(255,255,255,.82); }
.profile-hero .tag { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.profile-hero .badge { background: rgba(255,255,255,.92); }
.profile-hero .pill-featured { position: static; display: inline-block; margin-bottom: 10px; }
.logo-circle { width: 104px; height: 104px; border-radius: 50%; background: var(--brand-tint) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--brand-dark); flex-shrink: 0; border: 4px solid #fff; box-shadow: var(--shadow-md); }
@media (max-width: 620px) { .profile-hero { padding-top: 48px; } .profile-hero .row { flex-direction: column; align-items: flex-start; gap: 16px; } }
.profile-grid { grid-template-columns: 2fr 1fr; align-items: start; gap: 40px; }
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }
.credentials { margin-bottom: 32px; }
.credentials h3 { margin: 0 0 10px; }
.credentials ul { list-style: none; margin: 0 0 10px; padding: 0; }
.credentials li { margin: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }
.project-card .thumb { aspect-ratio: 4 / 3; }
.project-grid.gallery .project-card:first-child { grid-column: span 2; }
.project-grid.gallery .project-card:first-child .thumb { aspect-ratio: 16 / 9; }
@media (max-width: 560px) { .project-grid.gallery .project-card:first-child { grid-column: auto; } }
.project-card .body { padding: 14px 18px 16px; }
.project-card h3, .project-card h4 { margin: 0 0 4px; font-size: 1.05rem; }
.project-card .thumb button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.project-card .thumb button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.project-card:hover .thumb img { transform: scale(1.04); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(20,14,10,.86); backdrop-filter: blur(4px); }
dialog.lightbox figure { margin: 0; }
dialog.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; }
dialog.lightbox figcaption { color: #f3ebe0; text-align: center; padding: 12px 8px 0; font-size: .95rem; }
dialog.lightbox .lb-close { position: absolute; right: -6px; top: -46px; background: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* ---------- Blog ---------- */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.chip-nav a { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: .88rem; background: #fff; }
.chip-nav a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-dark); }
.chip-nav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-card .thumb { aspect-ratio: 16 / 9; }
.post-card .body { padding: 20px 22px 22px; }
.post-card h3 { font-size: 1.3rem; margin: 0 0 8px; color: var(--ink); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { color: var(--muted); font-size: .82rem; }
.post-feature { margin-bottom: 28px; }
.post-card-lg { display: grid; grid-template-columns: 1.25fr 1fr; }
.post-card-lg .thumb { aspect-ratio: auto; min-height: 340px; }
.post-card-lg .body { padding: 40px; align-self: center; }
.post-card-lg h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.post-card-lg p { font-size: 1.04rem; -webkit-line-clamp: 4; }
@media (max-width: 800px) { .post-card-lg { grid-template-columns: 1fr; } .post-card-lg .thumb { min-height: 0; aspect-ratio: 16 / 9; } .post-card-lg .body { padding: 24px; } }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; color: var(--muted); }

.post-head { max-width: 820px; padding-bottom: 8px; }
.post-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.post-dek { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.post-cover { margin: 18px auto 10px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-md); }
.post-layout { padding-top: 24px; }
.post-main { max-width: 740px; margin: 0 auto; }
.post-main .prose { max-width: none; }
.post-main .toc { max-width: none; }
.post-main .cta-box { max-width: none; }

/* ---------- Checklist ---------- */
.checklist-page .prose { max-width: 760px; }
.cl-progress { position: sticky; top: 76px; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; max-width: 760px; box-shadow: var(--shadow-sm); }
.cl-progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-bar { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 10px 0 6px; }
.cl-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #cf8a5f); border-radius: 999px; transition: width .35s ease; }
.cl-phase { max-width: 760px; margin-top: 52px; }
.cl-when { display: inline-block; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; margin: 0 0 12px; letter-spacing: .02em; }
.cl-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.cl-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: background .2s, border-color .2s; }
.cl-list label { display: flex; gap: 14px; padding: 16px 18px; cursor: pointer; align-items: flex-start; }
.cl-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); background: #fff; margin-top: 1px; display: grid; place-items: center; transition: all .15s; }
.cl-list input:checked + .cl-box { background: var(--brand); border-color: var(--brand); }
.cl-list input:checked + .cl-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cl-list input:focus-visible + .cl-box { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.cl-text strong { display: block; color: var(--ink); font-weight: 650; }
.cl-desc { display: block; color: var(--muted); font-size: .93rem; margin-top: 3px; line-height: 1.55; }
.cl-desc a { text-decoration: underline; }
.cl-list li.done { background: var(--sand); border-color: var(--sand-2); }
.cl-list li.done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* ---------- Dashboard ---------- */
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.head-row h1 { margin: 0; font-size: 2rem; }
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 92px; }
.dash-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; margin-bottom: 2px; }
.dash-nav a:hover, .dash-nav a.active { background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; overflow-x: auto; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 620px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.kpi b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.kpi span { color: var(--muted); font-size: .86rem; }
.status-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: capitalize; }
.status-new { background: #e7f0fd; color: #1c4ed8; }
.status-contacted { background: #fff4d6; color: #7a5200; }
.status-won { background: var(--ok-bg); color: var(--ok); }
.status-lost { background: #f1ece6; color: var(--muted); }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 18px; }
@media (max-width: 1000px) { .editor-grid { grid-template-columns: 1fr; } }
.seo-panel { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.seo-panel h2 { font-size: 1.2rem; }
.seo-panel ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.seo-panel li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.4; }
.seo-panel li em { color: var(--muted); font-style: normal; }
.seo-panel .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--line-2); }
.seo-panel li.ok .dot { background: var(--ok); }
.seo-panel li.warn .dot { background: #d99a1b; }
.seo-panel li.bad .dot { background: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #d9cdbd; padding: 56px 0 36px; margin-top: 72px; }
.site-footer a { color: #f3ebe0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a99b8a; }
.site-footer p { margin: 4px 0; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 7px 0; font-size: .94rem; }
.footer-h { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #a99b8a; margin: 0 0 12px; font-weight: 700; }
.footer-cols .brand-line { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Responsive header ---------- */
@media (max-width: 760px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  /* Phones: compact, non-sticky header. Logo and the main button share the first row; links wrap to a second row. */
  .site-header { position: static; }
  .header-inner { column-gap: 18px; justify-content: flex-start; }
  .nav-long { display: none; }
  .main-nav { display: contents; font-size: .92rem; }
  .header-inner .logo { order: 1; }
  .main-nav .btn { order: 2; margin-left: auto; }
  .main-nav a:not(.btn) { order: 3; white-space: nowrap; padding: 4px 0; }
  .main-nav .nav-hide-sm { display: none; }
  section, section.wrap { padding-top: 36px; padding-bottom: 36px; }
  section.wrap.page-head { padding-top: 8px; padding-bottom: 12px; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cl-actions, .cl-progress .muted, .cta-box, .related, .skip-link, .btn { display: none !important; }
  body { background: #fff; }
  .cl-progress { position: static; box-shadow: none; }
  .cl-list li { break-inside: avoid; }
  .cl-list li.done strong { text-decoration: none; }
  .cl-box { border-color: #444; }
  a { color: inherit; text-decoration: none; }
}

.page-head + section.wrap { padding-top: 24px; }

/* ---------- Cost calculator ---------- */
[hidden] { display: none !important; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-sm); max-width: 980px; }
.calc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.calc-tabs label { cursor: pointer; }
.calc-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-tabs span { display: inline-block; padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: .92rem; color: var(--ink-2); background: #fff; transition: all .15s; }
.calc-tabs input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc-tabs input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.calc-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .calc-body { grid-template-columns: 1fr; gap: 20px; } .calc { padding: 20px; } }
.calc-result { background: var(--sand); border-radius: var(--radius); padding: 24px; min-height: 220px; }
.calc-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.calc-big { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; margin: 0 0 18px; color: var(--ink); font-weight: 600; }
.calc-sub { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 14px; color: var(--brand-dark); font-weight: 600; }
.calc-notes { margin: 0 0 16px; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.calc-notes li { margin: 4px 0; }
.calc-actions { margin: 6px 0 14px; }
.calc-error { color: var(--err); margin: 0; }
.calc-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 26px; margin-top: 28px; background: linear-gradient(135deg, var(--brand-tint), var(--sand)); border-color: var(--sand-2); }
.calc-banner strong { font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 560px) { .calc-banner { flex-direction: column; align-items: flex-start; } }

/* ---------- Verified credentials ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; box-shadow: inset 0 0 0 1px currentColor; }
.badge-verified .tick { flex: none; }

/* Shortlist & compare */
.dcard { position: relative; height: 100%; }
.save-btn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.save-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.save-btn.saved { color: #b5482d; }
.save-btn.saved svg { fill: currentColor; }
.save-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.shortlist-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; gap: 16px; align-items: center; background: var(--ink); color: #fff; padding: 10px 12px 10px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.compare-scroll { overflow-x: auto; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,.1); }
.compare-table thead th { vertical-align: bottom; }
.compare-table tbody th { font-weight: 600; width: 150px; color: var(--ink); }
.compare-table .cmp-name { font-size: 1.15rem; display: block; }
@media print { .save-btn, .shortlist-bar { display: none; } }

/* Reviews */
.rating-badge { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; font-size: .9rem; color: var(--ink); }
.rating-badge span[aria-hidden] { color: #b5482d; }
.review-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.review { padding: 16px 18px; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: #fff; }
.review p { margin: 6px 0 0; }
.review .stars { color: #b5482d; letter-spacing: 2px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Outline buttons on the dark profile hero need light text */
.profile-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
.profile-hero .btn-outline:hover { background: rgba(255,255,255,.16); color: #fff; }

a.eyebrow { padding: 6px 0; }

/* Dashboard thumbnails use an inline background image */
.project-card .thumb[style] { background-size: cover; background-position: center; }
/* Extra project photos */
.thumb-strip { display: flex; gap: 6px; padding: 8px 14px 0; flex-wrap: wrap; }
.thumb-strip button { all: unset; cursor: zoom-in; width: 56px; height: 42px; border-radius: 6px; overflow: hidden; }
.thumb-strip button:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit { margin: 6px 0 0; }
/* The enquiry form sits in a narrow sidebar on profiles: stack its fields */
.profile-grid .two-col { grid-template-columns: 1fr; }

/* Project editing */
.edit-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 8px; }
.edit-photos figure { margin: 0; display: grid; gap: 4px; }
.edit-photos img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--sand); }
.project-desc { margin: 6px 0 0; }
.photo-status { margin-top: 6px; }
