/* Traditional Thatch Roofs: one stylesheet for every page.
   Colours, type and spacing are the original site's, kept as custom properties. */

:root {
  /* Colours */
  --black: #000;
  --white: #fff;
  --page: #fafafa;          /* page background */
  --cream: #f3f1eb;         /* header text, light bands */
  --stone: #e1ded7;         /* card borders, footer top rule */
  --slate: #565d5f;         /* links, accent rules */
  --amber: #fcb900;         /* quote buttons */
  --charcoal: #292927;      /* copyright bar */

  /* Type */
  --font: "Montserrat", sans-serif;
  --fs-xxsmall: clamp(12px, 0.75rem + ((1vw - 3.2px) * 0.227), 14px);
  --fs-xsmall: 16px;
  --fs-small: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.455), 18px);
  --fs-body: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.682), 20px);
  --fs-medium: clamp(20px, 1.25rem + ((1vw - 3.2px) * 0.455), 24px);
  --fs-large: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.909), 32px);

  /* Spacing */
  --sp-xxs: clamp(5px, 1vw, 10px);
  --sp-xs: clamp(10px, 2vw, 20px);
  --sp-s: clamp(20px, 4vw, 40px);
  --sp-m: clamp(30px, 6vw, 60px);
  --sp-l: clamp(40px, 8vw, 80px);
  --sp-xxl: clamp(60px, 12vw, 120px);
  --gap: 24px;

  --content: 1200px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 150%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: 5px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:where(p) { font-size: var(--fs-xsmall); line-height: 1.4; }
