/* Aishco Solutions & Consultancy: shared site styles */

/* Self-hosted fonts (OFL licensed; Latin subset). No render-blocking request to Google. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-normal-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-normal-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-italic-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/work-sans-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/work-sans-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/work-sans-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/work-sans-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --navy: #2F3C7E;
  --ink: #1A1D2B;
  --body: #4B5262;
  --muted: #6B7280;
  --faint: #9AA1AE;
  --bg: #F6F7FB;
  --white: #FFFFFF;
  --border: rgba(26,29,43,0.08);
  --accent: #D08A3E;
  --accent-text: #9C5E1C; /* amber for small text: passes WCAG AA (4.5:1) on white and --bg */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  margin: 0;
}

.mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

a { text-decoration: none; color: inherit; }
a:hover { opacity: 0.82; }

.wrap { max-width: 1440px; margin: 0 auto; }

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-nav img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { color: var(--body); font-size: 14px; font-weight: 500; }
.nav-links a.current { color: var(--navy); font-weight: 600; }
.nav-links a.btn-primary { color: var(--white); font-weight: 600; }
.site-nav { position: relative; z-index: 20; }
.nav-toggle { display: none; }

/* Nav dropdowns (Industries / Services) */
.nav-item { position: relative; }
.nav-parent {
  appearance: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 500 14px 'Work Sans', system-ui, sans-serif; color: var(--body);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-parent.current { color: var(--navy); font-weight: 600; }
.nav-parent::after {
  content: ""; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.nav-parent[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-parent:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.submenu {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 230px; z-index: 30;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 18px 40px rgba(26,29,43,0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.nav-item:hover .submenu,
.nav-parent[aria-expanded="true"] + .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-links .submenu a { padding: 10px 12px; border-radius: 6px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.nav-links .submenu a:hover { opacity: 1; background: var(--bg); }
.nav-links .submenu a[aria-current="page"] { color: var(--navy); font-weight: 600; background: var(--bg); }
.submenu a i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.nav-links .submenu a.submenu-all { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; color: var(--accent-text); font-weight: 600; }
@media (max-width: 900px) {
  /* Collapsed menu only when JS is running; without JS the links just wrap */
  .js .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
  .js .nav-links {
    /* Full-screen panel under the nav bar; top is set by site.js */
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    background: var(--white); border-bottom: 1px solid var(--border);
  }
  .js .nav-links.open { display: flex; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .js .nav-links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .js .nav-links a.btn-primary { margin-top: 16px; padding: 14px; text-align: center; border-bottom: 0; }
  .js .nav-item { border-bottom: 1px solid var(--border); }
  .js .nav-parent { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 16px; }
  .js .submenu {
    position: static; display: none; min-width: 0; padding: 0 0 10px 12px;
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .js .nav-parent[aria-expanded="true"] + .submenu { display: flex; }
  .js .nav-links .submenu a { padding: 10px 0; font-size: 15px; border-bottom: 0; }
  .js .nav-links .submenu a.submenu-all { border-top: 0; padding-top: 10px; }
}
.btn-primary {
  background: var(--navy); color: var(--white);
  padding: 10px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 600; display: inline-block;
}
.btn-primary.large { padding: 15px 30px; font-size: 15px; }
.btn-outline {
  border: 1px solid rgba(26,29,43,0.18); color: var(--ink);
  padding: 15px 30px; border-radius: 4px; font-size: 15px; font-weight: 600;
}
.btn-accent {
  background: var(--accent); color: var(--ink);
  padding: 16px 36px; border-radius: 4px; font-size: 15px; font-weight: 600; display: inline-block;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 20px 64px 0;
  font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb .current { color: var(--navy); }

/* HERO */
.hero { position: relative; overflow: hidden; }
.hero-watermark {
  position: absolute; top: -180px; right: -160px; width: 640px; height: auto;
  opacity: 0.05; transform: rotate(8deg); pointer-events: none;
}
.hero-inner { position: relative; padding: 56px 64px 48px; max-width: 900px; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; color: var(--accent-text); text-transform: uppercase; margin-bottom: 16px; }
.eyebrow-sub { font-size: 15px; color: var(--muted); margin-top: -10px; margin-bottom: 18px; }
.hero h1 { font-size: 56px; line-height: 1.1; color: var(--ink); margin-bottom: 20px; }
.hero p.lede { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 720px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 24px; }
.hero-stats { position: relative; display: flex; padding: 0 64px 64px; max-width: 980px; }
.stat { padding-right: 40px; margin-right: 40px; border-right: 1px solid rgba(26,29,43,0.1); }
.stat:last-child { border-right: none; }
.stat-value { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; font-weight: 600; color: var(--navy); }
.stat-label { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* SECTIONS */
.section { padding: 64px; }
.section.bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.white { background: var(--white); }
.section-label { font-size: 12px; letter-spacing: 0.1em; color: var(--accent-text); text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-size: 34px; color: var(--ink); max-width: 640px; margin-bottom: 32px; }

/* CARDS */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  padding: 28px 24px; background: var(--bg); border: 1px solid var(--border);
  border-top: 3px solid var(--navy); border-radius: 6px;
  display: flex; flex-direction: column; gap: 12px;
}
.card.white-bg { background: var(--white); box-shadow: 0 2px 6px rgba(26,29,43,0.05); }
.card-tag { font-size: 10.5px; letter-spacing: 0.08em; color: var(--accent-text); text-transform: uppercase; }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.card-stack { font-size: 11px; letter-spacing: 0.03em; color: var(--muted); margin-top: 4px; }

/* SERVICE GRID: hairline-divided tiles */
.service-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.service-item { display: block; padding: 26px; background: var(--white); }
.service-num { font-size: 11px; color: var(--accent-text); margin-bottom: 12px; }
.service-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.service-item p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-pill {
  font-size: 13px; padding: 10px 16px; background: var(--bg);
  border: 1px solid rgba(26,29,43,0.1); border-radius: 20px; color: var(--ink);
}

.link-chip {
  padding: 12px 20px; background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; color: var(--ink); font-size: 14px; font-weight: 600; display: inline-block;
}
.link-chip.pending {
  background: var(--bg); border: 1px dashed rgba(26,29,43,0.15); color: var(--muted);
}

/* TESTIMONIAL */
.testimonial { text-align: center; }
.testimonial .quote-mark { font-size: 30px; color: var(--accent-text); line-height: 1; margin-bottom: 14px; }
.testimonial p { font-size: 22px; line-height: 1.5; color: var(--ink); font-family: 'Instrument Serif', Georgia, serif; margin-bottom: 16px; }
.testimonial .source { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* CTA BAND */
.cta-band {
  position: relative; padding: 100px 64px; text-align: center;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  background: var(--navy); overflow: hidden;
}
.cta-band .watermark {
  position: absolute; bottom: -140px; left: -100px; width: 420px; height: auto;
  opacity: 0.08; pointer-events: none;
}
.cta-band h2 { position: relative; font-size: 42px; color: var(--white); max-width: 640px; }
.cta-band p { position: relative; font-size: 17px; color: rgba(255,255,255,0.75); max-width: 540px; margin: 0; }

/* FOOTER */
.site-footer { padding: 72px 64px 40px; background: var(--white); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-grid p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 280px; }
.footer-col-label { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink); text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a.highlight { color: var(--accent-text); font-weight: 600; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}

@media (max-width: 900px) {
  .site-nav, .hero-inner, .hero-stats, .section, .breadcrumb, .cta-band, .site-footer { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 38px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat { padding-right: 0; margin-right: 0; border-right: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; flex-wrap: wrap; }
}

/* =========================================================
   HOMEPAGE: hero hub, outcome cards, feature band, product showcase, quotes
   ========================================================= */

/* Card hover lift (overrides the global link fade) */
.lift { transition: transform .25s ease, box-shadow .25s ease; }
a.lift:hover, .lift:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26,29,43,0.10); }

/* Scroll reveal. Only hides content when JS is running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .lift.reveal.in { transition: opacity .7s ease, transform .25s ease, box-shadow .25s ease; }
.js .lift.reveal.in:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lift, .lift:hover { transition: none; transform: none; }
  .hub-lines path { animation: none !important; }
}

/* HERO V2: copy left, systems hub right, dot-grid texture */
.hero2 {
  position: relative; overflow: hidden; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(47,60,126,0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
}
.hero2-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  align-items: center; padding: 72px 64px 64px; max-width: 1440px; margin: 0 auto;
}
.hero2 h1 { font-size: 60px; line-height: 1.05; color: var(--ink); margin-bottom: 22px; }
.hero2 h1 em { font-style: italic; color: var(--navy); }
.hero2 .lede { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 600px; margin: 0; }
.hero2 .hero-stats { padding: 0; margin-top: 44px; }
.hero2 .stat-value { font-size: 34px; font-weight: 400; }

/* Systems hub diagram */
.hub { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines path {
  fill: none; stroke: var(--navy); stroke-opacity: 0.28; stroke-width: 1.2;
  stroke-dasharray: 4 5; vector-effect: non-scaling-stroke;
  animation: hub-flow 1.6s linear infinite;
}
@keyframes hub-flow { to { stroke-dashoffset: -18; } }
.hub-center {
  position: absolute; left: 50%; top: 50%; width: 108px; height: 108px; transform: translate(-50%,-50%);
  border-radius: 50%; background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(47,60,126,0.14), 0 0 0 10px rgba(47,60,126,0.04);
  display: flex; align-items: center; justify-content: center;
}
.hub-center img { width: 56px; height: auto; }
.hub-node {
  position: absolute; transform: translate(-50%,-50%); white-space: nowrap;
  background: var(--white); border: 1px solid rgba(26,29,43,0.12); border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: 0 4px 12px rgba(26,29,43,0.06); display: flex; align-items: center; gap: 8px;
}
.hub-node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--navy)); }
.hub-node.hc { --dot: #4FA69E; }
.hub-node.cn { --dot: var(--accent); }
.hub-node.ai { --dot: var(--navy); }
.hub-node.std { --dot: var(--navy); }
.hub-legend { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hub-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hub-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* OUTCOME CARDS: number first */
.outcome { padding: 30px 26px 26px; }
.outcome-num { font-family: 'Instrument Serif', Georgia, serif; font-size: 54px; line-height: 1; color: var(--navy); }
.outcome-unit { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: -4px; }
.outcome .card-title { font-size: 17px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); }

/* FEATURED CASE STUDY: navy band */
.feature {
  position: relative; overflow: hidden; background: var(--navy); color: var(--white);
  padding: 88px 64px;
}
.feature .watermark {
  position: absolute; top: -120px; right: -120px; width: 460px; height: auto; opacity: 0.07; pointer-events: none; transform: rotate(-8deg);
}
.feature-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; max-width: 1440px; margin: 0 auto; }
.feature .section-label { color: #E8B77F; }
.feature h3, .feature-inner h2 { font-size: 44px; line-height: 1.1; color: var(--white); margin-bottom: 20px; max-width: 620px; }
.feature p { font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.78); margin: 0 0 28px; max-width: 560px; }
.feature-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 1px; background: rgba(255,255,255,0.14); border-radius: 6px; overflow: hidden; }
.feature-stats div { background: var(--navy); padding: 18px 16px; }
.feature-stats b { display: block; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 30px; color: var(--white); }
.feature-stats span { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.78); }
.feature-stack { margin-top: 22px; font-size: 11.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.78); }

.compare { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 32px 28px; }
.compare-title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 26px; }
.compare-row + .compare-row { margin-top: 26px; }
.compare-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.compare-head span { font-size: 13px; color: rgba(255,255,255,0.72); }
.compare-head b { white-space: nowrap; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 28px; color: var(--white); }
.compare-bar { height: 14px; border-radius: 7px; background: rgba(255,255,255,0.08); overflow: hidden; }
.compare-bar i { display: block; height: 100%; border-radius: 7px; }
.compare-bar.before i { width: 100%; background: rgba(255,255,255,0.28); }
.compare-bar.after i { width: 7%; background: var(--accent); min-width: 14px; }
.js .compare-bar i { transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.js .compare.in .compare-bar i { transform: scaleX(1); }
.compare-note { margin-top: 24px; font-size: 12.5px; color: rgba(255,255,255,0.78); line-height: 1.5; }

/* FEATURED TABS */
.feature-head {
  position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  max-width: 1440px; margin: 0 auto 48px;
}
.feature-head h2 { font-size: 30px; color: var(--white); }
.tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
}
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  font: 600 13.5px 'Work Sans', system-ui, sans-serif; color: rgba(255,255,255,0.72);
  padding: 10px 16px; border-radius: 4px; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s ease, color .2s ease;
}
.tab i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tab:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.tab[aria-selected="true"] { background: var(--white); color: var(--navy); }
.tab[aria-selected="true"] i[style*="FFFFFF"] { background: var(--navy) !important; }
.tab:focus-visible, .feature-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feature-panel[hidden] { display: none; }
.js .feature-panel:not([hidden]) { animation: panel-in .45s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Healthcare flow diagram */
.flow-step {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
}
.flow-step b { font-size: 14.5px; font-weight: 600; color: var(--white); }
.flow-step span { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.78); text-align: right; }
.flow-step.hl { border-color: var(--accent-text); background: rgba(208,138,62,0.14); }
.flow-link { height: 22px; margin-left: 28px; border-left: 1px dashed rgba(255,255,255,0.4); }

/* Construction sync diagram */
.sync { display: grid; grid-template-columns: minmax(0,1fr) 96px minmax(0,1fr); align-items: center; }
.sys {
  padding: 26px 16px; border-radius: 8px; text-align: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
}
.sys span { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 8px; }
.sys b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 26px; color: var(--white); }
.sync-arrows { display: flex; flex-direction: column; gap: 14px; padding: 0 10px; }
.arr {
  position: relative; display: block; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px);
  background-size: 11px 2px; animation: arr-flow .8s linear infinite;
}
.arr.l { animation-direction: reverse; opacity: 0.7; }
.arr::after { content: ""; position: absolute; top: -4px; border: 5px solid transparent; }
.arr.r::after { right: -6px; border-left-color: var(--accent-text); }
.arr.l::after { left: -6px; border-right-color: var(--accent-text); }
@keyframes arr-flow { to { background-position: 11px 0; } }
@media (prefers-reduced-motion: reduce) {
  .arr { animation: none; }
  .js .feature-panel:not([hidden]) { animation: none; }
}

