/* ============================================================
   Feature Tiling WA - mockup stylesheet
   Implements 03-design/design-system.md exactly.
   Motif: the grout line (2px square-cut verdigris rule).
   Sharp corners everywhere (border-radius: 0). No glassmorphism,
   no ambient animation. WCAG AA. Responsive 360-1440.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Families */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Sizes (desktop, fluid clamp option) */
  --fs-display: clamp(2.5rem, 1.2rem + 6.2vw, 4.5rem);
  --fs-h1:      clamp(2rem, 1.2rem + 3.6vw, 3.25rem);
  --fs-h2:      clamp(1.625rem, 1.2rem + 1.9vw, 2.25rem);
  --fs-h3:      clamp(1.375rem, 1.15rem + 1vw, 1.625rem);
  --fs-h4: 1.25rem;
  --fs-h5: 1.0625rem;
  --fs-h6: 0.9375rem;
  --fs-lead:    clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-overline: 0.75rem;
  --fs-button: 0.9375rem;

  /* Line-heights */
  --lh-display: 1.02;
  --lh-h1: 1.06;
  --lh-h2: 1.12;
  --lh-h3: 1.18;
  --lh-h4: 1.25;
  --lh-h5: 1.3;
  --lh-h6: 1.35;
  --lh-lead: 1.5;
  --lh-body: 1.65;
  --lh-tight: 1.2;

  /* Letter-spacing */
  --ls-display: -0.02em;
  --ls-h1: -0.015em;
  --ls-h2: -0.01em;
  --ls-h3: -0.005em;
  --ls-normal: 0;
  --ls-overline: 0.18em;
  --ls-button: 0.06em;
  --ls-caps: 0.04em;

  /* Brand scale */
  --limestone:      #F4F1EA;
  --travertine:     #FBFAF6;
  --sandstone:      #E7E1D4;
  --grout:          #C9C2B4;
  --slate:          #20211E;
  --slate-soft:     #43453F;
  --stone-muted:    #6E6F66;
  --verdigris:      #2F5D55;
  --verdigris-dark: #244A43;
  --verdigris-tint: #E2EAE7;
  --copper:         #9C5B3B;
  --white:          #FFFFFF;

  /* Semantic surface + text */
  --bg:        var(--limestone);
  --surface:   var(--travertine);
  --surface-alt: var(--sandstone);
  --ink:       var(--slate);
  --ink-soft:  var(--slate-soft);
  --muted:     var(--stone-muted);
  --line:      var(--grout);
  --accent:    var(--verdigris);
  --accent-hover: var(--verdigris-dark);
  --accent-tint:  var(--verdigris-tint);
  --on-accent: var(--white);
  --on-dark:   #F4F1EA;

  /* Dark header / footer surfaces */
  --header-bg: var(--slate);
  --header-ink: #F4F1EA;
  --header-line: rgba(244, 241, 234, 0.16);

  /* Feedback (forms only) */
  --error:   #9B2C2C;
  --error-bg:#F7E9E7;
  --success: #2F5D55;

  /* Focus ring */
  --focus-ring: 3px solid var(--verdigris);
  --focus-offset: 2px;

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;   /* the grout-joint gutter */
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 7vw, 6rem);

  /* Borders + elevation (sharp only) */
  --border-hair: 1px solid var(--line);
  --border-rule: 2px solid var(--line);
  --border-ink:  2px solid var(--ink);
  --border-accent: 2px solid var(--accent);
  --radius: 0;
  --shadow-flat: none;
  --shadow-card: 0 1px 0 0 var(--line);

  /* Motion */
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* ---------- 2. Reset + base ---------- */
* { box-sizing: border-box; border-radius: 0 !important; }

html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
h1 { font-weight: var(--fw-black);    font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-weight: var(--fw-bold);     font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-weight: var(--fw-bold);     font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-weight: var(--fw-semibold); font-size: var(--fs-h4); line-height: var(--lh-h4); }
h5 { font-weight: var(--fw-semibold); font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: 0.01em; }
h6 { font-weight: var(--fw-semibold); font-size: var(--fs-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-caps); text-transform: uppercase; }