h1, h2, h3 { font-weight: 600; text-transform: uppercase; }
ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100001; background: var(--white); color: var(--black); padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: var(--content); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block;
  font-size: var(--fs-xxsmall);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  padding: var(--sp-xxs) var(--sp-xs);
  transition: opacity .2s;
}
.btn:hover { background: var(--slate-hover); color: var(--white); }
.btn--amber { background: var(--amber); color: var(--black); }
.btn--dark { background: var(--black); color: var(--white); }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--black);
  color: var(--cream);
  padding: 20px var(--sp-s);
}
.site-header__inner {
  max-width: var(--content);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.site-title { flex: 0 1 25%; font-size: var(--fs-small); font-weight: 700; line-height: 1.4; }
.site-title a { text-decoration: none; color: var(--cream); }
.site-nav { flex: 0 1 50%; display: flex; justify-content: center; font-size: 16px; line-height: 30px; }
.site-header__cta { flex: 0 1 25%; display: flex; justify-content: flex-end; }
.btn--header { padding: var(--sp-xxs) var(--sp-xs); }

.nav-toggle, .sub-toggle {
  background: none; border: 0; padding: 0; margin: 0; color: inherit; cursor: pointer;
}
.nav-toggle { display: none; }
.nav-panel__foot { display: none; }
.nav-list { display: flex; justify-content: center; align-items: center; gap: var(--gap); }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { text-decoration: none; color: inherit; }
.sub-toggle { display: inline-flex; width: .6em; height: .6em; margin-left: .25em; }
.sub-toggle svg { width: 100%; height: 100%; stroke: currentColor; }
.sub-menu {
  position: absolute; top: 30px; left: -1px; z-index: 2;
  min-width: 200px;
  background: var(--white); color: var(--black);
  border: 1px solid rgba(0, 0, 0, .15);
  visibility: hidden; opacity: 0; width: 0; height: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.sub-menu a { display: block; padding: 8px 16px; }
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.is-open > .sub-menu { visibility: visible; opacity: 1; width: auto; height: auto; overflow: visible; }

@media (max-width: 768px) {
  .site-header__cta { display: none; }
  .site-title { flex-basis: 40%; }
  .site-nav { flex-basis: 60%; justify-content: flex-end; }
  .nav-list { justify-content: flex-end; }
}

/* Phone menu: a dark panel that slides down under the header, the links coming in one by one */
@media (max-width: 599px) {
  .site-title { flex-basis: 80%; position: relative; z-index: 3; }
  .site-nav { flex-basis: 20%; justify-content: flex-end; }

  /* Three bars that turn into a cross */
  .nav-toggle {
    display: grid; place-items: center;
    position: relative; z-index: 3;
    width: 44px; height: 44px; margin: -10px -10px -10px 0;
    color: var(--cream);
  }
  .nav-toggle__bars { position: relative; width: 24px; height: 16px; }
  .nav-toggle__bars span {
    position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .35s cubic-bezier(.7, 0, .3, 1), opacity .2s, width .35s, top .35s;
  }
  .nav-toggle__bars span:nth-child(1) { top: 0; width: 24px; }
  .nav-toggle__bars span:nth-child(2) { top: 7px; width: 16px; left: 8px; }
  .nav-toggle__bars span:nth-child(3) { top: 14px; width: 24px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; width: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .nav-toggle[aria-expanded="true"] { color: var(--amber); }

  .nav-panel {
    position: fixed; inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    padding: 96px 28px 32px;
    background: var(--black); color: var(--cream);
    background-image: linear-gradient(180deg, rgba(252, 185, 0, .07), transparent 40%);
    overflow-y: auto; overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .5s cubic-bezier(.7, 0, .3, 1), visibility 0s .5s;
  }
  .nav-panel.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .5s cubic-bezier(.7, 0, .3, 1), visibility 0s;
  }

  .nav-panel .nav-list {
    flex-direction: column; align-items: stretch; gap: 0;
    counter-reset: navitem;
  }
  .nav-panel .nav-list > li {
    display: flex; flex-wrap: wrap; align-items: center;
    border-bottom: 1px solid rgba(243, 241, 235, .14);
    opacity: 0; transform: translateY(14px);
    transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1);
  }
  .nav-panel.is-open .nav-list > li { opacity: 1; transform: none; }
  .nav-panel.is-open .nav-list > li:nth-child(1) { transition-delay: .18s; }
  .nav-panel.is-open .nav-list > li:nth-child(2) { transition-delay: .24s; }
  .nav-panel.is-open .nav-list > li:nth-child(3) { transition-delay: .30s; }
  .nav-panel.is-open .nav-list > li:nth-child(4) { transition-delay: .36s; }
  .nav-panel.is-open .nav-list > li:nth-child(5) { transition-delay: .42s; }

  .nav-panel .nav-list > li > a {
    flex: 1; display: flex; align-items: baseline; gap: 14px;
    padding: 18px 0;
    font-size: 26px; line-height: 1.15; font-weight: 700;
    text-transform: uppercase; letter-spacing: .01em;
    transition: color .2s, transform .25s;
  }
  .nav-panel .nav-list > li > a::before {
    counter-increment: navitem;
    content: "0" counter(navitem);
    font-size: 12px; font-weight: 600; letter-spacing: .08em;
    font-variant-numeric: tabular-nums; min-width: 2.2em; flex: none;
    color: var(--amber);
    transform: translateY(-.7em);
  }
  .nav-panel .nav-list > li > a:hover,
  .nav-panel .nav-list > li > a:focus-visible,
  .nav-panel .nav-list > li > a[aria-current="page"] { color: var(--amber); }
  .nav-panel .nav-list > li > a:active { transform: translateX(4px); }

  /* Services opens like an accordion */
  .nav-panel .sub-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin: 0;
    border: 1px solid rgba(243, 241, 235, .25); border-radius: 50%;
    color: var(--amber);
    transition: transform .35s, background-color .2s;
  }
  .nav-panel .sub-toggle svg { width: 14px; height: 14px; }
  .nav-panel .has-sub.is-open .sub-toggle { transform: rotate(180deg); background: rgba(252, 185, 0, .12); }
  .nav-panel .sub-menu {
    position: static; flex-basis: 100%;
    visibility: visible; opacity: 1; width: auto; height: auto; min-width: 0;
    border: 0; background: none; color: var(--cream);
    display: flex; flex-direction: column;
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height .4s cubic-bezier(.2, .7, .2, 1), padding .4s;
  }
  .nav-panel .has-sub:hover > .sub-menu,
  .nav-panel .has-sub:focus-within > .sub-menu { overflow: hidden; }
  .nav-panel .has-sub.is-open > .sub-menu { max-height: 220px; padding-bottom: 14px; overflow: hidden; }
  .nav-panel .sub-menu a {
    display: block; padding: 9px 0 9px 32px;
    font-size: 17px; font-weight: 500; color: rgba(243, 241, 235, .78);
    border-left: 2px solid rgba(252, 185, 0, .5); margin-left: 6px;
  }
  .nav-panel .sub-menu a:hover, .nav-panel .sub-menu a:focus-visible { color: var(--amber); }

  .nav-panel__foot {
    display: flex; flex-direction: column; gap: 22px;
    margin-top: auto; padding-top: 36px;
    opacity: 0; transform: translateY(14px);
    transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1);
  }
  .nav-panel.is-open .nav-panel__foot { opacity: 1; transform: none; transition-delay: .5s; }
  .nav-panel__quote { display: block; text-align: center; padding: 16px 20px; font-size: 15px; letter-spacing: .06em; }
  .nav-panel__contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 18px; }
  .nav-panel__contact a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-size: 14px; font-weight: 500; color: var(--cream); text-decoration: none;
  }
  .nav-panel__contact svg { width: 18px; height: 18px; fill: var(--amber); flex: none; }

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