/* PRODUCT SHOWCASE: HRMS screenshots */
.showcase { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.showcase h2 { margin-bottom: 18px; }
.showcase-copy p { font-size: 16px; line-height: 1.65; color: var(--body); margin: 0 0 22px; }
.showcase .tag-cloud { gap: 8px; margin-bottom: 26px; }
.showcase .tag-pill { font-size: 12px; padding: 6px 12px; background: var(--white); }
.link-arrow { font-weight: 600; color: var(--navy); font-size: 15px; }
.link-arrow .mono { font-size: 13px; }

.shots { position: relative; padding-bottom: 60px; }
.browser {
  background: var(--white); border: 1px solid rgba(26,29,43,0.12); border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(26,29,43,0.14);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #EEF0F6; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(26,29,43,0.16); }
.browser-bar span { margin-left: 10px; font-size: 10.5px; color: var(--muted); }
.browser img { display: block; width: 100%; height: auto; }
.browser .crop { aspect-ratio: var(--ar); overflow: hidden; }
.browser .crop img { height: 100%; object-fit: cover; object-position: top; }
.shots .browser.small { position: absolute; width: 58%; right: -18px; bottom: 0; }

/* TESTIMONIALS V2: large serif quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; }
.quote { border-top: 2px solid var(--accent); padding-top: 24px; display: flex; flex-direction: column; }
.quote .quote-mark { font-family: 'Instrument Serif', Georgia, serif; font-size: 56px; line-height: 0.6; color: var(--accent-text); height: 26px; }
.quote p { font-family: 'Instrument Serif', Georgia, serif; font-size: 23px; line-height: 1.4; color: var(--ink); margin: 0 0 20px; flex: 1; }
.quote .source { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.service-item { transition: background .2s ease; }
a.service-item:hover { opacity: 1; background: var(--bg); }

@media (max-width: 1100px) {
  .hero2-inner, .feature-inner, .showcase { grid-template-columns: 1fr; }
  .hub { max-width: 420px; }
  .shots { max-width: 760px; }
}
@media (max-width: 900px) {
  .hero2-inner, .feature { padding-left: 24px; padding-right: 24px; }
  .hero2-inner { padding-top: 48px; }
  .hero2 h1 { font-size: 40px; }
  .feature h3, .feature-inner h2 { font-size: 34px; }
  .feature-head { flex-direction: column; align-items: flex-start; }
  .tabs { max-width: 100%; overflow-x: auto; }
  .feature-stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature-inner > * { min-width: 0; }
  .sync { grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr); }
  .sys { padding: 18px 8px; }
  .sys b { font-size: 19px; overflow-wrap: anywhere; }
  .sync-arrows { padding: 0 6px; }
  .quotes { grid-template-columns: 1fr; gap: 36px; }
  .shots { padding-bottom: 0; }
  .shots .browser.small { position: relative; width: 100%; right: auto; margin-top: 16px; }
  .hero-ctas { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .hub { display: none; }
  .hub-legend { display: none; }
}

/* PILLAR PAGES */
.cap-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.cap-group h3 { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.cap-group .tag-cloud { gap: 8px; }
.cap-group .tag-pill { font-size: 13px; padding: 8px 14px; background: var(--white); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.chip-row span { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.8); }
.testimonial.big { max-width: 860px; margin: 0 auto; }
.testimonial.big p { font-size: 34px; line-height: 1.3; margin: 0 0 20px; }
.testimonial.big .quote-mark { font-family: 'Instrument Serif', Georgia, serif; font-size: 72px; line-height: 0.5; height: 34px; }
.also-row { display: flex; flex-wrap: wrap; gap: 12px; }
.also-row .link-chip { display: inline-flex; align-items: center; gap: 10px; }
.also-row .link-chip i { width: 7px; height: 7px; border-radius: 50%; }
@media (max-width: 900px) {
  .cap-groups { grid-template-columns: 1fr; gap: 28px; }
  .testimonial.big p { font-size: 26px; }
}

/* Reporting platform illustration (construction/): abstract, no client data */
.bi { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.bi-copy p { font-size: 16px; line-height: 1.65; color: var(--body); margin: 0 0 22px; }
.bi-panel {
  background: var(--white); border: 1px solid rgba(26,29,43,0.12); border-radius: 8px;
  box-shadow: 0 24px 50px rgba(26,29,43,0.12); padding: 24px;
}
.bi-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bi-panel-head em { font-style: normal; color: var(--muted); letter-spacing: 0.04em; text-transform: none; }
.bi-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.bi-row span { font-size: 13px; color: var(--ink); font-weight: 500; }
.bi-bar { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.bi-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--navy); opacity: 0.75; }
.bi-row:nth-child(odd) .bi-bar i { background: var(--accent); }
.bi-ai { margin-top: 20px; padding: 18px 20px; border-radius: 8px; background: var(--navy); color: var(--white); }
.bi-ai .mono { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #E8B77F; }
.bi-ai .sk { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.22); margin-top: 10px; }
.bi-q { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); font-size: 13px; color: rgba(255,255,255,0.88); }

/* Cross-sell card (e.g. HRMS on a pillar page) */
.promo {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 40px;
  padding: 28px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent);
}
.promo .card-title { margin: 6px 0 6px; }
.promo p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body); max-width: 640px; }

