
:root{
  /* THE SITE IS WHITE ONLY. Declaring the scheme tells the browser that
     this page has a light appearance and must not be auto-darkened when
     the reader's phone is set to dark mode. Without it, the form inputs,
     the scrollbars and the text-selection colour go dark while the page
     around them stays light, and the page reads as broken.

     `only light` is stronger than `light`: it tells the browser there is
     no dark version of this page to fall back to. */
  color-scheme:only light;

  --brown:#5c3918;
  --brown-2:#754a22;
  --brown-3:#8d5c2d;
  --tan:#b3997a;
  --tan-2:#cbb39a;
  --espresso:#1a120c;
  --espresso-2:#241811;
  --paper:#f7f3ee;
  --milk:#efe6da;
  --paper-dim:#d8cec2;
  --paper-dim2:#b6aa9c;
  --amber:#c98a3c;
  --max:1180px;
  --sans:"Inter","Helvetica Neue",Arial,system-ui,-apple-system,sans-serif;
  --mal:"Noto Sans Malayalam","Noto Sans Malayalam UI","Kartika",sans-serif;
  --serif:"Cormorant Garamond","Noto Serif",Georgia,serif;
  --r:14px;
}
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:only light;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--espresso);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:break-word;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brown-2);text-decoration:none}
a:hover{color:var(--brown);text-decoration:underline}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:4px}
h1,h2,h3,h4{color:var(--espresso)}
.skip{position:absolute;left:-9999px;top:0;background:var(--brown);color:var(--paper);padding:.7rem 1rem;z-index:99}
.skip:focus{left:0}

