:root {
  color-scheme: light;
  --color-ink: #13211f;
  --color-ink-2: #334441;
  --color-muted: #5d6d69;
  --color-paper: #fffdf8;
  --color-surface: #ffffff;
  --color-soft: #f5f1e8;
  --color-soft-2: #edf4ef;
  --color-line: #d9e0d9;
  --color-primary: #103b36;
  --color-primary-2: #1f6b5e;
  --color-accent: #d7a850;
  --color-clay: #a95643;
  --color-blue: #31566d;
  --color-danger: #9f2f25;
  --color-success: #176342;
  --shadow-sm: 0 1px 2px rgba(19, 33, 31, .08);
  --shadow-md: 0 14px 38px rgba(19, 33, 31, .12);
  --shadow-lg: 0 24px 70px rgba(19, 33, 31, .18);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container: 1180px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.drawer-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(217, 224, 217, .88);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.brand-mark img {
  width: 34px;
  height: 34px;
}

.brand small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-ink-2);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-list a[aria-current="page"],
.nav-list a:hover {
  background: var(--color-soft-2);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-primary);
}

.icon-bars {
  display: block;
  width: 20px;
  height: 14px;
  margin: auto;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 12px / 100% 2px no-repeat;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover {
  background: #0b2d29;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  border-color: var(--color-line);
  background: var(--color-surface);
  color: var(--color-primary);
}

.button.secondary:hover {
  background: var(--color-soft-2);
  color: var(--color-primary);
}

.button.accent {
  background: var(--color-accent);
  color: #1d211d;
}

.button.ghost {
  background: transparent;
  color: var(--color-primary);
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: .55;
  pointer-events: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 78px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #102c2a;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 34, 31, .92) 0%, rgba(12, 34, 31, .72) 38%, rgba(12, 34, 31, .12) 72%),
    linear-gradient(0deg, rgba(12, 34, 31, .86) 0%, rgba(12, 34, 31, .08) 45%);
  z-index: 1;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-10);
  padding-block: clamp(76px, 10vw, 124px) var(--space-12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-panel {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .94);
  color: var(--color-ink);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-panel p,
.hero-panel .form-help {
  color: var(--color-muted);
}

.mini-form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.lead-form {
  display: grid;
  gap: var(--space-4);
}

.hero-panel .form-grid,
.sticky-panel .form-grid {
  grid-template-columns: 1fr;
}

.hero-panel .lead-form {
  gap: var(--space-3);
}

.hero-panel .lead-form .button,
.sticky-panel .lead-form .button {
  width: 100%;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
label.field,
.filter-field label {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 46px;
  width: 100%;
  border: 1px solid #cbd6cf;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  padding: 10px 12px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input.hidden-field {
  position: absolute !important;
  left: -100vw !important;
  top: auto !important;
  width: 1px !important;
  min-height: 0 !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary-2);
}

.help-text {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.form-error {
  display: none;
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(159, 47, 37, .12);
}

.field.invalid .form-error {
  display: block;
}

.lead-form .contact-method-error:not([hidden]) {
  display: block;
}

.form-status {
  min-height: 22px;
  color: var(--color-success);
  font-weight: 800;
}

.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  background: var(--color-primary);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-inline: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .12);
}

.trust-item {
  background: var(--color-primary);
  padding: var(--space-5);
}

.trust-item strong {
  display: block;
  color: var(--color-accent);
  font-size: 26px;
  line-height: 1.1;
}

.trust-item span {
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section.soft {
  background: var(--color-soft);
}

.section.green {
  background: var(--color-primary);
  color: #fff;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--color-clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section h2,
.page-section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-header p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.green .section-header p,
.green .section-kicker {
  color: rgba(255, 255, 255, .78);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.service-card,
.proof-card,
.blog-card,
.content-card {
  padding: var(--space-6);
}

.service-card h3,
.proof-card h3,
.blog-card h3,
.content-card h3,
.property-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.service-card p,
.proof-card p,
.blog-card p,
.content-card p,
.property-card p {
  color: var(--color-muted);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-soft-2);
  color: var(--color-primary);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-soft);
  box-shadow: var(--shadow-md);
}

.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: var(--space-5) 0 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 45%, #fff 46% 58%, transparent 59%) 6px 8px / 10px 7px no-repeat,
    var(--color-primary-2);
}

.steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: var(--space-6);
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: var(--space-3);
}

.property-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.property-card:hover,
.property-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.property-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-soft);
}

.property-body {
  padding: var(--space-5);
}

.property-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.price {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: var(--space-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--color-soft-2);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--color-ink-2);
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  padding-block: clamp(54px, 8vw, 96px);
  background:
    linear-gradient(120deg, rgba(237, 244, 239, .96), rgba(255, 253, 248, .96)),
    var(--color-soft-2);
  border-bottom: 1px solid var(--color-line);
}