@media (max-width: 900px) {
  .bi { grid-template-columns: 1fr; gap: 32px; }
  .bi-row { grid-template-columns: 120px 1fr; }
  .promo { grid-template-columns: 1fr; }
}

/* Light-background variant of the flow diagram, plus inline stat rows */
.flow.light .flow-step { background: var(--bg); border-color: var(--border); }
.flow.light .flow-step b { color: var(--ink); }
.flow.light .flow-step span { color: var(--muted); }
.flow.light .flow-step.hl { border-color: var(--accent-text); background: rgba(208,138,62,0.08); }
.flow.light .flow-link { border-left-color: rgba(26,29,43,0.25); }
.flow-split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.flow-split .flow-step { flex-direction: column; align-items: flex-start; gap: 4px; }
.flow-split .flow-step span { text-align: left; }
.hero-stats.inline { padding: 0; margin-top: 28px; }
.hero-stats.inline .stat-value { font-weight: 400; font-size: 32px; }
@media (max-width: 900px) {
  .hero-stats.inline { padding: 0; }
  .flow-split { grid-template-columns: 1fr; }
}

/* PROJECT INDEX: filterable grid (services/web-app-development/) */
.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  appearance: none; cursor: pointer; font: 600 13px 'Work Sans', system-ui, sans-serif;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(26,29,43,0.14);
  background: var(--white); color: var(--body); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-count { margin-left: 4px; font-size: 11px; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.proj { padding: 22px 22px 20px; gap: 8px; }
.proj[hidden] { display: none; }
.proj .card-title { font-size: 16px; }
.proj p { font-size: 14px; }
.proj .proj-link { margin-top: auto; padding-top: 6px; font-size: 11px; color: var(--accent-text); }
.proj .proj-metric { font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; line-height: 1; color: var(--navy); }

/* Module boxes on the navy band */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.mods .sys b { font-size: 21px; }
.stack-bar { margin-top: 14px; padding: 14px 16px; border-radius: 8px; text-align: center; border: 1px dashed rgba(255,255,255,0.3); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

.cap-groups.four { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 1100px) {
  .proj-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cap-groups.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .proj-grid, .cap-groups.four { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; }
}

/* ABOUT PAGE */
.about-stats { display: flex; flex-direction: column; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 24px 50px rgba(26,29,43,0.10); overflow: hidden; max-width: 420px; margin: 0 auto; width: 100%; }
.about-stats div { padding: 26px 30px; border-bottom: 1px solid var(--border); }
.about-stats div:last-child { border-bottom: 0; }
.about-stats b { display: block; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 52px; line-height: 1; color: var(--navy); }
.about-stats span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.principle-num { font-size: 11px; color: var(--accent-text); }
.cta-list { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; }
.cta-list span { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.82); }
.cta-email { position: relative; font-size: 14px; letter-spacing: 0.04em; color: rgba(255,255,255,0.75); }
.cta-email a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.35); }

