/* ==========================================================================
   Slim Line Windows & Doors — site.css
   Design system + components. Single stylesheet, no build step.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Architectural green — client brand direction */
  --green-900: #0F1C17;
  --green-800: #1A2E26;
  --green-700: #234034;
  --green-600: #2F5344;
  --sage-500:  #7E9585;
  --sage-300:  #A9BCAD;
  --sage-100:  #DDE4DA;

  /* Metallic accent — small markers and rules only, never body text.
     Too low-contrast for a filled button; primary CTAs stay deep green. */
  --accent-700: #8A6A22;
  --accent-600: #A8842F;
  --accent-500: #C6A054;

  /* Neutrals — warm gray */
  --paper:     #FFFFFF;
  --bone:      #F7F5F0;
  --bone-dark: #EFECE4;
  --graphite:  #2B2E2D;
  --gray-600:  #5A605D;
  --gray-400:  #8B908D;
  --gray-300:  #D8D5CD;

  --ink:       var(--graphite);
  --rule:      rgba(43, 46, 45, 0.14);
  --rule-soft: rgba(43, 46, 45, 0.08);
  --rule-dark: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + 0.31vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.65vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.75rem + 2.4vw, 3.75rem);
  --step-5:  clamp(2.75rem, 1.9rem + 4vw, 5.25rem);

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 68ch;
  --max: 1440px;
  --max-narrow: 940px;
  --section-y: clamp(4rem, 8vw, 8.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

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

/* --- 3. Focus & skip link ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header--dark :focus-visible { outline-color: var(--sage-300); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--green-800); color: var(--bone);
  padding: 0.75rem 1.25rem; text-decoration: none; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* --- 4. Typography helpers ---------------------------------------------- */
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green-600);
  margin: 0 0 1.25rem;
  display: block;
}
.on-dark .eyebrow { color: var(--sage-300); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.d1 { font-size: var(--step-5); }
.d2 { font-size: var(--step-4); }
.d3 { font-size: var(--step-3); }
.d4 { font-size: var(--step-2); }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--gray-600); max-width: 56ch; }
.on-dark .lead { color: var(--sage-100); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 0; }
.muted { color: var(--gray-600); }
.on-dark .muted { color: var(--sage-300); }
.small { font-size: var(--step--1); }

/* --- 5. Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--bone { background: var(--bone); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--green-800); color: var(--bone); }
.section--dark h2, .section--dark h3 { color: var(--bone); }
.section-rule { border-top: 1px solid var(--rule); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
@media (min-width: 900px) { .split--40 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.split--flip > :first-child { order: 0; }
@media (min-width: 900px) { .split--flip > :first-child { order: 2; } }

/* --- 6. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  background: var(--green-800); color: var(--bone);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--green-600); }
/* Brass-outlined CTA — use sparingly, where a solid green button would read heavy */
.btn--brass { background: transparent; color: var(--accent-700); border-color: var(--accent-600); }
.btn--brass:hover { background: var(--accent-600); color: #fff; border-color: var(--accent-600); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.on-dark .btn--ghost, .btn--ghost-light { background: transparent; color: var(--bone); border-color: var(--rule-dark); }
.on-dark .btn--ghost:hover, .btn--ghost-light:hover { background: rgba(255,255,255,0.08); color: var(--bone); border-color: rgba(255,255,255,0.4); }
.btn--light { background: var(--bone); color: var(--green-800); }
.btn--light:hover { background: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; font-size: var(--step--1);
  letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500;
  color: var(--green-700); padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--rule);
  transition: gap var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-arrow::after { content: "\2192"; font-size: 1em; }
.link-arrow:hover { gap: 0.95rem; border-bottom-color: var(--green-700); }
.on-dark .link-arrow { color: var(--sage-300); border-bottom-color: var(--rule-dark); }
.on-dark .link-arrow:hover { border-bottom-color: var(--sage-300); }

/* --- 7. Image placeholder system ---------------------------------------- */
/* Replace .ph blocks with real <img>/<picture>. Aspect ratios are the
   recommended crop for the photography that goes in each slot. */
.ph {
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--green-700) 0%, var(--green-900) 58%, #0E1714 100%);
  color: var(--sage-100);
  isolation: isolate;
}
.ph::before {
  /* mullion grid — echoes the product, keeps the slot from reading as an error */
  content: "";
  position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255,255,255,0.11) 118px 119px),
    repeating-linear-gradient(0deg, transparent 0 118px, rgba(255,255,255,0.07) 118px 119px);
  transform: skewY(-4deg);
  z-index: -1;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 78% 12%, rgba(169,188,173,0.24), transparent 62%);
  z-index: -1;
}
.ph__label {
  font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.7rem 0.95rem; margin: 1rem;
  background: rgba(19,31,26,0.62);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  line-height: 1.35;
  max-width: 82%;
}
.ph--light { background: linear-gradient(150deg, var(--sage-300) 0%, var(--sage-100) 55%, var(--bone-dark) 100%); color: var(--green-900); }
.ph--light::before { background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(19,31,26,0.14) 118px 119px),
    repeating-linear-gradient(0deg, transparent 0 118px, rgba(19,31,26,0.09) 118px 119px); }
