/* ═══════════════════════════════════════════════════════════════════════════
   HOME 9 — what Home 8 does not have
   ───────────────────────────────────────────────────────────────────────────
   Home 9 is Home 8's sections in another order (templates/home9-body.php is
   generated by tools/sync-home9.pl), so it loads Home 8's sheets unchanged:
   /assets/home7.css, /assets/home8-base.css, then this file, then the dark
   sheet /assets/home8.css that the header toggle switches off for light.

   Only two things live here: the placeholder Testimonials section and the
   frame of the mid-page CTA. Both are written against the page's tokens
   (--white surface, --black ink, --g* greys, --border), which home8.css
   redefines for dark, so each follows the toggle without rules of its own
   for either theme.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1 · MID-PAGE CTA ─────────────────────────────────────────────────────────
   The closing CTA's card laid out across the page, after How We Work
   (markup: tools/home9-cta-mid.html). The card runs the full width with a
   50px margin each side and holds two columns: eyebrow and a two-line
   heading on the left, the two-line description and the buttons on the
   right, then the strapline across the bottom under both.
   The card's surface, grid, glow and type come from Home 7's class rules
   (.cta-card, .cta-h, .cta-btn-w ...); what is here is layout, plus the
   sizes those rules set for a centred card that change for a split one.
   At 1200px and below the two columns stack. */
#cta-mid{
 padding:4rem 50px;position:relative;text-align:left;
 background:var(--white);
}
#cta-mid .cta-card{max-width:none;padding:3.75rem 4rem 2.25rem;border-radius:36px}
/* the glow sits behind the heading instead of the middle of the card */
#cta-mid .cta-glow{left:28%;width:640px;height:520px}

/* The right column is sized to its content — the two buttons side by side —
   and the left column takes whatever is left. Splitting by fractions instead
   left the buttons a few px short at laptop widths once a 17px scrollbar was
   counted, and the second one wrapped under the first. */
#cta-mid .ctam-row{
 position:relative;
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 gap:2.5rem 4rem;align-items:center;
}
/* the heading is sized against its own column (cqi), so its two lines fit
   however wide the buttons leave it */
#cta-mid .ctam-lead{container-type:inline-size}
#cta-mid .cta-eyebrow{margin-bottom:1.4rem;padding:7px 16px;font-size:12.5px}
#cta-mid .cta-h{margin:0;font-size:clamp(32px,3.4vw,56px);line-height:1.1}
@supports (font-size:1cqi){
 #cta-mid .cta-h{font-size:clamp(32px,9.2cqi,56px)}
}
#cta-mid .cta-p{
 margin:0 0 1.9rem;max-width:none;
 font-size:16px;line-height:1.65;
}
#cta-mid .cta-btns{justify-content:flex-start;gap:12px;flex-wrap:nowrap}
#cta-mid .cta-btn-w{padding:14px 28px;font-size:13px;white-space:nowrap}
/* one px less padding than the solid button, to absorb its border */
#cta-mid .cta-btn-g{padding:13px 27px;font-size:13px;white-space:nowrap}
/* the strapline belongs to the whole card, so it sits centred under both
   columns rather than under either one */
#cta-mid .cta-note{margin-top:2.75rem;padding-top:1.6rem;text-align:center}

@media(max-width:1200px){
 #cta-mid .ctam-row{grid-template-columns:1fr;gap:1.75rem}
 #cta-mid .cta-card{padding:3.25rem 3rem 2.25rem}
 #cta-mid .cta-h{font-size:clamp(32px,5vw,48px)}
 #cta-mid .cta-glow{left:50%;top:30%}
}
@media(max-width:820px){
 #cta-mid{padding:3rem 1.25rem}
 #cta-mid .cta-card{padding:2.75rem 1.75rem 2rem;border-radius:28px}
 #cta-mid .cta-glow{width:480px;height:420px}
 /* too narrow for both buttons on one line: let the second wrap */
 #cta-mid .cta-btns{flex-wrap:wrap}
 /* the forced breaks stop helping once the lines would wrap anyway */
 #cta-mid .cta-p br{display:none}
}
@media(max-width:560px){
 #cta-mid{padding:2.25rem 1rem}
 #cta-mid .cta-card{padding:2.25rem 1.25rem 1.75rem;border-radius:24px}
 #cta-mid .cta-h{font-size:clamp(28px,8vw,36px)}
 #cta-mid .cta-btns{flex-direction:column;align-items:stretch}
 #cta-mid .cta-btn-w,
 #cta-mid .cta-btn-g{width:100%;max-width:none;justify-content:center}
 #cta-mid .cta-note{margin-top:2rem;line-height:1.8}
}

/* ── 2 · TESTIMONIALS ─────────────────────────────────────────────────────────
   Three quote cards under the standard eyebrow / heading / subline. The
   section padding, heading and subline are the page's shared section styles;
   only the cards are new. Content is placeholder: see
   tools/home9-testimonials.html. */
#testimonials{background:var(--bg)}
#testimonials .tm-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;
 max-width:1180px;margin:0 auto;
}
#testimonials .tm-card{
 position:relative;overflow:hidden;margin:0;
 display:flex;flex-direction:column;gap:1.25rem;
 padding:2rem 1.9rem 1.75rem;border-radius:20px;
 background:var(--white);border:1px solid var(--border);
 transition:border-color .2s,transform .2s;
}
#testimonials .tm-card:hover{border-color:rgba(50,180,111,.45);transform:translateY(-2px)}
/* a large open-quote mark, set into the top-right corner as texture */
#testimonials .tm-card::after{
 content:"\201C";position:absolute;top:-.6rem;right:1.25rem;
 font-family:Georgia,'Times New Roman',serif;font-size:7.5rem;line-height:1;
 color:#32b46f;opacity:.12;pointer-events:none;
}
#testimonials .tm-stars{display:flex;gap:3px;color:#32b46f}
#testimonials .tm-stars svg{width:16px;height:16px;fill:currentColor;display:block}
#testimonials .tm-quote{margin:0;flex:1}
#testimonials .tm-quote p{
 margin:0;font-family:var(--font-body);font-size:15.5px;line-height:1.7;color:var(--g600);
}
#testimonials .tm-who{
 display:flex;align-items:center;gap:12px;
 padding-top:1.25rem;border-top:1px solid var(--border);
}
#testimonials .tm-avatar{
 flex:none;display:flex;align-items:center;justify-content:center;
 width:42px;height:42px;border-radius:50%;
 background:rgba(50,180,111,.12);border:1px solid rgba(50,180,111,.3);color:#32b46f;
}
#testimonials .tm-avatar svg{width:20px;height:20px;display:block}
#testimonials .tm-name{display:block;font-family:var(--font);font-size:14.5px;font-weight:700;color:var(--black)}
#testimonials .tm-role{display:block;margin-top:2px;font-family:var(--font-body);font-size:12.5px;color:var(--g400)}
@media(max-width:960px){
 #testimonials .tm-grid{grid-template-columns:1fr;max-width:560px}
}
@media(prefers-reduced-motion:reduce){
 #testimonials .tm-card{transition:none}
 #testimonials .tm-card:hover{transform:none}
}