/* INSIGHTS HUB: posts load from WordPress (see site.js); plain text cards, no thumbnails */
.pillar-block + .pillar-block { margin-top: 56px; }
.pillar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pillar-head h2 { margin: 0 !important; display: flex; align-items: center; gap: 12px; font-size: 30px; }
.pillar-head h2 i { width: 9px; height: 9px; border-radius: 50%; }
.pillar-head a { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.post-card .post-date { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.post-card .card-title { font-size: 17px; line-height: 1.35; }
.post-card .proj-link { margin-top: auto; padding-top: 6px; font-size: 11px; color: var(--accent-text); }
.post-empty {
  grid-column: 1 / -1; padding: 22px 24px; border-radius: 8px;
  border: 1px dashed rgba(26,29,43,0.18); background: var(--white); color: var(--muted); font-size: 14.5px;
}
.post-empty a { color: var(--navy); font-weight: 600; }
@media (max-width: 1100px) { .post-list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .post-list { grid-template-columns: 1fr; }
  .pillar-head { flex-direction: column; gap: 6px; }
}

/* HRMS PAGE: phone frames, hero screenshot stack, mirrored showcase */
.phone {
  margin: 0; border: 7px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--white);
  box-shadow: 0 24px 50px rgba(26,29,43,0.18);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; align-items: start; }
.phones figure { margin: 0; }
.phones figcaption { margin-top: 16px; font-size: 14px; color: var(--body); line-height: 1.5; }
.phones figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.hero-shots { position: relative; padding: 0 0 48px; }
.hero-shots .phone { position: absolute; right: -8px; bottom: 0; width: 32%; }
.showcase.rev { grid-template-columns: 1.2fr 0.8fr; }
.showcase.rev .showcase-copy { order: 2; }
.feature .browser { box-shadow: 0 24px 50px rgba(0,0,0,0.3); }
@media (max-width: 1100px) {
  .showcase.rev { grid-template-columns: 1fr; }
  .showcase.rev .showcase-copy { order: 0; }
  .phones { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .hero-shots .phone { width: 38%; }
}
.phones.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-top: 40px; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 12px; font-size: 14px; color: var(--body); }
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; } .phones.three { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ARTICLES (blog/posts, rendered by _includes/post.njk) */
.post-hero { background: var(--white); border-bottom: 1px solid var(--border); }
.post-hero-inner { max-width: 820px; margin: 0 auto; padding: 40px 24px 44px; }
.post-hero .breadcrumb { max-width: 820px; margin: 0 auto; padding: 24px 24px 0; }
.post-hero h1 { font-size: 46px; line-height: 1.12; color: var(--ink); margin-bottom: 18px; }
.post-meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.post-cover { max-width: 900px; margin: 40px auto 0; padding: 0 24px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 16px 40px rgba(26,29,43,0.12); }
.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 88px; font-size: 17px; line-height: 1.75; color: var(--body); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--ink); line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 25px; }
.prose h4, .prose h5, .prose h6 { font-family: 'Work Sans', system-ui, sans-serif; font-size: 18px; font-weight: 600; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(47,60,126,0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--navy); opacity: 1; }
.prose strong { color: var(--ink); }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 6px; border: 1px solid var(--border); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6em; }
.prose ul > li::before { content: ""; position: absolute; left: 0.25em; top: 0.72em; width: 7px; height: 7px; border-radius: 2px; background: var(--navy); opacity: .75; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 2.3em; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0.2em; width: 1.55em; height: 1.55em; border-radius: 50%; background: rgba(47,60,126,0.09); color: var(--navy); font: 600 13px/1.55em 'IBM Plex Mono', monospace; text-align: center; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose li strong:first-child { color: var(--ink); }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-style: italic; }
.prose code { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 0.88em; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--ink); color: #E6E8F0; border-radius: 8px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose .table-wrap table { min-width: 520px; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { background: rgba(47,60,126,0.06); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.prose tbody tr:nth-child(even) td { background: rgba(26,29,43,0.018); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 500; }
/* Article reading polish (built by the "enhance" filter) */
.prose > p.lede { font-size: 19.5px; line-height: 1.7; color: var(--ink); }
.prose h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 16px; }
.prose .summary-box h2::before { display: none; }
.prose .callout { margin: 1.6em 0; padding: 18px 22px; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--navy); border-radius: 8px; }
.prose .callout p { margin: 6px 0 0; font-size: 16px; color: var(--ink); }
.prose .callout-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.prose .callout-work { border-left-color: var(--accent); background: linear-gradient(0deg, rgba(208,138,62,0.05), rgba(208,138,62,0.05)), var(--white); }
.prose .callout-work .callout-label { color: var(--accent-text); }
.prose .decision { display: grid; gap: 12px; }
.prose .decision > li { margin: 0; padding: 16px 18px 16px 3.2em; background: var(--white); border: 1px solid var(--border); border-radius: 8px; }
.prose .decision > li::before { left: 16px; top: 17px; }
.prose .decision-q { display: block; font-weight: 600; color: var(--ink); line-height: 1.5; }
.prose .decision-a { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: rgba(47,60,126,0.08); color: var(--navy); font-size: 14.5px; font-weight: 500; }
.prose .decision-a::before { content: "→ "; }
.prose .summary-box { margin: 2em 0; padding: 22px 26px; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 8px; }
.prose .summary-box h2 { font-size: 24px; margin: 0 0 12px; }
.prose .flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 26px; margin: 1.8em 0; }
.prose .flow-diagram span { position: relative; min-width: 260px; padding: 12px 20px; text-align: center; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15.5px; }
.prose .flow-diagram span + span::before { content: "↓"; position: absolute; left: 50%; top: -25px; transform: translateX(-50%); color: var(--accent-text); font-weight: 600; }
@media (max-width: 600px) { .prose > p.lede { font-size: 18px; } .prose .flow-diagram span { min-width: 0; width: 100%; } }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
@media (max-width: 900px) {
  .post-hero h1 { font-size: 34px; }
  .prose { font-size: 16px; padding-top: 36px; }
  .prose h2 { font-size: 26px; }
}
.author-box {
  max-width: 720px; margin: -40px auto 72px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--navy); border-radius: 8px;
}
.author-box img { flex: none; border-radius: 50%; background: var(--bg); padding: 8px; }
.author-name { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.author-box p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }
@media (max-width: 900px) { .author-box { margin-left: 24px; margin-right: 24px; } }

