/* Leych site design system. Tokens live in css/tokens.css (generated per style
   preset). Everything here is built from those tokens: change tokens, restyle
   the site. Page-specific rules go at the very end under "Page overrides".

   Devices a design plan chooses (--card-shadow, --card-lift, --reveal-*,
   --hero-shape, --link) are read with fallbacks that keep them off: a card
   shadow, a hover lift, a reveal on scroll and hero corner shapes appear only
   when tokens.css turns them on. */

/* One colour the presets do not get to choose. A rejected field has to read as
   wrong against every brand palette, so this is fixed rather than derived. It
   holds 4.5:1 on the light and tinted surfaces the forms sit on. A design plan
   on a dark ground sets --form-error to a red that reads there. */
:root {
  --error: var(--form-error, #b42318);
  --error-soft: var(--form-error-soft, rgba(180, 35, 24, 0.16));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link, var(--brand)); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover, var(--brand-hover)); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, blockquote, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--brand-soft); }
[id] { scroll-margin-top: 5rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--leading-tight);
  text-wrap: balance;
  color: var(--fg);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: var(--leading-snug); }
h4 { font-size: var(--step-0); line-height: var(--leading-snug); }
.display { font-size: var(--step-5); }
p { text-wrap: pretty; }
p + p { margin-top: var(--space-4); }
/* A short label in sentence case, used only where it adds information. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--link, var(--brand));
  margin-bottom: var(--space-3);
}
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
/* Article body copy is the one place a bullet belongs. */
.prose ul, .prose ol { padding-left: 1.25em; list-style: revert; }
.prose li + li { margin-top: var(--space-2); }
.prose blockquote {
  padding-left: var(--space-5);
  border-left: 3px solid var(--brand-line);
  color: var(--muted);
  font-size: var(--step-1);
}
.prose img { border-radius: var(--radius-md); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.kicker { font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-bottom: var(--space-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) / 2); }
.section--flush { padding-top: 0; }
.section--tinted { background: var(--surface); }
.section--brand { background: var(--brand); color: var(--brand-ink); }
.section--brand :is(h1, h2, h3, h4, .display, .eyebrow, .lede, a) { color: inherit; }
.section--brand .lede { opacity: 0.85; }
.section--brand .eyebrow { opacity: 0.8; }
.section__head { max-width: var(--container-narrow); margin-bottom: var(--space-7); }
.section__head .lede { margin-top: var(--space-4); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lede { margin-inline: auto; }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.grid--tight { gap: var(--space-4); }
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--reverse > :first-child { order: 2; }
}
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--sm { gap: var(--space-2); }
.stack--lg { gap: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }
.divider { border: 0; border-top: 1px solid var(--border); margin-block: var(--space-6); }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.panel--brand { background: var(--brand-soft); border-color: var(--brand-line); }

/* Ratio box for a photograph: the image always fills it, nothing ever shifts. */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  aspect-ratio: 3 / 2;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media > img { width: 100%; height: 100%; object-fit: cover; }
/* Only for text sitting on top of a photo; keeps contrast without a hardcoded rgba. */
.media--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--fg) 62%, transparent), transparent 65%);
}
.media__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--space-4);
  color: #fff;
  font-size: var(--step--1);
}