/* ── 5 · SOLUTIONS — sidebar and a column of cards ────────────────────────────
   Home 8 stacks the three solution cards as a sticky deck under a centred
   heading. Here (markup rebuilt by sync-home9.pl) the section is two columns
   on a 1320px row:
   - left, the sidebar: eyebrow, heading and description flush left, and a
     nav with one numbered entry per card (name and tagline); the entry for
     the card on show is .is-active (tools/home9-solutions.js).
   - right, the cards: pill, name, tagline, description, button, then a rule
     and the four features as a 2×2 grid of tiles.
   From 1025px wide and 640px tall the two are pinned to one screen and only
   one card shows at a time; scrolling swaps it (see "Pinned" below).
   Both are sized to fit that screen under the fixed nav: the sidebar is
   ~490px and a card ~590px from 1025px wide, so they show whole in a
   760px-tall window; at 760px tall and below the tiles put the icon beside
   the copy and the type steps down to keep them on screen.
   At 1024px and below it is one column: the heading centred over the cards
   and the nav left out (the cards follow straight on, so there is nothing
   to jump to).
   Colour rules keep the specificity of home8.css's #solutions rules, which
   load after this file, so the dark sheet still recolours the tiles, icons
   and button; only layout is set more specifically. */
#solutions .sol-layout{
 max-width:1320px;margin-inline:auto;
 display:grid;grid-template-columns:minmax(0,min(460px,36%)) minmax(0,1fr);
 column-gap:clamp(2.5rem,4.5vw,5rem);align-items:start;
}
#solutions .sol-side{display:flex;flex-direction:column;min-width:0}
/* without the driver (no script) the sidebar alone sticks beside the column */
@media(min-width:1025px) and (min-height:640px){
 #solutions:not(.sol-pinned) .sol-side{position:sticky;top:104px}
}
#solutions .sol-side .eyebrow{justify-content:flex-start}
#solutions .sol-side .sec-h{
 text-align:left;font-size:clamp(30px,2.5vw,38px);line-height:1.12;margin-bottom:1rem;text-wrap:balance;
}
#solutions .sol-side .sec-sub{
 text-align:left;max-width:none;margin:0;font-size:14.5px;line-height:1.6;
}

/* the nav: one entry per card, the active one outlined in green */
#solutions .sol-nav{
 display:flex;flex-direction:column;gap:6px;
 margin-top:1.75rem;padding-top:1.75rem;border-top:1px solid var(--border);
}
#solutions .sol-nav-item{
 display:flex;align-items:flex-start;gap:14px;
 padding:13px 16px;border-radius:12px;border:1px solid transparent;
 text-decoration:none;color:var(--black);
 transition:background-color .2s ease,border-color .2s ease;
}
#solutions .sol-nav-item:hover{background:rgba(50,180,111,.05)}
#solutions .sol-nav-item.is-active{background:rgba(50,180,111,.08);border-color:rgba(50,180,111,.6)}
#solutions .sol-nav-item:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#solutions .sol-nav-num{
 min-width:18px;padding-top:3px;
 font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
 font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--g400);
}
#solutions .sol-nav-item.is-active .sol-nav-num{color:var(--blue)}
#solutions .sol-nav-text{display:flex;flex-direction:column;gap:3px;min-width:0}
#solutions .sol-nav-text strong{
 font-family:var(--font);font-size:14.5px;font-weight:700;letter-spacing:-.01em;line-height:1.3;
 color:var(--black);
}
#solutions .sol-nav-text small{font-family:var(--font-body);font-size:12.5px;line-height:1.45;color:var(--g500)}

/* the cards: one column in normal flow, no sticky deck, no per-card offsets */
#solutions .sol-layout .sol-grid{
 max-width:none;width:auto;margin:0;padding-bottom:0;gap:2rem;min-width:0;
}
#solutions .sol-layout .sol-card{
 position:relative;top:auto;will-change:auto;
 display:flex;flex-direction:column;align-items:flex-start;
 padding:2rem 2.4rem 2.1rem;border-radius:24px;
 scroll-margin-top:104px;
 border-color:var(--border);   /* Home 7's #DFE3E0 is a bright line on the dark card */
}
#solutions .sol-layout .sol-card:hover{border-color:rgba(50,180,111,.45)}
#solutions .sol-layout .sol-card.is-active{border-color:rgba(50,180,111,.5)}
#solutions .sol-layout .sol-head{margin:0 0 .9rem;padding:5px 13px 5px 10px;gap:8px}
#solutions .sol-layout .sol-icon,
#solutions .sol-layout .sol-icon svg{width:15px;height:15px;min-width:15px}
#solutions .sol-layout .sol-label{font-size:12.5px;font-weight:600}
#solutions .sol-layout .sol-name{font-size:clamp(26px,2.3vw,34px);margin-bottom:.5rem}
#solutions .sol-layout .sol-tag{font-size:16px;margin-bottom:.75rem}
#solutions .sol-layout .sol-desc{max-width:none;font-size:15px;line-height:1.65;margin-bottom:1.35rem}
#solutions .sol-layout .sol-arrow{align-self:flex-start;padding:13px 24px}

/* the features: under a rule, a 2×2 grid of tiles, icon over the copy */
#solutions .sol-layout .sol-list{
 align-self:stretch;flex:none;
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
 margin:1.5rem 0 0;padding-top:1.5rem;border-top:1px solid var(--border);
}
#solutions .sol-layout .sol-list li{
 flex:none;flex-direction:column;align-items:flex-start;justify-content:flex-start;
 gap:10px;min-height:0;padding:14px 16px 15px;border-radius:14px;
}
#solutions .sol-list li{background:#F8FAF9;border-color:#E8ECEA;box-shadow:none}
#solutions .sol-layout .sol-check{width:34px;height:34px;min-width:34px;border-radius:9px}
#solutions .sol-layout .sol-check svg{width:17px;height:17px}
#solutions .sol-check{background:var(--white);border:1px solid var(--border)}
#solutions .sol-layout .sol-benefit{gap:3px;padding-left:0;border-left:none}
#solutions .sol-layout .sol-benefit strong{font-size:14px;line-height:1.3;text-wrap:balance}
#solutions .sol-layout .sol-benefit small{font-size:12.5px;line-height:1.45}

/* short windows (laptops at 760px tall and below): icon beside the copy in
   each tile, and a little less type and space, so a card still shows whole */