@media (max-width: 599px) and (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-panel.is-open, .nav-panel .nav-list > li, .nav-panel__foot,
  .nav-toggle__bars span, .nav-panel .sub-menu, .nav-panel .sub-toggle { transition: none !important; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--gap);
  background: var(--black);
  color: var(--white);
  border-top: 3px solid var(--stone);
  padding: var(--sp-m) var(--sp-xs);
}
.site-footer > * { max-width: var(--content); margin-inline: auto; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { font-size: 16px; line-height: 1.4; }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.site-footer__title { font-size: var(--fs-medium); line-height: 1.4; }
.social { display: flex; gap: var(--gap); color: var(--cream); align-self: flex-end; }
.social a { display: flex; }
.social svg { width: 30px; height: 30px; fill: currentColor; }
.site-footer__tagline { margin-top: var(--sp-s); }
.site-footer__cols { display: flex; gap: var(--gap) var(--sp-xs); margin-top: var(--sp-s); }
.site-footer__contact { flex: 0 0 50%; }
.site-footer__links { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--gap); }
.contact-list { display: flex; flex-direction: column; gap: var(--gap); padding-inline: var(--sp-xxs); }
.contact-list li { display: flex; align-items: center; gap: var(--gap); min-height: calc(var(--fs-body) * 1.5); font-size: 16px; line-height: 1.4; }
.contact-list li:first-child { align-items: flex-start; }
.contact-list li:first-child img { margin-top: calc(var(--fs-body) * 1.5 - 20px); }
.contact-list img { width: 20px; height: 20px; flex: none; }
.contact-list li:first-child a { text-align: left; }
.site-footer__links--services a { color: var(--cream); }
.site-footer__badge { margin-top: var(--gap); width: 100%; max-width: 600px; }
.site-footer__copy {
  margin-top: var(--sp-s);
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 8px;
  padding: var(--sp-xs);
  text-align: center;
}

@media (max-width: 781px) {
  .site-footer__top { flex-direction: column; justify-content: center; }
  .social { align-self: center; justify-content: center; }
  .site-footer__cols { flex-direction: column; }
  .site-footer__contact { flex-basis: auto; }
}
@media (max-width: 768px) {
  .site-footer { text-align: center; }
  .contact-list li { justify-content: center; }
}