/* ---------- Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-hover); color: var(--brand-ink); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--fg); color: var(--fg); background: var(--surface); }
.btn--ghost { background: transparent; color: var(--link, var(--brand)); padding-inline: var(--space-3); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--link-hover, var(--brand-hover)); }
.btn--lg { min-height: 3.25rem; padding: 0.9rem 1.6rem; font-size: var(--step-1); }
.section--brand .btn--primary { background: var(--brand-ink); color: var(--brand); }
.section--brand .btn--primary:hover { background: var(--brand-ink); opacity: 0.92; }
.section--brand .btn--secondary { color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand-ink) 40%, transparent); }
/* A ghost button on the brand band had no edge at all and read as stray text. */
.section--brand .btn--ghost {
  color: var(--brand-ink);
  border-color: color-mix(in oklab, var(--brand-ink) 40%, transparent);
  padding-inline: 1.25rem;
}
.section--brand .btn--ghost:hover {
  background: color-mix(in oklab, var(--brand-ink) 14%, transparent);
  color: var(--brand-ink);
}
.section--brand .btn--secondary:hover { background: color-mix(in oklab, var(--brand-ink) 12%, transparent); color: var(--brand-ink); border-color: var(--brand-ink); }
.btn .icon { width: 1.1em; height: 1.1em; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--card-shadow, none);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card--hover { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.card--hover:hover { transform: translateY(var(--card-lift, 0px)); box-shadow: var(--card-shadow-hover, none); border-color: var(--brand-line); }
.card__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--link, var(--brand));
  margin-bottom: var(--space-2);
}
.card__icon .icon { width: 1.5rem; height: 1.5rem; }
.card__title { font-size: var(--step-1); }
.card__text { color: var(--muted); }
.card__text a { font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}
.badge--brand { background: var(--brand-soft); border-color: var(--brand-line); color: var(--link, var(--brand)); }

.icon { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--link, var(--brand));
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 5rem; height: 5rem; font-size: var(--step-1); }

/* Forms */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field > label, .field__label { font-weight: 600; font-size: var(--step--1); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field__hint { font-size: var(--step--1); color: var(--muted); }

/* "optional" beside a label, so the one required field is obvious without
   marking four others with an asterisk nobody explains. */
.field__optional {
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--muted);
}

/* Per-field validation. The message names the field it belongs to and is
   announced with it, instead of one line under the button for every problem. */
.field__error { color: var(--error); margin-block-start: 0.35rem; }
.field__error[hidden] { display: none; }

/* The field itself has to look wrong, not just carry a line of red text under
   it. These need the same weight as the focus rule above, because validation
   focuses the field it rejected: without matching specificity the brand focus
   ring wins and an invalid field reads as merely selected. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error);
}
.field input[aria-invalid="true"]:focus-visible,
.field textarea[aria-invalid="true"]:focus-visible,
.field select[aria-invalid="true"]:focus-visible {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-status { font-size: var(--step--1); color: var(--muted); min-height: 1.5em; }
.form-status:not(:empty) { color: var(--fg); }

/* ---------- Header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 4.25rem; }
.nav__brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  font-size: var(--step-1);
  letter-spacing: var(--heading-tracking);
  color: var(--fg);
  text-decoration: none;
}
.nav__brand img { height: 2.25rem; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-2); }
.nav__links a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.nav__cta { display: inline-flex; }
.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  place-items: center;
}
@media (max-width: 52rem) {
  .nav__toggle { display: grid; }
  .nav__cta { display: none; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav__links a { min-height: 3rem; font-size: var(--step-1); }
  .nav[data-open="true"] .nav__links { display: flex; }
  /* A .btn inside the menu is the mobile call to action: keep it a real button. */
  .nav__links .btn { display: inline-flex; margin-top: var(--space-3); justify-content: center; }
  .nav__links .btn--primary { background: var(--brand); color: var(--brand-ink); }
  .nav__links .btn--primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
}
/* On desktop the header shows .nav__cta instead; any button inside the list hides. */
@media (min-width: 52.01rem) { .nav__links .btn, .nav__cta--mobile { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-9); }
.hero__inner { position: relative; z-index: 1; }
.hero .display { max-width: 18ch; }
.hero .lede { margin-top: var(--space-5); }
.hero__actions { margin-top: var(--space-6); }
.hero__proof { margin-top: var(--space-5); font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__proof strong { color: var(--fg); }
.hero--centered .hero__inner { text-align: center; }
.hero--centered .display, .hero--centered .lede { margin-inline: auto; }
.hero--centered .hero__actions, .hero--centered .hero__proof { justify-content: center; }
.hero--split .hero__inner { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 52rem) { .hero--split .hero__inner { grid-template-columns: 1.1fr 0.9fr; } }
.hero__media {
  min-height: 18rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow, none);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shape { display: var(--hero-shape, none); position: absolute; z-index: 0; border-radius: 50%; background: var(--brand-soft); pointer-events: none; }
.hero__shape--a { width: 32rem; height: 32rem; right: -10rem; top: -12rem; }
.hero__shape--b { width: 18rem; height: 18rem; right: 12rem; bottom: -9rem; opacity: 0.6; }
@media (max-width: 52rem) {
  /* Ornament only. At phone width these are wider than the screen and their
     edge cuts a hard arc straight through the headline. */
  .hero__shape--a { width: 20rem; height: 20rem; right: -8rem; top: -8rem; }
  .hero__shape--b { display: none; }
}

/* ---------- Sections ---------- */
.features .card__title { margin-top: var(--space-1); }

.steps { display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.step { position: relative; padding-top: var(--space-2); }
.step__num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: var(--heading-weight);
  line-height: 1;
  color: var(--link, var(--brand));
  margin-bottom: var(--space-3);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--muted); }