@media(min-width:1025px) and (max-height:760px){
 #solutions .sol-side .sec-h{font-size:clamp(28px,2.2vw,33px)}
 #solutions .sol-side .sec-sub{font-size:13.5px;line-height:1.55}
 #solutions .sol-nav{margin-top:1.25rem;padding-top:1.25rem}
 #solutions .sol-nav-item{padding:11px 14px}
 #solutions .sol-layout .sol-card{padding:1.6rem 2.1rem 1.75rem}
 #solutions .sol-layout .sol-name{font-size:clamp(24px,2vw,30px)}
 #solutions .sol-layout .sol-desc{font-size:14.5px;line-height:1.6;margin-bottom:1.1rem}
 #solutions .sol-layout .sol-list{margin-top:1.2rem;padding-top:1.2rem}
 #solutions .sol-layout .sol-list li{flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
}

/* Pinned: one card at a time (.sol-pinned, which the driver sets from 1025px
   wide and 640px tall). The track (.sol-scroll) runs a screen plus one
   --sol-step per card; the layout sticks at its top, a screen tall, with the
   fixed nav's 77px as padding inside it and the sidebar and card centred in
   the rest, so the section's own padding goes. The cards share one grid cell
   (the tallest sets its height) and only the active one shows: it rises in
   as the one before leaves upward, or the reverse going back up the page. */
#solutions.sol-pinned{padding-top:0;padding-bottom:0}
#solutions.sol-pinned .sol-scroll{
 --sol-step:65vh;
 height:calc(100vh + var(--sol-n, 3) * var(--sol-step));
}
#solutions.sol-pinned .sol-layout{
 position:sticky;top:0;height:100vh;
 padding-top:77px;             /* the fixed nav */
 align-content:center;align-content:safe center;
}
/* one column: Home 7's bare .sol-grid rule gives it three */
#solutions.sol-pinned .sol-layout .sol-grid{
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"card";gap:0;
}
#solutions.sol-pinned .sol-layout .sol-card{
 grid-area:card;
 opacity:0;visibility:hidden;transform:translateY(32px);
 transition:opacity .3s ease,transform .5s cubic-bezier(.22,.8,.24,1),visibility 0s linear .5s,
            border-color .35s ease,box-shadow .35s ease;
}
#solutions.sol-pinned .sol-layout .sol-card.is-past{transform:translateY(-32px)}
#solutions.sol-pinned .sol-layout .sol-card.is-active{
 opacity:1;visibility:visible;transform:none;
 transition:opacity .45s ease .1s,transform .6s cubic-bezier(.22,.8,.24,1) .1s,visibility 0s,
            border-color .35s ease,box-shadow .35s ease;
}
@media(prefers-reduced-motion:reduce){
 #solutions.sol-pinned .sol-layout .sol-card{transition:none}
}

@media(max-width:1024px){
 #solutions .sol-layout{grid-template-columns:minmax(0,1fr);row-gap:2.75rem;max-width:860px}
 #solutions .sol-side{align-items:center;text-align:center}
 #solutions .sol-side .eyebrow{justify-content:center}
 #solutions .sol-side .sec-h,
 #solutions .sol-side .sec-sub{text-align:center}
 #solutions .sol-side .sec-sub{max-width:600px}
 #solutions .sol-nav{display:none}
}
@media(max-width:640px){
 #solutions .sol-layout .sol-card{padding:1.9rem 1.4rem 2rem;border-radius:20px}
 #solutions .sol-layout .sol-arrow{align-self:stretch;justify-content:center}
 #solutions .sol-layout .sol-list{margin-top:1.75rem;padding-top:1.75rem}
}
@media(max-width:520px){
 #solutions .sol-layout .sol-list{grid-template-columns:minmax(0,1fr)}
 #solutions .sol-layout .sol-list li{flex-direction:row;align-items:center;padding:14px 16px}
}
@media(prefers-reduced-motion:reduce){
 #solutions .sol-nav-item{transition:none}
}

/* ── 6 · INDUSTRIES — the stack centred ───────────────────────────────────────
   Home 8 starts the stack at a left inset and runs it off the right edge.
   Here it is centred with equal space each side, and spans the same 1320px as
   the Solutions row above so the two line up.
   The driver (Home 8's, unchanged) fills a run of (stack width - --gut) from
   the stack's left padding. With the padding dropped and the run centred, a
   stack 60px wider than the run puts --gut/2 each side: so the box is 1380px,
   centred, and below that it reaches 30px into the section's gutters so the run
   still matches the content width (60px is --gut's cap, reached from 1277px).
   Phones and reduced motion get Home 8's plain list, also without the bleed. */
#industries .is-live .is-stack{
 padding-inline:0;justify-content:center;
 margin-inline:max(-30px, calc((100% - 1380px) / 2));
}
#industries .is-outer:not(.is-live) .is-stack{margin-inline:0;padding-inline:0}

/* ── 9 · CASE STUDIES — the whole section on one pinned screen ───────────────
   Home 8 pins only the card track, in a full-height box with the cards
   centred in it, while the heading scrolls away above: heading and cards sat
   ~250px apart and were never on screen together. Here sync-home9.pl moves the
   heading (.cases-head) and the CTA inside the pinned box, which becomes one
   column centred in the screen below the fixed nav, so heading, cards and
   button hold still together while scrolling moves the cards sideways.
   Home 8's driver is unchanged: the box still pins at top 0 and is 100vh
   tall; the nav's height is padding inside it. The section drops its own top
   and bottom padding, since the centring inside the box is the breathing room.
   On short windows the subline goes (as Dashboards does), and if the column
   is still taller than the space it starts under the nav (safe center)
   rather than being clipped at the top.
   Phones get no pin: a stacked card plus the heading cannot share a phone
   screen, so there the cards are a row swiped sideways.
   Reduced motion keeps Home 7's plain stack, so the pinned layout is gated. */
