/* Bastion Home Builders — shared styles
   Colors come from the logo: olive green and burnt orange. */

:root {
  --paper: #F6F6F2;        /* page background */
  --plaster: #E7E8E0;      /* alternate sections */
  --line: #CDD0C2;         /* hairlines and borders */
  --ink: #1E231A;          /* body text */
  --ink-soft: #5A6150;     /* secondary text */
  --olive: #3F4A2F;        /* brand green */
  --olive-deep: #2F3823;   /* dark sections */
  --olive-mist: #C9D0BC;   /* text on dark sections */
  --rust: #C9631F;         /* brand orange, for shapes and large marks */
  --rust-text: #A4501B;    /* orange text on light backgrounds */
  --rust-button: #AE521A;  /* orange button fill (white text passes contrast) */
  --rust-light: #E58A4E;   /* orange on dark sections */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118;             /* headline width, echoing the wide logo letters */

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 64ch; }

h1, h2, h3 {
  margin: 0;
  font-weight: 760;
  font-variation-settings: "wdth" var(--wide);
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 108; line-height: 1.2; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Placeholder text: dotted orange underline so it's easy to spot and replace */
.ph {
  background: rgba(201, 99, 31, .12);
  border-bottom: 1px dashed var(--rust);
  padding: 0 .15em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.35rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 650; font-variation-settings: "wdth" 108;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--rust-button); color: #fff; }
.btn-primary:hover { background: #934415; }
.btn-secondary { border-color: var(--olive); color: var(--olive); }
.btn-secondary:hover { background: var(--olive); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 242, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong {
  font-size: 1.2rem; font-weight: 780; letter-spacing: .06em; color: var(--olive);
  font-variation-settings: "wdth" 125;
}
.brand-name span {
  margin-top: .28rem; font-size: .66rem; font-weight: 600; letter-spacing: .3em; color: var(--rust-text);
  font-variation-settings: "wdth" 115;
}

.site-nav ul { display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 550; padding: .5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-color: var(--line); }
.site-nav a[aria-current="page"] { border-color: var(--rust); }
.site-nav .btn { min-height: 44px; padding: .55rem 1.1rem; }

.menu-toggle {
  display: none; min-height: 44px; padding: .5rem .9rem;
  background: none; border: 2px solid var(--olive); border-radius: var(--radius);
  font: inherit; font-weight: 650; color: var(--olive); cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .site-nav a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { color: var(--rust-text); border-color: var(--line); }
  .site-nav li:last-child { margin-top: 1rem; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  align-items: center;
}
.hero h1 { color: var(--olive-deep); font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1; }
.hero .lead { margin-top: 1.4rem; font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  margin: 2.25rem 0 0; padding: 1.25rem 0 0; list-style: none;
  border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-soft);
}
.facts strong { color: var(--ink); font-weight: 650; }

/* Home: full-width cover photo with the motto on top */
.hero-cover {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(calc(100svh - 72px), 52rem);
  padding-block: 8rem clamp(3rem, 9vh, 6rem);
  background: var(--olive-deep); color: var(--paper);
}
.hero-cover-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
}
/* Shade the lower left, where the text sits, so it stays readable over any photo */
.hero-cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(22, 27, 18, .85) 0%, rgba(22, 27, 18, .5) 38%, rgba(22, 27, 18, 0) 70%),
    linear-gradient(to right, rgba(22, 27, 18, .45) 0%, rgba(22, 27, 18, 0) 60%);
}
.hero-cover h1 {
  max-width: 12ch; color: #fff;
  font-size: clamp(2.9rem, 8vw, 6.25rem); line-height: .98;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-cover-lead {
  margin: 1.1rem 0 0; color: #EEF0E8;
  font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 550; font-variation-settings: "wdth" 108;
}
.hero-cover .actions { margin-top: 1.9rem; }
.btn-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--olive-deep); }
@media (max-width: 600px) {
  .hero-cover { min-height: min(calc(100svh - 72px), 40rem); padding-top: 6rem; }
  .hero-cover-photo { object-position: 30% 55%; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: 46ch; }
}