.lead  { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-soft); }
p      { margin: 0 0 1rem; max-width: 68ch; }
small, .small { font-size: var(--fs-small); line-height: 1.55; }
.xs    { font-size: var(--fs-xs); line-height: 1.45; letter-spacing: 0.01em; }
ul, ol { line-height: var(--lh-body); }

a { color: var(--accent); }

.overline {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-overline);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Inline grout-underline link */
.link-grout {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.link-grout:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--slate); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }

.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }

/* ---------- 4. Signature motif: grout line ---------- */
.setout { position: relative; padding-top: 1.5rem; }
.setout::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.grout-divider {
  border: 0;
  height: 2px;
  background:
    linear-gradient(to right, var(--accent) 0 28px, transparent 28px),
    linear-gradient(to right, var(--line) 0 100%);
  background-repeat: no-repeat;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.joint-grid {
  display: grid;
  gap: 8px;
  background: var(--bg);
}
.joint-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 5. Skip link + focus baseline ---------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 2px solid var(--accent);
  transition: min-height var(--t-base) var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 72px;
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  transition: min-height var(--t-base) var(--ease);
}
.site-header.is-condensed .site-header__inner { min-height: 58px; }
.site-header__logo { display: flex; align-items: center; height: 44px; }
.site-header__logo img { height: 40px; width: auto; display: block; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  color: var(--header-ink);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.nav__link:hover { border-bottom-color: var(--accent); }
.nav__link[aria-current="page"] { border-bottom-color: var(--accent); color: var(--white); }

/* Services dropdown */
.nav__item--has-menu { position: relative; }
.nav__menubtn {
  display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 44px; padding: 0 var(--space-4);
  background: transparent; border: 0; cursor: pointer;
  color: var(--header-ink);
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 0.9375rem; letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.nav__menubtn:hover { border-bottom-color: var(--accent); }
.nav__menubtn .chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--t-base) var(--ease); }
.nav__menubtn[aria-expanded="true"] .chev { transform: rotate(-135deg) translateY(-1px); }

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: var(--slate);
  border: 2px solid var(--accent);
  border-top: 0;
  display: none;
  padding: var(--space-2) 0;
  z-index: 110;
}
.nav__item--has-menu:hover .nav__submenu,
.nav__submenu[data-open="true"] { display: block; }
.nav__submenu a {
  display: block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 var(--space-5);
  color: var(--header-ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-family: var(--font-body);
}
.nav__submenu a:hover { background: var(--verdigris-dark); }

/* Header phone + CTA */
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-phone {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--header-ink); text-decoration: none; font-weight: var(--fw-semibold);
  padding-inline: var(--space-3);
  transition: color var(--t-base) var(--ease);
}
.header-phone:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* Mobile toggle + call */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent;
  border: 2px solid var(--header-line);
  color: var(--header-ink);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--header-ink);
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

.header-call-mobile {
  display: none;
  width: 48px; height: 48px;
  border: 2px solid var(--header-line);
  color: var(--header-ink);
  align-items: center; justify-content: center;
  text-decoration: none;
}
.header-call-mobile svg { width: 22px; height: 22px; fill: currentColor; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 72px 0 0 0;
  background: var(--slate);
  color: var(--header-ink);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
  padding: var(--space-5) var(--gutter) var(--space-9);
  z-index: 99;
  visibility: hidden;
}
.mobile-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  display: block; min-height: 52px; line-height: 52px;
  border-bottom: 1px solid var(--header-line);
  color: var(--header-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.125rem;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .mobile-sub a {
  font-size: 1rem; min-height: 48px; line-height: 48px; padding-left: var(--space-5);
  font-family: var(--font-body); font-weight: var(--fw-regular); color: var(--on-dark);
}
.mobile-nav__actions { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.mobile-nav__actions .btn { width: 100%; }

@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .nav-toggle, .header-call-mobile { display: inline-flex; }
}

/* Sticky mobile action bar */
.mobile-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--accent);
  background: var(--slate);
}
.mobile-actionbar a {
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  color: var(--header-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-button); text-transform: uppercase; font-size: 0.875rem;
}
.mobile-actionbar a + a { border-left: 2px solid var(--accent); background: var(--verdigris); }
@media (max-width: 768px) { .mobile-actionbar { display: grid; } body { padding-bottom: 52px; } }

