:root {
  --paper: #f5f2ea; --paper-2: #ebe6da; --surface: #fffdf8; --ink: #15212c; --ink-2: #4f5b66;
  --rule: #d6cfbf; --accent: #1f6b47; --accent-hover: #17553a; --focus: #1f5aa8; --error: #a12622;
  --gutter: max(20px, 4vw);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 680px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--rule); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 10px; }
.brand { font: 700 1.15rem Georgia, serif; text-decoration: none; }
nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
nav a { display: inline-block; padding: 8px 2px; }

.hero { padding-block: 40px 56px; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 560px; } }
.hero-media img { width: 100%; border-radius: 6px; }
.eyebrow { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6em; }
.lead { font-size: 1.15rem; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.btn { display: inline-block; padding: 13px 24px; min-height: 48px; border-radius: 4px; font: 600 1rem "Segoe UI", Arial, sans-serif; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--paper-2); }
.note, .small { font-size: .9rem; color: var(--ink-2); }

.section { padding-block: 56px; }
.section.alt { background: var(--paper-2); }
.section-lead { max-width: 40em; color: var(--ink-2); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px 24px; }
.filters button { min-height: 44px; padding: 8px 18px; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; font: 600 .95rem "Segoe UI", Arial, sans-serif; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gallery { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.tile button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .2s; }
.tile button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }

.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.cards > li { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; }
.price { font: 700 1.5rem Georgia, serif; margin-bottom: .4em; }
.from { font: 400 .9rem "Segoe UI", Arial, sans-serif; color: var(--ink-2); }
.tag { display: inline-block; font: 600 .75rem "Segoe UI", Arial, sans-serif; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }

.facts { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0 0; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts div { border-top: 3px solid var(--accent); padding-top: 12px; }
.facts dt { font: 700 1.1rem Georgia, serif; }
.facts dd { margin: .3em 0 0; }

.demo-banner { background: var(--surface); border: 2px dashed var(--accent); border-radius: 6px; padding: 12px 16px; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.req, .opt { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; min-height: 48px; border: 2px solid var(--ink-2); border-radius: 4px; background: #fff; color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 600; margin: 6px 0 0; font-size: .95rem; }
.summary { border: 2px solid var(--error); background: #fff; border-radius: 6px; padding: 12px 16px; margin-bottom: 20px; color: var(--ink); }
.summary ul { margin: 6px 0 0; padding-left: 20px; }
.summary a { color: var(--error); }
.status { margin-top: 16px; font-weight: 600; }
.status:not(:empty) { background: var(--surface); border: 2px solid var(--accent); border-radius: 6px; padding: 12px 16px; }

.site-footer { padding-block: 32px; border-top: 1px solid var(--rule); }
.site-footer p { margin: 0 0 .3em; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 26, .94); color: #fff; align-items: center; justify-content: center; padding: 16px; }
.lightbox:not([hidden]) { display: flex; }
.lb-inner { position: relative; width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 56px; }
.lb-inner figure { margin: 0; text-align: center; }
.lb-inner img { max-width: 100%; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); width: auto; margin-inline: auto; border-radius: 4px; }
.lb-inner figcaption { margin-top: 10px; }
.count { color: #cfd6dc; margin-left: 8px; }
.lb-btn { min-height: 48px; min-width: 96px; padding: 10px 20px; background: #fff; color: var(--ink); border: 2px solid #fff; border-radius: 4px; font: 600 1rem "Segoe UI", Arial, sans-serif; cursor: pointer; }
.lb-btn:focus-visible { outline: 3px solid #ffd54a; outline-offset: 3px; }
.lb-close { position: absolute; top: 0; right: 0; }
.lb-nav { display: flex; gap: 16px; }
body.lb-open { overflow: hidden; }

/* ---- step 1d additions ---- */
nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.hero-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.tile img { aspect-ratio: 4 / 5; }
.cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards .tag { display: block; width: fit-content; margin-top: 6px; }
.bullets { list-style: none; margin: 12px 0 0; padding: 0; }
.bullets li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.bullets li:last-child { margin-bottom: 0; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .3em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.stories-title { margin-top: 32px; }
.stories { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stories { grid-template-columns: repeat(2, 1fr); } }
.stories article { border-top: 3px solid var(--accent); padding-top: 10px; }
.stories h4 { font: 700 1.05rem Georgia, serif; margin: 0 0 .3em; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 46em; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 8px; height: 14px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 20px; }
.steps li::before { content: "Step " counter(step); display: block; font-size: .85rem; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.steps h3 { margin-bottom: .3em; }
#faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 10px; }
#faq summary { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; cursor: pointer; font-weight: 600; }
#faq details p { margin: 0; padding: 0 16px 14px; }
.hint { margin: 0 0 6px; font-size: .9rem; color: var(--ink-2); }
.field .hint + input, .field .hint + select, .field .hint + textarea { margin-top: 0; }
.facts { grid-template-columns: 1fr; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.lb-inner figure img { object-fit: contain; }

.lb-inner .credit { display: block; margin-top: 4px; color: #cfd6dc; font-size: 0.875rem; }