@media(min-width:681px) and (prefers-reduced-motion:no-preference){
 #cases{padding-top:0;padding-bottom:0}
 #cases .cases-pin{
  flex-direction:column;align-items:stretch;
  justify-content:center;justify-content:safe center;
  padding-top:77px;            /* the fixed nav */
 }
 /* the subline on one line rather than two */
 #cases .cases-head .sec-sub{max-width:720px;margin-bottom:1.5rem}
 #cases .sec-cta{margin-top:1.25rem}
 /* The cards are absolutely placed, so the track has to be given their
    height. The card is trimmed a little (inner padding, gaps in the list)
    so card, heading and button fit a laptop screen: ~375px tall here, ~430px
    at the narrower widths where the list lines wrap. */
 #cases .cases-track{flex:none;height:390px}
 #cases .case-body{padding:26px 34px}
 #cases .case-tag{margin-bottom:14px}
 #cases .case-list{margin-bottom:20px}
 #cases .case-list li{padding:4px 0}
}
@media(min-width:681px) and (max-width:1000px) and (prefers-reduced-motion:no-preference){
 #cases .cases-track{height:440px}
 #cases .case-body{padding:24px 28px}
}
@media(min-width:681px) and (max-width:820px) and (prefers-reduced-motion:no-preference){
 #cases .cases-track{height:470px}
}
@media(min-width:681px) and (max-height:720px) and (prefers-reduced-motion:no-preference){
 #cases .cases-head .sec-sub{display:none}
 #cases .cases-head .sec-h{margin-bottom:1.25rem}
}
@media(min-width:681px) and (max-height:660px) and (prefers-reduced-motion:no-preference){
 #cases .cases-head .eyebrow{margin-bottom:.75rem}
 #cases .cases-head .sec-h{font-size:34px;margin-bottom:.75rem}
 #cases .sec-cta{margin-top:.75rem}
}

@media(max-width:680px){
 #cases .cases-scroll{height:auto;overflow:visible}
 #cases .cases-pin{position:static;height:auto;display:block;overflow:visible}
 #cases .cases-track{
  width:auto;height:auto;display:flex;gap:14px;align-items:stretch;
  overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  /* run to the screen edges so a card peeks in from the right */
  margin-inline:calc(-1 * var(--sp-gutter));padding:6px var(--sp-gutter) 14px;
  scroll-padding-inline:var(--sp-gutter);
  scrollbar-width:none;
 }
 #cases .cases-track::-webkit-scrollbar{display:none}
 /* the scroll driver still writes transforms; the row ignores them */
 #cases .case-card{
  position:static;flex:0 0 86%;width:86%;scroll-snap-align:start;
  transform:none !important;opacity:1 !important;visibility:visible !important;
 }
}

/* ── 10 · HOW WE WORK — process row ───────────────────────────────────────────
   Home 9's How We Work, after Case Studies, in place of Home 8's card grid
   and process panel (markup: tools/home9-process.html). It is dark in both
   themes, so its colours are its own rather than the page tokens and the
   theme toggle leaves it alone.
   Header: eyebrow, heading and description centred in one column, straight
   on the section ground (no card). The heading runs on one line from 900px
   up (~945px at its 46px cap) and the description is held to two balanced lines;
   below 900px the heading's break takes over. The button and its note sit
   centred under the steps.
   Steps: from 1100px, four cards in a row, every other one set lower by
   --pr-drop, with a curved arrow in each gap running from the middle of one
   card to the middle of the next (down after a high card, the same curve
   flipped after a low one). From 600px they are a 2×2 grid without the
   stagger or arrows, and one column below that. */
/* The ground: near-black with two soft green glows (behind the heading, and
   low across the step row), and over it the site's 68px grid texture in faint
   white, faded out towards the section's edges by a radial mask so it reads
   as texture behind the content rather than a pattern up to the borders. */
#process{
 position:relative;color:#fff;
 background:
  radial-gradient(42% 46% at 50% 10%,rgba(50,180,111,.11) 0%,transparent 70%),
  radial-gradient(60% 55% at 50% 78%,rgba(50,180,111,.09) 0%,transparent 70%),
  #03080c;
}
#process::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background-image:
  linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
 background-size:68px 68px;background-position:center top;
 -webkit-mask-image:radial-gradient(ellipse 78% 72% at 50% 45%,#000 25%,transparent 88%);
 mask-image:radial-gradient(ellipse 78% 72% at 50% 45%,#000 25%,transparent 88%);
}
#process > *{position:relative;z-index:1}
#process .pr-head,
#process .pr-steps{max-width:1320px;margin-inline:auto}

#process .pr-head{
 display:flex;flex-direction:column;align-items:center;text-align:center;
 margin-bottom:4.5rem;
}
#process .eyebrow{justify-content:center}
#process .sec-h{text-align:center;color:#fff;margin:0 0 1.1rem}
/* the homepage section headings' sizes (home7.css gives them to its own
   section IDs only); the bare .sec-h's 40px at 960px would not fit on one
   line at 900px */
#process .sec-h{font-size:clamp(30px,4vw,46px);font-weight:700}
@media(max-width:960px){#process .sec-h{font-size:clamp(26px,4.6vw,38px)}}
@media(max-width:560px){#process .sec-h{font-size:clamp(23px,5.6vw,30px)}}
@media(min-width:900px){#process .sec-h br{display:none}}
#process .pr-head .sec-sub{
 text-align:center;max-width:780px;margin:0 auto;text-wrap:balance;
 font-size:17px;line-height:1.7;color:rgba(255,255,255,.72);
}
/* under the steps: the button at its own width, the note centred under it */
#process .pr-actions{display:flex;flex-direction:column;align-items:center;margin-top:3.5rem}
/* #0B8043 and darker: white on the brand green is under 4.5:1 */
#process .pr-cta{
 justify-content:center;gap:10px;padding:.95rem 2rem;
 background:linear-gradient(180deg,#0B8043 0%,#08713A 100%);color:#fff;
 border:1px solid rgba(255,255,255,.06);border-radius:10px;
 box-shadow:0 10px 26px rgba(11,128,67,.28),inset 0 1px 0 rgba(255,255,255,.12);
 font-family:var(--font-body);font-size:15px;font-weight:700;
 text-transform:none;letter-spacing:-.005em;
 transition:box-shadow .2s ease,filter .2s ease;
}
#process .pr-cta svg{width:16px;height:16px;flex:none;transition:transform .2s ease}
#process .pr-cta:hover{filter:brightness(1.08);box-shadow:0 14px 32px rgba(11,128,67,.38),inset 0 1px 0 rgba(255,255,255,.14)}
#process .pr-cta:hover svg{transform:translateX(3px)}
#process .pr-note{
 display:flex;align-items:center;justify-content:center;gap:7px;margin:.95rem 0 0;
 font-family:var(--font-body);font-size:12px;line-height:1.4;color:rgba(255,255,255,.42);
}
#process .pr-note svg{width:14px;height:14px;flex:none}

#process .pr-steps{
 --pr-gap:clamp(64px,6vw,100px);
 --pr-drop:72px;
 list-style:none;padding:0;
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--pr-gap);
}
#process .pr-step{
 position:relative;
 display:flex;flex-direction:column;align-items:center;text-align:center;
 padding:4rem 1.75rem 2.4rem;border-radius:24px;
 background:linear-gradient(180deg,#0F1D17 0%,#0B1611 100%);
 border:1px solid rgba(50,180,111,.16);
 box-shadow:0 18px 40px rgba(0,0,0,.28);
 transition:border-color .25s ease;
 --d:0s;                       /* entrance delay: see "Process animation" */
}
#process .pr-step:hover{border-color:rgba(50,180,111,.42)}
/* the stagger: high, low, high, low. Margins rather than transforms, so the
   row is tall enough for both and every card is the same height */