.ph--light .ph__label { background: rgba(247,245,240,0.72); border-color: rgba(19,31,26,0.18); }
.ph--graphite { background: linear-gradient(150deg, #4A4F4D 0%, var(--graphite) 60%, #14100E 100%); }

/* Slot filled with a real photograph. Keeps the same aspect-ratio box, so
   layout, hover transforms and the lightbox all behave identically. */
.ph--img { background: var(--green-900); }
.ph--img::before, .ph--img::after { display: none; }
.ph--img .ph__label { display: none; }
.ph--img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* very slight desaturation keeps mixed stock photography from fighting
     the green palette — remove once client photography is graded */
  filter: saturate(0.92) contrast(1.02);
}

.r-wide  { aspect-ratio: 16 / 9; }
.r-hero  { aspect-ratio: 16 / 9; }
.r-4x3   { aspect-ratio: 4 / 3; }
.r-3x2   { aspect-ratio: 3 / 2; }
.r-sq    { aspect-ratio: 1 / 1; }
.r-tall  { aspect-ratio: 3 / 4; }
.r-pano  { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .r-pano { aspect-ratio: 3 / 2; } .r-hero { aspect-ratio: 4 / 3; } }

/* --- 8. Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 30px; height: 30px; flex-shrink: 0;
  border: 1.5px solid var(--green-700);
  position: relative;
}
.brand__mark::before, .brand__mark::after {
  content: ""; position: absolute; background: var(--green-700);
}
.brand__mark::before { left: 50%; top: 3px; bottom: 3px; width: 1.5px; transform: translateX(-50%); }
.brand__mark::after { top: 50%; left: 3px; right: 3px; height: 1.5px; transform: translateY(-50%); }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; color: var(--green-800); }
.brand__sub { font-size: 0.5625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gray-600); }

.nav { display: none; }
@media (min-width: 1080px) { .nav { display: flex; align-items: center; gap: 0.35rem; } }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.9rem; text-decoration: none;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  color: var(--graphite); background: none; border: 0; cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--green-600); }
.nav__link[aria-current="page"] { color: var(--green-700); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 1px; background: var(--green-600);
}
.nav__caret { width: 8px; height: 8px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur) var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(-135deg) translate(-3px, -3px); }

.nav__panel {
  position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 260px;
  background: var(--paper); border: 1px solid var(--rule-soft);
  box-shadow: 0 24px 60px -30px rgba(19,31,26,0.45);
  padding: 0.5rem; display: none;
}
.nav__panel[data-open="true"] { display: block; }
.nav__panel a {
  display: block; padding: 0.7rem 0.9rem; text-decoration: none;
  font-size: 0.875rem; color: var(--graphite);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__panel a:hover { background: var(--bone); color: var(--green-700); }

.header__cta { display: none; }
@media (min-width: 1080px) { .header__cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 8px; background: none; border: 0; cursor: pointer;
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; height: 1.5px; background: var(--graphite); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--rule-soft);
  background: var(--bone); max-height: calc(100dvh - 78px); overflow-y: auto;
}
.mobile-nav[data-open="true"] { display: block; }
@media (min-width: 1080px) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; }
.mobile-nav > .wrap > ul > li { border-bottom: 1px solid var(--rule-soft); }
.mobile-nav a, .mobile-nav .m-group__btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 1.05rem 0; text-decoration: none; background: none; border: 0; text-align: left;
  font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); cursor: pointer;
}
.m-group__list { display: none; padding: 0 0 0.75rem 1rem; border-left: 1px solid var(--rule); margin-bottom: 0.75rem; }
.m-group__list[data-open="true"] { display: block; }
.m-group__list a { padding: 0.6rem 0; text-transform: none; letter-spacing: 0; color: var(--gray-600); font-size: 1rem; }
.mobile-nav .btn { width: 100%; justify-content: center; margin: 1.25rem 0 2rem; }

/* --- 9. Hero ------------------------------------------------------------- */
.hero--compact 
.breadcrumb { position: relative; z-index: 2; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 1.6rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; opacity: 0.5; }
.breadcrumb a { text-decoration: none; color: var(--sage-300); }
.breadcrumb a:hover { color: var(--bone); }
.breadcrumb [aria-current="page"] { color: var(--sage-100); opacity: 0.75; }

/* --- 10. Cards ----------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule-soft);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: var(--sage-300); transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(19,31,26,0.5); }
.card__body { padding: clamp(1.35rem, 2.2vw, 1.9rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__kicker { font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-400); }
.card__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.12; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--gray-600); font-size: 0.9375rem; }
.card__foot { margin-top: auto; padding-top: 0.5rem; }
.card__foot .link-arrow { border-bottom: 0; padding-bottom: 0; }
.card .ph { transition: transform 0.8s var(--ease); }
.card:hover .ph { transform: scale(1.02); }
.card__media { overflow: hidden; }

.card--flat { background: transparent; border: 0; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--flat .card__body { padding: 1.25rem 0 0; }

/* Audience cards */
.audience {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: var(--paper); border: 1px solid var(--rule-soft);
  position: relative;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.audience:hover { background: var(--green-800); border-color: var(--green-800); color: var(--bone); }
.audience:hover .audience__text, .audience:hover .card__kicker { color: var(--sage-100); }
.audience:hover .link-arrow { color: var(--sage-300); }
.audience__title { font-family: var(--font-display); font-size: var(--step-2); }
.audience__title a { text-decoration: none; }
.audience__title a::after { content: ""; position: absolute; inset: 0; }
.audience__text { color: var(--gray-600); font-size: 0.9375rem; }

/* Feature / value blocks */
.feature { display: grid; gap: 0.85rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.section--dark .feature { border-top-color: var(--rule-dark); }
.feature__num { font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--sage-500); }
.section--dark .feature__num { color: var(--sage-300); }
.feature__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.feature__text { color: var(--gray-600); font-size: 0.9375rem; }
.section--dark .feature__text { color: var(--sage-100); }

/* Process steps */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 4vw, 4rem); } }
@media (min-width: 1100px) { .steps--6 { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  display: grid; gap: 0.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--rule);
}
.section--dark .step { border-top-color: var(--rule-dark); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--sage-500);
}
.step__title { font-family: var(--font-display); font-size: var(--step-1); }
.step__text { font-size: 0.9375rem; color: var(--gray-600); }
.section--dark .step__text { color: var(--sage-100); }