/* ---------- Before / after compare ---------- */
.compare { margin: 0; }
.compare-frame {
  --pos: 50%;
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--plaster);
  border-radius: var(--radius);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0;
  pointer-events: none;
}
.compare-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(30, 35, 26, .25);
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: -22px; width: 44px; height: 44px; margin-top: -22px;
  border-radius: 50%; background: var(--rust-button);
  border: 3px solid var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
}
.compare-tag {
  position: absolute; top: 1rem; padding: .3rem .65rem; border-radius: var(--radius);
  background: rgba(30, 35, 26, .82); color: var(--paper);
  font-size: .85rem; font-weight: 600; pointer-events: none;
}
.compare-tag.is-before { left: 1rem; }
.compare-tag.is-after { right: 1rem; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none; /* dragging is handled on the frame; the input covers keyboard and screen readers */
  -webkit-appearance: none; appearance: none;
}
.compare-range:focus-visible + .compare-handle::after { outline: 3px solid var(--rust); outline-offset: 3px; }
.compare figcaption { margin-top: .8rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--plaster); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.section-head p { margin: .9rem 0 0; color: var(--ink-soft); }
.text-link {
  color: var(--rust-text); font-weight: 650; text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.text-link:hover { color: var(--olive); }

/* Services: a ruled list beside a sticky heading */
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); }
.services-intro { position: sticky; top: 7rem; align-self: start; }
.services-intro p { margin-top: 1.1rem; color: var(--ink-soft); }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--olive); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 2rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.service h3 { grid-column: 1; }
.service p { grid-column: 1; margin: 0; color: var(--ink-soft); }
.service .text-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .service { grid-template-columns: 1fr; }
  .service .text-link { grid-column: 1; grid-row: auto; margin-top: .5rem; }
}

/* Project tiles, shared by the home page and the gallery */
.project-tile { margin: 0; }
.project-tile button {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
/* 3:2 matches camera photos, so tiles show the whole frame without cropping */
.tile-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--plaster); aspect-ratio: 3 / 2; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-tile button:hover .tile-media img { transform: scale(1.03); }
.tile-badge {
  position: absolute; left: .75rem; top: .75rem; padding: .25rem .6rem; border-radius: var(--radius);
  background: var(--paper); color: var(--olive-deep); font-size: .82rem; font-weight: 650;
}
.tile-text { display: block; padding-top: .9rem; }
.tile-title {
  display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.2;
  font-variation-settings: "wdth" 108; text-wrap: balance;
}
.project-tile button:hover .tile-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.tile-meta { display: block; margin: .3rem 0 0; color: var(--ink-soft); font-size: .95rem; }

/* Home: featured projects, one large and two stacked */
.featured-grid { margin: 0; padding: 0; list-style: none; display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.featured-grid > :first-child { grid-row: span 2; }
.featured-grid > :first-child button { height: 100%; display: flex; flex-direction: column; }
.featured-grid > :first-child .tile-media { aspect-ratio: auto; flex: 1; min-height: 22rem; }
@media (max-width: 760px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid > :first-child { grid-row: auto; }
  .featured-grid > :first-child .tile-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}

/* Process: a real sequence, so it gets numbers */
.section-dark { background: var(--olive-deep); color: var(--paper); }
.section-dark h2 { color: var(--paper); }
.section-dark .section-head p { color: var(--olive-mist); }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid rgba(201, 208, 188, .35); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 1rem;
  font-size: 3rem; font-weight: 800; line-height: 1; color: var(--rust-light);
  font-variation-settings: "wdth" 125;
}
.steps h3 { color: var(--paper); }
.steps p { margin: .6rem 0 0; color: var(--olive-mist); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); }
.quote-grid > div > p { margin-top: 1.1rem; color: var(--ink-soft); }
.contact-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-list li { padding: .85rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .88rem; color: var(--ink-soft); }
.contact-list a, .contact-list strong { font-weight: 650; font-size: 1.1rem; }