/* ---------- Page layout ---------- */
.section { padding: var(--sp-xs) var(--sp-s); }
.cols { display: flex; gap: var(--sp-s); max-width: var(--content); margin-inline: auto; }
.cols > * { flex: 1 1 0; min-width: 0; }
.cols > .col-30 { flex: 0 0 30%; }
.cols--center { align-items: center; }
@media (max-width: 781px) {
  .cols:not(.nostack) { flex-wrap: wrap; }
  .cols:not(.nostack) > * { flex-basis: 100%; }
}
/* "At a glance": key facts as label/value pairs (home and About Us), inside .intro__text. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-xs) var(--sp-s); margin: 0; }
.facts dt { font-size: var(--fs-xxsmall); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-size: var(--fs-small); line-height: 1.4; }
.facts a { color: inherit; }
@media (max-width: 599px) { .facts { grid-template-columns: 1fr; } }
.facts dd a { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 3px; overflow-wrap: anywhere; }
.about .intro--glance { padding: 0 0 var(--sp-m); }
.text p + p { margin-top: var(--sp-xs); }
.text a { color: var(--slate); }
.lead { font-size: var(--fs-small); line-height: 1.4; }

/* ---------- About Us ---------- */
.about { margin-top: 3rem; }
.about h1 { text-align: center; font-size: 32px; line-height: 1.2; padding-block: var(--sp-xs); max-width: var(--content); margin-inline: auto; }
.about__intro { padding-top: var(--sp-s); margin-bottom: var(--sp-m); }
.about__intro p { font-size: var(--fs-small); line-height: 1.4; }
.band { background: var(--cream); margin-inline: calc(-1 * var(--sp-s)); padding: var(--sp-xs) var(--sp-s); }
.band h2 { font-size: var(--fs-large); line-height: 1.3; }
.member__logo { display: flex; justify-content: center; }
.member__text p { font-size: var(--fs-small); line-height: 1.4; margin-top: var(--sp-xxs); }
.badges { padding-block: var(--sp-xxs); margin-top: var(--sp-xxs); }
.badges li { display: flex; align-items: center; gap: var(--gap); min-height: calc(var(--fs-body) * 1.5); font-size: var(--fs-small); line-height: 1.4; }
.badges li + li { margin-top: var(--sp-xxs); }
.badges img { width: 22px; height: 22px; flex: none; }

/* ---------- Home ---------- */
.hero {
  position: relative;
  min-height: 700px;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-xxl) 0;
  overflow: hidden;
  color: var(--white);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--black); opacity: .7; z-index: 1; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-inline: var(--sp-xs); }