/* --- 11. Spec table ------------------------------------------------------ */
.spec { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9375rem; }
.spec caption { text-align: left; font-size: var(--step--1); color: var(--gray-600); padding-bottom: 1rem; }
.spec th, .spec td { padding: 1.05rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th {
  font-weight: 500; width: 38%; color: var(--graphite);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.spec tbody tr:hover { background: var(--bone); }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border: 1px solid var(--rule); color: var(--gray-600);
  white-space: nowrap;
}
.tag--pending { border-color: rgba(160,120,40,0.4); color: #7A5A15; background: rgba(214,178,88,0.12); }
.tag--verify { border-color: rgba(160,120,40,0.4); color: #7A5A15; background: rgba(214,178,88,0.12); }
.tag--ok { border-color: var(--sage-300); color: var(--green-700); background: rgba(169,188,173,0.18); }

.notice {
  display: flex; gap: 1rem; padding: 1.15rem 1.35rem;
  border-left: 2px solid var(--sage-500); background: var(--paper);
  font-size: 0.9375rem; color: var(--gray-600);
}
.section--dark .notice { background: rgba(255,255,255,0.05); color: var(--sage-100); border-left-color: var(--sage-300); }

/* --- 12. Lists ----------------------------------------------------------- */
.ticks { list-style: none; display: grid; gap: 0.85rem; }
.ticks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.85rem; align-items: start; font-size: 0.9375rem; }
.ticks li::before {
  content: ""; width: 9px; height: 9px; margin-top: 0.5rem;
  border-left: 1px solid var(--sage-500); border-bottom: 1px solid var(--sage-500);
  transform: rotate(-45deg) translate(1px, -1px);
}
.section--dark .ticks li::before { border-color: var(--sage-300); }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-list li {
  font-size: 0.8125rem; padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule); color: var(--gray-600); background: var(--paper);
}
.section--dark .pill-list li { border-color: var(--rule-dark); color: var(--sage-100); background: transparent; }

.def-list { display: grid; gap: 0; }
.def-list > div { display: grid; gap: 0.25rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 620px) { .def-list > div { grid-template-columns: 34% 1fr; gap: 1.5rem; align-items: baseline; } }
.def-list dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-600); }
.def-list dd { margin: 0; }