/* Article cards with thumbnails (Insights hub + "Keep reading") */
.post-card { padding: 0; overflow: hidden; gap: 0; }
.post-thumb { aspect-ratio: 1200 / 630; background: var(--bg); border-bottom: 1px solid var(--border); overflow: hidden; }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-thumb-fallback {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, var(--navy), #1f2a5e); color: rgba(255,255,255,0.85);
}
.post-thumb-fallback img { opacity: 0.9; filter: brightness(0) invert(1); }
.post-thumb-fallback span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.post-thumb-fallback.topic-healthcare { background: linear-gradient(135deg, #3E8F88, #2B6E69); }
.post-thumb-fallback.topic-construction { background: linear-gradient(135deg, #C47F33, #9A5F20); }
.post-thumb-fallback.topic-business { background: linear-gradient(135deg, #4B5262, #2E3340); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-filters { position: sticky; top: 0; z-index: 5; padding: 12px 0; background: var(--bg); }

.latest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.latest-head h2 { margin-bottom: 0 !important; }
@media (max-width: 900px) { .latest-head { flex-direction: column; } }

/* Responsive images are wrapped in <picture>; let the <img> keep its original layout rules. */
picture { display: contents; }
@media (max-width: 900px) { .proj-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .filter-btn { flex: none; } }

/* Process steps + FAQ (pillar pages) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; counter-reset: none; }
.steps li { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 6px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.steps .step-num { font-size: 12px; color: var(--accent-text); }
.steps .card-title { font-size: 16px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.faq { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--navy); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { margin: 0; font-family: 'Work Sans', system-ui, sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-item p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--body); max-width: 760px; }
/* Same FAQ accordion inside articles */
.prose .faq { border-top: 1px solid var(--border); }
.prose .faq-item summary h3 { margin: 0; font-size: 17px; scroll-margin-top: 96px; }
.prose .faq-item > :not(summary) { margin: 0 0 18px; font-size: 16px; }
.prose .faq-item ul, .prose .faq-item ol { padding-left: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Contact form (about/#contact → /contact.php) */
.contact-section { background: var(--navy); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; max-width: 1200px; }
.contact-section .section-label { color: #E8B77F; }
.contact-section h2 { color: var(--white); font-size: 40px; margin-bottom: 18px; }
.contact-copy p { font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.82); margin: 0 0 14px; }
.contact-alt a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.4); }
.contact-form { background: var(--white); color: var(--ink); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 50px rgba(0,0,0,0.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.contact-form .lbl b { color: var(--accent-text); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 15px 'Work Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg);
  border: 1px solid rgba(26,29,43,0.16); border-radius: 6px; padding: 11px 12px; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; background: var(--white); }
.contact-form button { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form button:disabled { opacity: 0.7; cursor: default; }
.form-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.form-error { background: #FDECEC; color: #9B1C1C; border-radius: 6px; padding: 12px 14px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .contact-section h2 { font-size: 32px; }
}
.author-box .author-proof { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); color: var(--ink); font-size: 14px; }

/* Named authors */
.post-author { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(47,60,126,0.3); text-underline-offset: 3px; }
.author-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font: 600 16px 'Work Sans', system-ui, sans-serif; letter-spacing: 0.02em; }
.author-avatar.big { width: 96px; height: 96px; font-size: 32px; }
.author-name a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(26,29,43,0.25); text-underline-offset: 3px; }
.author-role { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.author-hero { display: flex; gap: 28px; align-items: flex-start; }
.author-hero h1 { margin-bottom: 14px; }
@media (max-width: 600px) { .author-hero { flex-direction: column; gap: 16px; } }

/* Article layout with "On this page" TOC + share bar */
.post-layout { max-width: 1180px; margin: 0 auto; }
.post-layout.has-toc { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 56px; justify-content: center; padding: 0 24px; }
.post-layout.has-toc .toc { order: 2; }
.post-layout.has-toc .post-main .prose { padding-left: 0; padding-right: 0; }
.post-layout.has-toc .author-box { margin-left: 0; margin-right: 0; }
.toc { position: sticky; top: 24px; align-self: start; margin-top: 48px; max-height: calc(100vh - 48px); overflow-y: auto; }
.toc-box { border-left: 1px solid var(--border); padding-left: 18px; }
.toc-title { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.toc-title::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 5px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.toc a:hover { opacity: 1; color: var(--navy); background: var(--white); }
.toc .toc-l3 a { padding-left: 24px; font-size: 13.5px; }
.toc a.active { color: var(--navy); font-weight: 600; background: var(--white); box-shadow: inset 2px 0 0 var(--navy); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 24px; }

.share { max-width: 720px; margin: -48px auto 56px; padding: 18px 0; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.post-layout.has-toc .share { margin-left: 0; margin-right: 0; }
.share-label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { appearance: none; cursor: pointer; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(26,29,43,0.14);
  background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px 'Work Sans', system-ui, sans-serif; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.share-btn:hover { opacity: 1; border-color: var(--navy); color: var(--navy); }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-btn.copied { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (max-width: 1100px) {
  .post-layout.has-toc { display: block; padding: 0; }
  .toc { position: static; max-height: none; margin: 28px auto 0; max-width: 720px; padding: 0 24px; }
  .toc-box { border: 1px solid var(--border); border-radius: 8px; background: var(--white); padding: 14px 16px; }
  .toc-title { margin-bottom: 0; }
  .toc-box[open] .toc-title { margin-bottom: 10px; }
  .post-layout.has-toc .post-main .prose { padding-left: 24px; padding-right: 24px; }
  .post-layout.has-toc .author-box, .post-layout.has-toc .share { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 900px) { .share { margin-left: 24px; margin-right: 24px; } }

/* Section intro paragraph and inline card links (pillar pages) */
.section-intro { max-width: 760px; margin: -6px 0 32px; font-size: 16.5px; line-height: 1.65; color: var(--body); }
.card p a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(47,60,126,0.35); text-underline-offset: 3px; }
.card p a:hover { text-decoration-color: var(--navy); }

/* ROI calculator (/procore-roi-calculator/) */
.hero2-inner.calc-hero-inner { grid-template-columns: minmax(0, 820px); padding-top: 40px; padding-bottom: 48px; }
.calc-section { padding-top: 24px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 10px; overflow: hidden; }
.calc-inputs { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.calc-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.calc-inputs input[type=number] { font: inherit; font-weight: 500; font-size: 16px; padding: 10px 12px; border: 1px solid rgba(26,29,43,0.18); border-radius: 6px; background: var(--bg); color: var(--ink); max-width: 260px; }
.calc-inputs input[type=number]:focus { outline: 2px solid var(--navy); outline-offset: 1px; background: var(--white); }
.calc-inputs input[type=range] { accent-color: var(--navy); max-width: 320px; }
.calc-inputs output { color: var(--navy); }
.calc-inputs .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.calc .calc-h { max-width: none; line-height: 1.3; font-family: 'Work Sans', system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.calc-results { background: var(--navy); color: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.calc-results .calc-h { color: rgba(255,255,255,0.7); }
.calc-big b { display: block; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 64px; line-height: 1; }
.calc-big span, .calc-grid span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-top: 6px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.18); }
.calc-grid b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.1; }
.calc-cta { align-self: flex-start; margin-top: 4px; }
.calc-note { margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.7); }
.calc-list { margin: 10px 0 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.calc-proof .outcome-num { font-size: 52px; white-space: nowrap; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .grid.cols-4.calc-proof { grid-template-columns: 1fr 1fr; } .grid.cols-3.calc-proof { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .calc-inputs, .calc-results { padding: 22px; } .calc-big b { font-size: 48px; } .grid.cols-4.calc-proof { grid-template-columns: 1fr; } }
.section-intro a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(47,60,126,0.35); text-underline-offset: 3px; }

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

.newsletter-cta { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 24px; }
.newsletter-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter-inner h2 { margin: 2px 0 8px; }
.newsletter-inner p { margin: 0; color: var(--body); max-width: 46ch; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.newsletter-row { display: flex; gap: 10px; width: 100%; }
.newsletter-form input[type=email] { flex: 1; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid rgba(26,29,43,0.18); border-radius: 6px; background: var(--white); color: var(--ink); min-width: 0; }
.newsletter-form input[type=email]:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
@media (max-width: 760px) { .newsletter-inner { grid-template-columns: 1fr; } .newsletter-row { flex-direction: column; } .newsletter-form { align-items: stretch; } }
.newsletter-msg { max-width: 1120px; margin: 12px auto 0; font-size: 13px; color: var(--accent-text); text-align: right; }
@media (max-width: 760px) { .newsletter-msg { text-align: left; } }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); color: var(--white); box-shadow: 0 -8px 24px rgba(26,29,43,0.18); transform: translateY(100%); transition: transform .3s ease; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sticky-cta p { margin: 0; font-family: 'Work Sans', system-ui, sans-serif; font-size: 14.5px; font-weight: 500; }
.sticky-cta-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sticky-cta-close { background: none; border: 0; color: rgba(255,255,255,0.65); font-size: 20px; line-height: 1; cursor: pointer; padding: 6px; }
.sticky-cta-close:hover, .sticky-cta-close:focus-visible { color: var(--white); }
@media (max-width: 640px) { .sticky-cta p { display: none; } .sticky-cta-inner { justify-content: center; } }