/* ── layout ─────────────────────────────────────────────────────────── */
.wrap{max-width:var(--max);margin:0 auto;padding:0 22px}
main{padding-bottom:70px}
section{padding:56px 0}
section+section{border-top:1px solid #e3d9cc}

/* ── header ─────────────────────────────────────────────────────────── */
.site-head{
  position:sticky;top:0;z-index:40;
  background:rgba(247,243,238,.94);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid #e3d9cc;
}
.head-in{display:flex;align-items:center;gap:16px;min-height:66px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand:hover{text-decoration:none}
.brand img{height:30px;width:auto}
.brand-latin{
  font-size:12.5px;letter-spacing:.22em;font-weight:700;color:var(--brown);
  text-transform:uppercase;padding-left:10px;border-left:1px solid #cfc3b4;
}
.nav{margin-left:auto;display:flex;gap:2px;align-items:center;flex-wrap:wrap}
.nav a{
  color:var(--espresso);font-size:14.5px;padding:9px 11px;border-radius:8px;
  text-decoration:none;white-space:nowrap;
}
.nav a:hover{background:var(--milk);text-decoration:none;color:var(--brown)}
.nav a[aria-current="page"]{background:var(--brown);color:var(--paper)}
.nav-toggle{display:none}

/* ── search ─────────────────────────────────────────────────────────── */
.search{position:relative;margin-left:14px}
.search-btn{
  display:inline-flex;align-items:center;gap:7px;min-height:44px;
  padding:9px 14px;border-radius:999px;border:1px solid #d5c9b9;
  background:transparent;color:var(--espresso);font:inherit;font-size:14px;
  cursor:pointer;
}
.search-btn:hover{border-color:var(--brown);color:var(--brown)}
.search-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.search-panel{
  position:absolute;top:calc(100% + 10px);right:0;width:min(420px,86vw);
  background:var(--paper);border:1px solid #d5c9b9;border-radius:var(--r);
  box-shadow:0 18px 50px rgba(40,25,12,.18);padding:14px;display:none;
  z-index:60;
}
.search-panel.open{display:block}
.search-panel input{
  width:100%;min-height:46px;border:1px solid #d5c9b9;border-radius:9px;
  padding:11px 13px;font:inherit;font-size:15px;background:#fff;color:var(--espresso);
}
.search-panel input:focus{outline:none;border-color:var(--brown);box-shadow:0 0 0 3px rgba(92,57,24,.14)}
.search-results{margin:12px 0 0;max-height:min(52vh,420px);overflow-y:auto}
.search-results li{list-style:none;border-bottom:1px solid #ede4d7}
.search-results li:last-child{border-bottom:0}
.search-results a{display:block;padding:10px 4px;text-decoration:none;color:var(--espresso)}
.search-results a:hover{color:var(--brown);text-decoration:none}
.search-results .sr-t{font-weight:700;font-size:14.6px;line-height:1.35;display:block}
.search-results .sr-c{font-size:12.4px;color:#8a7a68;letter-spacing:.06em;text-transform:uppercase;display:block;margin-top:2px}
.search-results mark{background:#f3e3c8;color:inherit;padding:0 1px;border-radius:2px}
.search-empty{font-size:14px;color:#8a7a68;padding:12px 4px}
.search-hint{font-size:12px;color:#8a7a68;margin:10px 0 0}

/* ── hero ─────────────────────────────────────────────────────────────
   THE HERO IS LIGHT. It used to be the largest dark block on the site:
   a full-bleed espresso photograph with light text on it. The owner
   asked for white mode across the whole site, so the photograph is kept
   -- it is the deck's own shot and it carries the brand -- but it is
   washed back to a pale tint, and the text is espresso on paper.

   The wash is a light overlay rather than a dark one, so the photo
   keeps its shape without dragging the panel back down. */
.hero{position:relative;padding:0;background:var(--paper);overflow:hidden}
.hero-photo{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:.16;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(247,243,238,.86) 0%,rgba(247,243,238,.72) 45%,rgba(247,243,238,.93) 100%);
}
.hero-in{position:relative;z-index:2;padding-top:78px;padding-bottom:66px;text-align:center;color:var(--espresso)}
.hero-in h2,.hero-in h3,.hero-in h4{color:var(--espresso)}
.hero-logo{width:min(420px,76%);margin:0 auto 26px}
.hero h1{
  font-family:var(--sans);font-weight:800;letter-spacing:-.025em;
  font-size:clamp(2.1rem,6vw,4rem);
  line-height:1.04;margin:0 0 16px;
  color:var(--espresso);
}
.hero .tagline{
  font-size:12.5px;letter-spacing:.28em;text-transform:uppercase;
  color:var(--brown);margin:0 0 22px;font-weight:600;
}
.hero .lede{
  font-size:clamp(1.02rem,2.1vw,1.18rem);color:#4d4034;
  max-width:64ch;margin:0 auto 32px;
}
.hero-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ── buttons ───────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:13px 26px;border-radius:999px;
  font-size:15.5px;font-weight:700;text-decoration:none;
  border:1.5px solid var(--brown);color:var(--brown);background:transparent;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.btn:hover{background:var(--brown);color:var(--paper);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn-solid{background:var(--brown);border-color:var(--brown);color:var(--paper)}
.btn-solid:hover{background:var(--brown-2);border-color:var(--brown-2);color:var(--paper)}

/* ── section heads ──────────────────────────────────────────────────── */
.eyebrow{
  font-size:12px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--brown-3);margin:0 0 12px;font-weight:700;
}
h2.sec-h{
  font-family:var(--sans);font-weight:800;letter-spacing:-.02em;
  font-size:clamp(1.7rem,4vw,2.6rem);line-height:1.1;margin:0 0 14px;
}
.sec-lede{color:#5a4b3c;max-width:66ch;margin:0 0 28px;font-size:1.03rem}

/* ── cards ──────────────────────────────────────────────────────────── */
.grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(min(262px,100%),1fr))}
.card{
  background:var(--paper);border:1px solid #e3d9cc;border-radius:var(--r);
  padding:24px 22px;display:flex;flex-direction:column;gap:10px;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.card:hover{border-color:var(--tan);transform:translateY(-2px);box-shadow:0 8px 24px rgba(92,57,24,.08)}
.card h2,.card h3{font-family:var(--sans);font-weight:800;font-size:1.22rem;margin:0;line-height:1.24;letter-spacing:-.01em}
.card h2 a{color:inherit;text-decoration:none}
.card h2 a:hover{color:var(--brown)}
.card p{margin:0;color:#5a4b3c;font-size:15px}
.card .card-k{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--brown-3);font-weight:700}
.card-link{margin-top:auto;padding-top:6px;font-size:14.5px;font-weight:700;color:var(--brown)}
.card-notes{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:5px}
.card-notes li{font-size:13.6px;color:#6b5a49;padding-left:16px;position:relative}
.card-notes li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--tan)}

/* a service card with the deck's photograph */
.svc{position:relative;overflow:hidden;padding:0;border:1px solid #e3d9cc}
.svc-photo{width:100%;aspect-ratio:4/3;object-fit:cover}
.svc-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}

/* ── cluster index ──────────────────────────────────────────────────── */
.cluster{border-top:1px solid #e3d9cc;padding:30px 0}
.cluster-h{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.cluster-h h2{font-family:var(--sans);font-weight:800;font-size:1.4rem;margin:0;letter-spacing:-.01em}
.cluster-h .count{font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--brown-3);font-weight:700}
.cluster-d{color:#5a4b3c;font-size:15px;margin:0 0 16px;max-width:72ch}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  display:inline-block;padding:9px 14px;border-radius:999px;
  border:1px solid #ddd2c4;color:var(--espresso);font-size:14px;
  text-decoration:none;background:var(--paper);
}
.chip:hover{border-color:var(--brown);color:var(--brown);text-decoration:none;background:var(--milk)}

/* ── article ────────────────────────────────────────────────────────── */
.crumbs{font-size:13.5px;color:#7a6a59;padding:22px 0 0}
.crumbs a{color:#7a6a59}
.crumbs a:hover{color:var(--brown)}
.crumbs .crumb-cur{color:var(--brown);font-weight:600}
.article-h{padding:26px 0 6px}
.article-h h1{
  font-family:var(--sans);font-weight:800;letter-spacing:-.025em;
  font-size:clamp(1.8rem,4.4vw,2.75rem);line-height:1.12;
  margin:0 0 16px;
}
.article-meta{font-size:13.5px;color:#7a6a59;margin:0 0 26px}

.answer-blob{
  background:var(--milk);
  border-left:5px solid var(--brown);
  border-radius:0 var(--r) var(--r) 0;
  padding:22px 24px;margin:0 0 32px;
}
.answer-blob p{margin:0 0 14px;font-size:1.04rem;line-height:1.72;color:var(--espresso)}
.answer-blob p:last-child{margin-bottom:0}

.takeaways{margin:0 0 32px}
.takeaways-h{
  font-family:var(--sans);font-size:11.5px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--brown);margin:0 0 12px;font-weight:800;
}
.takeaways-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.takeaways-list li{padding-left:28px;position:relative;font-size:15.5px;color:#4d4034}
.takeaways-list li::before{
  content:"";position:absolute;left:4px;top:.6em;
  width:9px;height:9px;border-radius:2px;background:var(--brown-3);
}

.prose h2{
  font-family:var(--sans);font-weight:800;font-size:1.4rem;
  margin:36px 0 12px;line-height:1.24;letter-spacing:-.01em;
}
.prose p{margin:0 0 16px;color:#4d4034;max-width:72ch}
.prose ul{padding-left:22px;color:#4d4034;margin:0 0 18px}
.prose li{margin-bottom:8px}

.faq{margin-top:36px}
.faq-h{font-family:var(--sans);font-weight:800;font-size:1.35rem;margin:0 0 16px}
.faq-item{border:1px solid #e3d9cc;border-radius:11px;margin-bottom:9px;background:var(--paper)}
.faq-q{
  cursor:pointer;padding:15px 18px;font-weight:700;font-size:16px;
  list-style:none;color:var(--espresso);display:flex;justify-content:space-between;gap:14px;
}
.faq-q::-webkit-details-marker{display:none}
.faq-q::after{content:"+";color:var(--brown-3);font-size:20px;line-height:1;font-weight:400}
.faq-item[open] .faq-q::after{content:"–"}
.faq-a{padding:0 18px 16px;margin:0}
.faq-a p{margin:0;color:#5a4b3c;font-size:15.4px}

.related{margin-top:38px;padding-top:26px;border-top:1px solid #e3d9cc}
.related-h{font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--brown);margin:0 0 14px;font-weight:800}
.related ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.related a{color:#4d4034;font-size:15.3px}
.related a:hover{color:var(--brown)}

/* ── cta ────────────────────────────────────────────────────────────── */
.cta-box{
  background:var(--milk);border:1px solid var(--tan);border-radius:var(--r);
  padding:30px 28px;margin:40px 0 0;color:var(--espresso);
}
.cta-h{font-family:var(--sans);font-weight:800;font-size:1.4rem;margin:0 0 10px;color:var(--espresso);letter-spacing:-.01em}
.cta-box p,.cta-box .cta-p{color:#4d4034}
.cta-p{color:#4d4034;margin:0 0 20px;max-width:62ch}

/* ── form ───────────────────────────────────────────────────────────── */
.form-wrap{background:var(--paper);border:1px solid #ddd2c4;border-radius:var(--r);padding:26px 24px;margin:0 0 30px}
.form-note{
  background:#f6ece0;border:1px solid var(--tan);
  color:var(--espresso);border-radius:10px;padding:13px 15px;font-size:14.6px;margin:0 0 20px;
}
.form-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.field{display:flex;flex-direction:column;gap:7px}
.field.wide{grid-column:1/-1}
.field label{font-size:14px;font-weight:700;color:#4d4034}
.field input,.field select,.field textarea{
  background:#fff;border:1px solid #d5c9b9;border-radius:10px;
  color:var(--espresso);padding:12px 13px;font:inherit;font-size:15.5px;min-height:48px;width:100%;
}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brown);outline:none;box-shadow:0 0 0 3px rgba(92,57,24,.16)}
.field .hint{font-size:13px;color:#7a6a59}
.form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px;align-items:center}
.proto-note{font-size:13.6px;color:#7a6a59;margin:14px 0 0}

.gap{
  background:#f6ece0;border:1px dashed var(--tan);
  color:var(--espresso);border-radius:6px;padding:1px 8px;font-size:.92em;
}

/* ── footer ─────────────────────────────────────────────────────────── */
/* THE FOOTER IS LIGHT. It was espresso with paper text and ran to
   over 2300px because it carried the whole site map. It is now paper
   with espresso text and a hairline top border, which separates it
   from the page above without needing a dark block. */
.site-foot{background:var(--paper);color:var(--espresso);padding:46px 0 28px;margin-top:20px;border-top:1px solid #e3d9cc}
/* The brand block sits on its own row so the site-map grid below it
   gets the full width. Side by side, the grid was squeezed into three
   narrow columns and the footer ran to over 2300px. */
.foot-top{display:flex;gap:26px 40px;flex-wrap:wrap;align-items:flex-start}
.foot-brand{flex:1 1 100%;max-width:none;display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.foot-brand img{height:38px;margin-bottom:0}
.foot-brand p{margin:0;max-width:460px}
.foot-brand .mal{display:none}
.foot-brand img{height:40px;margin-bottom:14px}
.foot-brand p{color:#5a4b3c;font-size:14.8px;margin:0 0 12px}
/* The footer carries every page on the site, so it is a long list by
   design. It is laid out as a dense multi-column grid rather than ten
   tall stacks, which kept it under 1800px and made the whole site map
   visible without a long scroll. */
.foot-cols{
  display:grid;gap:20px 26px;flex:1 1 100%;min-width:0;
  grid-template-columns:repeat(auto-fill,minmax(172px,1fr));
  align-content:start;
}
.foot-col h3{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--brown);margin:0 0 8px;font-weight:800}
.foot-col ul{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.foot-col a{color:#6b5a49;font-size:13px;line-height:1.35;display:block}
.foot-col a:hover{color:var(--brown)}

/* The two lead columns run across the full width, so "Start here" and
   "Call us" sit side by side above the site map. */
.foot-col-lead{grid-column:1/-1}
.foot-leads{display:grid;gap:20px 26px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-bottom:6px}
.foot-col-lead h3{color:var(--brown-2)}
.foot-leads .foot-col ul{gap:7px}
.foot-leads .foot-col a{font-size:14px}
.foot-bot{
  margin-top:32px;padding-top:18px;border-top:1px solid #e3d9cc;
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  color:#7a6a59;font-size:13.6px;
}
.foot-phones{display:flex;gap:14px;flex-wrap:wrap}
.contact-label{color:#7a6a59;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase}
.footer-phone{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.footer-phone a{
  display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;
  border:1px solid #d5c9b9;border-radius:999px;color:var(--brown);font-size:14.5px;
  font-weight:600;
}
.footer-phone a:hover{border-color:var(--brown);color:var(--brown-2);background:var(--milk);text-decoration:none}
.mal{font-family:var(--mal)}

/* ── mobile ─────────────────────────────────────────────────────────── */
@media (max-width:880px){
  .nav-toggle{
    display:inline-flex;margin-left:auto;min-height:44px;align-items:center;
    background:transparent;border:1px solid #d5c9b9;color:var(--espresso);
    border-radius:10px;padding:9px 14px;font:inherit;font-size:15px;cursor:pointer;
  }
  .nav{
    display:none;width:100%;order:3;margin-left:0;
    flex-direction:column;align-items:stretch;gap:2px;padding:10px 0 4px;
  }
  .nav.open{display:flex}
  .nav a{padding:13px 12px;font-size:16px;min-height:44px;display:flex;align-items:center}
  .search{margin-left:0;order:4;width:100%}
  .search-btn{width:100%;justify-content:center}
  .search-panel{position:static;width:100%;margin-top:8px;box-shadow:none}
  .search-panel:not(.open){display:none}
  .hero-in{padding-top:56px;padding-bottom:48px}
  .hero-logo{width:min(300px,78%)}
  section{padding:42px 0}
  .article-h{padding:18px 0 4px}
  .form-wrap{padding:20px 18px}
  .answer-blob{padding:18px}
  .foot-cols{gap:26px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
@media print{
  body{background:#fff;color:#111}
  .site-head,.site-foot,.nav,.cta-box{display:none}
}


/* ═══════════════════════════════════════════════════════════════════════
   THE COLOUR THEMES
   ═══════════════════════════════════════════════════════════════════════
   A theme changes the ACCENT colours only. The palette itself still comes
   from the owner's own deck, and the background, the reading surfaces
   and the body text never change -- those carry the contrast and the
   reading comfort, and they were checked against WCAG AA.
   ─────────────────────────────────────────────────────────────────────── */

html[data-theme="espresso"]{
  --brown:#3b2412;
  --brown-2:#57351c;
  --brown-3:#7a4f2c;
  --tan:#a98a6d;
  --tan-2:#c8ac91;
  --amber:#d19a52;
}

html[data-theme="forest"]{
  --brown:#2f4a34;
  --brown-2:#3f6147;
  --brown-3:#456a4d;
  --tan:#9aa88b;
  --tan-2:#bcc7ae;
  --amber:#c9a227;
}

html[data-theme="ocean"]{
  --brown:#1f4557;
  --brown-2:#2c5c72;
  --brown-3:#336478;
  --tan:#93aeb8;
  --tan-2:#b5cbd3;
  --amber:#d99b3f;
}

html[data-theme="berry"]{
  --brown:#5a2545;
  --brown-2:#733459;
  --brown-3:#8f4a6f;
  --tan:#b893a8;
  --tan-2:#cdb2c0;
  --amber:#d99b3f;
}

html[data-theme="graphite"]{
  --brown:#33302d;
  --brown-2:#4a4642;
  --brown-3:#6b6560;
  --tan:#a8a099;
  --tan-2:#c3bcb5;
  --amber:#c98a3c;
}

/* ═══════════════════════════════════════════════════════════════════════
   THE MOTION LAYER
   ═══════════════════════════════════════════════════════════════════════
   The stylesheet owns how an animation LOOKS. The JavaScript in
   data/motion.py owns WHEN it runs. They agree on two hooks:

     html.js-reveal          set by a blocking script in <head>, so the
                             stylesheet knows it is safe to hide things
     [data-reveal].is-in     set by an IntersectionObserver

   The hidden state is scoped to html.js-reveal on purpose. Without
   JavaScript the class is never added, nothing is hidden, and the page
   reads normally -- the animations are an enhancement, never the
   content.
   ─────────────────────────────────────────────────────────────────────── */

html.js-reveal [data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .58s cubic-bezier(.22,.8,.3,1),
             transform .58s cubic-bezier(.22,.8,.3,1);
  transition-delay:var(--d,0ms);
  will-change:opacity,transform;
}
html.js-reveal [data-reveal].is-in{opacity:1;transform:none}

/* A grid of cards should arrive as a wave, not as one block. The JS
   sets --d per element, but these nth-child rules make a grid stagger
   even where it cannot (and cost nothing where it can). */
html.js-reveal .grid > [data-reveal]:nth-child(2){transition-delay:70ms}
html.js-reveal .grid > [data-reveal]:nth-child(3){transition-delay:140ms}
html.js-reveal .grid > [data-reveal]:nth-child(4){transition-delay:210ms}
html.js-reveal .grid > [data-reveal]:nth-child(5){transition-delay:280ms}
html.js-reveal .grid > [data-reveal]:nth-child(6){transition-delay:350ms}

/* ── the hero entrance ───────────────────────────────────────────────────
   Pure CSS, so it plays on load with no JavaScript at all. The stagger
   is short: the whole thing is over in about a second, because a hero
   that takes longer to assemble feels broken rather than crafted. */
@keyframes riseIn{
  from{opacity:0;transform:translateY(24px)}
  to{opacity:1;transform:none}
}
.hero-in > *{
  animation:riseIn .62s cubic-bezier(.22,.9,.28,1) both;
}
.hero-in > *:nth-child(1){animation-delay:.05s}
.hero-in > *:nth-child(2){animation-delay:.13s}
.hero-in > *:nth-child(3){animation-delay:.21s}
.hero-in > *:nth-child(4){animation-delay:.29s}
.hero-in > *:nth-child(5){animation-delay:.37s}

/* A very slow drift behind the hero, like steam off a cup. It is
   deliberately faint: it must not compete with the wordmark, and it
   must never touch the contrast of the headline over it. */
@keyframes steamDrift{
  from{transform:translate3d(-3%,0,0) scale(1)}
  to{transform:translate3d(4%,3%,0) scale(1.14)}
}
.hero::before{
  content:"";
  position:absolute;inset:-18% -12% auto;height:72%;
  background:
    radial-gradient(58% 58% at 28% 42%,rgba(201,138,60,.20),transparent 70%),
    radial-gradient(48% 48% at 74% 28%,rgba(179,153,122,.20),transparent 70%);
  filter:blur(34px);
  animation:steamDrift 22s ease-in-out infinite alternate;
  pointer-events:none;
  z-index:1;
}
.hero-photo{z-index:0}
.hero::after{z-index:1}

/* ── micro-interactions ─────────────────────────────────────────────────
   Only transform, opacity, colour and shadow move. Animating width or
   top would make the browser re-layout on every frame, which is what
   makes a page feel janky while scrolling. */
.btn{
  transition:background .18s ease,color .18s ease,border-color .18s ease,
             transform .18s cubic-bezier(.22,.9,.3,1),box-shadow .18s ease;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(92,57,24,.16)}
.btn:active{transform:translateY(0);box-shadow:none}

.card{
  transition:border-color .2s ease,transform .22s cubic-bezier(.22,.9,.3,1),
             box-shadow .22s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(92,57,24,.12)}

.chip{
  transition:border-color .18s ease,color .18s ease,background .18s ease,
             transform .18s cubic-bezier(.22,.9,.3,1);
}
.chip:hover{transform:translateY(-2px)}

.nav a{transition:background .16s ease,color .16s ease}
.search-btn{transition:border-color .18s ease,color .18s ease,background .18s ease}
.search-btn:hover{background:var(--milk)}
.footer-phone a{transition:border-color .18s ease,color .18s ease,background .18s ease}

/* An underline that draws itself in, for the links inside prose. A
   background-size animation paints without touching layout. */
.prose a,.answer-blob a,.related a{
  background-image:linear-gradient(var(--brown),var(--brown));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:0 1.5px;
  transition:background-size .26s cubic-bezier(.22,.9,.3,1),color .16s ease;
  padding-bottom:1px;
}
.prose a:hover,.answer-blob a:hover,.related a:hover{
  background-size:100% 1.5px;
  text-decoration:none;
}

.card-link{
  display:inline-block;
  transition:transform .2s cubic-bezier(.22,.9,.3,1),color .16s ease;
}
.card-link:hover{transform:translateX(4px)}

/* ── the FAQ ───────────────────────────────────────────────────────────── */
@keyframes faqOpen{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:none}
}
.faq-item[open] .faq-a{animation:faqOpen .3s cubic-bezier(.22,.9,.3,1) both}
.faq-q::after{transition:color .2s ease,transform .25s cubic-bezier(.22,.9,.3,1)}
.faq-item[open] .faq-q::after{color:var(--brown);transform:scale(1.14)}
.faq-q{transition:background .18s ease,color .18s ease}
.faq-q:hover{background:var(--milk);color:var(--brown)}

/* ── the header gains a shadow once the page moves ───────────────────────
   The default state already looks right, so a reader whose JavaScript
   never runs simply never sees the shadow. */
.site-head{transition:box-shadow .24s ease,background .24s ease}
.site-head.is-stuck{
  background:rgba(247,243,238,.97);
  box-shadow:0 6px 22px rgba(40,25,12,.10);
}

/* ── back to top ──────────────────────────────────────────────────────────
   Hidden until the reader has scrolled past a screenful, so it never
   sits on top of content on a short page. */
.to-top{
  position:fixed;right:18px;bottom:18px;width:46px;height:46px;
  display:grid;place-items:center;
  border-radius:50%;border:1px solid var(--brown);
  background:var(--brown);color:var(--paper);
  cursor:pointer;z-index:50;
  opacity:0;visibility:hidden;transform:translateY(12px);
  box-shadow:0 10px 28px rgba(40,25,12,.24);
  transition:opacity .22s ease,transform .22s cubic-bezier(.22,.9,.3,1),
             background .18s ease,visibility .22s;
}
html.has-top .to-top{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--brown-2);border-color:var(--brown-2);transform:translateY(-2px)}
.to-top svg{
  width:20px;height:20px;fill:none;stroke:currentColor;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}

/* ── reading comfort ─────────────────────────────────────────────────────── */
.article-h h1,.hero h1,h2.sec-h,.card h2,.card h3,.cluster-h h2,
.faq-h,.cta-h,.prose h2{text-wrap:balance}
.prose p,.answer-blob p,.sec-lede{text-wrap:pretty}

/* The sticky header is about 66px tall, so an anchor target that
   scrolls to it would otherwise land underneath the header. */
h1,h2,h3,.crumbs,[id]{scroll-margin-top:96px}

/* A visible focus ring on everything a person can operate, including
   the elements that are not links. */
.nav-toggle:focus-visible,.faq-q:focus-visible,.search-btn:focus-visible,
.to-top:focus-visible{outline:3px solid var(--amber);outline-offset:3px}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════
   Six widths, each earning its place. The order is widest first, so a
   narrow rule always wins over a wide one at the same specificity.
   ═══════════════════════════════════════════════════════════════════════ */

/* Fluid type and rhythm: the page scales continuously instead of
   jumping at a breakpoint. */
body{font-size:clamp(16px,.95rem + .18vw,17.6px)}
section{padding:clamp(44px,5vw,74px) 0}
.wrap{padding-left:clamp(18px,4vw,28px);padding-right:clamp(18px,4vw,28px)}
.hero-in{padding-top:clamp(58px,7vw,92px);padding-bottom:clamp(52px,6vw,78px)}

/* auto-fit grids need the min() guard, or a grid wider than the
   viewport pushes the whole page sideways. */
.grid{grid-template-columns:repeat(auto-fit,minmax(min(262px,100%),1fr))}
.form-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
.foot-cols{grid-template-columns:repeat(auto-fill,minmax(min(172px,100%),1fr))}
.foot-leads{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}

/* ── 1400px and up: the content well stays 1180px, so the extra room
      is spent on rhythm rather than on longer lines of text. ─────── */
@media (min-width:1400px){
  section{padding:clamp(74px,5vw,92px) 0}
  .hero-in{padding-top:104px;padding-bottom:92px}
  .hero-logo{width:min(460px,72%)}
  .answer-blob{padding:28px 30px}
  .card{padding:28px 26px}
}

/* ── up to 1200px: the footer can hold more columns, and the hero
      should not dominate a short laptop screen. ─────────────────── */
@media (max-width:1200px){
  .foot-cols{grid-template-columns:repeat(auto-fill,minmax(min(158px,100%),1fr))}
  .hero-logo{width:min(400px,74%)}
}

/* ── up to 880px: the nav becomes a drawer ─────────────────────────── */
@media (max-width:880px){
  .nav-toggle{
    display:inline-flex;margin-left:auto;min-height:44px;align-items:center;
    background:transparent;border:1px solid #d5c9b9;color:var(--espresso);
    border-radius:10px;padding:9px 14px;font:inherit;font-size:15px;cursor:pointer;
  }
  .nav{
    display:none;width:100%;order:3;margin-left:0;
    flex-direction:column;align-items:stretch;gap:2px;padding:10px 0 4px;
  }
  .nav.open{display:flex}
  /* The desktop nav never wraps, so the drawer must be allowed to. */
  .nav a{
    padding:13px 12px;font-size:16px;min-height:44px;
    display:flex;align-items:center;white-space:normal;
  }
  .search{margin-left:0;order:4;width:100%}
  .search-btn{width:100%;justify-content:center}
  .search-panel{position:static;width:100%;margin-top:8px;box-shadow:none}
  .search-panel:not(.open){display:none}
  .hero-in{padding-top:56px;padding-bottom:48px}
  .hero-logo{width:min(300px,78%)}
  .article-h{padding:18px 0 4px}
  .form-wrap{padding:20px 18px}
  .answer-blob{padding:18px}
  .foot-cols{gap:26px}
}

/* ── up to 700px: one column of prose, tighter cards, the hero
      buttons stack so both are reachable with a thumb. ───────────── */
@media (max-width:700px){
  .head-in{gap:12px}
  .brand img{height:26px}
  .brand-latin{font-size:11.5px;padding-left:8px}
  .hero h1{font-size:clamp(1.95rem,8.4vw,2.6rem)}
  .hero .lede{font-size:1rem;margin-bottom:26px}
  .hero-cta{gap:10px}
  .hero-cta .btn{flex:1 1 100%}
  .article-h h1{font-size:clamp(1.62rem,6.6vw,2.1rem)}
  .card{padding:20px 18px}
  .card h2,.card h3{font-size:1.14rem}
  .foot-brand{flex-direction:column;gap:12px}
  .foot-brand img{height:34px;margin-bottom:0}
  .foot-brand p{font-size:14.2px}
  .foot-bot{flex-direction:column;gap:8px;font-size:13.2px}
  .to-top{right:14px;bottom:14px;width:44px;height:44px}
  .faq-q{padding:14px 15px;font-size:15.4px;gap:10px}
}

/* ── up to 480px: the small phones. Every horizontal padding is
      trimmed, because 360px is not much room to work with. ──────── */
@media (max-width:480px){
  body{font-size:16px}
  section{padding:38px 0}
  .wrap{padding-left:16px;padding-right:16px}
  .hero-in{padding-top:44px;padding-bottom:40px}
  .hero-logo{width:min(240px,72%);margin-bottom:20px}
  .hero .tagline{letter-spacing:.2em;font-size:11.5px}
  .btn{padding:12px 20px;font-size:15px}
  .answer-blob{border-left-width:4px;padding:16px 14px}
  .form-wrap{padding:18px 15px}
  .field input,.field select,.field textarea{font-size:16px}
  /* 16px keeps iOS Safari from zooming the page when a field is
     focused, which would break the layout mid-form. */
  .search-panel input{font-size:16px}
  .foot-cols{grid-template-columns:1fr;gap:18px}
  .foot-col a{font-size:13.4px}
  .footer-phone a{font-size:14px;padding:8px 12px}
  .takeaways-list li{padding-left:24px}
  .crumbs{font-size:13px;padding-top:16px}
}

/* ── touch targets ────────────────────────────────────────────────────────
   A person on a phone has to hit these with a thumb. Everything that is
   an actual control gets the full 44px; the dense footer site map gets
   28px, which is comfortably above the 24px minimum and keeps a
   120-link map from becoming a 6000px scroll. */
.brand{padding:9px 0;min-height:44px;align-items:center}
.crumbs a{display:inline-flex;align-items:center;min-height:44px}
.card-link{padding:8px 0;min-height:44px;align-items:center}
.form-note a,.faq-a a,.answer-blob a{display:inline-block;padding:6px 0}

@media (max-width:700px){
  .foot-col a{min-height:28px;padding:5px 0;display:flex;align-items:center}
  .foot-col-lead .foot-col a{min-height:44px}
  .footer-phone a{min-height:44px}
  .foot-leads .foot-col a{min-height:44px}
}

/* The "Related reading" links are primary content on every article, not
   a site-map, so they get the full tap target. */
.related li a{display:flex;align-items:center;min-height:46px;padding:6px 0}

/* A card's title is the link to the guide, so it has to be as easy to
   hit as any other control. The line-height of the title made it
   43.6px, a hair under the 44px minimum, so it is padded out. */
.card h2 a,.card h3 a{
  display:inline-flex;align-items:center;min-height:46px;
  padding:3px 0;margin:-3px 0;
}

/* The contact page's telephone links are the most important thing on
   it, so they get a real button on every width, not just a phone.
   They sit in the .takeaways-list, so they are matched by their tel:
   href rather than by a class the markup does not carry. */
.takeaways-list a[href^="tel:"],.takeaways-list a[href^="mailto:"],
.prose li a[href^="tel:"],.prose li a[href^="mailto:"]{
  display:inline-flex;align-items:center;min-height:44px;
  padding:8px 14px;border:1px solid #ddd2c4;border-radius:999px;
  background:var(--paper);margin-top:4px;
}
.takeaways-list li:has(> a[href^="tel:"]),
.takeaways-list li:has(> a[href^="mailto:"]),
.prose li:has(> a[href^="tel:"]),
.prose li:has(> a[href^="mailto:"]){padding-left:0}


@media print{
  body{background:#fff;color:#111}
  .site-head,.site-foot,.nav,.cta-box{display:none}
  /* The floating button and the reveal state are screen furniture. */
  .to-top{display:none!important}
  html.js-reveal [data-reveal]{opacity:1!important;transform:none!important}
  .hero::before{display:none}
}

/* ── the wordmark follows the theme ─────────────────────────────────────
   The wordmark PNG is a SINGLE flat brown -- one opaque colour across
   the whole image -- so it is used here as a MASK. The brown pixels
   become the shape, and the colour behind it is the current theme's
   brown. That way one asset serves every theme, instead of shipping
   one PNG per theme and having them drift apart.

   The footer wordmark is masked the same way, and painted light on the
   dark footer rather than dark on a light one. */
.brand img,.foot-brand img{
  -webkit-mask-image:url(/assets/logo-wordmark-brown.png);
  mask-image:url(/assets/logo-wordmark-brown.png);
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  background-color:var(--brown);
  filter:none;
}
.foot-brand img{background-color:var(--paper)}