/* --- 13. Gallery + lightbox --------------------------------------------- */
.gallery { display: grid; gap: clamp(0.75rem, 1.4vw, 1.1rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  position: relative; padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; display: block; width: 100%;
}
.gallery__item .ph { transition: transform 0.8s var(--ease); }
.gallery__item:hover .ph { transform: scale(1.03); }
.gallery__item--wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; border: 0; padding: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: rgba(11,18,15,0.95); color: var(--bone);
}
.lightbox::backdrop { background: rgba(11,18,15,0.95); }
.lightbox__inner { display: grid; place-items: center; height: 100%; padding: clamp(1rem, 5vw, 4rem); }
.lightbox__figure { width: min(1100px, 100%); }
.lightbox__figure .ph { aspect-ratio: 3 / 2; }
.lightbox__caption { font-size: var(--step--1); color: var(--sage-100); padding-top: 1rem; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 1px solid var(--rule-dark); color: var(--bone);
  width: 46px; height: 46px; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,0.1); }
.lightbox__nav { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.lightbox__nav button {
  background: none; border: 1px solid var(--rule-dark); color: var(--bone);
  padding: 0.6rem 1.2rem; cursor: pointer; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.lightbox__nav button:hover { background: rgba(255,255,255,0.1); }

/* --- 14. Filters --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filters__btn {
  background: none; border: 1px solid var(--rule); cursor: pointer;
  padding: 0.6rem 1.15rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-600);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filters__btn:hover { border-color: var(--green-700); color: var(--green-700); }
.filters__btn[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: var(--bone); }
[data-filtered="hidden"] { display: none; }

/* --- 15. Downloads ------------------------------------------------------- */
.dl {
  display: grid; gap: 0.75rem;
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  background: var(--paper); border: 1px solid var(--rule-soft);
}
.dl__top { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.dl__title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.dl__meta { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); }
.dl__text { font-size: 0.9375rem; color: var(--gray-600); }
.dl__action { margin-top: 0.35rem; }
.dl__disabled {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400);
}

/* --- 16. CTA band -------------------------------------------------------- */
@media (min-width: 900px) {
  }

/* --- 17. Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-600); }
.field .req { color: var(--green-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 0;
  font-size: 1rem; color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(126,149,133,0.15); outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray-600) 50%), linear-gradient(135deg, var(--gray-600) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.75rem; }
.field__hint { font-size: 0.8125rem; color: var(--gray-400); }
.field__error { font-size: 0.8125rem; color: #8C2F16; display: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #8C2F16; }
.field[data-invalid="true"] .field__error { display: block; }
.field--file input[type="file"] { padding: 0.75rem; background: var(--paper); font-size: 0.875rem; }
.form__consent { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; font-size: 0.875rem; color: var(--gray-600); }
.form__consent input { width: 18px; height: 18px; margin-top: 0.2rem; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: 1.1rem 1.35rem; border-left: 2px solid var(--sage-500); background: var(--paper); font-size: 0.9375rem; }
.form__status[data-state="shown"] { display: block; }

.contact-card { display: grid; gap: 1.5rem; padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--green-800); color: var(--bone); }
.contact-card a { color: var(--sage-100); }

/* --- 18. Footer ---------------------------------------------------------- */
.site-footer { background: var(--green-900); color: var(--sage-100); }
.site-footer a { text-decoration: none; color: var(--sage-100); transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--paper); }
.footer__top { display: grid; gap: 2.75rem; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; } }
.footer__brand .brand__name { color: var(--bone); }
.footer__brand .brand__sub { color: var(--sage-500); }
.footer__brand .brand__mark { border-color: var(--sage-500); }
.footer__brand .brand__mark::before, .footer__brand .brand__mark::after { background: var(--sage-500); }
.footer__blurb { font-size: 0.9375rem; max-width: 40ch; margin-top: 1.5rem; color: var(--sage-300); }
.footer__col h3 { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-500); margin-bottom: 1.25rem; }
.footer__col ul { list-style: none; display: grid; gap: 0.7rem; font-size: 0.9375rem; }
.footer__contact { display: grid; gap: 0.55rem; font-size: 0.9375rem; margin-top: 1.75rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  padding-block: 1.75rem; border-top: 1px solid var(--rule-dark);
  font-size: 0.8125rem; color: var(--sage-500);
}
.footer__social { display: flex; gap: 1.25rem; list-style: none; }

