/* Sitehaus demo kit: base layout and components.
   Every color, font and radius comes from tokens set in theme.css, so each site looks like its own business. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

:root {
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --margin: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --step-hero: clamp(2.6rem, 1.5rem + 5vw, 5.75rem);
  --step-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  --step-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --step-lead: clamp(1.15rem, 1.04rem + 0.5vw, 1.4rem);
}

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--margin); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, .h1 { font-family: var(--font-display); font-size: var(--step-hero); line-height: 0.98; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); font-variation-settings: var(--display-variation, normal); text-wrap: balance; }
h2, .h2 { font-family: var(--font-display); font-size: var(--step-h2); line-height: 1.04; letter-spacing: var(--display-tracking); font-weight: var(--display-weight); font-variation-settings: var(--display-variation, normal); text-wrap: balance; }
h3, .h3 { font-size: var(--step-h3); line-height: 1.22; letter-spacing: -0.015em; font-weight: 650; text-wrap: balance; }
.lead { font-size: var(--step-lead); line-height: 1.45; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-block-end: 1rem; }
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }
.prose { max-width: 68ch; }
.prose > * + * { margin-block-start: 1.1em; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-block-start: 2em; }
.prose h3 { margin-block-start: 1.6em; }
.prose li + li { margin-block-start: 0.4em; }
.prose a { color: var(--accent-text); font-weight: 600; }

/* ---------- concept banner (honesty: every demo says it is fictional) ---------- */
.concept { background: var(--ink); color: var(--bg); font-size: 0.8125rem; line-height: 1.35; }
.concept .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 0.9rem; padding-block: 0.55rem; text-align: center; }
.concept strong { font-weight: 700; letter-spacing: 0.02em; }
.concept a { font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3.25rem; padding: 0 1.5rem; border-radius: var(--btn-radius, 999px); border: 0;
  font-weight: 650; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(0 0 0 / 0.18), 0 8px 20px -10px var(--accent); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--quiet { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--on-deep { background: var(--on-deep); color: var(--deep); }
.btn--sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn__arrow { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent-hover); }
  .btn--ink:hover { background: var(--ink-2); }
  .btn--quiet:hover { background: var(--surface); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.textlink { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 650; color: var(--accent-text); text-decoration: none; }
.textlink::after { content: "→"; transition: transform 200ms var(--ease); }
@media (hover: hover) { .textlink:hover::after { transform: translateX(3px); } }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bar-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow 240ms var(--ease); }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgb(0 0 0 / 0.35); }
.bar__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-inline-end: auto; font-family: var(--font-display); font-weight: var(--brand-weight, 700); font-size: 1.2rem; letter-spacing: var(--brand-tracking, -0.03em); line-height: 1; font-variation-settings: var(--display-variation, normal); }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-top: 0.2rem; font-variation-settings: normal; }
.nav__links { display: none; gap: 0.15rem; }
.nav__links a, .menu__panel a:not(.btn) { text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 999px; font-weight: 550; font-size: 0.95rem; color: var(--ink-2); transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.bar__phone { display: none; font-weight: 650; font-size: 0.95rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.bar__cta { display: none; }
.icon-btn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; flex: none; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 0.95rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu__icon { width: 14px; height: 8px; border-block: 2px solid currentColor; transition: height 200ms var(--ease); }
.menu[open] .menu__icon { height: 2px; border-bottom: 0; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(20rem, calc(100vw - 2 * var(--margin))); background: var(--surface); border-radius: var(--radius-sm); padding: 0.6rem; box-shadow: var(--shadow-lg); transform-origin: top right; animation: pop 220ms var(--ease); }
.menu__panel ul { list-style: none; padding: 0; margin: 0 0 0.6rem; display: grid; }
.menu__panel a:not(.btn) { display: block; padding: 0.8rem 0.9rem; font-size: 1.0625rem; color: var(--ink); border-radius: calc(var(--radius-sm) - 6px); }
.menu__panel a[aria-current="page"] { background: var(--surface-2); }
.menu__panel .btn { width: 100%; }
.menu__panel .btn + .btn { margin-top: 0.5rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
@media (min-width: 980px) {
  .nav__links { display: flex; }
  .bar__cta { display: inline-flex; }
  .menu { display: none; }
}
@media (min-width: 1180px) { .bar__phone { display: inline-flex; } }

.crumbs { padding-block: 1.25rem 0; font-size: 0.875rem; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 0.4rem; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep .lead, .section--deep .muted { color: var(--on-deep-2); }
.section--deep .eyebrow { color: var(--on-deep-accent, var(--on-deep-2)); }
.section__head { display: grid; gap: 1rem; margin-block-end: clamp(2.25rem, 1.5rem + 3vw, 4rem); max-width: 46rem; }
.section__head p { color: var(--ink-2); font-size: var(--step-lead); line-height: 1.45; max-width: 42ch; }
.section--deep .section__head p { color: var(--on-deep-2); }
.section__head--split { max-width: none; }
@media (min-width: 900px) { .section__head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 3rem; } }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } .split--top { align-items: start; } .split--wide { grid-template-columns: 1.25fr 1fr; } }

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); display: grid; gap: 1.25rem; }
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem); max-width: 18ch; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card p { color: var(--ink-2); }
.card .textlink { margin-top: auto; padding-top: 0.5rem; }
a.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) and (pointer: fine) { a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } a.card:hover .textlink::after { transform: translateX(3px); } }
.card__icon { width: 3rem; height: 3rem; border-radius: calc(var(--radius-sm) - 4px); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 0.5rem; }
.card__icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__num { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--accent-text); letter-spacing: 0.04em; }