/* ---------- 7. Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--btn-h); padding: 0 var(--space-6);
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-button); letter-spacing: var(--ls-button);
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; background: none;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--on-dark); }

.btn--ghost-on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn--ghost-on-dark:hover { background: var(--on-dark); color: var(--slate); }

.btn--tertiary {
  min-height: 44px; padding: 0; color: var(--accent);
  border-bottom: 2px solid var(--accent); text-transform: none; letter-spacing: 0;
  font-size: var(--fs-body);
}
.btn--tertiary:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.btn--block { width: 100%; }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

@media (max-width: 480px) {
  .btn:not(.btn--tertiary) { width: 100%; }
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; background: var(--slate); }
.hero__img {
  display: block; width: 100%; height: clamp(380px, 56vh, 640px);
  object-fit: cover; filter: brightness(0.6);
}
.hero__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--on-dark);
  padding-block: var(--space-7);
}
.hero__panel .display { color: var(--white); max-width: 18ch; }
.hero__sub { color: var(--on-dark); max-width: 54ch; margin-top: var(--space-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero__meta {
  margin-top: var(--space-6); font-size: var(--fs-small);
  color: var(--on-dark); letter-spacing: 0.01em;
  border-left: 2px solid var(--accent); padding-left: var(--space-4);
  max-width: max-content;
}
@media (max-width: 480px) {
  .hero__img { height: clamp(320px, 64vh, 460px); }
  .hero__cta .btn { width: 100%; }
}

/* Compact page hero (interior pages) */
.page-hero { background: var(--slate); color: var(--on-dark); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { color: var(--white); }
.page-hero .overline { color: var(--copper); }
.page-hero p { color: var(--on-dark); max-width: 60ch; }
.page-hero .btn { margin-top: var(--space-5); }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-xs); letter-spacing: 0.02em; margin-bottom: var(--space-5); color: var(--on-dark); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5ch; margin: 0; padding: 0; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--copper); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5ch; color: var(--muted); }

/* ---------- 9. Section heads + dividers ---------- */
.section-head { max-width: var(--container-narrow); margin-bottom: var(--space-7); }
.section-head .overline { color: var(--accent); }
.section--dark .section-head .overline { color: var(--copper); }
.section-head h2 { margin: 0 0 var(--space-3); }
.section-head p { color: var(--ink-soft); margin: 0; }
.section--dark .section-head p { color: var(--on-dark); }

.course-band {
  background: var(--slate); color: var(--on-dark);
  padding: var(--space-4) 0; border-block: 2px solid var(--accent);
}
.course-band .container { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.course-band .label { font-family: var(--font-display); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--ls-overline); font-size: var(--fs-overline); color: var(--copper); }
.course-band p { margin: 0; color: var(--on-dark); }

/* ---------- 10. Intro / split blocks ---------- */
.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-2);
  align-items: stretch;
}
.split__text { padding-right: clamp(0px, 3vw, var(--space-7)); }
.split__media { position: relative; min-height: 320px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__text { padding-right: 0; }
  .split__media { min-height: 260px; }
}

/* ---------- 11. Service cards ---------- */
.cards-grid {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1080px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cards-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: var(--border-rule);
  border-top: 4px solid var(--accent);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  height: 100%;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.service-card:hover { border-color: var(--accent); background: var(--white); }
.service-card h3 { margin: 0; }
.service-card p { color: var(--ink-soft); margin: 0; }
.service-card ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.service-card ul li { margin-bottom: 0.3em; }
.service-card .btn--tertiary { margin-top: auto; align-self: flex-start; }

/* Numbered why-strip */
.why-grid {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1080px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--surface); border: var(--border-rule);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3);
  height: 100%;
}
.why-card__num {
  font-family: var(--font-display); font-weight: var(--fw-black); font-size: 1.5rem;
  color: var(--accent); line-height: 1;
  border-left: 4px solid var(--accent); padding-left: var(--space-3);
}
.why-card h3 { margin: 0; font-size: var(--fs-h4); }
.why-card p { margin: 0; color: var(--ink-soft); font-size: var(--fs-small); }

