:root{
    --ink:#16191c; --ink-soft:#3d4248; --paper:#f4f1ea; --paper-deep:#ebe6db;
    --line:#d2ccbf; --accent:#6b4f2e; --night:#211a12; --night-text:#b3a78f;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{background:var(--paper);color:var(--ink);font-family:'Archivo',sans-serif;font-weight:300;line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
  body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");}
  h1,h2,h3{font-family:'Archivo',sans-serif;font-weight:300;letter-spacing:-.025em;line-height:1.1;}
  .serif{font-family:'Fraunces',serif;font-style:italic;font-weight:300;letter-spacing:-.01em;}
  .eyebrow{font-family:'Archivo';font-weight:500;font-size:.72rem;letter-spacing:.28em;text-transform:uppercase;color:var(--accent);}


  /* breadcrumb + hero */
  .ac-hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;}
  /* Refill on mobile: responsive.css relaxes header.ac-hero to min-height:auto at
     <=860; this sheet (posts) loads after it, so equal specificity wins by source
     order and keeps the post hero full-screen on phones (svh, not vh, for chrome). */
  @media(max-width:860px){ header.ac-hero{ min-height:100vh; min-height:100svh; } }
  .ac-hero img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;}
  .ac-hero .scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(33,26,18,.55) 0%,rgba(33,26,18,.2) 35%,rgba(33,26,18,.86) 100%);}
  .ac-hero .inner{position:relative;padding-bottom:74px;width:100%;}
  .crumb{font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.7);margin-bottom:26px;}
  .crumb a{color:rgba(255,255,255,.7);text-decoration:none;}
  .crumb a:hover{color:#e8c79a;}
  .ac-hero h1{color:#fff;font-size:clamp(2.6rem,6vw,5rem);max-width:15ch;margin-bottom:22px;}
  .ac-hero h1 em{font-family:'Fraunces';font-style:italic;color:#e8c79a;font-size:1.04em;}
  .ac-hero .sub{color:rgba(255,255,255,.9);font-size:1.2rem;max-width:46ch;margin-bottom:18px;}
  .ac-hero .servesline{color:rgba(255,255,255,.62);font-size:.92rem;letter-spacing:.04em;}
  .ac-hero .cta-row{margin-top:34px;display:flex;gap:18px;flex-wrap:wrap;}
  /* .btn-primary/.btn-ghost come from the unified style.css button rules (c8e9f6d);
     the old per-sheet copies that lived here overrode them on posts and are removed. */

  /* stat strip */
  .stats{background:var(--night);color:var(--night-text);padding:40px 0;}
  .stats .row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:30px;}
  .stat{flex:1;min-width:160px;}
  .stat .n{font-family:'Archivo';font-weight:500;font-size:2.1rem;color:#efe4d2;letter-spacing:-.03em;line-height:1;}
  .stat .t{font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;margin-top:8px;}

  /* method */
  .sec{padding:120px 0;}
  .sec-head{max-width:42ch;margin-bottom:60px;}
  .sec-head h2{font-size:clamp(2rem,4.2vw,3.2rem);margin:18px 0;}
  .sec-head h2 em{font-family:'Fraunces';font-style:italic;color:var(--accent);}
  .sec-head p{color:var(--ink-soft);font-size:1.1rem;}
  .method-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
  .m-card{border-top:1px solid var(--line);padding-top:24px;}
  .m-card .idx{font-family:'Fraunces';font-style:italic;color:var(--accent);font-size:.9rem;}
  .m-card h3{font-size:1.35rem;margin:8px 0 12px;}
  .m-card p{color:var(--ink-soft);font-size:1rem;max-width:46ch;}
  @media(max-width:760px){.method-grid{grid-template-columns:1fr;}}

  /* the difference - light contrast block */
  .diff{background:var(--paper);}
  .diff .eyebrow{color:var(--accent);}
  .diff h2{color:var(--ink);font-size:clamp(1.9rem,3.8vw,3rem);margin:18px 0;max-width:20ch;}
  .diff h2 em{font-family:'Fraunces';font-style:italic;color:var(--accent);}
  .compare{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);margin-top:50px;}
  .compare>div{background:var(--paper);padding:38px 36px;}
  .compare .them{background:var(--paper-deep);}
  .compare h4{font-family:'Archivo';font-weight:600;font-size:.84rem;letter-spacing:.18em;text-transform:uppercase;margin-bottom:22px;}
  .compare .them h4{color:var(--ink-soft);}
  .compare .us h4{color:var(--accent);}
  .compare .us h4::before{content:"";display:inline-block;width:22px;height:2px;background:var(--accent);vertical-align:middle;margin-right:10px;}
  .compare ul{list-style:none;}
  .compare li{padding:11px 0;border-top:1px solid var(--line);font-size:.98rem;color:var(--ink-soft);}
  .compare .us li{color:var(--ink);}
  @media(max-width:680px){.compare{grid-template-columns:1fr;}}

  /* process steps */
  .steps{counter-reset:step;}
  .step-row{display:grid;grid-template-columns:80px 1fr;gap:30px;padding:30px 0;border-top:1px solid var(--line);}
  .step-row .num{font-family:'Fraunces';font-style:italic;font-size:2.2rem;color:var(--accent);line-height:1;}
  .step-row h3{font-size:1.4rem;margin-bottom:8px;}
  .step-row p{color:var(--ink-soft);max-width:54ch;}

  /* IAQ upsell + membership soft */
  .nextstep{background:var(--paper-deep);}
  .next-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
  .next-card{background:var(--paper);border:1px solid var(--line);padding:40px 38px;display:flex;flex-direction:column;}
  .next-card .eyebrow{color:var(--accent);}
  .next-card h3{font-size:1.6rem;margin:14px 0;}
  .next-card h3 em{font-family:'Fraunces';font-style:italic;color:var(--accent);}
  .next-card p{color:var(--ink-soft);flex-grow:1;}
  .next-card a{margin-top:20px;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);text-decoration:none;}
  @media(max-width:760px){.next-grid{grid-template-columns:1fr;}}

  /* CTA */
  .final{background:var(--night);color:var(--night-text);text-align:center;padding:120px 0;}
  .final .eyebrow{color:#c79a5e;}
  .final h2{color:#efe4d2;font-size:clamp(2rem,4.4vw,3.4rem);margin:22px auto;max-width:20ch;}
  .final h2 em{font-family:'Fraunces';font-style:italic;color:#d9b783;}
  .final p{color:#a89c84;max-width:46ch;margin:0 auto 36px;}


  .reveal{opacity:0;transform:translateY(28px);transition:opacity 1s cubic-bezier(.2,.7,.3,1),transform 1s cubic-bezier(.2,.7,.3,1);}
  .reveal.in{opacity:1;transform:none;}

/* --- single.php additions (post hero fallback + the_content prose) --- */
/* Featured image arrives as an inline background-image (single.php); cover it and
   keep --night as the background-color so a missing file degrades to the dark panel. */
.post-hero{background-color:var(--night);background-size:cover;background-position:center 30%;background-repeat:no-repeat;}
.post-hero .servesline{opacity:.8}
/* Post hero reads as an ARTICLE headline, not a product splash: the shared
   .ac-hero h1 (clamp up to 5rem, max-width 15ch) is tuned for short service
   names; post titles run longer, so cap smaller and wider here. White text +
   scrim + featured-image bg all inherit from .ac-hero. */
.post-hero h1{font-size:clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);max-width:24ch;}
/* Shared reading measure: ONE declaration so the body column and the further-reading
   block are identical by construction. The font-size sits here too because 70ch is
   font-relative: both blocks compute the measure at the same 1.12rem basis. */
.post-body,
.pf-further,
.post-end{max-width:70ch;margin-left:auto;margin-right:auto;font-size:1.12rem}
/* Desktop measure: 800px at >=1024 (70ch at 1.12rem reads narrow on PC screens;
   800px computes to roughly 77-81ch at this size, at the comfortable upper bound).
   The further-reading block and the end rule widen with it BY CONSTRUCTION (same
   grouped declaration). <=1023 keeps the 70ch behaviour. */
@media(min-width:1024px){
  .post-body,
  .pf-further,
  .post-end{max-width:800px}
}
/* End-of-article rule: 56px gold hairline, left-aligned to the text edge; closes
   the article without reading as a Further-Reading row (those are full-width
   var(--line); this is short and gold). The theme has no --gold token on light
   surfaces: var(--accent) IS the house gold there. */
.post-end{margin-top:64px}
.post-end::after{content:"";display:block;width:56px;height:1px;background:var(--accent)}
.post-body{color:var(--ink);font-family:'Archivo',system-ui,sans-serif;font-weight:300;line-height:1.85}
/* Readability: explicit ragged-right (no justify/hyphens anywhere on posts), and a
   19px body step at PC widths (the 800px column then reads ~73-77ch). Mobile sizes
   inherit the unchanged 1.12rem base. */
.post-body p,.post-body li,.post-body blockquote{text-align:left}
@media(min-width:1024px){
  .post-body p,.post-body li{font-size:1.1875rem}
}
.post-body > *+*{margin-top:1.15em}
/* Headings use the THEME heading dialect (Archivo, tight tracking) — not a
   serif. The old Fraunces 600 read as a browser-default serif and didn't match
   the service pages. Accent/serif stays reserved for <em> inside copy. */
.post-body h2{font-family:'Archivo',sans-serif;font-weight:500;letter-spacing:-.02em;font-size:1.9rem;line-height:1.2;margin-top:2.4rem;color:var(--ink)}
.post-body h3{font-family:'Archivo',sans-serif;font-weight:500;letter-spacing:-.02em;font-size:1.45rem;line-height:1.25;margin-top:1.9rem;color:var(--ink)}
.post-body h4{font-family:'Archivo',sans-serif;font-weight:600;letter-spacing:-.01em;font-size:1.12rem;line-height:1.3;margin-top:1.6rem;color:var(--ink)}
.post-body p{color:var(--ink-soft)}
.post-body a{color:var(--accent);text-underline-offset:3px}
.post-body ul,.post-body ol{padding-left:1.35em;color:var(--ink-soft)}
.post-body li+li{margin-top:.4em}
.post-body li::marker{color:var(--accent)}
.post-body img{max-width:100%;height:auto;display:block;margin:1.6rem auto}   /* sharp, like the service-page imagery */
.post-body figure{margin:1.8rem 0}
.post-body figcaption{font-size:.82rem;color:var(--ink-soft);font-style:italic;margin-top:.6rem;text-align:center}
/* Consecutive image runs (case-study documentation): tighter, consistent stacking
   rhythm between adjacent figures/images; no collage hacks. */
.post-body figure + figure{margin-top:14px}
.post-body figure + figure img,
.post-body img + img{margin-top:0}
/* Case-study download: TWO elements, no container chrome. Any PDF link wrapping a
   cover image (the bare case-study markup AND the .post-dl mock) renders as the
   centered cover (hairline on the image itself, so it reads as a document) with one
   gold button beneath, in the unified .cta geometry. Whitespace does the framing,
   same vertical rhythm as the figures. The whole anchor stays clickable; the old
   label span is hidden (it duplicated the button). */
.post-body a[href$=".pdf"]:has(img){display:block;text-align:center;margin:1.8rem auto;text-decoration:none}
.post-body a[href$=".pdf"] img{max-width:270px;margin:0 auto;border:1px solid var(--line)}
.post-body a[href$=".pdf"]:has(img)::after{content:"Download case study";display:inline-block;margin-top:22px;font-size:.8rem;font-weight:400;letter-spacing:.16em;text-transform:uppercase;background:#d9b783;color:var(--night);padding:18px 40px;transition:background .35s ease}
.post-body a[href$=".pdf"]:has(img):hover::after{background:#efe4d2}
.post-body .post-dl{margin:1.8rem 0}
.post-body .post-dl .post-dl-label{display:none}
.post-body blockquote{border-left:3px solid var(--accent);padding:.2rem 0 .2rem 1.2rem;margin:1.6rem 0;color:var(--ink-soft);font-style:italic;font-size:1.06rem}
.post-body hr{border:0;border-top:1px solid var(--line);margin:2.4rem 0}

/* AIAB tables (e.g. the moisture-mapping post) — hairline token borders, cell
   padding, a styled header row; raw browser defaults otherwise. */
/* width:auto (not 100%) so a short data table sizes to its content instead of being
   stretched to full width, which auto-layout absorbs into one column and reads as an
   "empty trailing column". max-width:100% keeps a genuinely wide table within the column
   (and the <=680 rule below lets it scroll on phones). */
/* border:0 overrides the legacy border="1" UA border on the table ELEMENT: in the
   <=680 display:block scroll mode that border spans the full block and draws a
   phantom column past the last real cell. With it gone, the collapsed CELL borders
   are the chrome and the outer edge hugs the real last column at every width. */
.post-body table{width:auto;max-width:100%;border:0;border-collapse:collapse;margin:1.8rem 0;font-size:.96rem;color:var(--ink-soft)}
/* Defensive: a genuinely empty trailing column (empty th or td, header or body)
   can never render borders. (:empty matches truly empty cells.) */
.post-body th:empty,.post-body td:empty{border:0;padding:0;background:none}
.post-body th,.post-body td{border:1px solid var(--line);padding:.7rem .9rem;text-align:left;vertical-align:top;line-height:1.5}
/* Target bare <th> too: AIAB tables emit a <tr><th> header row with no <thead>, so
   `thead th` never matched and the header rendered unstyled. <th> = header in this body. */
.post-body th{background:var(--paper-deep);font-family:'Archivo',sans-serif;font-weight:600;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.post-body tbody tr:nth-child(even){background:rgba(210,204,191,.22)}   /* tint of --line, not a new hue */

/* Code, if AIAB ever emits it */
.post-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--paper-deep);padding:.12em .4em}
.post-body pre{background:var(--night);color:var(--night-text);padding:1.1rem 1.25rem;overflow-x:auto;font-size:.9rem;line-height:1.6;margin:1.6rem 0}
.post-body pre code{background:none;padding:0;font-size:1em;color:inherit}

@media(max-width:680px){
  .post-body{font-size:1rem}
  .post-body h2{font-size:1.55rem}
  .post-body h3{font-size:1.3rem}
  .post-body table{display:block;overflow-x:auto}   /* wide AIAB tables stay usable on phones */
}

/* --- Table of Contents (AIAB Easy-TOC) ---
   this styles it as a clean inline box at the top of the article. (punch #4) */
.ez-toc-container, nav.ez-toc-container{ position:static; float:none; }
.post-body .ez-toc-container,
.post-body nav.ez-toc-container{
  position:static !important; float:none !important;
  width:auto !important; max-width:none !important; display:block !important;
  background:var(--paper-deep); border:1px solid var(--line);
  padding:32px 36px; margin:0 0 2.4rem;
}
.post-body .ez-toc-title-container{ margin:0 0 18px; padding:0; }
.post-body .ez-toc-title{
  font-family:'Archivo',sans-serif; font-weight:500; font-size:.72rem;
  letter-spacing:.2em; text-transform:uppercase; color:var(--accent); margin:0;
}
.post-body .ez-toc-title-toggle, .post-body a.ez-toc-toggle, .post-body .ez-toc-js-icon-con{ display:none !important; }
.post-body .ez-toc-list{ list-style:none; margin:0; padding:0; }
.post-body .ez-toc-list ul{ list-style:none; margin:.35em 0 .35em 1.1em; padding:0; }
/* Self-contained index rhythm: out-specifies the leaked .post-body li 19px body step
   and the 1.85 body line-height. Wrapped lines read as one item by construction
   (lh 1.5 within an item vs the 10px gap between items). */
.post-body .ez-toc-container li,
.post-body .ez-toc-container p{ font-size:1rem; line-height:1.5; margin:0 0 10px; padding:0; }
.post-body .ez-toc-container li:last-child{ margin-bottom:0; }
.post-body .ez-toc-container ul ul{ list-style:none; margin:8px 0 0 18px; padding:0; }
.post-body .ez-toc-container ul ul li{ font-size:.9375rem; margin:0 0 8px; }
.post-body .ez-toc-container ul ul li:last-child{ margin-bottom:0; }
.post-body .ez-toc-link{
  color:var(--ink-soft); text-decoration:none; font-size:1rem; line-height:1.5;
  border:0; background:none; transition:color .25s ease;
}
.post-body .ez-toc-link:visited{ color:var(--ink-soft); }
.post-body .ez-toc-link:hover{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
@media(max-width:600px){
  .post-body .ez-toc-container,
  .post-body nav.ez-toc-container{ padding:22px; }
}

/* ---- Post footer (single.php): Further reading only (categories live on the /blog
   quick-strip; prev/next dropped). Rows = the shared post-card part in its 'row'
   variant inside a literal .domain-lines container, so the homepage index-row rules
   (hairlines, gold hover + 14px shift, Fraunces arrow fade) apply VERBATIM. This
   overlay adjusts only the row anatomy: meta line above the title, title in the
   heading register, arrow vertically centered, more generous row padding. ---- */
.pf-further{margin-top:72px}
.pf-head{display:block;margin-bottom:14px}
.pf-title{font-style:normal;font-weight:500;font-size:1.9rem;line-height:1.2;letter-spacing:-.02em;color:var(--ink);margin-bottom:40px}
/* Further reading now uses the shared .cs-grid/.cs-card system (base in style.css), the
   same card as the archives and the case-studies index. The old .pf-rows two-column row
   card was removed when the card was unified; only the .pf-title mobile size stays. */
@media(max-width:600px){
  .pf-title{font-size:1.55rem;margin-bottom:30px}
}

/* Editorial closing on posts: centered button pair (the .final band + unified buttons
   are global; this just centers the row). */
.final .cta-row{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;margin-top:0}

/* Phone post hero: assert the sibling heroes' mobile bottom padding below the meta
   line (responsive.css value; this sheet loads last so the assertion wins ties). */
@media(max-width:860px){
  .post-hero .inner{padding-bottom:48px}
}