/* --- 19. Misc ------------------------------------------------------------ */
.stat-row { display: grid; gap: 2rem; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat__label { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 0.5rem; }
.stat__value { font-family: var(--font-display); font-size: var(--step-2); }

.area-list { display: grid; gap: 0; }
.area { display: grid; gap: 0.85rem; padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--rule); }
@media (min-width: 860px) { .area { grid-template-columns: 30% 1fr; gap: clamp(2rem, 5vw, 4rem); } }
.area__name { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; }
.area__text { color: var(--gray-600); max-width: 62ch; }

.faq-group { display: grid; gap: 0; }
.faq {
  border-top: 1px solid var(--rule);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 1px solid var(--gray-600); border-bottom: 1px solid var(--gray-600);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--dur) var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__answer { padding-bottom: 1.6rem; color: var(--gray-600); max-width: var(--measure); }
.faq__answer > * + * { margin-top: 0.85rem; }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding-block: 1.15rem; border-bottom: 1px solid var(--rule); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.anchor-nav a { text-decoration: none; color: var(--gray-600); }
.anchor-nav a:hover { color: var(--green-700); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.error-page { display: grid; place-items: center; min-height: 62vh; text-align: center; }

/* ==========================================================================
   20. Homepage modules
   Full-bleed carousel, centred intro, mosaic portfolio, colour band with
   icon tiles, testimonial carousel. Homepage only — inner pages use the
   standard section components above.
   ========================================================================== */

/* --- Hero carousel ------------------------------------------------------- */
.hero-carousel { position: relative; background: var(--green-900); overflow: hidden; }
.hero-carousel__viewport { position: relative; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.hero-slide[data-active="true"] { position: relative; opacity: 1; visibility: visible; }
.hero-slide__media { position: absolute; inset: 0; }
.hero-slide__media .ph { width: 100%; height: 100%; aspect-ratio: auto; }
.hero-slide__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(19,31,26,0.72) 0%, rgba(19,31,26,0.42) 42%, rgba(19,31,26,0.1) 78%);
}
.hero-slide__inner {
  position: relative; z-index: 2;
  min-height: clamp(430px, 62vh, 660px);
  display: flex; align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-slide__card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  max-width: 30rem;
  border-left: 3px solid var(--accent-600);
  box-shadow: 0 30px 70px -40px rgba(19,31,26,0.7);
}
.hero-slide__card h1, .hero-slide__card h2 {
  font-family: var(--font-display); font-size: var(--step-3);
  line-height: 1.08; color: var(--green-900); margin-bottom: 0.9rem;
}
.hero-slide__card p { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 1.35rem; }