#process .pr-step:nth-child(odd){margin-bottom:var(--pr-drop)}
#process .pr-step:nth-child(even){margin-top:var(--pr-drop)}

/* The arrow in the gap after each card but the last. Its box runs from this
   card's middle to the next card's middle (one --pr-drop apart, plus 8px each
   end for the curve's ends), with clearance either side of it in the gap. */
#process .pr-step:not(:last-child)::after{
 content:"";position:absolute;pointer-events:none;
 left:calc(100% + var(--pr-gap) * .14);width:calc(var(--pr-gap) * .72);
 top:calc(50% - 8px);height:calc(var(--pr-drop) + 16px);
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 88' preserveAspectRatio='none' fill='none' stroke='%2332b46f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath vector-effect='non-scaling-stroke' d='M2 8C36 8 38 80 73 80'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M66 73.5 73 80 66 86.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* after a low card the next one is higher: the same curve, flipped */
#process .pr-step:nth-child(even):not(:last-child)::after{
 top:auto;bottom:calc(50% - 8px);transform:scaleY(-1);
}

#process .pr-num{
 position:absolute;top:1.15rem;left:1.25rem;
 padding:3px 10px;border-radius:999px;
 font-family:var(--font-display);font-size:12.5px;font-weight:700;letter-spacing:.04em;line-height:1.3;
 color:#32b46f;background:rgba(50,180,111,.12);border:1px solid rgba(50,180,111,.35);
}
#process .pr-icon{
 width:64px;height:64px;flex:none;margin-bottom:1.6rem;
 display:flex;align-items:center;justify-content:center;
 border-radius:16px;background:#050807;border:1px solid rgba(255,255,255,.08);
 box-shadow:0 10px 24px rgba(0,0,0,.35);color:#fff;
}
#process .pr-icon svg{width:30px;height:30px;display:block}
#process .pr-name{
 margin:0 0 .9rem;
 font-family:var(--font-display);font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.25;
 color:#fff;
}
#process .pr-desc{
 margin:0;font-family:var(--font);font-size:14.5px;line-height:1.75;
 color:rgba(255,255,255,.6);
}

@media(max-width:1100px){
 #process .pr-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 #process .pr-step:nth-child(n){margin:0}
 #process .pr-step:not(:last-child)::after{content:none}
}
@media(max-width:900px){
 #process .pr-head{margin-bottom:3rem}
}
@media(max-width:600px){
 #process .pr-steps{grid-template-columns:minmax(0,1fr);gap:14px}
 #process .pr-step{padding:3.75rem 1.5rem 2rem}
 #process .pr-head .sec-sub{font-size:16px}
 #process .pr-actions{margin-top:2.5rem}
}
@media(prefers-reduced-motion:reduce){
 #process .pr-step{transition:none}
}

/* Process animation. The script at the foot of the section adds .pr-anim to
   the list (not under reduced motion, so nothing is ever hidden there or
   without script) and .is-in when it comes into view: to the whole list from
   1101px, where the cards share a row, or to each card as it arrives on
   screen when they stack.
   Entrance: each card rises in, then its badge, icon (scaling up), title and
   text just after; from 1101px the cards follow one another --d apart
   (0.55s), and the arrow after each card draws left to right (a clip-path
   wipe) as the card settles, so the row builds up as a sequence:
   01, arrow, 02, arrow, 03, arrow, 04.
   Then, from 1101px, a glow travels the row on an 8s loop: each card in turn
   gets a green ring and its icon lights green for ~1.5s, and as the glow
   leaves a card the arrow after it flares. The ring is the card's ::before
   (its ::after is the arrow), so the card's own border and hover are left
   alone. */
#process .pr-anim .pr-step{
 opacity:0;transform:translateY(34px) scale(.97);
 transition:opacity .6s ease var(--d),transform .8s cubic-bezier(.22,.8,.24,1) var(--d),border-color .25s ease;
}
#process .pr-anim .pr-num,
#process .pr-anim .pr-name,
#process .pr-anim .pr-desc{
 opacity:0;transform:translateY(10px);
 transition:opacity .5s ease calc(var(--d) + .25s),transform .6s cubic-bezier(.22,.8,.24,1) calc(var(--d) + .25s);
}
#process .pr-anim .pr-name{transition-delay:calc(var(--d) + .3s)}
#process .pr-anim .pr-desc{transition-delay:calc(var(--d) + .38s)}
#process .pr-anim .pr-icon{
 opacity:0;transform:scale(.55) rotate(-8deg);
 transition:opacity .45s ease calc(var(--d) + .18s),transform .7s cubic-bezier(.34,1.56,.64,1) calc(var(--d) + .18s);
}
#process .pr-anim .pr-step:not(:last-child)::after{
 clip-path:inset(0 100% 0 0);
 transition:clip-path .55s cubic-bezier(.65,0,.35,1) calc(var(--d) + .45s);
}
#process .pr-anim.is-in .pr-step,
#process .pr-anim .pr-step.is-in{opacity:1;transform:none}
#process .pr-anim.is-in .pr-step .pr-num,
#process .pr-anim.is-in .pr-step .pr-name,
#process .pr-anim.is-in .pr-step .pr-desc,
#process .pr-anim .pr-step.is-in .pr-num,
#process .pr-anim .pr-step.is-in .pr-name,
#process .pr-anim .pr-step.is-in .pr-desc{opacity:1;transform:none}
#process .pr-anim.is-in .pr-step .pr-icon,
#process .pr-anim .pr-step.is-in .pr-icon{opacity:1;transform:none}
#process .pr-anim.is-in .pr-step:not(:last-child)::after,
#process .pr-anim .pr-step.is-in:not(:last-child)::after{clip-path:inset(0 0 0 0)}