.ticks { display: grid; gap: 0.7rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before, .ticks li::after { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; }
.ticks li::before { background: var(--accent-soft); }
.ticks li::after { background: var(--accent-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.section--deep .ticks li::before { background: rgb(255 255 255 / 0.1); }
.section--deep .ticks li::after { background: var(--on-deep-accent, var(--on-deep)); }

/* numbered steps */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.step { counter-increment: step; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 0.6rem; align-content: start; }
.section--deep .step { background: var(--deep-2); box-shadow: none; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--accent-text); font-size: 0.95rem; letter-spacing: 0.04em; }
.section--deep .step::before { color: var(--on-deep-accent, var(--on-deep-2)); }
.step p { color: var(--ink-2); }
.section--deep .step p { color: var(--on-deep-2); }

/* facts: plain who / what / where statements that search engines and AI assistants can quote */
.facts { display: grid; gap: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.facts div { display: grid; gap: 0.2rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
@media (min-width: 700px) { .facts div { grid-template-columns: 11rem 1fr; gap: 1.5rem; } }
.facts dt { font-weight: 650; font-size: 0.9rem; color: var(--ink-2); }
.facts dd { margin: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.chips li, .chips a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 550; font-size: 0.95rem; text-decoration: none; }
.chips a { transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease); }
@media (hover: hover) { .chips a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); } }

/* FAQ */
.faqs { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq { border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.2rem 1.4rem; font-weight: 650; font-size: 1.0625rem; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%23777' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat; transition: transform 260ms var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-2); max-width: 64ch; }
.faq__a p + p { margin-top: 0.8em; }

/* panels and notes */
.panel { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); }
.demo-note { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; color: var(--ink-2); }
.demo-note::before { content: "Sample"; flex: none; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--ink); color: var(--bg); margin-top: 0.1rem; }

/* booking mock-up (a real build embeds the client's own Cal.com / Calendly / Google Calendar) */
.booker { display: grid; gap: 1.25rem; }
.booker__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.booker__days button, .booker__slots button {
  border: 0; border-radius: calc(var(--radius-sm) - 4px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  padding: 0.7rem 0.25rem; cursor: pointer; font-weight: 600; line-height: 1.2; -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.booker__days button span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }
.booker__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.booker button:active { transform: scale(0.97); }
.booker button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.booker button[aria-pressed="true"] span { color: inherit; opacity: 0.85; }
.booker button:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.booker__out { min-height: 1.6em; font-weight: 600; }
.booker__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* CTA band */
.cta-band { border-radius: var(--radius); background: var(--deep); color: var(--on-deep); padding: clamp(2rem, 1.2rem + 4vw, 4.5rem); display: grid; gap: 1.75rem; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band p { color: var(--on-deep-2); max-width: 44ch; font-size: var(--step-lead); line-height: 1.45; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: end; } .cta-band .btn-row { justify-content: flex-end; } }
.cta-band > * { position: relative; }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--on-deep); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem; margin-top: var(--section); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__top { display: grid; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--deep-line); }
@media (min-width: 900px) { .foot__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot .brand { color: var(--on-deep); }
.foot .brand small { color: var(--on-deep-2); }
.foot__pitch { color: var(--on-deep-2); max-width: 34ch; margin-top: 1rem; }
.foot h2 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--on-deep-2); margin-bottom: 0.9rem; font-variation-settings: normal; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.foot__base { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; font-size: 0.875rem; color: var(--on-deep-2); }
.foot__concept { width: 100%; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--deep-2); color: var(--on-deep); }
.foot__concept a { text-decoration: underline; }