.carousel-controls {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 4;
  display: flex; align-items: center; gap: 0.5rem;
  color: #fff; font-size: 0.75rem; letter-spacing: 0.12em;
}
.carousel-controls__count { min-width: 3.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.carousel-controls button {
  width: 40px; height: 40px; cursor: pointer;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; display: grid; place-items: center;
  transition: background var(--dur) var(--ease);
}
.carousel-controls button:hover { background: rgba(255,255,255,0.24); }
.carousel-controls--dark { color: var(--gray-600); }
.carousel-controls--dark button { background: transparent; border-color: var(--rule); color: var(--graphite); }
.carousel-controls--dark button:hover { background: var(--bone); }
.chev { width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.chev--left { transform: rotate(-135deg) translate(-1px, -1px); }
.chev--right { transform: rotate(45deg) translate(-1px, -1px); }

/* --- Centred intro ------------------------------------------------------- */
.intro-center { text-align: center; }
.intro-center .ornament { margin: 0 auto 1.75rem; display: block; color: var(--green-600); }
.intro-center h2 { max-width: 20ch; margin-inline: auto; }
.intro-center p { max-width: 60ch; margin-inline: auto; color: var(--gray-600); margin-top: 1.5rem; }
.intro-center .link-arrow { margin-top: 2rem; }
.section--tint {
  background:
    radial-gradient(circle at 1px 1px, rgba(126,149,133,0.16) 1px, transparent 0) 0 0 / 22px 22px,
    var(--bone);
}

/* --- Explore (audience photo cards) -------------------------------------- */
.explore { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .explore { grid-template-columns: repeat(4, 1fr); } }
.explore__item { position: relative; text-decoration: none; display: block; }
.explore__item .ph { overflow: hidden; }
.explore__item .ph img { transition: transform 0.8s var(--ease); }
.explore__item:hover .ph img { transform: scale(1.04); }
.explore__label {
  display: flex; align-items: center; gap: 0.5rem;
  padding-top: 0.9rem; font-size: 0.9375rem; color: var(--graphite);
}
.explore__label::after {
  content: "\2192"; color: var(--accent-700); opacity: 0;
  transform: translateX(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.explore__item:hover .explore__label::after { opacity: 1; transform: translateX(0); }

/* --- Mosaic portfolio ---------------------------------------------------- */
.mosaic { display: grid; gap: clamp(0.75rem, 1.4vw, 1.15rem); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, auto); }
  .mosaic__tile--a { grid-column: 1 / 7; grid-row: 1 / 3; }
  .mosaic__tile--b { grid-column: 7 / 10; grid-row: 1; }
  .mosaic__tile--c { grid-column: 10 / 13; grid-row: 1; }
  .mosaic__tile--d { grid-column: 7 / 13; grid-row: 2; }
  .mosaic__tile--a .ph { aspect-ratio: 4 / 5; }
  .mosaic__tile--b .ph, .mosaic__tile--c .ph { aspect-ratio: 4 / 3; }
  .mosaic__tile--d .ph { aspect-ratio: 21 / 9; }
}
.mosaic__tile { position: relative; display: block; text-decoration: none; overflow: hidden; }
.mosaic__tile .ph img { transition: transform 0.9s var(--ease); }
.mosaic__tile:hover .ph img { transform: scale(1.05); }
.mosaic__caption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: stretch;
  background: var(--paper);
  max-width: calc(100% - 1.5rem);
}
.mosaic__plus {
  width: 26px; flex-shrink: 0; background: var(--accent-700); position: relative;
}
.mosaic__plus::before, .mosaic__plus::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: #fff;
  transform: translate(-50%, -50%);
}
.mosaic__plus::before { width: 11px; height: 1.5px; }
.mosaic__plus::after { width: 1.5px; height: 11px; }
.mosaic__text { padding: 0.85rem 1.15rem; display: grid; gap: 0.15rem; }
.mosaic__name { font-size: 0.9375rem; color: var(--green-900); line-height: 1.25; }
.mosaic__city { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); }