/* the travelling glow's ring, idle until the loop runs */
#process .pr-step::before{
 content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;
 border:1px solid rgba(50,180,111,.75);
 box-shadow:0 0 0 1px rgba(50,180,111,.16),0 0 48px rgba(50,180,111,.22),inset 0 0 36px rgba(50,180,111,.07);
 opacity:0;
}
@media(min-width:1101px){
 #process .pr-step:nth-child(2){--d:.55s}
 #process .pr-step:nth-child(3){--d:1.1s}
 #process .pr-step:nth-child(4){--d:1.65s}
 /* the loop starts once the entrance is over (~2.6s), 2s per card */
 #process .pr-anim.is-in .pr-step::before{animation:pr-ring 8s ease-in-out calc(2.6s + var(--d) / .55 * 2) infinite}
 #process .pr-anim.is-in .pr-step .pr-icon{animation:pr-icon 8s ease-in-out calc(2.6s + var(--d) / .55 * 2) infinite}
 #process .pr-anim.is-in .pr-step:not(:last-child)::after{animation:pr-arrow 8s ease-in-out calc(2.6s + var(--d) / .55 * 2) infinite}
}
@keyframes pr-ring{
 0%,100%{opacity:0}
 5%,19%{opacity:1}
 27%{opacity:0}
}
@keyframes pr-icon{
 0%,27%,100%{color:#fff;border-color:rgba(255,255,255,.08);box-shadow:0 10px 24px rgba(0,0,0,.35)}
 5%,19%{color:#5FD394;border-color:rgba(50,180,111,.55);box-shadow:0 10px 24px rgba(0,0,0,.35),0 0 26px rgba(50,180,111,.32)}
}
@keyframes pr-arrow{
 0%,16%,34%,100%{filter:none}
 25%{filter:drop-shadow(0 0 5px rgba(50,180,111,.9))}
}

/* ── 11 · PLATFORM DASHBOARDS — the hub ───────────────────────────────────────
   Home 8 slides a row of six full dashboard cards past while pinned. Here
   (markup: tools/home9-dashboards.html) the six modules are wired to one
   "Centralized" hub: three compact cards down each side and the hub between
   them, on a dark circuit-board ground in both themes (so its colours are
   its own, like #process).
   From 1101px: three columns (cards | hub | cards) on a 1320px stage. The
   script draws the wires into .hub-wires from each card's port (.hub-port,
   on its inner edge) to the hub's side: a dim dashed line with a dot
   travelling in along it, and a bright flowing copy (.hub-flow) shown only
   on the active module's wire. The active module (.is-active: card, wire,
   wire end, hub spoke) follows the pointer and otherwise walks round the
   six; the hub's caption names it.
   Below 1101px the hub sits on top and the cards follow in two columns (one
   below 700px), with no wires. Entrance (.hub-anim, then .is-in): the cards
   slide in from their sides, the hub scales up, the wires fade in last.
   "section#dashboards" outranks home8.css's #dashboards ground, which loads
   after this file. */
section#dashboards{
 position:relative;color:#fff;overflow:hidden;
 background:
  radial-gradient(34% 48% at 50% 64%,rgba(50,180,111,.17) 0%,transparent 70%),
  radial-gradient(70% 45% at 50% 0%,rgba(50,180,111,.06) 0%,transparent 70%),
  #040907;
}
section#dashboards::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background-image:
  linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
 background-size:68px 68px;background-position:center top;
 -webkit-mask-image:radial-gradient(ellipse 75% 70% at 50% 55%,#000 25%,transparent 85%);
 mask-image:radial-gradient(ellipse 75% 70% at 50% 55%,#000 25%,transparent 85%);
}
#dashboards > *{position:relative;z-index:1}
#dashboards .hub-head{max-width:1320px;margin:0 auto 3.75rem;text-align:center}
#dashboards .hub-head .eyebrow{justify-content:center}
#dashboards .hub-head .sec-h{color:#fff}
#dashboards .hub-head .sec-sub{color:rgba(255,255,255,.62);margin:0 auto;max-width:640px}

#dashboards .hub-stage{
 position:relative;max-width:1440px;margin-inline:auto;
 display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,196px) minmax(0,1fr);
 column-gap:clamp(48px,5vw,96px);align-items:center;
}
#dashboards .hub-wires{
 position:absolute;inset:0;width:100%;height:100%;overflow:visible;
 pointer-events:none;z-index:0;
}
#dashboards .hub-col{position:relative;z-index:1;display:flex;flex-direction:column;gap:20px}
#dashboards .hub-core{position:relative;z-index:1;display:flex;justify-content:center}

/* the hub: a glowing green tile, two rings pulsing out of it */
#dashboards .hub-box{
 position:relative;width:100%;max-width:196px;aspect-ratio:1 / .94;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
 border-radius:24px;
 background:linear-gradient(160deg,#2DB872 0%,#169B58 46%,#0C7A43 100%);
 border:1.5px solid rgba(130,235,180,.55);
 box-shadow:
  0 0 0 7px rgba(50,180,111,.07),
  0 0 70px rgba(50,180,111,.42),
  0 30px 60px rgba(0,0,0,.45),
  inset 0 1px 0 rgba(255,255,255,.28);
}
#dashboards .hub-box::before,
#dashboards .hub-box::after{
 content:"";position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;
 border:1.5px solid rgba(50,180,111,.55);
 animation:hub-ring 3.2s cubic-bezier(.2,.6,.3,1) infinite;
}
#dashboards .hub-box::after{animation-delay:1.6s}
@keyframes hub-ring{
 0%{transform:scale(1);opacity:.75}
 100%{transform:scale(1.32);opacity:0}
}
#dashboards .hub-ico{width:60px;height:60px;display:block;overflow:visible}
#dashboards .hub-ico line{stroke:#fff;stroke-width:4;stroke-linecap:round;opacity:.92;transition:opacity .3s ease,stroke .3s ease}
#dashboards .hub-ico circle{fill:#fff;transform-box:fill-box;transform-origin:center;transition:transform .4s cubic-bezier(.34,1.56,.64,1),fill .3s ease}
#dashboards .hub-ico .hub-ico-core{fill:none;stroke:#fff;stroke-width:4}
#dashboards .hub-ico .hub-node.is-active circle{transform:scale(1.35);fill:#DFFFEC}
#dashboards .hub-ico .hub-node.is-active line{stroke:#DFFFEC;opacity:1}
#dashboards .hub-name{
 font-family:var(--font-display);font-size:20px;font-weight:700;letter-spacing:-.01em;line-height:1;color:#fff;
}
#dashboards .hub-cap{
 display:flex;align-items:center;gap:7px;min-height:16px;max-width:92%;
 font-family:var(--font-body);font-size:11px;font-weight:600;line-height:1.3;color:rgba(255,255,255,.86);
 white-space:nowrap;
}
#dashboards .hub-cap span{overflow:hidden;text-overflow:ellipsis}
#dashboards .hub-cap i{
 flex:none;width:7px;height:7px;border-radius:50%;background:#D9FFE9;
 box-shadow:0 0 0 3px rgba(255,255,255,.18);animation:hub-blink 1.6s ease-in-out infinite;
}
@keyframes hub-blink{50%{opacity:.35}}