.page-hero p {
  max-width: 760px;
  color: var(--color-muted);
  font-size: 19px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumbs a {
  display: inline-block;
  padding-block: 6px;
  color: var(--color-muted);
}

.filter-shell {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.filters {
  position: sticky;
  top: 98px;
  padding: var(--space-5);
}

.filter-grid {
  display: grid;
  gap: var(--space-4);
}

.filter-field {
  display: grid;
  gap: 7px;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.mobile-filter-button {
  display: none;
}

.result-count {
  color: var(--color-muted);
  font-weight: 800;
}

.listing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state,
.loading-state {
  display: none;
  padding: var(--space-8);
  text-align: center;
}

.property-list.is-empty .empty-state {
  display: block;
}

.property-list.is-empty .listing-grid {
  display: none;
}

.map-toggle {
  display: inline-flex;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-toggle button {
  min-height: 42px;
  border: 0;
  background: #fff;
  color: var(--color-primary);
  font-weight: 800;
  padding: 9px 12px;
}

.map-toggle button[aria-pressed="true"] {
  background: var(--color-primary);
  color: #fff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-8);
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-primary);
  font-weight: 900;
  text-decoration: none;
}

.pagination [aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
}

.topic-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-6);
}

.topic-bar button {
  min-height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 800;
  padding: 8px 14px;
}

.topic-bar button[aria-pressed="true"] {
  background: var(--color-primary);
  color: #fff;
}

.featured-post {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
  overflow: hidden;
}

.featured-post img,
.blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.featured-post-content {
  padding: var(--space-8);
}

.meta {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: var(--space-10);
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  padding: var(--space-5);
}

.toc h2 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 16px;
}

.toc a {
  display: block;
  min-height: 36px;
  color: var(--color-muted);
  font-weight: 800;
  text-decoration: none;
}

.article {
  font-size: 18px;
}

.article h2 {
  margin-top: var(--space-10);
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.12;
}

.article h3 {
  margin-top: var(--space-8);
  font-size: 23px;
  line-height: 1.22;
}

.article p,
.article li {
  color: var(--color-ink-2);
}

.pull-quote {
  margin: var(--space-8) 0;
  border-left: 5px solid var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.18;
  padding-left: var(--space-5);
}

.callout {
  margin: var(--space-8) 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-soft-2);
  padding: var(--space-6);
}

.author-block {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding-block: var(--space-5);
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  font-weight: 900;
}

.faq {
  display: grid;
  gap: var(--space-3);
}

.accordion-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-weight: 900;
  padding: var(--space-4) var(--space-5);
  text-align: left;
}

.accordion-trigger::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.accordion-panel {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
}

.accordion-trigger[aria-expanded="true"] + .accordion-panel {
  display: block;
}

.cta-band {
  border-radius: var(--radius-md);
  background:
    linear-gradient(120deg, rgba(16, 59, 54, .96), rgba(31, 107, 94, .9)),
    var(--color-primary);
  color: #fff;
  padding: clamp(28px, 5vw, 52px);
}

.cta-band p {
  color: rgba(255, 255, 255, .82);
}

.content-blocks {
  display: grid;
  gap: var(--space-8);
}

.contact-form {
  display: grid;
  gap: var(--space-4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: var(--space-3);
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.gallery-stack {
  display: grid;
  gap: var(--space-3);
}

.detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-8);
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 102px;
  padding: var(--space-5);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.fact-tile {
  padding: var(--space-4);
  text-align: center;
}

.fact-tile strong {
  display: block;
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1.1;
}

.site-footer {
  background: #0d2724;
  color: #fff;
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-8);
}

.site-footer a {
  display: inline-block;
  padding-block: 5px;
  color: rgba(255, 255, 255, .84);
}

.article .meta a {
  display: inline-block;
  padding: 6px 2px;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, .72);
}

.footer-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: var(--space-5);
  color: rgba(255, 255, 255, .66);
  font-size: 14px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  background: rgba(10, 24, 22, .56);
}

.drawer-backdrop.is-open {
  display: block;
}

.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;
}

@media (max-width: 1080px) {
  .header-actions .button {
    display: none;
  }

  .hero-content,
  .detail-summary {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .sticky-panel {
    position: static;
    max-width: 520px;
  }

  .trust-grid,
  .grid-4,
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-shell,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .filters,
  .toc {
    position: static;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 120;
    width: min(360px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--color-paper);
    border-left: 1px solid var(--color-line);
    box-shadow: var(--shadow-lg);
    transition: opacity .18s ease, visibility .18s ease;
    padding: 88px var(--space-5) var(--space-5);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    display: grid;
    gap: 6px;
  }

  .nav-list a {
    min-height: 50px;
    font-size: 18px;
  }

  .grid-2,
  .grid-3,
  .listing-grid,
  .featured-post,
  .split,
  .split.reverse,
  .footer-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .mobile-filter-button {
    display: inline-flex;
  }

  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 121;
    width: min(360px, calc(100vw - 28px));
    max-height: 100dvh;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-radius: 0;
    transition: opacity .18s ease, visibility .18s ease;
  }

  .filters.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .filter-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-block: 72px var(--space-8);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
    line-height: 1.03;
  }

  .hero-actions .button,
  .actions .button,
  .hero-panel .button {
    width: 100%;
  }

  .trust-grid,
  .grid-4,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 56px;
  }

  .gallery img {
    min-height: 180px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
  }

  .footer-bottom span + span {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .button,
  .badge,
  .icon-tile {
    border: 1px solid ButtonText;
  }
}