.stats { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.stat { padding: var(--space-5); border-left: 3px solid var(--brand-line); }
.stat__value { font-family: var(--font-display); font-size: var(--step-4); font-weight: var(--heading-weight); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: var(--space-2); color: var(--muted); }

.testimonials { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.testimonial__quote { font-size: var(--step-1); line-height: 1.45; }
.testimonial__quote::before { content: "\201C"; color: var(--link, var(--brand)); }
.testimonial__quote::after { content: "\201D"; color: var(--link, var(--brand)); }
.testimonial__author { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; font-size: var(--step--1); }
.testimonial__author strong { display: block; color: var(--fg); }
.testimonial__author span { color: var(--muted); }
.testimonial__stars { color: var(--link, var(--brand)); letter-spacing: 0.1em; font-size: var(--step--1); }

.team { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.person__name { font-weight: 600; }
.person__role { color: var(--muted); font-size: var(--step--1); }

.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.gallery__item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.pricing { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.price-card--featured { border-color: var(--brand); box-shadow: var(--shadow-md); position: relative; }
.price-card__name { font-weight: 600; }
.price-card__amount { font-family: var(--font-display); font-size: var(--step-4); font-weight: var(--heading-weight); line-height: 1; font-variant-numeric: tabular-nums; }
.price-card__note { color: var(--muted); font-size: var(--step--1); }
.price-card ul { display: flex; flex-direction: column; gap: var(--space-2); color: var(--muted); }
.price-card .btn { margin-top: auto; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0;
  font-weight: 600;
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--link, var(--brand));
  font-weight: 500;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 0 var(--space-5); color: var(--muted); max-width: var(--measure); }

.cta { text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .cluster { margin-top: var(--space-6); justify-content: center; }
.cta__note { margin-top: var(--space-4); font-size: var(--step--1); opacity: 0.8; }

.contact__info { display: flex; flex-direction: column; gap: var(--space-5); }
.contact__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact__item .icon { color: var(--link, var(--brand)); margin-top: 0.15em; }
.contact__item strong { display: block; margin-bottom: 0.15em; }
.contact__item a { color: var(--fg); text-decoration: none; }
.contact__item a:hover { color: var(--link-hover, var(--brand)); text-decoration: underline; }
.contact__form { padding: var(--space-6); }

.footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: var(--space-8) var(--space-6); font-size: var(--step--1); }
.footer__grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer__brand { font-family: var(--font-display); font-weight: var(--heading-weight); font-size: var(--step-1); color: var(--fg); text-decoration: none; }
.footer__col h4, .footer__col .footer__title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-bottom: var(--space-3); }
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__col a { color: var(--fg); text-decoration: none; }
.footer__col a:hover { color: var(--link-hover, var(--brand)); text-decoration: underline; }
.footer__meta { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--muted); }
.footer__meta a { color: inherit; }

/* Blog */
.post-list { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.post-card { display: flex; flex-direction: column; gap: var(--space-2); }
.post-card__date { font-size: var(--step--1); color: var(--muted); }
.post-card__title { font-size: var(--step-1); }
.post-card h2 a, .post-card h3 a { color: var(--fg); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--link-hover, var(--brand)); text-decoration: underline; }
.post-card__excerpt { color: var(--muted); }
/* Past twelve posts the Blog pages the list; the pager sits under the cards. */
.blog-pager { margin-top: var(--space-7); }
.article__header { margin-bottom: var(--space-7); }
.article__header .lede { margin-top: var(--space-4); }
.article__meta { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); }
/* Sharing is three links, not a third-party script that watches the reader. */
.article__share { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline; font-size: var(--step--1); margin-top: var(--space-6); }
/* Someone who just finished a post is the likeliest person to read a second. */
.article__more { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.article__more .section__title { margin-bottom: var(--space-5); }

/* ---------- Utilities ---------- */
.visually-hidden { 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-link {
  position: absolute; left: var(--space-4); top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--fg); color: var(--bg);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* Reveal on scroll (site.js adds .is-visible), only when the design plan turns
   it on in tokens.css. Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: var(--reveal-opacity, 1); transform: translateY(var(--reveal-shift, 0px)); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: 60ms; }
  .reveal:nth-child(3) { transition-delay: 120ms; }
  .reveal:nth-child(4) { transition-delay: 180ms; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* leych:vocabulary v1 start */

/* Section variants. A site built before this block gets it here, once, with
   any group whose class the site already defines left out. A later addition
   gets a block and a marker of its own. */

/* @group hero--bleed */
.hero--bleed {
  --fg: var(--on-dark, #fff);
  --muted: color-mix(in oklab, var(--fg) 84%, transparent);
  --border: color-mix(in oklab, var(--fg) 45%, transparent);
  --surface: color-mix(in oklab, var(--fg) 14%, transparent);
  --link: var(--fg);
  --link-hover: var(--fg);
  display: grid;
  align-items: end;
  min-height: min(86vh, 46rem);
  background: var(--dark-bg, #15171a);
  color: var(--fg);
}
.hero--bleed .hero__media {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero--bleed .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(12 14 17 / 0.84), rgb(12 14 17 / 0.3));
}
.hero--bleed .hero__shape { display: none; }
.hero--bleed .eyebrow { color: inherit; }

/* @group hero--editorial */
.hero--editorial .hero__inner { display: grid; gap: var(--space-5) var(--space-7); }
.hero--editorial .eyebrow {
  display: block;
  margin-bottom: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--fg);
}
.hero--editorial .display {
  max-width: 20ch;
  font-size: clamp(2.6rem, 1.4rem + 5.5vw, 5.6rem);
  line-height: 1;
  overflow-wrap: break-word;
}
.hero--editorial :is(.lede, .hero__actions, .hero__proof) { margin-top: 0; }
@media (min-width: 52rem) {
  .hero--editorial .hero__inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero--editorial :is(.eyebrow, .display) { grid-column: 1 / -1; }
  .hero--editorial :is(.lede, .hero__actions, .hero__proof) { grid-column: 2; }
}

/* @group section--dark */
.section--dark {
  --fg: var(--on-dark, #f5f3ef);
  --bg: var(--dark-bg, color-mix(in oklab, #15171a 88%, var(--brand)));
  --surface: color-mix(in oklab, var(--fg) 7%, var(--bg));
  --muted: color-mix(in oklab, var(--fg) 74%, var(--bg));
  --border: color-mix(in oklab, var(--fg) 18%, var(--bg));
  --brand-soft: color-mix(in oklab, var(--brand) 24%, var(--bg));
  --brand-line: color-mix(in oklab, var(--brand) 50%, var(--bg));
  --link: color-mix(in oklab, var(--brand) 45%, var(--fg));
  --link-hover: var(--fg);
  background: var(--bg);
  color: var(--fg);
}
.section--dark :is(.eyebrow, .step__num, .btn--ghost, a:not(.btn)) {
  color: color-mix(in oklab, var(--brand) 45%, var(--fg));
}

/* @group stats--band */
.stats--band { gap: 0 var(--space-6); border-bottom: 1px solid var(--border); }
.stats--band .stat {
  padding: var(--space-6) 0;
  border-left: 0;
  border-top: 1px solid var(--border);
}
.stats--band .stat__value { font-size: var(--step-5); }

/* @group quote--feature */
.quote--feature { max-width: 48rem; margin-inline: auto; text-align: center; }
.quote--feature blockquote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--leading-snug);
  text-wrap: balance;
}
.quote--feature blockquote::before {
  content: "\201C";
  display: block;
  font-size: 2.5em;
  line-height: 0.8;
  color: var(--link, var(--brand));
}
.quote--feature figcaption { margin-top: var(--space-5); font-size: var(--step--1); color: var(--muted); }
.quote--feature figcaption strong { display: block; color: var(--fg); font-size: var(--step-0); }

/* @group compare */
.compare {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-collapse: collapse;
  background: var(--surface);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare :is(th, td) {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}
.compare tbody tr:last-child :is(th, td) { border-bottom: 0; }
.compare thead th { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare td { font-variant-numeric: tabular-nums; }

/* @group price-table */
.price-table {
  display: grid;
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
table.price-table { display: block; border-collapse: collapse; }
.price-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.price-table__name { font-weight: 600; overflow-wrap: anywhere; }
.price-table__price {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-table__note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }

/* @group hours */
.hours { display: grid; max-width: 30rem; margin: 0; }
.hours__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.hours :is(dt, dd) { margin: 0; }
.hours dt { font-weight: 600; }
.hours dd { color: var(--muted); font-variant-numeric: tabular-nums; }

/* @group footer--big */
.footer--big { padding-block: var(--space-9) var(--space-6); }
.footer--big .footer__grid { gap: var(--space-7) var(--space-6); }
.footer--big .footer__grid > :first-child { grid-column: 1 / -1; }
.footer--big .footer__brand {
  display: block;
  margin-bottom: var(--space-4);
  font-size: clamp(2.2rem, 1.2rem + 5vw, 4.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
}
.footer--big .footer__meta { margin-top: var(--space-8); }

/* @group footer--minimal */
.footer--minimal { padding-block: var(--space-6); }
.footer--minimal .footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}
.footer--minimal .footer__col ul { flex-direction: row; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer--minimal :is(.footer__col h4, .footer__title) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.footer--minimal .footer__meta { margin-top: var(--space-5); padding-top: var(--space-4); }

/* @group page-head */
.page-head { padding-block: var(--space-9) var(--space-7); }
.page-head h1 { max-width: 24ch; }
.page-head .lede { margin-top: var(--space-5); }
.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--muted);
}

/* @group rule-list */
.rule-list { display: grid; border-top: 1px solid var(--fg); }
.rule-list__item {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--border);
}
.rule-list__item > :is(h2, h3) { max-width: 22ch; }
.rule-list__item p { color: var(--muted); max-width: var(--measure); }
@media (min-width: 52rem) {
  .rule-list__item { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: var(--space-7); }
}
.rule-list__num {
  font-size: var(--step--1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--link, var(--brand));
}
.rule-list__after { margin-top: var(--space-6); }

/* leych:vocabulary v1 end */

/* leych:quality-vocabulary v2 start */
.nav--split .nav__inner { display: flex; }

@media (min-width: 52.01rem) {
  .nav--centered .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-2) var(--space-5);
    padding-block: var(--space-3);
  }
  .nav--centered .nav__brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .nav--centered nav { grid-column: 1 / -1; grid-row: 2; }
  .nav--centered .nav__links { justify-content: center; }
  .nav--centered .nav__cta { grid-column: 3; grid-row: 1; justify-self: end; }

  .nav--minimal { background: var(--bg); border-bottom-color: transparent; backdrop-filter: none; }
  .nav--minimal .nav__inner { min-height: 3.75rem; }
  .nav--minimal .nav__links a { min-height: 2.75rem; padding-inline: var(--space-2); background: transparent; }
  .nav--minimal .nav__links a:hover,
  .nav--minimal .nav__links a[aria-current="page"] { background: transparent; text-decoration: underline; }
  .nav--minimal .nav__cta {
    min-height: 2.75rem;
    padding-inline: var(--space-2);
    background: transparent;
    color: var(--link, var(--brand));
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-enter {
    animation: leych-hero-enter var(--motion-duration, 680ms) var(--ease-out) both;
    animation-duration: calc(var(--motion-duration, 680ms) * var(--motion-enabled, 1));
  }
  .motion-enter .hero__actions {
    animation: leych-action-enter var(--motion-duration, 680ms) var(--ease-out) 120ms both;
    animation-duration: calc(var(--motion-duration, 680ms) * var(--motion-enabled, 1));
  }
  .motion-reveal {
    opacity: 0;
    transform: translateY(var(--motion-distance, 18px));
    transition:
      opacity var(--motion-duration, 680ms) var(--ease-out),
      transform var(--motion-duration, 680ms) var(--ease-out);
  }
  .motion-reveal.motion-from-left { transform: translateX(calc(var(--motion-distance, 18px) * -1)); }
  .motion-reveal.motion-from-bottom { transform: translateY(var(--motion-distance, 18px)); }
  .motion-reveal.motion-scale { transform: scale(0.975); }
  .motion-reveal.is-visible { opacity: 1; transform: none; }
  @keyframes leych-hero-enter {
    from { opacity: 0; transform: translateY(var(--motion-distance, 18px)); }
    to { opacity: 1; transform: none; }
  }
  @keyframes leych-action-enter {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 52rem) {
  .nav__links {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity calc(var(--motion-duration, 680ms) * 0.45) var(--ease-out),
      transform calc(var(--motion-duration, 680ms) * 0.45) var(--ease-out),
      visibility 0s linear calc(var(--motion-duration, 680ms) * 0.45);
  }
  .nav[data-open="true"] .nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enter,
  .motion-enter .hero__actions { animation: none !important; }
  .motion-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nav__links { transition: none !important; }
}
/* leych:quality-vocabulary v2 end */

/* ---------- Page overrides ---------- */
/* Add page-specific rules below this line. Prefer new classes over overriding the system. */

/* WonderWY: a hand-drawn question mark and rule opens each section heading. */
.q-head::before {
  content: "";
  display: block;
  width: 4.75rem;
  height: 1.25rem;
  margin-bottom: var(--space-4);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 20' fill='none' stroke='%2317695f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.4 6.2c.2-2.6 2.1-4.3 4.6-4.2 2.4.1 4.1 1.7 4 3.8-.1 2.5-3.2 3.1-3.4 5.6'/%3E%3Cpath d='M8.2 15.2h.01'/%3E%3Cpath d='M20 12.6c6.4-3.2 11.2 2.4 17.6.2 6.4-2.2 10.4 2.6 16.8.6 3.8-1.2 6.4-.4 9 1'/%3E%3C/svg%3E") no-repeat left center;
  background-size: contain;
}

/* An oversized question set in the display face, used once inside a tinted band. */
.pull-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: var(--leading-snug);
  letter-spacing: var(--heading-tracking);
  color: var(--brand);
  max-width: 22ch;
  text-wrap: balance;
}

/* The hero photograph keeps one shape instead of running the column's height. */
.hero--split .hero__media { aspect-ratio: 4 / 5; min-height: 0; }
@media (max-width: 52rem) {
  .hero--split .hero__media { aspect-ratio: 4 / 3; }
}

/* Steps and principles read as ruled notebook entries. */
.steps .step,
.value { border-top: 1px solid var(--brand-line); padding-top: var(--space-4); }
.value h3 { margin-bottom: var(--space-2); }
.value p { color: var(--muted); max-width: var(--measure); }

/* --------------------------------------------------------------------------
   Print

   A local business gets printed: a quote, an opening-hours page taped to a
   counter, a service list handed to a customer. Without this the ink goes on
   the nav, the buttons and the reveal animations, and half the copy arrives
   white on white because the dark bands keep their background.
   -------------------------------------------------------------------------- */
@media print {
  :root { --bg: #fff; --fg: #000; --muted: #333; --surface: #fff; --border: #999; }
  .nav, .footer, .btn, .skip-link, [data-leych-widget] { display: none !important; }
  .section, .hero { padding-block: var(--space-4); }
  .section--dark, .section--brand { background: #fff !important; color: #000 !important; }
  .reveal, .motion-reveal, .motion-enter { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  img { max-width: 100% !important; }
}
