:root {
  --bg: #faf8f5;
  --surface: #f0ece5;
  --ink: #1a1a18;
  --muted: #68655e;
  --brass: #a8853f;
  --brass-dark: #785e28;
  --line: #d8d1c7;
  --white: #ffffff;
  --font-heading: "Manrope", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --rail-width: 40%;
  --content-width: 920px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip; /* avoid body becoming a scroll container (Safari scroll clamp) */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  transform: translateY(-160%);
}

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

.rail {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.rail-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 4.2vw, 1.2rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
}

.wordmark i {
  color: var(--brass);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
}

.wordmark small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.1rem;
  height: 1px;
  background: currentColor;
}

.rail-nav {
  position: fixed;
  z-index: 19;
  inset: 4.75rem 0 auto;
  display: none;
  max-height: calc(100vh - 4.75rem);
  overflow-y: auto;
  padding: 1.5rem 1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.rail-nav.is-open {
  display: block;
}

.rail-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.rail-nav a span {
  color: var(--brass-dark);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.rail-bottom {
  display: none;
}

.section {
  padding-block: var(--section-pad);
}

.section-inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 1.3rem;
  color: var(--brass-dark);
  font-family: var(--font-heading);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero {
  display: flex;
  min-height: calc(100svh - 4.75rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.65rem, 11vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-footer {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-footer p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
}

.text-link {
  width: fit-content;
  align-self: end;
  color: var(--brass-dark);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-heading {
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.section-heading h2,
.contact-copy h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.service-list {
  border-top: 1px solid var(--ink);
}

.service-list article {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.8rem 1rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-index {
  padding-top: 0.28rem;
  color: var(--brass-dark);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
}

.service-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.service-list p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-meta > span {
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 600;
}

.service-list a {
  width: fit-content;
  color: var(--brass-dark);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
}

.feature {
  position: relative;
  min-height: 29rem;
  overflow: hidden;
  background: var(--ink);
}

.feature img {
  width: 100%;
  height: clamp(29rem, 70vw, 48rem);
  object-fit: cover;
  object-position: 62% 48%;
  opacity: 0.88;
}

.feature-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: rgba(26, 26, 24, 0.88);
  color: var(--white);
  text-align: center;
}

.feature-caption p {
  margin: 0;
}

.feature-caption p:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
}

.feature-caption p:last-child {
  color: #dfd7ca;
  font-size: 0.85rem;
}

.results {
  background: var(--ink);
  color: var(--white);
}

.stats-band {
  display: grid;
}

.stats-band > div {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid #44443f;
  text-align: center;
}

.stats-band > div:last-child {
  border-bottom: 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 12vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stats-band > div > span:last-child {
  margin-top: 0.7rem;
  color: #cec7bc;
  font-size: 0.82rem;
}

.testimonials {
  border-bottom: 1px solid var(--line);
}

.section-heading--compact h2 {
  max-width: 10ch;
}

.quote-grid {
  display: grid;
  gap: 1rem;
}

.quote-grid figure {
  display: flex;
  min-width: 0;
  min-height: 24rem;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.quote-grid blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.5;
}

.quote-grid figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
}

.quote-grid strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.quote-grid figcaption span {
  color: var(--muted);
  font-size: 0.78rem;
}

.faq-layout {
  display: grid;
  gap: 1rem;
}

.accordion {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  justify-self: end;
}

.faq-item button span::before,
.faq-item button span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 1px;
  background: var(--brass-dark);
  content: "";
  transform: translate(-50%, -50%);
}

.faq-item button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item button[aria-expanded="true"] span::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-item > div {
  padding: 0 2.5rem 1.4rem 0;
}

.faq-item > div[hidden] {
  display: none;
}

.faq-item p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact {
  background: var(--surface);
}

.contact-layout {
  display: grid;
  gap: 3rem;
}

.contact-copy > p:last-child {
  max-width: 31rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

form {
  min-width: 0;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #bdb5aa;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  padding: 0.85rem 0.9rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brass-dark);
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.submit-button {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.form-status {
  min-height: 1.7em;
  margin: 0.8rem 0 0;
  color: var(--brass-dark);
  font-size: 0.82rem;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer .section-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

@media (min-width: 680px) {
  .hero-footer,
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-footer .text-link {
    justify-self: end;
  }

  .service-list article {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
  }

  .service-meta {
    grid-column: auto;
    min-width: 7.5rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .feature-caption {
    right: 2rem;
    bottom: 2rem;
    left: auto;
    min-width: 20rem;
  }

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

  .stats-band > div {
    border-right: 1px solid #44443f;
    border-bottom: 0;
  }

  .stats-band > div:last-child {
    border-right: 0;
  }

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

@media (min-width: 980px) {
  html {
    scroll-padding-top: 0;
  }

  body.menu-open {
    overflow: auto;
  }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-width);
    min-height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(2rem, 4vw, 4.5rem);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .rail-top {
    display: block;
  }

  .wordmark {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
  }

  .wordmark small {
    font-size: 0.62rem;
  }

  .menu-toggle {
    display: none;
  }

  .rail-nav {
    position: static;
    display: block;
    max-height: none;
    margin-block: auto;
    overflow: visible;
    padding: 2.5rem 0;
    border: 0;
    background: transparent;
  }

  .rail-nav a {
    gap: 1.5rem;
    padding: 0.72rem 0;
    border: 0;
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  }

  .rail-nav a span {
    width: 1.5rem;
  }

  .rail-bottom {
    display: block;
  }

  .rail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 2rem;
    border-block: 1px solid var(--line);
  }

  .rail-facts p {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
    padding: 1.1rem 0.75rem 1.1rem 0;
  }

  .rail-facts p + p {
    padding-right: 0;
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
  }

  .rail-facts strong {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 600;
  }

  .rail-facts span {
    color: var(--muted);
    font-size: 0.69rem;
  }

  address {
    display: flex;
    flex-direction: column;
    font-size: 0.73rem;
    font-style: normal;
  }

  .page {
    width: calc(100% - var(--rail-width));
    margin-left: var(--rail-width);
  }

  .hero {
    min-height: 100vh;
  }

  .hero h1 {
    font-size: clamp(4rem, 7vw, 7.2rem);
  }

  .faq-layout {
    grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .contact-layout {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .rail-nav a,
  .text-link,
  .service-list a,
  .submit-button {
    transition: color 180ms ease, background-color 180ms ease, padding 180ms ease;
  }

  .rail-nav a:hover,
  .rail-nav a:focus-visible,
  .text-link:hover,
  .service-list a:hover {
    color: var(--brass-dark);
  }

  .service-list article:hover a {
    padding-right: 0.35rem;
  }

  .submit-button:hover {
    background: var(--brass-dark);
  }
}

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

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #a8853f; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #a8853f; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