/* ---------- 12. Category cards ---------- */
.category-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  position: relative; display: block; min-height: 340px;
  color: var(--white); text-decoration: none; overflow: hidden;
  border: 2px solid var(--ink);
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(32,33,30,0.86) 0%, rgba(32,33,30,0.20) 55%, rgba(32,33,30,0) 100%);
  transition: background var(--t-base) var(--ease);
}
.category-card__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.category-card__label h3 { color: var(--white); margin: 0; }
.category-card__label .meta { font-size: var(--fs-small); color: var(--on-dark); }
.category-card__label .more {
  font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: var(--ls-button); font-size: 0.8125rem; color: var(--white);
  border-bottom: 2px solid var(--accent); align-self: flex-start; padding-bottom: 2px;
}
.category-card:hover .category-card__scrim { background: linear-gradient(to top, rgba(36,74,67,0.90) 0%, rgba(32,33,30,0.30) 60%, rgba(32,33,30,0) 100%); }
.category-card:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* ---------- 13. Case-study cards ---------- */
.cases-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card { background: var(--slate); color: var(--on-dark); display: flex; flex-direction: column; }
.case-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-slow) var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.03); }
.case-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.case-card__client { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h4); color: var(--white); margin: 0; }
.case-card__meta { font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--copper); }
.case-card__desc { color: var(--on-dark); font-size: var(--fs-small); margin: 0; }
.case-card__link {
  margin-top: auto; align-self: flex-start;
  font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: var(--ls-button); font-size: 0.8125rem; color: var(--white); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding: var(--space-2) 0 2px;
  transition: color var(--t-base) var(--ease);
}
.case-card__link:hover { color: var(--copper); }

/* Detailed case study (Projects page) */
.case-study { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); align-items: stretch; }
.case-study:nth-child(even) .case-study__media { order: 2; }
.case-study__media { position: relative; min-height: 340px; overflow: hidden; }
.case-study__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-study__body { background: var(--surface); border: var(--border-rule); padding: var(--space-7); display: flex; flex-direction: column; justify-content: center; }
.case-study__body .meta { font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--copper); margin-bottom: var(--space-2); }
@media (max-width: 860px) {
  .case-study { grid-template-columns: 1fr; }
  .case-study:nth-child(even) .case-study__media { order: 0; }
  .case-study__media { min-height: 260px; }
  .case-study__body { padding: var(--space-6); }
}

/* ---------- 14. Testimonials ---------- */
.quotes-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .quotes-grid { grid-template-columns: 1fr; } }

.quote-card {
  background: var(--surface);
  border: var(--border-rule);
  border-left: 4px solid var(--accent);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
  height: 100%;
}
.quote-card__mark {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: 2.5rem; line-height: 1; color: var(--accent); height: 1.4rem; overflow: hidden;
}
.quote-card blockquote { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.quote-card cite {
  margin-top: auto; font-style: normal;
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--line); padding-top: var(--space-4);
}
.quote-card__name { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--ink); }
.quote-card__job  { font-size: var(--fs-small); color: var(--muted); }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--slate); color: var(--on-dark); border-top: 4px solid var(--accent); }
.site-footer__grid {
  display: grid; gap: var(--space-7);
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  padding-block: var(--space-9) var(--space-7);
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.site-footer h4 {
  color: var(--white); font-size: var(--fs-h6); text-transform: uppercase;
  letter-spacing: var(--ls-caps); margin-bottom: var(--space-4);
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer li a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-brand p { color: var(--on-dark); max-width: 30ch; }
.footer-logo { height: 38px; margin-bottom: var(--space-4); display: block; }
.footer-contact-line { display: block; color: var(--on-dark); margin-bottom: var(--space-2); }
.footer-quote .btn { margin-top: var(--space-4); }
.site-footer__bar {
  border-top: 1px solid var(--header-line);
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  padding-block: var(--space-4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  font-size: var(--fs-xs); color: var(--muted);
}
.site-footer__bar a { color: var(--muted); }
.site-footer__bar nav { display: flex; gap: var(--space-4); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- 16. Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-2); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.quote-form { background: var(--surface); border: var(--border-rule); border-top: 4px solid var(--accent); padding: clamp(var(--space-5), 4vw, var(--space-7)); }
.contact-aside { background: var(--slate); color: var(--on-dark); padding: clamp(var(--space-5), 4vw, var(--space-7)); }
.contact-aside h2, .contact-aside h3 { color: var(--white); }
.contact-aside a { color: var(--on-dark); }
.contact-aside .link-grout { color: #BFE0D8; border-color: var(--accent); }
.contact-aside .link-grout:hover { color: var(--white); }
.contact-block { margin-bottom: var(--space-6); }
.contact-block h3 { font-size: var(--fs-h5); text-transform: uppercase; letter-spacing: var(--ls-caps); margin-bottom: var(--space-2); }
.contact-block a, .contact-block p { font-size: var(--fs-body); margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-small); color: var(--ink);
}
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink);
  background: var(--white); border: var(--border-rule);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate-soft); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.field--error .input, .field--error .textarea, .field--error .select { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-small); }
