/* ==========================================================================
   Jarral Digital - main stylesheet
   Self-hosted fonts. See assets/fonts/README.txt for how to add the files.
   ========================================================================== */

@font-face{font-family:"Space Grotesk";src:url("../fonts/space-grotesk-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("../fonts/space-grotesk-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/ibm-plex-sans-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/ibm-plex-sans-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../fonts/ibm-plex-sans-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

:root{
  --pine:#14453A; --pine-deep:#0E322A; --pine-tint:#E4EDE8;
  --bone:#F7F7F4; --ink:#111512; --ink-soft:#4A524C;
  --line:#D8DBD6; --line-dark:#2F5B4F;
  --on-pine:#C3D4CC; --spec-key:#93AFA5;
  --wrap:1120px; --measure:64ch;
  --r-sm:6px; --r-md:12px; --r-lg:16px;

  /* Font stacks. The first name is the self-hosted file; everything after it
     is already installed on the visitor's machine. If the woff2 files are
     missing the site still looks deliberate - it simply renders in the
     system UI face instead of Space Grotesk. Nothing breaks. */
  --font-head:"Space Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",system-ui,"Helvetica Neue",Arial,sans-serif;
  --font-body:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Text","Segoe UI",system-ui,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-padding-top:70px}
/* Smooth only after load (main.js adds the class), so arriving at an anchor
   such as the form's ?jdf=sent#contact lands on it instead of gliding down
   from the top. Skipped for visitors who ask for reduced motion. */
@media (prefers-reduced-motion:no-preference){html.smooth-scroll{scroll-behavior:smooth}}
body{font-family:var(--font-body);font-size:16px;line-height:1.65;color:var(--ink);background:var(--bone);-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--font-head);line-height:1.12;letter-spacing:-0.02em}
a{color:inherit} img{max-width:100%;display:block}
button{font-family:inherit}
:focus-visible{outline:3px solid #8FBFAD;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.band{padding:56px 0}
.band-tint{background:var(--pine-tint)}
.band-dark{background:var(--pine);color:var(--bone)}

.btn{display:inline-block;font-size:15px;font-weight:600;line-height:1;padding:15px 22px;border-radius:var(--r-sm);text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:background .15s ease,color .15s ease}
.btn-solid{background:var(--pine);color:var(--bone);border-color:var(--pine)}
.btn-solid:hover{background:var(--pine-deep)}
.btn-invert{background:var(--bone);color:var(--pine);border-color:var(--bone)}
.btn-invert:hover{background:#fff}
.btn-ghost-light{background:transparent;color:var(--bone);border-color:var(--line-dark)}
.btn-ghost-light:hover{background:var(--pine-deep)}

/* ---- nav (sticky) ---- */
.nav{background:var(--pine);border-bottom:1px solid var(--line-dark);position:sticky;top:0;z-index:50}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:66px}
.logo{font-family:var(--font-head);font-weight:700;font-size:19px;color:var(--bone);text-decoration:none;letter-spacing:-0.02em;display:flex;align-items:center;gap:10px}
.logo svg{width:28px;height:28px;flex-shrink:0}
.nav-links{display:none}
/* :not(.btn) matters. Without it this rule (0,0,1,1) outranks .btn-invert
   (0,0,1,0) and repaints the header button's text in the muted nav colour,
   which drops it to 1.44:1 against its own bone background. */
.nav-links a:not(.btn){font-size:15px;color:var(--on-pine);text-decoration:none}
.nav-links a:not(.btn):hover{color:var(--bone)}
.burger{background:none;border:1px solid var(--line-dark);border-radius:4px;padding:9px 12px;color:var(--bone);font-size:14px;font-weight:500;cursor:pointer}
.drawer{display:none;background:var(--pine-deep);border-top:1px solid var(--line-dark)}
.drawer.open{display:block}
/* :not(.btn) for the same reason as .nav-links above. Without it this rule
   repaints the drawer's "Start a project" button in the muted nav colour and
   gives it a border it should not have. */
.drawer a:not(.btn){display:block;padding:15px 20px;color:var(--on-pine);text-decoration:none;border-bottom:1px solid var(--line-dark);font-size:16px}
/* The drawer scrolls on its own rather than stretching the sticky nav past
   the bottom of the screen. With six menu items, an expanded submenu, the
   button and the contact line, the content runs to roughly 740px - taller
   than an iPhone SE's 667px viewport, which left the button unreachable.

   100dvh is the *dynamic* viewport height, so the figure stays correct as
   mobile browser chrome slides in and out; the 100vh line above it is the
   fallback for browsers that do not know dvh. overscroll-behavior stops a
   flick at the end of the list from scrolling the page underneath. */
.drawer{
  max-height:calc(100vh - 66px);
  max-height:calc(100dvh - 66px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.drawer-cta{display:block;margin:18px 20px 0;text-align:center}
.drawer-meta{padding:14px 20px 20px;font-size:13px;line-height:1.6;color:var(--on-pine)}
.drawer-meta a{display:inline!important;padding:0!important;border:none!important;font-size:13px!important;color:var(--bone)!important;text-decoration:underline}

/* ---- hero ----
   Pitch on the left, proof card on the right from 1024px. Below that the
   card drops under the buttons as a three-up strip. The figures use the 600
   weight on purpose: it is the one heading weight preloaded above the fold,
   so the card does not swap fonts as the page loads. */
.hero{background:var(--pine);color:var(--bone);padding:48px 0 56px}
.hero-grid{display:grid;gap:36px}
.hero h1{font-size:34px;font-weight:600;margin-bottom:18px;text-wrap:balance}
.hero .lede{font-size:17px;color:var(--on-pine);max-width:52ch;margin-bottom:28px;text-wrap:pretty}
.hero-actions{display:flex;flex-direction:column;gap:12px}
.hero-actions .btn{text-align:center}
/* .page-meta is the same dotted row in the inner page hero (template-parts/page-hero.php). */
.hero-terms,.page-meta{list-style:none;display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:22px;font-size:14px;color:var(--on-pine)}
.hero-terms li,.page-meta li{display:flex;align-items:center;gap:9px}
.hero-terms li::before,.page-meta li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--spec-key);flex-shrink:0}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);background:var(--pine-deep);border:1px solid var(--line-dark);border-radius:var(--r-lg)}
.hero-stat{display:flex;flex-direction:column;gap:6px;padding:16px 12px;border-left:1px solid var(--line-dark)}
.hero-stat:first-child{border-left:0}
/* The figure sits above its label visually; the dt stays first in the
   source so a screen reader still announces "Projects delivered, 120+". */
.hero-stat dd{order:-1;font-family:var(--font-head);font-size:26px;font-weight:600;line-height:1.1;letter-spacing:-0.02em}
.hero-stat dt{font-size:12px;line-height:1.35;color:var(--spec-key)}

.sec-head{margin-bottom:32px}
.sec-head h2{font-size:27px;font-weight:600;margin-bottom:12px}
.sec-head p{color:var(--ink-soft);max-width:var(--measure)}
.band-dark .sec-head p{color:var(--on-pine)}

/* Small label over a section heading. It is a <p> inside .sec-head, so the
   colour rules name .sec-head too, or `.sec-head p` would repaint it. */
.eyebrow{font-family:var(--font-head);font-size:12px;font-weight:700;line-height:1.3;
  letter-spacing:.14em;text-transform:uppercase;color:#3C6B5C;margin-bottom:10px}
.sec-head .eyebrow{color:#3C6B5C;max-width:none}
.band-dark .eyebrow,.band-dark .sec-head .eyebrow{color:var(--spec-key)}

/* ---- problem ---- */
.prob{display:grid;gap:14px}
.prob-item{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--r-md);padding:22px}
.prob-item h3{font-size:18px;font-weight:600;margin-bottom:8px}
.prob-item p{color:var(--ink-soft);font-size:15px;line-height:1.6;margin-bottom:16px}
/* margin-top:auto lines the three fixes up on one row, as on the service cards. */
.prob-item .prob-fix{display:flex;gap:10px;align-items:flex-start;margin:auto 0 0;
  padding-top:14px;border-top:1px solid var(--line);
  color:var(--pine);font-size:14.5px;font-weight:600;line-height:1.5}
.prob-fix::before{content:"";flex-shrink:0;width:18px;height:18px;margin-top:1px;border-radius:50%;
  background:var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6 9.4 3.6' fill='none' stroke='%23F7F7F4' stroke-width='1.8'/%3E%3C/svg%3E") center/11px no-repeat}
@media (min-width:901px){ .prob{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px} }

/* ---- services ---- */
/* Service cards: the same shape as .get on the service pages. */
.svc{border-top:0;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.svc-row{display:flex;flex-direction:column;grid-template-columns:none;
  column-gap:0;padding:22px;border-bottom:0;background:#fff;
  border:1px solid var(--line);border-radius:var(--r-md);text-decoration:none;
  transition:border-color .18s ease,transform .18s ease}
.svc-row:hover{background:#fff;border-color:var(--pine);
  transform:translateY(-2px)}
.svc-row:hover .svc-name{color:var(--pine)}
.svc-row::after{display:none}
.svc-ico{display:block;padding-top:0;width:30px;height:30px;
  color:var(--pine);margin-bottom:14px}
.svc-ico svg{display:block;width:100%;height:100%}
.svc-name{font-family:var(--font-head);font-size:17px;font-weight:600;margin-bottom:7px}
.svc-desc{color:var(--ink-soft);font-size:14.5px;max-width:none;margin-bottom:12px;line-height:1.6}
/* margin-top:auto pins the price to the bottom of each card, so a row shares
   one baseline however long the description is. Do not remove it. */
.svc-price{font-size:13.5px;font-weight:600;color:var(--pine);margin-top:auto;
  padding-top:12px;border-top:1px solid var(--line)}

@media (max-width:900px){ .svc{grid-template-columns:1fr} }
@media (min-width:901px) and (max-width:1100px){
  .svc{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- estimator ---- */
/* The same panel as the hero's proof card: deep pine, hairline, large radius.
   Choices on the left, the answer on the right from 1024px. */
.est{background:var(--pine-deep);border:1px solid var(--line-dark);border-radius:var(--r-lg);overflow:hidden}
.est-steps{padding:22px}
.est-step + .est-step{margin-top:24px}
.est-label{font-size:14px;font-weight:600;color:var(--on-pine);margin-bottom:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{background:transparent;border:1px solid var(--line-dark);color:var(--bone);border-radius:var(--r-sm);padding:11px 14px;font-size:14px;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.chip:hover{border-color:#5E8A7C}
.chip[aria-pressed="true"]{background:var(--bone);color:var(--pine);border-color:var(--bone);font-weight:600}
.est-hint{font-size:14px;color:var(--spec-key)}
.est-out{border-top:1px solid var(--line-dark);padding:22px}
.est-k{font-family:var(--font-head);font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--spec-key);margin-bottom:8px}
.est-fig{font-family:var(--font-head);font-size:32px;font-weight:600;letter-spacing:-0.02em;
  color:var(--bone);line-height:1.1;margin-bottom:8px}
.est-meta{font-size:15px;color:var(--on-pine);margin-bottom:18px}
.est-out .btn{display:block;text-align:center}
.est-note{font-size:13px;color:var(--spec-key);margin-top:14px}

/* ---- work ---- */
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.filter{background:transparent;border:1px solid var(--line);color:var(--ink-soft);border-radius:var(--r-sm);padding:10px 14px;font-size:14px;cursor:pointer;transition:background .15s ease}
.filter:hover{border-color:var(--pine)}
.filter[aria-pressed="true"]{background:var(--pine);color:var(--bone);border-color:var(--pine);font-weight:600}
.work{display:grid;gap:20px}
.work-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--r-md);overflow:hidden}
.work-card[hidden]{display:none}
.work-shot{aspect-ratio:16/10;background:var(--pine-tint);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:13px;color:#5A6861;overflow:hidden}
.work-shot img{width:100%;height:100%;object-fit:cover;object-position:top center}
.work-body{display:flex;flex-direction:column;flex:1;padding:20px}
.work-type{font-size:13px;color:var(--ink-soft);margin-bottom:4px}
.work-card h3{font-size:17px;font-weight:600;line-height:1.3;margin-bottom:8px}
/* Three lines, so the cards in a row come out the same height. */
.work-card p{font-size:14.5px;line-height:1.6;color:var(--ink-soft);margin-bottom:14px;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.work-link{margin-top:auto;align-self:flex-start;font-size:14px;font-weight:600;color:var(--pine);
  text-decoration:underline;text-underline-offset:3px}
/* Homepage on phones: one swipe row instead of six full-height cards. The
   next card peeks in from the right edge, which is what says the row
   scrolls. /work/ keeps the stacked list: there, the projects are the page. */
@media (max-width:767px){
  .homepage .work{grid-auto-flow:column;grid-auto-columns:84%;gap:14px;overflow-x:auto;
    scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
    margin:0 -20px;padding:0 20px 6px;scroll-padding-inline:20px}
  .homepage .work-card{scroll-snap-align:start}
}
.homepage .work-more{margin-top:24px;text-align:center}

/* ---- process ---- */
.steps{border-top:1px solid var(--line)}
.step{display:flex;gap:18px;padding:24px 0;border-bottom:1px solid var(--line)}
.step-n{font-family:var(--font-head);font-size:15px;font-weight:700;color:var(--pine);flex-shrink:0;width:26px;padding-top:2px}
.step h3{font-size:18px;font-weight:600;margin-bottom:6px}
.step p{color:var(--ink-soft);font-size:15px;max-width:52ch}

/* ---- results ---- */
/* One card split into cells: the light-band twin of the hero's proof card.
   1 column on phones, 2 on tablets, 3 from 1024px. */
.results{display:grid;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg)}
.result{padding:22px 24px;border-top:1px solid var(--line)}
.result:first-child{border-top:0}
.result .big{font-family:var(--font-head);font-size:32px;font-weight:600;letter-spacing:-0.02em;
  color:var(--pine);line-height:1.1;margin-bottom:8px}
.result p{font-size:15px;line-height:1.6;color:var(--ink-soft)}

/* ---- who ---- */
.who{display:grid;grid-template-columns:280px minmax(0,1fr);
  grid-template-areas:"photo head" "photo body";column-gap:56px;align-items:start}
/* .about-photo is the same portrait on the About page (template-parts/portrait.php). */
.who-photo,.about-photo{aspect-ratio:4/5;background:var(--pine-tint);border:1px solid var(--line);border-radius:var(--r-md);display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;color:#5A6861;overflow:hidden}
.who-photo{grid-area:photo}
.who-photo img,.about-photo img{width:100%;height:100%;object-fit:cover}
.who-photo span,.about-photo span{padding:10px}
/* What visitors see until a photo is uploaded. */
.who-photo .who-initials,.about-photo .who-initials{font-family:var(--font-head);font-size:56px;font-weight:600;letter-spacing:-0.02em;color:var(--pine)}
.who-head{grid-area:head;margin-bottom:16px}
.who-body{grid-area:body}
.who h2{font-size:26px;font-weight:600}
.who-body p{color:var(--ink-soft);max-width:56ch;margin-bottom:14px}
/* Four facts as a 2x2 grid. The 1px gap over a line-coloured background
   draws the dividers, so no cell needs to know where it sits. */
.who-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-top:22px;
  background:#C2D6CC;border:1px solid #C2D6CC;border-radius:var(--r-md);overflow:hidden}
.who-facts div{background:#F3F7F5;padding:13px 16px}
.who-facts dt{color:#3C6B5C;font-size:13px;margin-bottom:2px}
.who-facts dd{font-weight:600;font-size:14.5px;line-height:1.45;color:var(--pine)}

/* Phones and tablets: a small portrait beside the heading, text below. A
   full-width photo here pushed the heading most of a screen down. */
@media (max-width:900px){
  .who{grid-template-columns:88px minmax(0,1fr);grid-template-areas:"photo head" "body body";
    column-gap:18px;align-items:center}
  .who-photo{aspect-ratio:1/1;font-size:10px;line-height:1.35}
  .who-photo span{padding:6px}
  .who-photo .who-initials{font-size:28px}
  .who-head{margin-bottom:0}
  .who-body{margin-top:20px}
}

/* ---- faq ---- */
.faq{border-top:1px solid var(--line);max-width:760px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{font-family:var(--font-head);font-size:17px;font-weight:600;padding:20px 0;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;font-weight:500;color:var(--pine);line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details p{padding:0 0 20px;color:var(--ink-soft);max-width:56ch}

/* ---- contact ---- */
/* The form appears in two places on two different backgrounds: inside the
   dark homepage section, and via [jarral_contact_form] on an ordinary light
   page. The LIGHT treatment is the default, because the shortcode is the
   general case; the dark section overrides it below. Styling it dark-first
   is what made the Contact page labels render at 1.44:1 and the submit
   button bone-on-bone, i.e. invisible. */
.form{display:grid;gap:14px;max-width:560px;margin-top:28px}
.field label{display:block;font-size:14px;font-weight:500;margin-bottom:6px;color:var(--ink-soft)}
.field input,.field select,.field textarea{
  width:100%;font-family:inherit;font-size:16px;padding:13px 14px;border-radius:var(--r-sm);
  border:1px solid var(--line);background:#fff;color:var(--ink);
}
.field textarea{min-height:120px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:#6B736D}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--pine);outline:2px solid #8FBFAD;outline-offset:1px}
.form-row{display:grid;gap:14px}

/* On a light page the submit button must be solid, not bone-on-bone. */
.form .btn-invert{background:var(--pine);color:var(--bone);border-color:var(--pine)}
.form .btn-invert:hover{background:var(--pine-deep);color:var(--bone)}

.form{background:#fff;border:1px solid var(--line);
  border-radius:var(--r-md);padding:28px}

/* ---- dark-section overrides: only inside .band-dark ---- */
/* Not --pine-deep: the fields below are already that colour and would vanish
   into the panel. A 5% white wash lifts it off the band instead. */
.band-dark .form{background:rgba(255,255,255,.05);
  border:1px solid var(--line-dark)}
.band-dark .field label{color:var(--on-pine)}
.band-dark .field input,
.band-dark .field select,
.band-dark .field textarea{border-color:var(--line-dark);background:var(--pine-deep);color:var(--bone)}
.band-dark .field input::placeholder,
.band-dark .field textarea::placeholder{color:#9FBCB1}
.band-dark .form .btn-invert{background:var(--bone);color:var(--pine);border-color:var(--bone)}
.band-dark .form .btn-invert:hover{background:#fff;color:var(--pine)}

/* ---- footer ---- */
/* The brand block reads as a lockup: mark, name, and the site Tagline under
   it. Column headings use the eyebrow style the pages use. */
.foot{background:var(--ink);color:#9AA69F;padding:52px 0 28px;font-size:14px}
.foot a{color:var(--on-pine);text-decoration:none}
.foot a:hover{color:var(--bone);text-decoration:underline;text-underline-offset:3px}
.foot-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 24px;margin-bottom:40px}
.foot-brand,.foot-services{grid-column:1 / -1}
.foot a.foot-logo{display:inline-flex;align-items:center;gap:12px;margin-bottom:16px;color:var(--bone);text-decoration:none}
.foot-logo svg{width:38px;height:38px;flex-shrink:0}
.foot-name{display:flex;flex-direction:column;font-family:var(--font-head);font-size:19px;font-weight:700;
  line-height:1.2;letter-spacing:-0.02em}
.foot-tag{margin-top:3px;font-family:var(--font-body);font-size:13px;font-weight:400;letter-spacing:0;color:#9AA69F}
.foot-brand p{max-width:46ch;line-height:1.7}
.foot-contact{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:14px}
.foot-h{font-family:var(--font-head);font-size:12px;font-weight:700;line-height:1.3;letter-spacing:.14em;
  text-transform:uppercase;color:var(--spec-key);margin-bottom:14px}
.foot ul{list-style:none;display:grid;gap:9px}
.foot-base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;
  border-top:1px solid #2A302C;padding-top:20px;font-size:13px}

@media (min-width:768px){
  body{font-size:17px}
  .wrap{padding:0 32px}
  .band{padding:76px 0}
  .hero{padding:64px 0 72px}
  .hero h1{font-size:48px}
  .hero .lede{font-size:19px}
  .hero-actions{flex-direction:row;gap:14px}
  .hero-terms{font-size:15px}
  .hero-stat{padding:20px 24px}
  .hero-stat dd{font-size:34px}
  .hero-stat dt{font-size:14px}
  .sec-head h2{font-size:34px}
  .work{grid-template-columns:repeat(2,1fr)}
  .result{padding:26px 28px;border-top:0;border-left:1px solid var(--line)}
  .form-row{grid-template-columns:1fr 1fr}
  .foot-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
  .foot-services{grid-column:auto}
  .est-steps,.est-out{padding:28px}
  .who h2{font-size:32px}
}
@media (min-width:768px) and (max-width:1023px){
  .results{grid-template-columns:repeat(2,minmax(0,1fr))}
  .result:nth-child(odd){border-left:0}
  .result:nth-child(n+3){border-top:1px solid var(--line)}
}
@media (min-width:1024px){
  .nav-links{display:flex;gap:28px;align-items:center}
  .burger{display:none}
  .drawer{display:none!important}
  .band{padding:96px 0}
  .hero{padding:80px 0 88px}
  .hero-grid{grid-template-columns:minmax(0,1fr) 300px;gap:72px;align-items:center}
  .hero h1{font-size:clamp(46px,4.6vw,56px)}
  .hero-stats{grid-template-columns:1fr}
  .hero-stat{padding:22px 28px;border-left:0;border-top:1px solid var(--line-dark)}
  .hero-stat:first-child{border-top:0}
  .hero-stat dd{font-size:40px}
  .sec-head h2{font-size:38px}
  .est{display:grid;grid-template-columns:minmax(0,1fr) 340px}
  .est-steps{padding:30px}
  .est-out{padding:30px;border-top:0;border-left:1px solid var(--line-dark)}
  .work{grid-template-columns:repeat(3,minmax(0,1fr))}
  .results{grid-template-columns:repeat(3,minmax(0,1fr))}
  .result:nth-child(3n+1){border-left:0}
  .result:nth-child(n+4){border-top:1px solid var(--line)}
  .result .big{font-size:40px}
  .who h2{font-size:36px}
  .foot-cols{grid-template-columns:1.8fr 1.3fr 1fr 1fr;gap:40px}
  .foot-brand{grid-column:auto}
}

/* ==========================================================================
   WordPress-specific additions
   ========================================================================== */

/* Keyboard users must be able to jump past the nav. Legally required in the EU. */
.jd-skip{position:absolute;left:-9999px;top:0;background:var(--bone);color:var(--pine);
  padding:12px 18px;z-index:100;font-weight:600;border-radius:0 0 4px 0}
.jd-skip:focus{left:0}

/* Sticky header offset, so anchor links do not land under the bar. */
html{scroll-padding-top:76px}

.btn-sm{padding:11px 18px}

/* Menus output by wp_nav_menu */
.nav-list{list-style:none;display:flex;gap:28px;align-items:center;margin:0;padding:0}
.nav-list a:not(.btn){font-size:15px;color:var(--on-pine);text-decoration:none}
.nav-list a:not(.btn):hover,.nav-list .current-menu-item a:not(.btn){color:var(--bone)}
.drawer-list{list-style:none;margin:0;padding:0}
.drawer-list a{display:block;padding:15px 20px;color:var(--on-pine);text-decoration:none;
  border-bottom:1px solid var(--line-dark);font-size:16px}
.foot ul{margin:0;padding:0}

/* Definition lists used for the hero stats and the about facts */
.hero-stats{margin:0}
.hero-stat dt,.hero-stat dd,.who-facts dt,.who-facts dd{margin:0}

/* Blog and page content */
.prose{max-width:68ch;font-size:17px}
.prose h2{font-size:27px;margin:44px 0 14px}
.prose h3{font-size:20px;margin:32px 0 10px}
.prose p,.prose ul,.prose ol{margin-bottom:20px;color:var(--ink-soft)}
.prose ul,.prose ol{padding-left:22px}
.prose li{margin-bottom:8px}
.prose a{color:var(--pine);text-underline-offset:3px}
.prose img{margin:28px 0;border:1px solid var(--line)}
.prose blockquote{border-left:3px solid var(--pine);padding:4px 0 4px 20px;margin:28px 0;font-size:19px}
.prose code{background:var(--pine-tint);padding:2px 6px;font-size:.9em;font-family:ui-monospace,monospace}
.prose pre{background:var(--ink);color:var(--bone);padding:20px;overflow-x:auto;margin:28px 0}
.prose pre code{background:none;color:inherit;padding:0}
.prose table{width:100%;border-collapse:collapse;margin:28px 0;display:block;overflow-x:auto}
.prose th,.prose td{border:1px solid var(--line);padding:10px 12px;text-align:left}

.post-meta{font-size:15px;color:var(--ink-soft)}

/* WordPress's own visually-hidden class. the_posts_pagination() prints its
   heading with it, and without this rule the heading showed on screen. */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* the_posts_pagination() wraps its links in .nav-links, the header menu's
   class, which is display:none below 1024px. This puts them back. */
.pagination{margin-top:36px}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px}
.page-numbers{border:1px solid var(--line);border-radius:var(--r-sm);padding:9px 14px;text-decoration:none;font-size:15px;background:#fff}
.page-numbers.current{background:var(--pine);color:var(--bone);border-color:var(--pine)}

/* Contact form, rendered by the Jarral Forms plugin */
.jdf-note{padding:14px 16px;margin-bottom:18px;font-size:15px;border-radius:var(--r-md)}
.jdf-note-ok{background:var(--pine-tint);color:var(--pine);border:1px solid #A9C6B9}
.jdf-note-bad{background:#FDECEA;color:#8A2015;border:1px solid #E8B4AE}
.band-dark .jdf-note-ok{background:var(--bone);color:var(--pine);border:none}
.band-dark .jdf-note-bad{background:#5A1F1A;color:#FFD9D4;border:none}
.band-dark .jdf-err{color:#FFB4A8}
.jdf-err{display:block;font-size:13px;color:#A3291B;margin-top:5px}
.jdf-hp{position:absolute!important;left:-9999px!important;height:1px;width:1px;overflow:hidden}

/* ---- estimator carry-over card -------------------------------------------
   The three estimator values used to arrive as hidden inputs with one line of
   small text. The data was reaching the database and the email correctly, but
   the visitor could not see that it had. This panel shows it back to them, so
   the form confirms what they picked instead of asking them to trust it. */
.jdf-quote{border:1px solid var(--line);border-left:3px solid var(--pine);
  background:var(--pine-tint);padding:16px 18px;margin-bottom:22px;border-radius:var(--r-md)}
.jdf-quote-k{font-family:var(--font-head);font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:#3C6B5C;margin-bottom:8px}
.jdf-quote-svc{font-family:var(--font-head);font-size:18px;font-weight:600;color:var(--pine);
  line-height:1.25;margin-bottom:2px}
.jdf-quote-price{font-family:var(--font-head);font-size:25px;font-weight:700;color:var(--pine);
  letter-spacing:-.02em;line-height:1.15;margin-bottom:0}
.jdf-quote-extras{font-size:14px;color:#3C6B5C;margin-top:9px;line-height:1.55}
.jdf-quote-foot{font-size:13px;color:#3C6B5C;margin-top:12px;
  padding-top:11px;border-top:1px solid #C2D6CC}
.jdf-quote-foot a{color:var(--pine);text-decoration:underline;font-weight:500}

/* On the dark homepage band the same card inverts. */
.band-dark .jdf-quote{background:var(--pine-deep);border-color:var(--line-dark);border-left-color:var(--bone)}
.band-dark .jdf-quote-k,
.band-dark .jdf-quote-extras,
.band-dark .jdf-quote-foot{color:var(--on-pine)}
.band-dark .jdf-quote-svc,
.band-dark .jdf-quote-price{color:var(--bone)}
.band-dark .jdf-quote-foot{border-top-color:var(--line-dark)}
.band-dark .jdf-quote-foot a{color:var(--bone)}

/* ---- shortcode form block -------------------------------------------------
   What [jarral_contact_form] wraps itself in when given a heading, so one
   shortcode produces a finished section on a service page rather than a bare
   form floating under the body text. */
.jdf-block{margin-top:56px}
.jdf-block .jdf-block-head{margin-bottom:26px;max-width:58ch}
.jdf-block h2{font-size:26px;font-weight:600;margin-bottom:12px}
.jdf-block .jdf-block-intro{font-size:17px;color:var(--ink-soft);line-height:1.6}
.band-dark.jdf-block .jdf-block-intro{color:var(--on-pine)}
.jdf-block .form{max-width:720px}

/* ==========================================================================
   MOTION

   Deliberately small. Three rules governed what went in here:

   1. One orchestrated moment, not many. The hero animates once on load.
      Nothing else animates on scroll. Fade-and-slide on every section is
      the commonest tell of a templated site, and it causes layout shift,
      which costs you Core Web Vitals - which you need for search.

   2. Motion answers an action. A hover that reveals an arrow tells you the
      row is clickable. A price that flashes tells you it just changed.
      Motion that fires on its own tells you nothing.

   3. Everything here is switched off for anyone who asks their operating
      system to reduce motion. See the bottom of this block.
   ========================================================================== */

@keyframes jd-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes jd-flash{0%{background:rgba(247,247,244,.14)}100%{background:transparent}}

/* --- The one page-load moment: the hero, in sequence --------------------- */
/* The card rises as one piece. Staggering the figures inside it would leave
   an empty dark box on screen for the first quarter-second. */
.hero h1,
.hero .lede,
.hero-actions,
.hero-terms,
.hero-stats{
  animation:jd-rise .5s cubic-bezier(.22,.61,.36,1) both;
}
.hero h1{animation-delay:.02s}
.hero .lede{animation-delay:.10s}
.hero-actions{animation-delay:.18s}
.hero-terms{animation-delay:.24s}
.hero-stats{animation-delay:.30s}

/* --- Work cards: a border change, not a lift ---------------------------- */
/* A lift needs a shadow, and a shadow on a flat design looks bolted on. */
.work-card{transition:border-color .2s ease}
.work-card:hover{border-color:var(--pine)}
.work-shot img{transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.work-card:hover .work-shot img{transform:scale(1.03)}

/* --- Estimator: the figure flashes when the number changes --------------- */
.est-fig{transition:color .2s ease}
.est-fig.jd-changed{animation:jd-flash .5s ease-out}
.chip{transition:background .15s ease,border-color .15s ease,transform .08s ease}
.chip:active{transform:scale(.97)}

/* --- Filters and buttons: press feedback -------------------------------- */
.filter{transition:background .15s ease,border-color .15s ease,color .15s ease,transform .08s ease}
.filter:active{transform:scale(.97)}
.btn{transition:background .16s ease,color .16s ease,transform .08s ease}
.btn:active{transform:scale(.98)}

/* --- FAQ: the icon rotates instead of swapping characters ---------------- */
.faq summary::after{transition:transform .2s ease}
.faq details[open] summary::after{content:"+";transform:rotate(45deg)}

/* --- Header shrinks slightly once you scroll ---------------------------- */
.nav{transition:box-shadow .2s ease}
.nav.jd-stuck{box-shadow:0 1px 0 rgba(0,0,0,.18)}

/* --- Respect the system setting. Non-negotiable. ------------------------ */
@media (prefers-reduced-motion:reduce){
  .hero h1,.hero .lede,.hero-actions,.hero-terms,.hero-stats{animation:none}
  .est-fig.jd-changed{animation:none}
  .work-card:hover .work-shot img{transform:none}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}

/* ==========================================================================
   MEGA MENU

   Built as a disclosure, not a hover trick. It opens on click, tap or Enter
   and closes on a second click, a click elsewhere, or Escape. It never opens
   on hover, which is why the trigger is a real <button> with aria-expanded.
   ========================================================================== */

/* The panel must be as wide as the header, not as wide as the word that
   opens it. .jd-mega is position:absolute, so it anchors to its nearest
   POSITIONED ancestor. With position:relative on .jd-top that ancestor was
   the <li>, so left:0/right:0 resolved to the width of "Services" - about
   70px - and the three-column grid collapsed into it. Keeping every ancestor
   static makes .nav (position:sticky, which counts as positioned) the
   containing block, so the panel spans the full header width. */
.nav{position:sticky}
.nav-links{position:static}
.nav-list{position:static}
.jd-top{position:static;display:flex;align-items:center}

.jd-top-link{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-body);font-size:15px;font-weight:400;
  color:var(--on-pine);text-decoration:none;
  background:none;border:0;padding:0;cursor:pointer;
  transition:color .15s ease;
}
.jd-top-link:hover,.jd-top-link[aria-expanded="true"]{color:var(--bone)}
.jd-top-link:focus-visible{outline:3px solid #8FBFAD;outline-offset:4px;border-radius:2px}

.jd-caret{
  width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translate(-2px,-2px);
  transition:transform .2s ease;
}
.jd-mega-toggle[aria-expanded="true"] .jd-caret{transform:rotate(225deg) translate(-2px,-2px)}

/* --- the panel ---------------------------------------------------------- */
.jd-mega{
  position:absolute;left:0;right:0;top:100%;
  background:var(--pine-deep);
  border-top:1px solid var(--line-dark);
  border-bottom:1px solid var(--line-dark);
  box-shadow:0 14px 28px rgba(0,0,0,.22);
  z-index:60;
}
.jd-mega[hidden]{display:none}
.jd-mega-inner{max-width:var(--wrap);margin:0 auto;padding:26px 32px 30px}
.jd-mega-grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 28px;
}
.jd-mega-item{margin:0}

.jd-mega-link{
  display:flex;gap:14px;align-items:flex-start;
  padding:14px 14px 14px 12px;border-radius:4px;text-decoration:none;
  transition:background .15s ease;
}
.jd-mega-link:hover,.jd-mega-link:focus-visible{background:rgba(247,247,244,.07)}
.jd-mega-link:focus-visible{outline:2px solid #8FBFAD;outline-offset:-2px}

.jd-mega-ico{flex-shrink:0;padding-top:2px}
.jd-mega-ico svg{width:22px;height:22px;display:block;stroke:#8FBFAD}

.jd-mega-text{display:block;min-width:0}
.jd-mega-name{
  display:block;font-family:var(--font-head);font-size:16px;font-weight:600;
  color:var(--bone);margin-bottom:4px;letter-spacing:-.01em;
}
.jd-mega-desc{display:block;font-size:13px;line-height:1.5;color:var(--on-pine);margin-bottom:6px}
.jd-mega-price{display:block;font-size:12px;font-weight:600;color:#8FBFAD}

/* Link to the top-level page itself (e.g. /services/). The top-level item is
   a button that opens this panel, so it cannot also be the link. The `a` in
   the selector is what lets it outrank `.nav-list a:not(.btn)`. */
.jd-mega a.jd-mega-all{
  display:inline-block;margin-top:14px;padding:10px 12px;border-radius:4px;
  font-size:14px;font-weight:600;color:var(--bone);text-decoration:none;
}
.jd-mega-all:hover,.jd-mega-all:focus-visible{background:rgba(247,247,244,.07)}
.jd-mega-all:focus-visible{outline:2px solid #8FBFAD;outline-offset:-2px}

/* Panel entrance. One short movement, nothing decorative. */
@keyframes jd-mega-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.jd-mega:not([hidden]){animation:jd-mega-in .18s ease-out both}

/* --- mobile drawer: nested list, no panel ------------------------------- */
.drawer-list .sub-menu,
.drawer-list .jd-mega{
  position:static;list-style:none;margin:0;padding:0;
  background:transparent;border:0;animation:none;
}
/* The submenu starts collapsed and animates open.

   This rule used to read `.drawer-list .jd-mega[hidden]{display:block}`.
   The intent was to stop the panel being absolutely positioned inside the
   drawer, but `display:block` beats the browser's own `[hidden]` styling,
   so the panel was forced open no matter what the JavaScript did - the
   submenu was permanently expanded and tapping the arrow did nothing.

   `grid-template-rows: 0fr -> 1fr` animates to the panel's real height
   without guessing a max-height, so the motion finishes exactly when the
   content stops moving. `visibility` is what keeps collapsed links out of
   the keyboard tab order: it flips to visible immediately on open, and
   back to hidden only after the collapse has finished. */
.drawer-list .jd-mega{
  display:grid;grid-template-rows:0fr;visibility:hidden;
  transition:grid-template-rows .26s ease, visibility 0s linear .26s;
}
.drawer-list .jd-mega.is-open{
  grid-template-rows:1fr;visibility:visible;
  transition:grid-template-rows .26s ease, visibility 0s;
}
.drawer-list .jd-mega-inner{max-width:none;margin:0;padding:0;min-height:0;overflow:hidden}
.drawer-list .jd-mega-grid{display:block}
/* `a` in these two selectors: without it `.drawer a:not(.btn)` outranks them
   and the submenu links lose their 38px indent. */
.drawer-list a.jd-mega-link{
  padding:13px 20px 13px 38px;border-bottom:1px solid var(--line-dark);border-radius:0;
}
.drawer-list .jd-mega-desc,
.drawer-list .jd-mega-price,
.drawer-list .jd-mega-ico{display:none}
.drawer-list .jd-mega-name{margin:0;font-size:15px;font-weight:400;font-family:var(--font-body)}
.drawer-list a.jd-mega-all{
  display:block;margin:0;padding:13px 20px 13px 38px;
  border-bottom:1px solid var(--line-dark);border-radius:0;font-size:15px;
}
.drawer-list .jd-top-link{
  display:flex;justify-content:space-between;align-items:center;
  width:100%;text-align:left;
  padding:15px 20px;border-bottom:1px solid var(--line-dark);font-size:16px;
}
/* On mobile the caret belongs at the right edge, where a thumb expects it. */
.drawer-list .jd-caret{margin-right:4px}
.drawer-list .jd-top{display:block}

@media (max-width:1023px){
  .jd-mega{position:static}
}
@media (prefers-reduced-motion:reduce){
  .jd-mega:not([hidden]){animation:none}
  .jd-caret{transition:none}
  /* The submenu still opens and closes, it just does it instantly. The
     visibility delay has to go too, or a collapsed panel would keep its
     links in the tab order for a quarter of a second after closing. */
  .drawer-list .jd-mega,
  .drawer-list .jd-mega.is-open{transition:none}
  .drawer{scroll-behavior:auto}
}

/* ---- service page ---- */
.svc-hero{background:var(--pine);color:var(--bone);padding-block:60px 54px}
.svc-eyebrow{font-family:var(--font-head);font-size:12px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:var(--spec-key);
  margin-bottom:14px}
.svc-hero h1{font-size:clamp(30px,4.4vw,44px);font-weight:600;
  max-width:17ch;margin-bottom:18px}
.svc-hero .lede{font-size:18px;color:var(--on-pine);max-width:56ch;
  margin-bottom:26px}
.svc-hero-meta{display:flex;flex-wrap:wrap;gap:12px 34px;
  align-items:baseline;margin-bottom:30px}
.svc-hero-price{font-family:var(--font-head);font-size:26px;font-weight:700;
  letter-spacing:-.02em}
.svc-hero-price span{font-size:14px;font-weight:500;color:var(--on-pine);
  letter-spacing:0}
.svc-hero-time{font-size:15px;color:var(--on-pine)}
.svc-hero-actions{display:flex;flex-wrap:wrap;gap:12px}

.cols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:56px;
  align-items:start}
.cols .prose{max-width:none}
.factcard{position:sticky;top:90px;background:var(--pine-tint);
  border:1px solid #C2D6CC;border-radius:var(--r-md);padding:24px}
.factcard h2{font-family:var(--font-head);font-size:12px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:#3C6B5C;
  margin-bottom:16px}
.factrow{display:flex;justify-content:space-between;gap:16px;padding:11px 0;
  border-bottom:1px solid #C2D6CC;font-size:14.5px}
.factrow:last-of-type{border-bottom:0}
.factrow dt{color:#3C6B5C}
.factrow dd{margin:0;font-weight:600;color:var(--pine);text-align:right}
.factcard .btn{display:block;text-align:center;margin-top:18px}

.gets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.get{background:#fff;border:1px solid var(--line);
  border-radius:var(--r-md);padding:22px}
.get-ico{width:30px;height:30px;color:var(--pine);margin-bottom:14px}
.get-ico svg{width:100%;height:100%}
.get h3{font-size:17px;font-weight:600;margin-bottom:7px}
.get p{font-size:14.5px;color:var(--ink-soft);line-height:1.6}

@media (max-width:900px){
  .cols{grid-template-columns:1fr;gap:34px}
  .factcard{position:static}
  .gets{grid-template-columns:1fr}
}
@media (min-width:901px) and (max-width:1100px){
  .gets{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- homepage contact: copy beside the form ---- */
.contact-cols{display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:56px;align-items:start}
.contact-copy h2{font-size:26px;font-weight:600;margin-bottom:16px;
  max-width:16ch}
.contact-copy .lede{font-size:17px;color:var(--on-pine);
  margin-bottom:26px;max-width:46ch}
/* Light by default for the Contact page; the dark homepage band overrides. */
.promise{list-style:none;margin:0 0 26px;padding:0;
  border-top:1px solid var(--line)}
.promise li{padding:14px 0 14px 28px;
  border-bottom:1px solid var(--line);position:relative;
  font-size:15px;color:var(--ink-soft);line-height:1.55}
.promise li strong{display:block;color:var(--ink);font-weight:600;
  margin-bottom:2px}
.promise li::before{content:"";position:absolute;left:2px;top:19px;
  width:9px;height:9px;border-radius:50%;background:var(--pine)}
.contact-meta{font-size:14.5px;color:var(--ink-soft);line-height:1.7}
.contact-meta a{color:var(--pine);text-underline-offset:3px}
.band-dark .promise{border-top-color:var(--line-dark)}
.band-dark .promise li{border-bottom-color:var(--line-dark);color:var(--on-pine)}
.band-dark .promise li strong{color:var(--bone)}
.band-dark .promise li::before{background:var(--bone)}
.band-dark .contact-meta{color:var(--on-pine)}
.band-dark .contact-meta a{color:var(--bone)}

@media (max-width:900px){ .contact-cols{grid-template-columns:1fr;gap:34px} }

/* ==========================================================================
   HOMEPAGE AND INNER PAGES

   One rhythm for every section under a hero: tighter bands, an eyebrow
   over each heading, and from 1024px the heading and its intro side by
   side. Scoped to .homepage (front-page.php) and .inner-page (About,
   Process, Contact, the policies, the blog, /work/ and the 404), because
   the service pages share .band, .sec-head, .steps, .svc and .faq, and
   keep their own look.
   ========================================================================== */
.homepage .band,.inner-page .band{padding:52px 0}
.homepage h2,.inner-page h2{text-wrap:balance}
.homepage .sec-head,.inner-page .sec-head{margin-bottom:28px}
.homepage .sec-head h2,.inner-page .sec-head h2{font-size:26px;margin-bottom:0}
.homepage .sec-head > p,.inner-page .sec-head > p{margin-top:12px}
.inner-page .sec-head a{color:var(--pine);text-underline-offset:3px}

/* Services on phones: compact rows, icon beside the text, instead of six
   full cards. Same content, about half the height. */
@media (max-width:767px){
  .homepage .svc,.inner-page .svc{gap:10px}
  .homepage .svc-row,.inner-page .svc-row{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:14px;padding:16px 18px}
  .homepage .svc-ico,.inner-page .svc-ico{grid-row:1 / span 3;width:24px;height:24px;margin:1px 0 0}
  .homepage .svc-name,.inner-page .svc-name{margin-bottom:4px;line-height:1.35}
  .homepage .svc-desc,.inner-page .svc-desc{font-size:14px;margin-bottom:6px}
  .homepage .svc-price,.inner-page .svc-price{padding-top:0;border-top:0}
}
/* Tablets: two across, as at 901-1100px, rather than one stretched column. */
@media (min-width:768px) and (max-width:900px){
  .homepage .svc,.inner-page .svc{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Process: a numbered timeline, down the page below 1024px, across it above. */
.homepage .steps{display:grid;border-top:0}
.homepage .step{position:relative;gap:16px;padding:0 0 26px;border-bottom:0}
.homepage .step:last-child{padding-bottom:0}
.homepage .step::before{content:"";position:absolute;left:18px;top:44px;bottom:6px;width:1px;background:var(--line)}
.homepage .step:last-child::before{display:none}
.homepage .step-n{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;
  border:1.5px solid var(--pine);border-radius:50%;background:var(--bone);font-size:13px}
.homepage .step h3{font-size:17px;margin:7px 0 4px}

/* FAQ: a short intro with a way to ask, beside the list from 1024px. */
.faq-intro{margin-bottom:24px}
.faq-intro h2{font-size:26px;font-weight:600;margin-bottom:12px}
.faq-intro p:not(.eyebrow){color:var(--ink-soft);max-width:46ch}
.faq-intro a{color:var(--pine);font-weight:500;text-underline-offset:3px}
.homepage .faq{max-width:none}
.homepage .faq summary{font-size:16px;padding:18px 0}

@media (min-width:768px){
  .homepage .band,.inner-page .band{padding:64px 0}
  .homepage .sec-head h2,.inner-page .sec-head h2,.faq-intro h2,.contact-copy h2{font-size:32px}
}
@media (min-width:1024px){
  .homepage .band,.inner-page .band{padding:80px 0}
  .homepage .sec-head,.inner-page .sec-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:56px;align-items:end;margin-bottom:36px}
  .homepage .sec-head > p,.inner-page .sec-head > p{margin-top:0;max-width:48ch}
  .homepage .sec-head h2,.inner-page .sec-head h2,.faq-intro h2,.contact-copy h2{font-size:36px}

  .homepage .steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
  .homepage .step{flex-direction:column;gap:0;padding:0}
  .homepage .step::before{left:48px;right:-20px;top:18px;bottom:auto;width:auto;height:1px}
  .homepage .step h3{margin:18px 0 6px}

  .faq-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:64px;align-items:start}
  .faq-intro{position:sticky;top:100px;margin-bottom:0}
  .homepage .faq summary{font-size:17px}
}

/* ==========================================================================
   INNER PAGES

   Everything under .inner-page: the page hero, the document layout, blog
   cards, empty states and the closing call to action. The templates are
   page.php, page-about.php, page-contact.php, page-sitemap.php, index.php, single.php,
   archive-jd_project.php, single-jd_project.php and 404.php.
   ========================================================================== */

/* ---- page hero: the homepage hero's pine band, cut down ---- */
.page-hero{background:var(--pine);color:var(--bone);padding:40px 0 48px}
.page-hero h1{font-size:32px;font-weight:600;max-width:24ch;text-wrap:balance}
.page-hero .lede{font-size:17px;color:var(--on-pine);max-width:60ch;margin-top:14px;text-wrap:pretty}

/* Breadcrumbs, set like the eyebrow labels on the homepage. */
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;margin-bottom:14px;
  font-family:var(--font-head);font-size:12px;font-weight:700;line-height:1.5;letter-spacing:.14em;
  text-transform:uppercase;color:var(--spec-key)}
.crumbs li + li::before{content:"/";margin:0 10px;opacity:.6}
.crumbs a{color:var(--on-pine);text-decoration:none}
.crumbs a:hover{color:var(--bone);text-decoration:underline;text-underline-offset:3px}

/* ---- document: the content, with its "On this page" list ---- */
.doc{display:grid}
.doc .prose{min-width:0}
/* Cropped to 16:10, then 2:1 from 768px, so a full-width image does not
   push the first paragraph a whole screen down. Screenshots crop from the top. */
.doc-figure{aspect-ratio:16/10;margin:0 0 36px;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--pine-tint)}
.doc-figure img{width:100%;height:100%;object-fit:cover;object-position:top center}

/* Prose set to the homepage's type: a hairline between sections, pine
   bullets, tables in a rounded box. Scoped to .inner-page because the
   service pages' details section is .prose too. */
.inner-page .prose > :first-child{margin-top:0}
.inner-page .prose h2{font-size:23px;font-weight:600;margin:40px 0 12px;padding-top:32px;border-top:1px solid var(--line)}
.inner-page .prose > h2:first-child{padding-top:0;border-top:0}
.inner-page .prose h3{font-size:19px;font-weight:600;margin:28px 0 8px}
.inner-page .prose p,.inner-page .prose ul,.inner-page .prose ol{margin-bottom:18px}
.inner-page .prose ul{list-style:none;padding-left:0}
.inner-page .prose ul li{position:relative;padding-left:22px}
.inner-page .prose ul li::before{content:"";position:absolute;left:3px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--pine)}
.inner-page .prose ol li::marker{color:var(--pine);font-weight:600}
.inner-page .prose strong{color:var(--ink)}
/* jd_prepare_content() wraps every table in .table-wrap, which scrolls
   sideways on a phone instead of the table stretching the page. */
.table-wrap{overflow-x:auto;margin:24px 0;background:#fff;border:1px solid var(--line);border-radius:var(--r-md)}
.inner-page .prose .table-wrap table{display:table;width:100%;margin:0;border-collapse:collapse}
.inner-page .prose th,.inner-page .prose td{border:0;border-bottom:1px solid var(--line);padding:12px 16px;
  text-align:left;vertical-align:top;font-size:15px}
.inner-page .prose tr:last-child td{border-bottom:0}
.inner-page .prose th{background:var(--pine-tint);font-family:var(--font-head);font-weight:600;color:var(--ink);
  line-height:1.4;white-space:nowrap}

/* "On this page": sticky beside the content from 1024px. Hidden below that:
   at the top of a phone screen it is a long list to scroll past, and at the
   bottom it is too late to help. */
.toc{display:none;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;padding:20px 22px}
.toc .eyebrow{margin-bottom:10px}
.toc ol{list-style:none;margin:0;padding:0}
.toc a{display:block;padding:6px 0;font-size:14.5px;line-height:1.4;color:var(--ink-soft);text-decoration:none}
.toc a:hover{color:var(--pine);text-decoration:underline;text-underline-offset:3px}

/* ---- blog cards ---- */
.post-grid{display:grid;gap:20px}
.post-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--r-md);overflow:hidden;transition:border-color .2s ease}
.post-card:hover,.post-card:focus-within{border-color:var(--pine)}
.post-card-shot{aspect-ratio:16/10;background:var(--pine-tint);border-bottom:1px solid var(--line);overflow:hidden}
.post-card-shot img{width:100%;height:100%;object-fit:cover}
.post-card-shot.is-blank{background-image:repeating-linear-gradient(135deg,rgba(20,69,58,.07) 0 1px,transparent 1px 14px)}
.post-card-body{display:flex;flex-direction:column;flex:1;padding:20px}
.post-card .post-meta{font-size:13px;margin-bottom:6px}
.post-card h2{font-size:18px;font-weight:600;line-height:1.3;margin-bottom:8px}
.post-card h2 a{color:inherit;text-decoration:none}
/* The title link stretches over the whole card: one click target, one link. */
.post-card h2 a::after{content:"";position:absolute;inset:0}
.post-card p:not(.post-meta){font-size:14.5px;line-height:1.6;color:var(--ink-soft);margin-bottom:14px}
.post-card-more{margin-top:auto;font-size:14px;font-weight:600;color:var(--pine)}

/* ---- sitemap page ---- */
.sitemap{display:grid;gap:16px;align-items:start}
.sitemap-group{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:22px 24px}
.sitemap-group ul{list-style:none;display:grid;gap:4px;margin:0;padding:0}
.sitemap-group a{display:inline-block;padding:3px 0;font-size:15px;color:var(--ink);text-decoration:none}
.sitemap-group a:hover{color:var(--pine);text-decoration:underline;text-underline-offset:3px}
.sitemap-xml{margin-top:24px;font-size:14px;color:var(--ink-soft)}
.post-author{border-top:1px solid var(--line);padding-top:24px;padding-bottom:40px}
.post-author h2{font-family:var(--font-head);font-size:22px;margin-bottom:10px}
.post-author h2 a{color:var(--pine)}
.post-author p:not(.eyebrow){max-width:68ch;color:var(--ink-soft)}
.sitemap-xml a{color:var(--pine);text-underline-offset:3px}

/* ---- empty states ---- */
.empty-note{max-width:640px;padding:24px 26px;background:#fff;border:1px dashed var(--line);border-radius:var(--r-md)}
.empty-note p{color:var(--ink-soft)}
.empty-note a{color:var(--pine);font-weight:500;text-underline-offset:3px}
.empty-note .empty-admin{margin-top:10px;font-size:14px;color:#3C6B5C}

/* ---- about page: the portrait and facts beside the text ---- */
/* Phones: a compact profile, photo beside the facts, above the text. From
   901px the photo and facts are a sticky column beside the text, as the
   homepage About section sets them. */
.about-cols{display:grid;gap:32px}
.about-cols .prose{min-width:0}
.about-profile{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:start}
.about-profile .who-facts{grid-template-columns:1fr;margin-top:0}
@media (min-width:901px){
  .about-cols{grid-template-columns:280px minmax(0,1fr);gap:56px;align-items:start}
  .about-profile{display:block;position:sticky;top:96px}
  .about-profile .who-facts{margin-top:20px}
}
/* The page for agencies. */
.inner-page .agency-grid{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:16px}
.inner-page .agency-grid li{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:22px}
.inner-page .agency-grid h3{font-family:var(--font-head);font-size:18px;font-weight:600;margin:0 0 6px}
.inner-page .agency-grid p{margin:0;color:var(--ink-soft);font-size:15px;line-height:1.55}
.inner-page .agency-grid a{color:var(--pine);font-weight:600;text-underline-offset:3px}
.inner-page .agency-form-h{font-size:26px;font-weight:600;margin:0 0 8px}
.inner-page .agency-form-p{margin:0 0 18px;color:var(--ink-soft)}
.inner-page .agency-more{margin:22px 0 0}
.inner-page .agency-more a{color:var(--pine);font-weight:600;text-underline-offset:3px}
@media (min-width:640px){ .inner-page .agency-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:901px){ .inner-page .agency-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
/* The partner's section, below the text. */
.inner-page .about-partner{display:grid;grid-template-columns:120px minmax(0,1fr);gap:20px;align-items:start;margin-top:36px;padding-top:32px;border-top:1px solid var(--line)}
.inner-page .prose .about-partner h2{margin:0 0 2px;padding:0;border:0}
.inner-page .about-partner p{margin:0 0 10px}
.inner-page .about-partner .about-partner-role{font-weight:600;color:var(--pine)}
.inner-page .about-partner .about-photo{font-size:12px;line-height:1.35}
.inner-page .about-partner .who-initials{font-size:36px}
@media (min-width:901px){
  .inner-page .about-partner{grid-template-columns:160px minmax(0,1fr);gap:28px}
}

/* ---- contact page ---- */
.inner-page .contact-copy > .eyebrow{margin-bottom:14px}
.contact-form .form{margin-top:0}
/* Stacked, the form comes first: whoever opens the Contact page came to
   send something, and the promises read just as well after it. */
@media (max-width:900px){ .inner-page .contact-form{order:-1} }

/* ---- closing call to action ---- */
.cta-band .cta-in{display:grid;gap:24px}
.cta-band h2{font-size:26px;font-weight:600}
.cta-band p:not(.eyebrow){color:var(--on-pine);margin-top:10px;max-width:54ch}
.cta-actions{display:flex;flex-direction:column;gap:12px}
.cta-actions .btn{text-align:center}

@media (min-width:768px){
  .page-hero{padding:56px 0 64px}
  .page-hero h1{font-size:40px}
  .page-hero .lede{font-size:18px}
  .page-meta{font-size:15px}
  .inner-page .prose h2{font-size:26px}
  .doc-figure{aspect-ratio:2/1}
  .sitemap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cta-band h2{font-size:32px}
  .cta-actions{flex-direction:row}
}
@media (min-width:1024px){
  .page-hero{padding:64px 0 72px}
  .page-hero h1{font-size:46px}
  .sitemap{grid-template-columns:repeat(3,minmax(0,1fr))}
  .doc.has-toc{grid-template-columns:minmax(0,1fr) 260px;gap:72px;align-items:start}
  .doc.has-toc .prose{grid-column:1;grid-row:1}
  .doc.has-toc .toc{display:block;grid-column:2;grid-row:1;position:sticky;top:96px;
    max-height:calc(100vh - 120px);overflow-y:auto}
  .post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cta-band .cta-in{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:56px}
  .cta-band h2{font-size:36px}
}