/* ---------- scroll reveal (only when JS runs and motion is allowed) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* mobile call bar: the main action is always one tap away on phones */
.callbar { position: fixed; left: 0.75rem; right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.5rem; border-radius: calc(var(--btn-radius, 999px) + 0.5rem); background: var(--bar-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); transform: translateY(150%); transition: transform 400ms var(--ease); }
.callbar.is-on { transform: none; }
.callbar .btn { min-height: 2.9rem; padding: 0 0.75rem; font-size: 0.95rem; }
@media (min-width: 980px) { .callbar { display: none; } }
@media (max-width: 979px) { .foot { padding-bottom: 6rem; } }
@media print { .bar, .callbar, .concept { position: static; } }

/* Brightcap Roofing Co. (concept): slate, stone and copper. Archivo, semi-condensed for headings. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; }

:root {
  --font-body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 760; --display-tracking: -0.022em; --display-variation: "wdth" 82;
  --brand-weight: 800; --brand-tracking: -0.02em;
  --radius: 14px; --radius-sm: 10px; --btn-radius: 10px;

  --bg: #eff0ee; --bg-2: #e3e6e3; --surface: #fbfbfa; --surface-2: #e8eae7;
  --ink: #15191d; --ink-2: #4a535b; --line: rgb(21 25 29 / 0.11);
  --accent: #b4532a; --accent-hover: #9c4622; --accent-ink: #ffffff; --accent-text: #9a4320; --accent-soft: #f2ddd0;
  --deep: #171c21; --deep-2: #222931; --deep-line: rgb(255 255 255 / 0.1);
  --on-deep: #eef0ee; --on-deep-2: #a9b2ba; --on-deep-accent: #ec9466;
  --bar-bg: rgb(239 240 238 / 0.84);
  --logo-bg: #15191d; --logo-fg: #eff0ee;
  --shadow: 0 1px 2px rgb(15 20 25 / 0.06), 0 0 0 1px rgb(15 20 25 / 0.04), 0 14px 34px -20px rgb(15 20 25 / 0.3);
  --shadow-lg: 0 2px 4px rgb(15 20 25 / 0.06), 0 30px 70px -28px rgb(15 20 25 / 0.45);

  /* hero scene */
  --sky-1: #1a2129; --sky-2: #343b43; --sky-3: #8d5a3e; --sky-4: #d98d58; --sun: #f1a568;
  --range-1: #4e5761; --range-2: #262d34; --snow: #d9dde0; --houses: #12161a; --window: #f3b36f;
  --roof-1: #232a31; --roof-2: #161b20; --ridge: #b4532a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1316; --bg-2: #13181c; --surface: #191f24; --surface-2: #212830;
    --ink: #eceeed; --ink-2: #a4adb4; --line: rgb(255 255 255 / 0.09);
    --accent: #e07945; --accent-hover: #ea8b5b; --accent-ink: #15191d; --accent-text: #ef9568; --accent-soft: #33241b;
    --deep: #181e23; --deep-2: #222931;
    --bar-bg: rgb(15 19 22 / 0.82); --logo-bg: #eceeed; --logo-fg: #15191d;
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 16px 40px -22px rgb(0 0 0 / 0.9);
    --shadow-lg: 0 0 0 1px rgb(255 255 255 / 0.07), 0 30px 70px -28px rgb(0 0 0 / 0.95);
    --sky-1: #0b0f13; --sky-2: #1c232a; --sky-3: #4e3528; --sky-4: #9c5a37; --sun: #e48a52;
    --range-1: #2e353d; --range-2: #171c21; --houses: #090c0f; --snow: #8f979e; --window: #e9a35c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1316; --bg-2: #13181c; --surface: #191f24; --surface-2: #212830;
  --ink: #eceeed; --ink-2: #a4adb4; --line: rgb(255 255 255 / 0.09);
  --accent: #e07945; --accent-hover: #ea8b5b; --accent-ink: #15191d; --accent-text: #ef9568; --accent-soft: #33241b;
  --deep: #181e23; --deep-2: #222931;
  --bar-bg: rgb(15 19 22 / 0.82); --logo-bg: #eceeed; --logo-fg: #15191d;
  --shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 16px 40px -22px rgb(0 0 0 / 0.9);
  --shadow-lg: 0 0 0 1px rgb(255 255 255 / 0.07), 0 30px 70px -28px rgb(0 0 0 / 0.95);
  --sky-1: #0b0f13; --sky-2: #1c232a; --sky-3: #4e3528; --sky-4: #9c5a37; --sun: #e48a52;
  --range-1: #2e353d; --range-2: #171c21; --houses: #090c0f; --snow: #8f979e; --window: #e9a35c;
}
.foot .logo, .section--deep .logo { --logo-bg: #eef0ee; --logo-fg: #15191d; }

/* ---------- hero: full-bleed dusk scene ---------- */
.hero { position: relative; isolation: isolate; color: #f3f4f2; overflow: hidden; margin-inline: clamp(0rem, -1rem + 2vw, 1rem); border-radius: 0 0 var(--radius) var(--radius); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { min-height: min(86svh, 780px); display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(9rem, 6rem + 10vw, 14rem); }
.hero h1 { max-width: 12ch; text-shadow: 0 2px 30px rgb(0 0 0 / 0.25); }
.hero .lead { color: #d6dadd; max-width: 38ch; }
.hero .eyebrow { color: #f2a679; }
.hero .btn--quiet { background: rgb(255 255 255 / 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero .btn--accent { background: #c65d30; color: #fff; }
@media (hover: hover) { .hero .btn--accent:hover { background: #d66a3b; } .hero .btn--quiet:hover { background: rgb(255 255 255 / 0.2); } }
.hero__note { font-size: 0.95rem; color: #c3c9ce; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.hero__note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ec9466; }
@media (prefers-reduced-motion: no-preference) {
  .hero__sun { transform-origin: 1180px 575px; animation: glow 7s ease-in-out infinite alternate; }
  .hero__inner > * { animation: rise 900ms var(--ease) both; }
  .hero__inner > :nth-child(2) { animation-delay: 80ms; } .hero__inner > :nth-child(3) { animation-delay: 160ms; } .hero__inner > :nth-child(4) { animation-delay: 240ms; } .hero__inner > :nth-child(5) { animation-delay: 320ms; }
}
@keyframes glow { to { transform: scale(1.08); opacity: 0.85; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* strip of plain facts under the hero */
.strip { position: relative; margin-top: -4.5rem; z-index: 2; }
.strip ul { display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow-lg); list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }
.strip li { background: var(--surface); padding: 1.25rem 1.4rem; display: grid; gap: 0.2rem; }
.strip b { font-family: var(--font-display); font-variation-settings: var(--display-variation); font-size: 1.15rem; letter-spacing: -0.01em; }
.strip span { color: var(--ink-2); font-size: 0.925rem; }

/* service cards get a shingle band */
.card--svc { padding-top: 0; overflow: hidden; }
.card--svc .card__band { height: 5.5rem; margin-inline: calc(-1 * clamp(1.4rem, 1.1rem + 1vw, 2rem)); margin-bottom: 0.75rem; background:
  linear-gradient(180deg, transparent 60%, var(--surface)),
  repeating-linear-gradient(0deg, transparent 0 13px, var(--band-line) 13px 15px),
  var(--band-bg); position: relative; }
.card--svc .card__band svg { position: absolute; left: clamp(1.4rem, 1.1rem + 1vw, 2rem); bottom: 0.5rem; width: 3rem; height: 3rem; padding: 0.7rem; border-radius: 10px; background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root { --band-bg: #d8dcd9; --band-line: rgb(21 25 29 / 0.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band-bg: #222930; --band-line: rgb(255 255 255 / 0.05); } }
:root[data-theme="dark"] { --band-bg: #222930; --band-line: rgb(255 255 255 / 0.05); }

/* weather panel */
.weather { display: grid; gap: 1rem; }
@media (min-width: 640px) { .weather { grid-template-columns: 1fr 1fr; } }
.weather div { padding: 1.4rem; border-radius: var(--radius); background: var(--deep-2); display: grid; gap: 0.4rem; align-content: start; }
.weather b { font-size: 1.05rem; }
.weather p { color: var(--on-deep-2); font-size: 0.95rem; }
.weather svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--on-deep-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.4rem; }

/* area map */
.areamap { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 1rem; }
.areamap svg { width: 100%; height: auto; }
.areamap .river { fill: none; stroke: var(--river); stroke-width: 5; stroke-linecap: round; }
.areamap .road { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.areamap .town circle { fill: var(--accent); }
.areamap .town circle.halo { fill: var(--accent); opacity: 0.16; }
.areamap .town text { fill: var(--ink); font: 650 15px var(--font-body); }
.areamap .town a:hover text, .areamap .town a:focus text { fill: var(--accent-text); text-decoration: underline; }
.areamap .label { fill: var(--ink-2); font: 500 12px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
:root { --river: #a9c2cf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --river: #2e4a59; } }
:root[data-theme="dark"] { --river: #2e4a59; }
@media (prefers-reduced-motion: no-preference) { .areamap .halo { animation: ping 2.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.35; } 100% { transform: scale(1.6); opacity: 0; } }

/* page heroes on inner pages: a slim slate band with shingle texture */
.page-hero--band { position: relative; }
.page-hero--band::after { content: ""; position: absolute; inset: auto var(--margin) 0; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 34px); opacity: 0.85; }

.article-meta { color: var(--ink-2); font-size: 0.95rem; }
.toc { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.toc h2 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.6rem; font-variation-settings: normal; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