.hero__inner > * { max-width: 1000px; margin-inline: auto; }
.hero h1 { text-align: center; font-size: clamp(1.976rem, 1.976rem + ((1vw - 0.2rem) * 2.771), 3.5rem); font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.hero p { text-align: center; font-size: var(--fs-xsmall); line-height: 1.4; margin-top: var(--gap); }
.hero .buttons { margin-top: var(--gap); gap: var(--sp-xs); }
.btn--hero { font-size: var(--fs-small); padding: var(--sp-xs); }

.intro { padding: var(--sp-l) var(--sp-s) var(--sp-s); }
.intro .cols, .testimonials .cols { gap: var(--gap); }
.intro h2, .testimonials h2 { font-size: var(--fs-large); line-height: 1.3; }
.intro__text { border-left: 4px solid var(--slate); padding-left: var(--sp-xs); }
.intro__text p { font-size: var(--fs-small); line-height: 1.4; }
.intro__text a { color: inherit; text-decoration: none; }
.intro__sub { margin-top: var(--gap); font-size: var(--fs-xsmall); line-height: 1.4; }

.services { padding: 0 var(--sp-s) var(--sp-s); }
.cards { align-items: flex-start; }
@media (max-width: 781px) { .cards { gap: calc(var(--sp-s) + var(--sp-m)); } }
.card { border: 1px solid var(--stone); border-radius: 8px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card img.card__img--natural { aspect-ratio: auto; }
.card__body { margin-top: var(--gap); }
.card h3 { text-align: center; font-size: var(--fs-medium); line-height: 1.3; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3.pad, .card p.pad { padding-inline: var(--sp-xxs); }
.card p { text-align: center; font-size: var(--fs-xsmall); line-height: 1.4; margin-top: var(--sp-xxs); }
.card__spacer { margin-top: var(--sp-xxs); }
.card__buttons { padding-block: var(--sp-xxs); margin-top: var(--sp-xxs); }

.projects { max-width: var(--content); margin: var(--gap) auto 0; padding: 0 var(--sp-s); }
.slider { position: relative; margin: 0 0 40px; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; will-change: transform; }
.slider__slide { flex: 0 0 100%; position: relative; }
.slider__slide img { width: 100%; border-radius: 0; }
.slider__caption { font-size: var(--fs-body); position: absolute; left: 0; bottom: 0; width: 100%; background: var(--black); color: var(--white); opacity: .7; line-height: 1.4em; text-align: center; padding: 5px 10px; }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 26px; height: 26px; border: 0; padding: 0; border-radius: 50%; background: #333; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.slider__arrow svg { width: 16px; height: 16px; }
.slider:hover .slider__arrow { opacity: .8; }
.slider .slider__arrow:hover { opacity: 1; }
.slider__arrow--prev { left: 10px; }
.slider__arrow--next { right: 10px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: -27px; display: flex; justify-content: center; line-height: 11px; }
.slider__dots button { width: 11px; height: 11px; margin: 0 6px; padding: 0; border: 0; border-radius: 20px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 3px rgba(0, 0, 0, .3); cursor: pointer; }
.slider__dots button:hover { background: rgba(0, 0, 0, .7); }
.slider__dots button.is-active { background: rgba(0, 0, 0, .9); }
.btn--more { font-size: var(--fs-small); padding: calc(.667em + 2px) calc(1.333em + 2px); }

.testimonials { background: var(--cream); margin-top: var(--sp-m); padding: var(--sp-s); }
.quotes { margin-top: var(--sp-s); }
.quotes blockquote { margin: 0; }
.quotes p { font-size: var(--fs-xsmall); line-height: 1.4; }
.quotes p + p { margin-top: var(--gap); }

.faqs { max-width: var(--content); margin: var(--gap) auto 0; padding: 0; display: flow-root; }
.faqs h2 { font-size: var(--fs-large); line-height: 1.3; }
.faq-list { margin-top: var(--gap); }
.faq-list details { margin-bottom: 1em; border-radius: 4px; }
.faq-list summary { cursor: pointer; padding: 10px 15px; background: rgba(140, 140, 151, .1); border-radius: 4px; }
.faq-list details[open] summary { border-radius: 4px 4px 0 0; }
.faq-list__answer { padding: 15px 20px; border: 1px solid rgba(140, 140, 151, .1); border-top: 0; border-radius: 0 0 4px 4px; }
.faq-list a { color: var(--slate); }
.faqs .faq-list summary { color: #222; }
.u { text-decoration: underline; }

/* ---------- Content blocks (inner pages) ----------
   Inner pages are built from a handful of blocks, laid out the way the original site did:
   .group stacks blocks (24px apart unless .stack-* says otherwise), .constrained keeps its
   blocks to the content width, .full runs edge to edge inside a padded group, .cols/.col are
   columns, .flex lines blocks up in a row. Spacing classes (pt-s, mt-m, px-xs ...) use the
   --sp-* scale; font-size classes (fs-s, fs-l ...) the type scale. */
:root {
  --fs-tiny: clamp(10px, 0.625rem + ((1vw - 3.2px) * 0.227), 12px);
  --fs-xl: clamp(36px, 2.25rem + ((1vw - 3.2px) * 1.364), 48px);
  --sp-xl: clamp(50px, 10vw, 100px);
  --slate-hover: #70797c;
}
figure { margin: 0; }
h1 { font-size: var(--fs-xl); line-height: 1.2; }
h2 { font-size: var(--fs-large); line-height: 1.3; }
h3 { font-size: var(--fs-medium); line-height: 1.3; }
h4 { font-size: var(--fs-small); line-height: 1.4; text-transform: uppercase; font-weight: 600; margin: 0; }

.group > * + *, .col > * + * { margin-top: var(--gap); }
.constrained > :not(.full) { max-width: var(--content); margin-inline: auto; }
.maxw-800 > :not(.full):not(.wide) { max-width: 800px; }
.group > * { --fp: 0px; }
.px-xxs > * { --fp: var(--sp-xxs); }
.px-xs > * { --fp: var(--sp-xs); }
.px-s > * { --fp: var(--sp-s); }
.px-m > * { --fp: var(--sp-m); }
.full { max-width: none; margin-inline: calc(-1 * var(--fp, 0px)); }

.flex { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); }
.flex.nowrap { flex-wrap: nowrap; }
.flex.col-dir { flex-direction: column; align-items: flex-start; }
.group.flex > * + * { margin-top: 0; }
.a-center { align-items: center; }
.a-start { align-items: flex-start; }

.stack-0 > * + * { margin-top: 0; }
.stack-15 > * + * { margin-top: 15px; }
.stack-xxs > * + * { margin-top: var(--sp-xxs); }
.stack-xs > * + * { margin-top: var(--sp-xs); }
.stack-s > * + * { margin-top: var(--sp-s); }
.stack-m > * + * { margin-top: var(--sp-m); }
.stack-l > * + * { margin-top: var(--sp-l); }

.col { flex: 1 1 0; }
.col.w-30 { flex: 0 1 30%; }
.cols.v-top { align-items: flex-start; }
.self-top { align-self: flex-start; }
.self-center { align-self: center; }
.self-stretch { align-self: stretch; }
.gap-0 { gap: 0; }
.gap-def { gap: var(--gap); }
.gap-xxs { gap: var(--sp-xxs); }
.gap-xs { gap: var(--sp-xs); }
.gap-s { gap: var(--sp-s); }
.rgap-l { row-gap: var(--sp-l); }
.rgap-xl { row-gap: var(--sp-xl); }

.fig.center img { margin-inline: auto; }
.fig img[class*="ar-"], .fig img.cover { width: 100%; }
.ar-1 { aspect-ratio: 1; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-16-9 { aspect-ratio: 16 / 9; }
.cover { object-fit: cover; }
.r8 { border-radius: 8px; }

.buttons.left { justify-content: flex-start; }
.buttons.right { justify-content: flex-end; }
.btn--wp { font-size: var(--fs-small); padding: calc(.667em + 2px) calc(1.333em + 2px); }
.btn--xs { padding: var(--sp-xs); }
.btn.w-75 { width: calc(75% - var(--gap) * .25); }
.read-more { display: inline-block; color: inherit; text-decoration: none; }

.list { list-style: disc; padding-left: 40px; }
.disclosure summary { cursor: pointer; }
.disclosure > * + * { margin-top: var(--gap); }
.bg-cream { background: var(--cream); }
.border-cream { border: 1px solid var(--cream); }
.border-stone { border: 1px solid var(--stone); }
.bg-black { background: var(--black); color: var(--white); }
.c-slate { color: var(--slate); }
.c-white { color: var(--white); }
.rule { border-left: 4px solid var(--slate); }
.rule-xxs { padding-left: var(--sp-xxs); }
.rule-xs { padding-left: var(--sp-xs); }
.rule-s { padding-left: var(--sp-s); }
.group a:not(.btn):not(.read-more):hover { text-decoration: underline; }

/* Galleries: three across (two on phones); a short last row fills the width */
.gallery { display: flex; flex-wrap: wrap; gap: var(--sp-xxs); }
.gallery figure { flex-grow: 1; width: calc(33.333% - var(--sp-xxs) * .66667); display: flex; }
.gallery img { width: 100%; height: 100%; object-fit: cover; flex: 1 0 0%; }
@media (max-width: 599px) { .gallery figure { width: calc(50% - var(--sp-xxs) / 2); } }

/* Featured project list (Past Projects) */
.post-list { display: flex; flex-direction: column; gap: var(--sp-m); }
.post-card .fig { flex: 1 1 0; min-width: 40%; }
.post-card .fig + .group { flex: 0 1 auto; }
.post-card .fig img { height: 300px; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card .read-more { color: var(--white); font-size: var(--fs-body); line-height: inherit; }
@media (max-width: 750px) { .post-card > .flex { flex-wrap: wrap; } .post-card .fig { flex-basis: 100%; } }

/* Blog: post page and list */
.post-date { font-size: var(--fs-xsmall); font-weight: 600; color: var(--slate); }
.post__title { margin-bottom: 1rem; }
.post__image { margin-top: -1.5rem; }
.post__image img { width: 100%; border-radius: 8px; object-fit: cover; }
.post__content a { color: var(--slate); text-decoration: underline; }
.blog-index { padding-bottom: calc(var(--sp-m) * 2); }
.post-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.post-tile { margin-bottom: 30px; }
.post-tile__image { display: block; margin-bottom: 20px; }
.post-tile__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.post-tile__content { display: flex; flex-direction: column; }
.post-tile__content time { display: block; margin-top: 8px; font-size: var(--fs-xsmall); color: #68737d; }
.post-tile__content a { display: block; color: var(--slate); text-decoration: none; }
.post-tile__content a:hover { text-decoration: underline; }
@media (max-width: 599px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-tile { margin-bottom: 3.525em; }
  .post-tile:last-child { margin-bottom: 0; }
  .post-tile__image { margin-bottom: 1em; }
}

/* FAQ with questions that open (blog posts) */
.faq__title { margin: .83em 0 8px; }
.faq__item { padding: 16px 0; border-bottom: 1px solid rgba(140, 140, 151, .1); }
.faq__item summary { position: relative; list-style: none; cursor: pointer; font-weight: 600; padding-right: 2em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 24px; height: 24px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq__answer { padding-top: 4px; }
.faq__answer p { margin: 16px 0; }

/* Columns stack on phones and small tablets */
@media (max-width: 781px) {
  .cols:not(.nostack) > .col, .cols:not(.nostack) > * { flex-basis: 100%; }
}

/* Quote form */
.quote-form { display: flex; flex-direction: column; gap: 30px; font-size: var(--fs-body); margin-bottom: 30px; }
.quote-form__row { display: flex; gap: 30px; }
.quote-form__row > * { flex: 1 1 0; min-width: 0; }
.quote-form__field { display: flex; flex-direction: column; }
.quote-form label { font-size: 12px; font-weight: 700; line-height: 1.7; color: #000; }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-size: 16px; color: #000; width: 100%; margin: 0; background-color: #fff; }
.quote-form input { line-height: 1.3; border: 1px solid #767676; border-radius: 2px; padding: 9px; }
.quote-form textarea { line-height: 20px; border: 1px solid #767676; border-radius: 2px; padding: 9px; height: 140px; min-height: 140px; resize: vertical; }
.quote-form select {
  height: 40px; padding: 8px 30px 8px 8px; line-height: 22px; border: 1px solid #777771;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 4l4.5 4 4.5-4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.quote-form__count { font-size: 12px; line-height: 18px; margin-top: 5px; text-align: right; }
.quote-form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.quote-form__privacy { font-size: 14px; line-height: 18px; }
.quote-form[hidden] { display: none; }
.quote-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form__submit {
  align-self: flex-start; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.45; text-transform: uppercase;
  background: var(--amber); color: #000; border: 0; border-radius: 2px; padding: 10px; cursor: pointer;
}
.quote-form__submit:hover { background: var(--slate-hover); color: #fff; }
.quote-form__thanks { padding: 20px; background: var(--cream); border-left: 4px solid var(--slate); }
@media (max-width: 782px) {
  .quote-form { gap: 20px; }
  .quote-form__row { flex-direction: column; gap: 20px; }
  .quote-form__submit { align-self: stretch; margin-bottom: 10px; }
  .quote-form__actions { flex-direction: column; align-items: stretch; gap: 0; }
}

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-29 { margin-top: 29px; }
.mb-60 { margin-bottom: 60px; }
.mt-20 { margin-top: 20px; }
.mt-48 { margin-top: 3rem; }
.mt-64 { margin-top: 4rem; }
.mt-p50 { margin-top: 1.5rem; }
.mt-m { margin-top: var(--sp-m); }
.mb-0 { margin-bottom: 0; }
.mb-m { margin-bottom: var(--sp-m); }
.mb-p40 { margin-bottom: 1rem; }
.mb-p50 { margin-bottom: 1.5rem; }
.pt-0 { padding-top: 0; }
.pt-xxs { padding-top: var(--sp-xxs); }
.pt-xs { padding-top: var(--sp-xs); }
.pt-s { padding-top: var(--sp-s); }
.pt-m { padding-top: var(--sp-m); }
.pt-l { padding-top: var(--sp-l); }
.pb-0 { padding-bottom: 0; }
.pb-xxs { padding-bottom: var(--sp-xxs); }
.pb-xs { padding-bottom: var(--sp-xs); }
.pb-s { padding-bottom: var(--sp-s); }
.pb-m { padding-bottom: var(--sp-m); }
.pb-l { padding-bottom: var(--sp-l); }
.px-0 { padding-inline: 0; }
.px-xxs { padding-inline: var(--sp-xxs); }
.px-xs { padding-inline: var(--sp-xs); }
.px-s { padding-inline: var(--sp-s); }
.px-m { padding-inline: var(--sp-m); }

/* Type */
.center { text-align: center; }
.right { text-align: right; }
.fs-tiny { font-size: var(--fs-tiny); }
.fs-xxs { font-size: var(--fs-xxsmall); }
.fs-xs { font-size: var(--fs-xsmall); }
.fs-s { font-size: var(--fs-small); }
.fs-m { font-size: var(--fs-medium); }
.fs-l { font-size: var(--fs-large); }
.fs-xl { font-size: var(--fs-xl); }