/* a module card */
#dashboards .hub-mod{
 position:relative;padding:18px 20px 16px;border-radius:18px;
 background:linear-gradient(180deg,#0F1A15 0%,#0A120F 100%);
 border:1px solid rgba(50,180,111,.16);
 box-shadow:0 16px 36px rgba(0,0,0,.35);
 transition:border-color .3s ease,box-shadow .3s ease,transform .45s cubic-bezier(.22,.8,.24,1),opacity .6s ease;
}
#dashboards .hub-col-l .hub-mod{--nudge:6px;--from:-40px}
#dashboards .hub-col-r .hub-mod{--nudge:-6px;--from:40px}
#dashboards .hub-mod-top{display:flex;align-items:center;gap:12px}
#dashboards .hub-mod-ico{
 flex:none;width:40px;height:40px;border-radius:11px;
 display:flex;align-items:center;justify-content:center;
 background:linear-gradient(160deg,#27AA68 0%,#11804A 100%);
 box-shadow:0 6px 16px rgba(17,128,74,.35);
}
#dashboards .hub-mod-ico svg{width:22px;height:22px;display:block}
#dashboards .hub-mod-tt{flex:1;min-width:0}
/* name and period chip share the first line, so the line under them gets
   the card's full width */
#dashboards .hub-mod-name{display:flex;align-items:center;justify-content:space-between;gap:10px}
#dashboards .hub-mod h3{
 min-width:0;margin:0;font-family:var(--font-display);font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.25;color:#fff;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#dashboards .hub-mod-tt p{
 margin:2px 0 0;font-family:var(--font-body);font-size:12.5px;line-height:1.4;color:rgba(255,255,255,.55);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#dashboards .hub-mod-when{
 flex:none;padding:3px 9px;border-radius:999px;
 font-family:var(--font-body);font-size:10.5px;font-weight:600;line-height:1.4;color:rgba(255,255,255,.55);
 border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);
}
#dashboards .hub-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 0}
#dashboards .hub-kpis > div{
 min-width:0;padding:9px 11px 10px;border-radius:11px;
 background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);
}
#dashboards .hub-kpis dt{
 font-family:var(--font-body);font-size:11px;line-height:1.3;color:rgba(255,255,255,.5);
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#dashboards .hub-kpis dd{
 margin:4px 0 0;display:flex;align-items:baseline;flex-wrap:wrap;column-gap:6px;
 font-family:var(--font-display);font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.2;color:#fff;
}
#dashboards .hub-kpis em{
 font-style:normal;font-family:var(--font-body);font-size:11px;font-weight:700;letter-spacing:0;color:#4ED38B;
}
#dashboards .hub-kpis em::before{content:"\2191\00a0"}
#dashboards .hub-kpis em.down{color:#F0A35E}
#dashboards .hub-kpis em.down::before{content:"\2193\00a0"}

/* the port on each card's inner edge, where its wire starts */
#dashboards .hub-port{
 position:absolute;top:50%;z-index:2;width:12px;height:12px;margin-top:-6px;border-radius:50%;
 background:#0A120F;border:2px solid rgba(50,180,111,.6);
 transition:background-color .3s ease,border-color .3s ease,box-shadow .3s ease;
}
#dashboards .hub-col-l .hub-port{right:-7px}
#dashboards .hub-col-r .hub-port{left:-7px}

/* active module */
#dashboards .hub-col .hub-mod.is-active{
 border-color:rgba(50,180,111,.65);transform:translateX(var(--nudge));
 box-shadow:0 16px 36px rgba(0,0,0,.35),0 0 0 1px rgba(50,180,111,.18),0 0 44px rgba(50,180,111,.16);
}
#dashboards .hub-mod.is-active .hub-port{
 background:#32b46f;border-color:#9BF3C4;
 box-shadow:0 0 0 4px rgba(50,180,111,.2),0 0 14px rgba(50,180,111,.85);
}

/* the wires */
#dashboards .hub-wire{
 fill:none;stroke:rgba(50,180,111,.34);stroke-width:1.5;stroke-dasharray:5 6;stroke-linecap:round;
}
#dashboards .hub-stub{stroke:rgba(50,180,111,.22)}
#dashboards .hub-flow{
 fill:none;stroke:#3FD083;stroke-width:2.2;stroke-dasharray:12 16;stroke-linecap:round;
 opacity:0;transition:opacity .35s ease;
 animation:hub-flow 1.1s linear infinite;
 filter:drop-shadow(0 0 4px rgba(50,180,111,.9));
}
#dashboards .hub-flow.is-active{opacity:1}
@keyframes hub-flow{to{stroke-dashoffset:-28}}
#dashboards .hub-dot{fill:#9BF3C4;filter:drop-shadow(0 0 4px rgba(80,220,140,.95))}
#dashboards .hub-end{fill:#0C7A43;stroke:#9BF3C4;stroke-width:1.5;transition:fill .3s ease}
#dashboards .hub-end.is-active{fill:#9BF3C4}

/* entrance */
#dashboards .hub-anim .hub-mod{opacity:0;transform:translateX(var(--from))}
#dashboards .hub-anim .hub-box{opacity:0;transform:scale(.82)}
#dashboards .hub-anim .hub-wires{opacity:0}
#dashboards .hub-anim .hub-box{transition:opacity .6s ease .1s,transform .8s cubic-bezier(.34,1.4,.64,1) .1s}
#dashboards .hub-anim .hub-wires{transition:opacity .8s ease .9s}
#dashboards .hub-anim .hub-mod:nth-child(2){transition-delay:.12s}
#dashboards .hub-anim .hub-mod:nth-child(3){transition-delay:.24s}
#dashboards .hub-anim.is-in .hub-mod{opacity:1;transform:none}
#dashboards .hub-anim.is-in .hub-box{opacity:1;transform:none}
#dashboards .hub-anim.is-in .hub-wires{opacity:1}
#dashboards .hub-anim.is-in .hub-col .hub-mod.is-active{transform:translateX(var(--nudge))}

@media(max-width:1100px){
 #dashboards .hub-stage{
  grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:20px;
  max-width:920px;
 }
 #dashboards .hub-core{grid-column:1 / -1;grid-row:1;margin-bottom:1.5rem}
 #dashboards .hub-box{max-width:186px}
 #dashboards .hub-col-l{grid-column:1;grid-row:2}
 #dashboards .hub-col-r{grid-column:2;grid-row:2}
 #dashboards .hub-port{display:none}
 #dashboards .hub-col .hub-mod.is-active,
 #dashboards .hub-anim.is-in .hub-col .hub-mod.is-active{transform:none}
}
@media(max-width:700px){
 #dashboards .hub-stage{grid-template-columns:minmax(0,1fr)}
 #dashboards .hub-col-l,
 #dashboards .hub-col-r{grid-column:1}
 #dashboards .hub-col-r{grid-row:3}
 #dashboards .hub-head{margin-bottom:2.5rem}
 #dashboards .hub-box{max-width:172px;border-radius:22px}
 #dashboards .hub-ico{width:54px;height:54px}
 #dashboards .hub-name{font-size:18px}
 #dashboards .hub-mod{padding:16px 16px 14px}
 #dashboards .hub-kpis dd{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
 #dashboards .hub-box::before,
 #dashboards .hub-box::after,
 #dashboards .hub-cap i,
 #dashboards .hub-flow{animation:none}
 #dashboards .hub-mod,
 #dashboards .hub-ico circle,
 #dashboards .hub-ico line{transition:none}
}

