/* Homepage sections (four-pillar positioning). Scoped under .hd-home so it cannot leak into other pages. */
.hd-home{--h-ink:#17181b;--h-ink2:#24262b;--h-paper:#faf8f5;--h-line:rgba(36,38,43,.12);--h-muted:#55585f;--h-accent:#e5652f;--h-accent-dk:#b9461a;--h-on-dark:#e9e9ec;--h-muted-dk:#b9bcc4;
  font-family:'Inter','Helvetica Neue',Arial,sans-serif;color:var(--h-ink2);line-height:1.6}
.hd-home *{box-sizing:border-box}
.hd-home h1,.hd-home h2,.hd-home h3,.hd-home h4{font-family:'Bricolage Grotesque',sans-serif;margin:0;line-height:1.12;letter-spacing:-.01em;overflow-wrap:normal;word-break:normal}
.hd-home p{margin:0}
.hd-home a{text-decoration:none}
.hd-wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 clamp(16px,4vw,40px)}
.hd-sec{padding:clamp(56px,8vw,104px) 0}
.hd-sec.-light{background:#fff;color:var(--h-ink2)}
.hd-sec.-paper{background:var(--h-paper);color:var(--h-ink2)}
.hd-sec.-dark{background:var(--h-ink);color:var(--h-on-dark)}
.hd-sec.-dark p{color:var(--h-muted-dk)}
.hd-eyebrow{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--h-accent-dk);margin-bottom:14px}
.-dark .hd-eyebrow{color:#ff9a6c}
.hd-h2{font-size:clamp(1.75rem,3.6vw,2.75rem);max-width:20ch}
.hd-lead{font-size:clamp(1rem,1.5vw,1.15rem);color:var(--h-muted);max-width:58ch;margin-top:16px}
.-dark .hd-lead{color:var(--h-muted-dk)}
.hd-head{margin-bottom:clamp(28px,4vw,48px)}
.hd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 26px;border-radius:999px;font-weight:600;font-size:.95rem;line-height:1.2;border:1.5px solid transparent;transition:background .2s,color .2s,border-color .2s;text-align:center}
.hd-btn.-primary{background:#c24a16;color:#fff!important}
.hd-btn.-primary:hover{background:#a63d10}
.hd-btn.-ghost{border-color:currentColor;color:inherit!important}
.hd-btn.-ghost:hover{background:rgba(127,127,127,.14)}
.hd-link{font-weight:600;color:var(--h-accent-dk)!important;display:inline-flex;align-items:center;min-height:44px;gap:6px}
.-dark .hd-link{color:#ff9a6c!important}
.hd-link::after{content:"\2192";transition:transform .2s}
.hd-link:hover::after{transform:translateX(3px)}

/* Hero */
.hd-hero{background:radial-gradient(1000px 480px at 90% 0%,rgba(229,101,47,.16),transparent 60%),var(--h-paper);color:var(--h-ink2);padding:clamp(56px,9vw,120px) 0 clamp(48px,7vw,96px)}
.hd-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(32px,5vw,72px);align-items:center}
.hd-hero h1{font-size:clamp(2rem,4.6vw,3.6rem);max-width:18ch;color:var(--h-ink)}
.hd-hero p.hd-sub{color:var(--h-muted);font-size:clamp(1rem,1.5vw,1.2rem);max-width:54ch;margin-top:20px}
.hd-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.hd-hero .hd-btn.-ghost{color:var(--h-ink2)!important;border-color:var(--h-ink2)}
.hd-pillars-card{background:#fff;border:1px solid var(--h-line);box-shadow:0 18px 40px rgba(23,24,27,.07);border-radius:20px;padding:clamp(18px,2.4vw,28px);display:grid;gap:10px}
.hd-pillars-card .hd-p{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;background:var(--h-paper)!important;color:var(--h-ink)!important;border:1px solid transparent;transition:border-color .2s,background .2s,color .2s}
.hd-pillars-card .hd-p strong,.hd-pillars-card .hd-p small{transition:color .2s}
.hd-pillars-card .hd-p:hover,.hd-pillars-card .hd-p:focus-visible{background:var(--h-ink)!important;border-color:var(--h-accent)}
.hd-pillars-card .hd-p:hover strong,.hd-pillars-card .hd-p:focus-visible strong{color:#fff!important}
.hd-pillars-card .hd-p:hover small,.hd-pillars-card .hd-p:focus-visible small{color:var(--h-muted-dk)!important}
.hd-pillars-card .hd-p:hover .hd-n,.hd-pillars-card .hd-p:focus-visible .hd-n{background:var(--h-accent)}
.hd-pillars-card .hd-p:focus-visible{outline:2px solid var(--h-accent);outline-offset:2px}
.hd-pillars-card .hd-n{flex:none;width:36px;height:36px;border-radius:10px;background:#c24a16;color:#fff;display:grid;place-items:center;font-weight:700;font-size:.85rem}
.hd-pillars-card strong{display:block;font-family:'Bricolage Grotesque',sans-serif;font-size:1.05rem;line-height:1.2}
.hd-pillars-card small{display:block;color:var(--h-muted);font-size:.82rem;margin-top:2px}

/* Four pillars */
.hd-pillars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.hd-pillar{display:flex;flex-direction:column;background:var(--h-paper);border:1px solid var(--h-line);border-radius:20px;padding:clamp(22px,2.4vw,30px);transition:box-shadow .2s,transform .2s}
.hd-pillar:hover{box-shadow:0 14px 34px rgba(23,24,27,.1);transform:translateY(-2px)}
.hd-pillar .hd-num{font-size:.78rem;font-weight:700;letter-spacing:.1em;color:var(--h-accent-dk)}
.hd-pillar h3{font-size:1.35rem;margin:10px 0 10px}
.hd-pillar p{color:var(--h-muted);font-size:.95rem}
.hd-pillar ul{list-style:none;margin:18px 0 22px;padding:0;display:grid;gap:2px}
.hd-pillar li a{display:flex;align-items:center;min-height:36px;color:var(--h-ink2)!important;font-size:.92rem;border-bottom:1px solid var(--h-line)}
.hd-pillar li a:hover{color:var(--h-accent-dk)!important}
.hd-pillar .hd-link{margin-top:auto}

/* ERP */
.hd-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center}
.hd-checks{list-style:none;margin:24px 0 28px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}
.hd-checks li{position:relative;padding-left:26px;font-size:.95rem}
.hd-checks li::before{content:"";position:absolute;left:0;top:.5em;width:12px;height:7px;border-left:2px solid var(--h-accent);border-bottom:2px solid var(--h-accent);transform:rotate(-45deg)}
.hd-erp-mock{background:#0f1012;border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:16px;box-shadow:0 30px 60px rgba(0,0,0,.35)}
.hd-erp-bar{display:flex;gap:6px;margin-bottom:14px}
.hd-erp-bar i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.25)}
.hd-erp-mods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hd-erp-mods div{padding:14px 12px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#fff;font-size:.88rem;font-weight:600;display:flex;flex-direction:column;gap:10px}
.hd-erp-mods div::before{content:"";height:5px;width:42%;border-radius:3px;background:var(--h-accent)}
.hd-erp-mods div:nth-child(even)::before{background:#7aa7ff;width:60%}
.hd-erp-chart{margin-top:12px;height:92px;border-radius:12px;background:rgba(255,255,255,.05);display:flex;align-items:flex-end;gap:8px;padding:12px}
.hd-erp-chart i{flex:1;border-radius:4px 4px 0 0;background:linear-gradient(#ff9a6c,#e5652f)}
.hd-note{font-size:.78rem;color:var(--h-muted-dk);margin-top:10px}

/* Custom software */
.hd-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hd-tile{display:flex;flex-direction:column;justify-content:center;min-height:92px;padding:16px 18px;border-radius:16px;background:#fff;border:1px solid var(--h-line);color:var(--h-ink2)!important;font-family:'Bricolage Grotesque',sans-serif;font-weight:600;font-size:1.02rem;line-height:1.25;transition:border-color .2s,transform .2s}
.hd-tile:hover{border-color:var(--h-accent);transform:translateY(-2px)}
.hd-tile span{display:block;font-family:'Inter',sans-serif;font-weight:400;font-size:.8rem;color:var(--h-muted);margin-top:4px}

/* Selected work */
.hd-work{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);border:1px solid var(--h-line);border-radius:24px;overflow:hidden;background:var(--h-paper)}
.hd-work-body{padding:clamp(24px,4vw,48px)}
.hd-work-body h3{font-size:clamp(1.3rem,2.4vw,1.9rem);margin-bottom:12px}
.hd-work-body p{color:var(--h-muted)}
.hd-work-art{background:linear-gradient(135deg,#24262b,#3a2a22);display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:clamp(18px,3vw,32px);align-content:center}
.hd-work-art span{display:block;aspect-ratio:4/3;border-radius:12px;background:rgba(255,255,255,.08);border:1px dashed rgba(255,255,255,.28)}
.hd-feedback[hidden]{display:none}

/* Engagement */
.hd-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.hd-plan{position:relative;display:flex;flex-direction:column;background:#fff;color:var(--h-ink2);border:1px solid var(--h-line);border-radius:20px;padding:clamp(22px,2.6vw,32px)}
.hd-plan.-feature{border:2px solid var(--h-accent)}
.hd-plan .hd-tag{position:absolute;top:-13px;left:24px;background:#c24a16;color:#fff;font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:5px 12px;border-radius:999px}
.hd-plan h3{font-size:1.3rem}
.hd-price{font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.1;margin:16px 0 4px;white-space:nowrap;font-weight:700}
.hd-price small{font-family:'Inter',sans-serif;font-size:.85rem;font-weight:500;color:var(--h-muted)}
.hd-sec.-dark .hd-plan>p{color:var(--h-muted)}
.hd-plan>p{font-size:.95rem;margin-top:8px}
.hd-plan ul{list-style:none;margin:20px 0 24px;padding:0;display:grid;gap:10px;font-size:.93rem}
.hd-plan li{position:relative;padding-left:24px}
.hd-plan li::before{content:"";position:absolute;left:0;top:.5em;width:11px;height:6px;border-left:2px solid var(--h-accent);border-bottom:2px solid var(--h-accent);transform:rotate(-45deg)}
.hd-plan .hd-btn{margin-top:auto}
.hd-plan .hd-btn.-ghost{color:var(--h-ink2)!important;border-color:var(--h-ink2)}
.hd-faq{max-width:860px;margin:clamp(40px,6vw,72px) auto 0}
.hd-faq h3{font-size:1.5rem;margin-bottom:16px;color:#fff}
.hd-faq details{border-bottom:1px solid rgba(255,255,255,.18)}
.hd-faq summary{cursor:pointer;list-style:none;padding:18px 36px 18px 0;position:relative;font-weight:600;font-size:1.05rem;line-height:1.4;min-height:48px;color:#fff}
.hd-faq summary::-webkit-details-marker{display:none}
.hd-faq summary::after{content:"+";position:absolute;right:4px;top:14px;font-size:1.5rem;color:#ff9a6c}
.hd-faq details[open] summary::after{content:"\2212"}
.hd-faq details p{padding:0 0 20px;color:var(--h-muted-dk);line-height:1.7;max-width:70ch}

/* Industries / insights */
.hd-chips{display:flex;flex-wrap:wrap;gap:10px}
.hd-chips a{display:inline-flex;align-items:center;min-height:44px;padding:10px 20px;border-radius:999px;border:1px solid var(--h-line);background:#fff;color:var(--h-ink2)!important;font-weight:600;font-size:.95rem}
.hd-chips a:hover{border-color:var(--h-accent);color:var(--h-accent-dk)!important}
.hd-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hd-post{display:flex;flex-direction:column;gap:10px;padding:clamp(20px,2.4vw,28px);background:var(--h-paper);border:1px solid var(--h-line);border-radius:18px}
.hd-post span{font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--h-accent-dk)}
.hd-post h3{font-size:1.15rem}
.hd-post h3 a{color:var(--h-ink2)!important}
.hd-post p{color:var(--h-muted);font-size:.93rem}
.hd-post .hd-link{margin-top:auto}
.hd-cta{text-align:center}
.hd-cta .hd-h2{margin:0 auto;max-width:22ch}
.hd-cta .hd-lead{margin:16px auto 0}
.hd-cta .hd-cta-row{justify-content:center}

@media (max-width:1100px){.hd-pillars{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-plans{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-plans .hd-plan:first-child{grid-column:1/-1}}
@media (max-width:880px){.hd-hero-grid,.hd-split,.hd-work{grid-template-columns:minmax(0,1fr)}.hd-posts{grid-template-columns:minmax(0,1fr)}.hd-work-art{min-height:200px}}
@media (max-width:640px){.hd-pillars,.hd-plans{grid-template-columns:minmax(0,1fr)}.hd-checks{grid-template-columns:minmax(0,1fr)}.hd-erp-mods{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-cta-row .hd-btn{width:100%}.hd-h2{max-width:none}}
@media (max-width:360px){.hd-tiles{grid-template-columns:minmax(0,1fr)}.hd-price{font-size:1.7rem}}
@media (prefers-reduced-motion:reduce){.hd-home *{transition:none!important}}

/* Full-bleed: let the home page sections span the viewport inside the theme's content containers. */
.page-container:has(.hd-home){max-width:none;width:100%;padding:0}
.page-container:has(.hd-home) .content-area,.page-container:has(.hd-home) .page-content{padding:0;margin:0;max-width:none}
.hd-hero{padding-top:calc(clamp(56px,9vw,120px) + 96px)}
@media (max-width:880px){.hd-hero{padding-top:calc(clamp(40px,9vw,120px) + 76px)}}

/* Heading colours must not depend on the theme's text colour. */
.hd-sec.-dark :is(h1,h2,h3,h4){color:#fff}
.hd-hero :is(h1,h2,h3,h4){color:var(--h-ink)}
.hd-sec.-light :is(h2,h3,h4),.hd-sec.-paper :is(h2,h3,h4){color:var(--h-ink2)}
/* production.css forces 18px container padding and large h1/h2 below 430px; neutralise it for the home sections. */
.page-container:has(.hd-home){padding-left:0!important;padding-right:0!important}
.hd-home h1{font-size:clamp(2rem,4.6vw,3.6rem)!important;line-height:1.1!important}
.hd-home h2{font-size:clamp(1.65rem,3.6vw,2.75rem)!important;line-height:1.14!important}
.hd-home .hd-plan h3,.hd-home .hd-pillar h3,.hd-home .hd-post h3,.hd-home .hd-work-body h3{line-height:1.2!important}
.hd-home .hd-btn{width:auto;max-width:100%;white-space:normal}
@media (max-width:640px){.hd-home .hd-cta-row .hd-btn{width:100%}}
.hd-post h3 a{display:inline-block;padding:.2em 0}
.hd-sec.-dark .hd-plan :is(h3,h4){color:var(--h-ink2)}

/* ============ DARK MODE (site-wide .dark-scheme toggle) ============ */
/* .hd-sec.-dark is an intentionally always-dark branded section and is left
   untouched. Everything below re-styles the -light/-paper sections and the
   white/cream cards inside them so they respond to the site's own
   light/dark switcher instead of staying permanently light. */
.dark-scheme .hd-sec.-light{background:#1c1d21;color:#d7d8db}
.dark-scheme .hd-sec.-paper{background:#1f2024;color:#d7d8db}
.dark-scheme .hd-sec.-light .hd-eyebrow,.dark-scheme .hd-sec.-paper .hd-eyebrow{color:#ff9a6c}
.dark-scheme .hd-hero :is(h1,h2,h3,h4){color:#fff}
.dark-scheme .hd-sec.-light :is(h2,h3,h4),.dark-scheme .hd-sec.-paper :is(h2,h3,h4){color:#f3f4f6}
.dark-scheme .hd-sec.-light .hd-lead,.dark-scheme .hd-sec.-paper .hd-lead,.dark-scheme .hd-hero p.hd-sub{color:#b9bcc4}
.dark-scheme .hd-home .hd-link{color:#ff9a6c!important}
.dark-scheme .hd-home .hd-btn.-ghost{color:#e9e9ec!important;border-color:#e9e9ec}
.dark-scheme .hd-home .hd-btn.-ghost:hover{background:rgba(255,255,255,.1)}

/* Hero pillars card (right-side 01-04 stack) */
.dark-scheme .hd-pillars-card{background:#222327;border-color:rgba(255,255,255,.1);box-shadow:0 18px 40px rgba(0,0,0,.35)}
.dark-scheme .hd-pillars-card .hd-p{background:#2a2b30!important;color:#e9e9ec!important}
.dark-scheme .hd-pillars-card small{color:#9a9da6}

/* Four pillars grid */
.dark-scheme .hd-pillar{background:#201f23;border-color:rgba(255,255,255,.1)}
.dark-scheme .hd-pillar:hover{box-shadow:0 14px 34px rgba(0,0,0,.4)}
.dark-scheme .hd-pillar h3{color:#f3f4f6}
.dark-scheme .hd-pillar .hd-num{color:#ff9a6c}
.dark-scheme .hd-pillar p{color:#b9bcc4}
.dark-scheme .hd-pillar li a{color:#e9e9ec!important;border-bottom-color:rgba(255,255,255,.14)}
.dark-scheme .hd-pillar li a:hover{color:#ff9a6c!important}

/* Custom software tiles */
.dark-scheme .hd-tile{background:#201f23!important;border-color:rgba(255,255,255,.1);color:#e9e9ec!important}
.dark-scheme .hd-tile span{color:#b9bcc4}

/* Selected work */
.dark-scheme .hd-work{border-color:rgba(255,255,255,.1);background:#1f2024}
.dark-scheme .hd-work-body h3{color:#f3f4f6}
.dark-scheme .hd-work-body p{color:#b9bcc4}

/* Engagement / pricing plans */
.dark-scheme .hd-plan{background:#201f23;color:#e9e9ec;border-color:rgba(255,255,255,.12)}
.dark-scheme .hd-plan h3{color:#f3f4f6}
.dark-scheme .hd-price small{color:#b9bcc4}
.dark-scheme .hd-sec.-dark .hd-plan :is(h3,h4){color:#e9e9ec}

/* Industries chips */
.dark-scheme .hd-chips a{background:#201f23!important;color:#e9e9ec!important;border-color:rgba(255,255,255,.12)}
.dark-scheme .hd-chips a:hover{color:#ff9a6c!important}

/* Insights posts */
.dark-scheme .hd-post{background:#1f2024;border-color:rgba(255,255,255,.1)}
.dark-scheme .hd-post span{color:#ff9a6c}
.dark-scheme .hd-post h3{color:#f3f4f6}
.dark-scheme .hd-post h3 a{color:#e9e9ec!important}
.dark-scheme .hd-post p{color:#b9bcc4}

/* Dark-mode follow-ups: hero surface, inline-styled muted copy and ghost buttons, plan copy */
.dark-scheme .hd-hero{background:radial-gradient(1000px 480px at 90% 0%,rgba(229,101,47,.18),transparent 60%),#1a1b1f;color:#d7d8db}
.dark-scheme .hd-hero .hd-eyebrow{color:#ff9a6c}
.dark-scheme .hd-sec.-light,.dark-scheme .hd-sec.-paper{--h-muted:#b9bcc4}
.dark-scheme .hd-home .hd-btn.-ghost{--h-ink2:#e9e9ec}
.dark-scheme .hd-plan>p,.dark-scheme .hd-sec.-dark .hd-plan>p{color:#b9bcc4}
.dark-scheme .hd-pillars-card .hd-p:hover,.dark-scheme .hd-pillars-card .hd-p:focus-visible{background:#131417!important}