.field__error[hidden] { display: none; }

.filefield {
  border: 2px dashed var(--line); background: var(--white);
  padding: var(--space-5); text-align: center; color: var(--muted); font-size: var(--fs-small);
  cursor: pointer; display: block;
}
.filefield:hover { border-color: var(--slate-soft); }
.filefield:focus-within { border-color: var(--accent); color: var(--ink); }
.filefield input[type="file"] { display: block; width: 100%; margin-top: var(--space-2); font-size: var(--fs-small); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-4); align-items: center; }
.form-note { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-4); }

.form-success {
  border-left: 4px solid var(--success); background: var(--verdigris-tint);
  padding: var(--space-5) var(--space-6); margin-bottom: var(--space-5); color: var(--ink);
}
.form-success[hidden] { display: none; }
.form-success strong { font-family: var(--font-display); }

/* Embedded map */
.map-embed { border: var(--border-rule); width: 100%; aspect-ratio: 16 / 9; display: block; background: var(--surface-alt); }

/* ---------- 17. Gallery (joint grid) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--bg); }
.gallery figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery .span-2-col { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery .span-2-row { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(to top, rgba(32,33,30,0.82), rgba(32,33,30,0));
  color: var(--on-dark); padding: var(--space-4); font-size: var(--fs-xs);
  letter-spacing: 0.02em; opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; }
@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2-col, .gallery .span-2-row { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
}

/* ---------- 18. Content prose blocks ---------- */
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-left: 1.2em; }
.prose ul li { margin-bottom: 0.4em; }

.content-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-7); }
@media (max-width: 768px) { .content-cols { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 14px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg); transform-origin: center;
}

/* FAQ */
.faq { display: grid; gap: var(--space-2); }
.faq__item { border: var(--border-rule); border-left: 4px solid var(--accent); background: var(--surface); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: var(--space-5) var(--space-6);
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-h4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.5rem; color: var(--accent); transition: transform var(--t-base) var(--ease); }
.faq__item[open] summary::after { content: "\2013"; }
.faq__item .faq__body { padding: 0 var(--space-6) var(--space-5); }
.faq__item .faq__body p { margin: 0; color: var(--ink-soft); }

/* ---------- 19. CTA band ---------- */
.cta-band { background: var(--slate); color: var(--on-dark); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.cta-band h2 { color: var(--white); margin: 0; max-width: 20ch; }
.cta-band p { color: var(--on-dark); margin: var(--space-3) 0 0; max-width: 46ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.cta-band__actions .phone-line { color: var(--on-dark); font-size: var(--fs-small); }
.cta-band__actions .phone-line a { color: #BFE0D8; text-decoration: none; border-bottom: 2px solid var(--accent); }
.cta-band__actions .phone-line a:hover { color: var(--white); }

/* ---------- 20. Misc ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.tag {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em;
  border: 2px solid var(--line); color: var(--ink-soft); padding: 0.4em 0.8em; background: var(--surface);
}

.anchor-offset { scroll-margin-top: 90px; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 21. Accessibility, motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .case-card:hover .case-card__media img,
  .gallery figure:hover img { transform: none; }
  .btn:active { transform: none; }
}

@media (forced-colors: active) {
  .btn, .service-card, .quote-card, .input, .why-card, .case-study__body { border: 2px solid; }
  :focus-visible { outline: 2px solid; }
}

@media print {
  .site-header, .mobile-nav, .nav-toggle, .mobile-actionbar, .hero__cta,
  .site-footer__bar, .filefield, .cta-band__actions { display: none !important; }
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .hero__img { filter: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
  .container { max-width: none; }
}