/* ── 12 · CORE PLATFORM — the main Home page's grid ───────────────────────────
   Straight after Solutions, sync-home9.pl places the main Home page's "7
   Functions of Business" section (templates/home-body.php) as it stands: a
   four-column grid of the seven function cards and a "Ready to unify all 7?"
   card, then two buttons. Its cards are the shared .fn-* rules (home7.css
   and partials/style.php), which the dark sheet recolours through the page
   tokens. What is here:
   - the eyebrow centred over the centred heading (Home 7's sits left);
   - "— Unified" in grey, as on Home (Home 7 sets every heading in one tone);
   - square cells, so the hairline grid meets cleanly (Home 7 rounds each
     card, which notched the corners where four cells meet);
   - the full bottom padding (Home 7 halves it for its sliding row);
   - the CTA card's white button keeps dark text in the dark theme (its
     inline colour is var(--black), which the dark sheet turns near-white). */
#functions{padding-bottom:var(--sp-section)}
#functions .eyebrow{justify-content:center}
#functions .sec-h .fade{color:var(--g400);-webkit-text-fill-color:currentColor}
#functions .fn-card{border-radius:0}
#functions .fn-cta-card button{color:#0B0F0D !important}

/* ── 13 · HERO — Home 9's copy on two lines ───────────────────────────────────
   Home 9's headline ("One Custom OS with AI for Every Function of Your
   Business", set in sync-home9.pl) is longer than Home 8's and wrapped to
   three lines in Home 7's 860px column, leaving "Business" alone on the last.
   The column is widened for the headline only (the description keeps its own
   540px measure) and the lines are balanced, so it sits on two even lines on
   desktop and wraps evenly, without a stray last word, where it needs more. */
#hero .hero-left{max-width:1080px}
#hero .hero-h{text-wrap:balance}
/* the description on three balanced lines (Home 7 holds it to 540px: four) */
#hero .hero-p{max-width:700px;text-wrap:balance}

/* ── 14 · CORE PLATFORM — cards alternate white and green ─────────────────────
   The seven function cards alternate white and a green shade; the "Ready to
   unify all 7?" card keeps its own black (.fn-cta-card, !important).

   It is a checkerboard, so the green steps along each row and down each
   column. Which cards are green depends on how many columns the grid has
   (home7.css: 4, then 2 at 960px and below, then 1 at 560px and below), so
   each width has its own list; a plain odd/even would line the green up in
   columns at 4 and 2 across.
     4 across: 2 4 5 7      2 across: 2 3 6 7      1 across: 2 4 6

   A green card re-points the tokens the shared .fn-* rules read (--white for
   the card, --bg/--border/--g400 for the tags, --g500 for the description) at
   the green set below, so nothing inside it needs a rule of its own. Light
   values first, then the dark theme, which is the default (html carries
   data-theme="light" only while light is on).

   The hover is set here too: the shared one is #fafafa in both themes, which
   would bleach a green card, and in dark turned a card near-white under its
   near-white text. */
#functions{
 --fn-hover:#FAFAFA;          /* white card, hovered (unchanged) */
 --fn-green:#E4F4EA;          /* green card */
 --fn-green-hover:#D8EEE1;
 --fn-green-ink:#525E57;      /* its description: 5.9:1 on the green */
 --fn-green-tag:#F4FBF7;      /* its tags: fill, outline, text */
 --fn-green-line:#C6E3D2;
 --fn-green-tag-ink:#4C7A60;
}
html:not([data-theme="light"]) #functions{
 --fn-hover:#111816;
 --fn-green:#10241A;
 --fn-green-hover:#153022;
 --fn-green-ink:#A7B5AD;
 --fn-green-tag:#0C1C14;
 --fn-green-line:#224433;
 --fn-green-tag-ink:#8FB09E;
}
#functions .fn-card{--fn-card-hover:var(--fn-hover)}
#functions .fn-card:hover{background:var(--fn-card-hover)}

@media(min-width:961px){
 #functions .fn-card:is(:nth-child(2),:nth-child(4),:nth-child(5),:nth-child(7)){
  --white:var(--fn-green);--fn-card-hover:var(--fn-green-hover);--g500:var(--fn-green-ink);
  --bg:var(--fn-green-tag);--border:var(--fn-green-line);--g400:var(--fn-green-tag-ink);
 }
}
@media(min-width:561px) and (max-width:960px){
 #functions .fn-card:is(:nth-child(2),:nth-child(3),:nth-child(6),:nth-child(7)){
  --white:var(--fn-green);--fn-card-hover:var(--fn-green-hover);--g500:var(--fn-green-ink);
  --bg:var(--fn-green-tag);--border:var(--fn-green-line);--g400:var(--fn-green-tag-ink);
 }
}
@media(max-width:560px){
 #functions .fn-card:is(:nth-child(2),:nth-child(4),:nth-child(6)){
  --white:var(--fn-green);--fn-card-hover:var(--fn-green-hover);--g500:var(--fn-green-ink);
  --bg:var(--fn-green-tag);--border:var(--fn-green-line);--g400:var(--fn-green-tag-ink);
 }
}

/* ── 15 · CORE PLATFORM — the "Ready to unify all 7?" card white in dark ──────
   In the dark theme the closing card of the 7 Functions grid is white, the
   inverse of the light theme's black card, so it stands out from the dark and
   deep-green cards around it. Its heading, line and button take their colours
   from inline styles (white ink, a white button) in templates/home9-body.php,
   which sync-home9.pl regenerates, so they are overridden here instead: dark
   ink, a grey line (5.9:1 on white) and a near-black button with white text.
   home8.css paints the card #101A15 !important; this selector is more specific,
   so it wins. The light theme is untouched. */
html:not([data-theme="light"]) #functions .fn-cta-card{background:#FFFFFF !important}
html:not([data-theme="light"]) #functions .fn-cta-card:hover{background:#F2F5F3 !important}
html:not([data-theme="light"]) #functions .fn-cta-card > div:first-child{color:#0B0F0D !important}
html:not([data-theme="light"]) #functions .fn-cta-card > div:nth-child(2){color:#5A6660 !important}
html:not([data-theme="light"]) #functions .fn-cta-card button{background:#0B0F0D !important;color:#FFFFFF !important}