.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .95rem; }
.field .hint { font-size: .88rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #9EA591; border-radius: var(--radius);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--rust); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { font-size: .88rem; color: #B3261E; font-weight: 600; }
.field-error:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-error { color: #B3261E; }
.form-status.is-ok { color: var(--olive); }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .quote-form { grid-template-columns: 1fr; } }

/* ---------- Projects page ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.page-head h1 { color: var(--olive-deep); }
.page-head p { margin-top: 1.2rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.25rem; padding: 0; list-style: none; }
.filters[hidden] { display: none; }
.filters button {
  min-height: 44px; padding: .5rem 1rem;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--olive);
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.filters button:hover { border-color: var(--olive); }
.filters button[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.filters .count { margin-left: .35rem; opacity: .7; font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery-empty { padding: 3rem 0; color: var(--ink-soft); }

.cta-band { padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band p { margin: .8rem 0 0; color: var(--olive-mist); }

/* Project detail dialog */
.project-dialog {
  width: min(100% - 2rem, 58rem); max-height: calc(100% - 2rem);
  padding: 0; border: 0; border-radius: 6px;
  background: var(--paper); color: var(--ink);
}
.project-dialog::backdrop { background: rgba(30, 35, 26, .7); }
.dialog-body { padding: clamp(1.25rem, 3vw, 2rem); }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dialog-top h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.dialog-top .tile-meta { margin-top: .4rem; }
.dialog-close {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.dialog-close:hover { border-color: var(--olive); }
.dialog-photo { border-radius: var(--radius); object-fit: contain; background: var(--plaster); }
/* Keep the photo short enough that the title and details stay in view */
.project-dialog .compare-frame { width: min(100%, 62vh * 4 / 3); margin-inline: auto; }
.dialog-photo { width: min(100%, 62vh * 3 / 2); margin-inline: auto; }
.project-dialog .compare-frame + .dialog-photo { margin-top: 1rem; }
.dialog-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem;
  margin: .75rem 0 0; padding: 0; list-style: none;
}
.dialog-thumbs button {
  display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: var(--radius);
  background: none; cursor: pointer; overflow: hidden; opacity: .7; transition: opacity .18s, border-color .18s;
}
.dialog-thumbs button:hover { opacity: 1; }
.dialog-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--olive); }
.dialog-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.dialog-details { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.dialog-details h3 { font-size: 1rem; margin-bottom: .5rem; }
.dialog-details ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.dialog-details .btn { margin-top: 1.5rem; }
@media (max-width: 640px) { .dialog-details { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--olive-mist); padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2rem clamp(2rem, 6vw, 5rem); }
.site-footer a { overflow-wrap: anywhere; }
.site-footer .brand-name strong { color: var(--paper); }
.site-footer .brand-name span { color: var(--rust-light); }
.site-footer .brand { margin-bottom: 1rem; }
.footer-motto {
  margin-bottom: .5rem; color: var(--paper);
  font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 118;
}
.site-footer h2 { font-size: 1rem; font-variation-settings: "wdth" 108; color: var(--paper); margin-bottom: .8rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: .2rem 0; }
.site-footer a { text-decoration-color: rgba(201, 208, 188, .4); text-underline-offset: .2em; }
.site-footer a:hover { color: var(--paper); }
.site-footer .ph { background: rgba(229, 138, 78, .16); border-color: var(--rust-light); }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(201, 208, 188, .2); font-size: .88rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* ---------- Content pages (services, resources) ---------- */
.page-head .actions { margin-top: 1.75rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.toc { position: sticky; top: 6.5rem; align-self: start; }
.toc h2 { font-size: .95rem; font-variation-settings: "wdth" 108; margin-bottom: .6rem; color: var(--ink-soft); }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-weight: 550; }
.toc a:hover { border-color: var(--rust); color: var(--rust-text); }
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; border: 0; }
  .toc a { padding: .4rem 0; border: 0; margin: 0; text-decoration: underline; text-underline-offset: .2em; }
}

.prose-section { padding-block: 0 clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 6rem; }
.prose-section + .prose-section { padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.prose-section > h2 { margin-bottom: 1rem; }
.prose-section h3 { margin: 2rem 0 .6rem; }
.prose-section p, .prose-section li { color: var(--ink); }
.prose-section .intro { font-size: 1.15rem; color: var(--ink-soft); }
.prose-section ul, .prose-section ol { padding-left: 1.2rem; max-width: 64ch; }
.prose-section li { margin-bottom: .45rem; }
.prose-section li::marker { color: var(--olive); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; }
.two-col h3 { margin-top: 1.25rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.service-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin: 1.5rem 0 0; padding: 1rem 0; border-block: 1px solid var(--line); list-style: none; }
.service-meta li { margin: 0; }
.service-meta span { display: block; font-size: .85rem; color: var(--ink-soft); }
.service-meta strong { font-weight: 650; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }

/* Fit lists: yes / not for us */
.fit { list-style: none; padding: 0 !important; }
.fit li { position: relative; padding-left: 1.9rem; }
.fit li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.fit.is-no li::before {
  background: var(--ink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* FAQ */
.faq-group { margin-top: 2.25rem; }
.faq-group > h3 { margin: 0 0 .5rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px; padding: .95rem 0; cursor: pointer; list-style: none;
  font-weight: 650; font-variation-settings: "wdth" 104;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .65rem; height: .65rem; margin-right: .35rem;
  border-right: 2.5px solid var(--olive); border-bottom: 2.5px solid var(--olive);
  transform: rotate(45deg) translateY(-25%); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq details > div { padding: 0 0 1.1rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Home: resource links as a ruled list */
.resource-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.resource-list a { display: block; height: 100%; padding: 1.25rem 0 1.5rem; border-top: 2px solid var(--olive); text-decoration: none; }
.resource-list strong { display: block; font-size: 1.2rem; font-variation-settings: "wdth" 108; }
.resource-list span { display: block; margin-top: .4rem; color: var(--ink-soft); }
.resource-list a:hover strong { color: var(--rust-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
@media (max-width: 760px) { .resource-list { grid-template-columns: 1fr; } }

.note-box { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--rust); background: rgba(201, 99, 31, .07); max-width: 64ch; }
.note-box p { margin: 0; }