/* --- Full-bleed feature split -------------------------------------------- */
.bleed-split { display: grid; align-items: stretch; }
@media (min-width: 960px) { .bleed-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.bleed-split__text {
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  margin-left: auto; width: 100%;
}
@media (min-width: 960px) { .bleed-split__text { max-width: calc(var(--max) / 2); } }
.bleed-split__media .ph { height: 100%; min-height: 340px; aspect-ratio: auto; }

/* --- Colour band with icon tiles ----------------------------------------- */
.band { background: var(--green-700); color: #fff; }
.band .lead, .band p { color: rgba(255,255,255,0.86); }
.band__head { text-align: center; max-width: 58ch; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.band__head h2 { color: #fff; }
.band__head p { margin-top: 1.25rem; }
.icon-tiles { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .icon-tiles { grid-template-columns: repeat(4, 1fr); } }
.icon-tile {
  display: grid; justify-items: center; gap: 1rem; text-align: center;
  text-decoration: none; color: #fff; padding: 0.5rem;
  transition: transform var(--dur) var(--ease);
}
.icon-tile:hover { transform: translateY(-4px); }
.icon-tile svg { width: 52px; height: 52px; }
.icon-tile:hover svg { color: var(--accent-500); }
.icon-tile span { font-size: 0.8125rem; line-height: 1.35; max-width: 14ch; }

/* --- Testimonial carousel ------------------------------------------------ */
.stories { position: relative; }
.story { display: none; }
.story[data-active="true"] { display: grid; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; } }
.story__quote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; color: var(--green-900); }
.story__attr { margin-top: 1.5rem; display: grid; gap: 0.15rem; font-size: 0.9375rem; }
.story__name { color: var(--graphite); }
.story__role { color: var(--gray-400); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.story__pending {
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  color: var(--gray-600); border-left: 2px solid var(--accent-600);
  padding-left: 1.25rem;
}

/* --- Footer additions ---------------------------------------------------- */
.footer__socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.footer__socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__socials a:hover { background: var(--accent-700); border-color: var(--accent-700); }
.footer__socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   21. Sitewide adoption of the homepage language
   ========================================================================== */

/* Centred full-width section heads, with a short brass rule above */
.section-head--center {
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
  justify-items: center;
}
.section-head--center::before {
  content: ""; width: 34px; height: 1px; background: var(--accent-600);
  display: block; margin-bottom: 1.5rem;
}
.section--dark .section-head--center::before, .band .section-head--center::before {
  background: var(--sage-300);
}
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow { margin-bottom: 0.9rem; }

/* Image hero with overlay card — same module as the homepage carousel */
.hero--card { position: relative; background: var(--green-900); overflow: hidden; }
.hero--card .hero__media { position: absolute; inset: 0; z-index: 0; }
.hero--card .hero__media .ph { width: 100%; height: 100%; aspect-ratio: auto; }
.hero--card .hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(92deg, rgba(19,31,26,0.7) 0%, rgba(19,31,26,0.4) 45%, rgba(19,31,26,0.08) 80%);
}
.hero--card .hero__inner {
  position: relative; z-index: 2;
  min-height: clamp(330px, 42vh, 460px);
  display: flex; align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero--card.hero--compact .hero__inner { min-height: clamp(300px, 36vh, 400px); }
.hero__card { max-width: 34rem; }
.hero__card .eyebrow { color: var(--green-600); }
.hero__card .lead { color: var(--gray-600); font-size: var(--step-0); }
.hero__card .btn-row { margin-top: 1.75rem; }
.hero-slide__card.hero__card h1 { margin-bottom: 1rem; }
.hero--card .breadcrumb { padding-top: 1.5rem; }

/* Faint dot texture on pale sections, matching the homepage intro band */
.section--bone {
  background:
    radial-gradient(circle at 1px 1px, rgba(126,149,133,0.11) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bone);
}

/* Mosaic used as a filterable portfolio: when a filter is active the explicit
   placements are dropped so hidden tiles never leave holes in the grid. */
.mosaic__badge {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2;
  background: rgba(19,31,26,0.78); color: var(--sage-100);
  font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.7rem;
}
@media (min-width: 760px) {
  .mosaic--filtered .mosaic__tile { grid-column: span 4 !important; grid-row: auto !important; }
  .mosaic--filtered .mosaic__tile .ph { aspect-ratio: 4 / 3 !important; }
}
