/* ==========================================================================
   About page — per-design variants for the sections AFTER the preset hero
   (about-steps, team, about-service-list, about-cta). Loaded only on pages
   whose content holds the about blocks. 8 style families; every preset maps
   to one, plus a per-preset accent tweak (--av-r radius / --av-num style).
   Colours come from palette tokens (--av-* below) so they follow the palette.
   ========================================================================== */

/* ---------- shared helpers ---------- */
/* v284 — every colour derives from the global palette (--color-*) so the About
   sections follow the owner's palette AND the dark/light colour modes (which
   redefine --color-bg/--color-text/--color-heading on html body). */
body[class*="zg-preset-"] {
  --av-bg: var(--color-bg, #fff);
  --av-bg-alt: var(--color-bg-alt, var(--av-bg));
  --av-ink: var(--color-heading, var(--color-text, #111));
  --av-text: var(--color-text, #333);
  --av-muted: color-mix(in srgb, var(--av-text) 84%, var(--av-bg));
  --av-line: color-mix(in srgb, var(--av-ink) 24%, var(--av-bg));
  --av-line-2: color-mix(in srgb, var(--av-ink) 55%, var(--av-bg));
  --av-acc: var(--color-accent, var(--color-primary));
  --av-pri-ink: color-mix(in srgb, var(--color-primary) 55%, var(--av-ink));
  --av-shadow: color-mix(in srgb, var(--av-ink) 9%, transparent);
  --av-dark: color-mix(in srgb, var(--color-bg-dark, var(--color-secondary, #111)) 78%, #000);
  --av-dark-2: color-mix(in srgb, var(--av-dark) 88%, #fff);
  --av-on-dark: color-mix(in srgb, #fff 94%, var(--color-primary));
  --av-on-dark-2: color-mix(in srgb, #fff 80%, var(--av-dark));
  --av-acc-on-dark: color-mix(in srgb, var(--av-acc) 48%, #fff);
  --av-acc-on-dark-soft: color-mix(in srgb, var(--av-acc-on-dark) 42%, transparent);
}
.about-steps, .about-service-list, .zapgroup-team-section, .about-cta { box-sizing: border-box; max-width: 100%; }
.about-steps *, .about-service-list *, .about-cta * { box-sizing: border-box; }
.about-steps__card-title, .about-service-list__label, .about-cta__title { overflow-wrap: anywhere; }

/* ======================================================================
   FAMILY A — EDITORIAL (gazette, vignelli, hustwit, norma)
   newspaper rules, huge outlined numerals, list instead of cards
   ====================================================================== */
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-steps__head,
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-service-list__head {
  text-align: start; max-width: none; border-top: 4px solid var(--av-ink); border-bottom: 1px solid var(--av-ink); padding: 1rem 0;
}
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) :is(.about-steps__title,.about-service-list__title,.about-cta__title) {
  font-family: Georgia, 'Frank Ruhl Libre', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--av-ink); letter-spacing: -.01em;
}
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) :is(.about-steps__eyebrow,.about-service-list__eyebrow) {
  color: var(--av-ink); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem;
}
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-steps__intro { color: var(--av-muted); }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-steps__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0;
}
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-steps__card {
  background: transparent; border-radius: 0; text-align: start; padding: 1.5rem 1.25rem; border-inline-start: 1px solid var(--av-ink);
}
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-steps__num {
  width: auto; height: auto; background: none; border-radius: 0; font-family: Georgia, serif;
  font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--av-ink); margin-bottom: .5rem;
}
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-steps__card-title { color: var(--av-ink); font-family: Georgia, serif; font-size: 1.2rem; }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-steps__card-desc { color: var(--av-muted); font-size: .95rem; line-height: 1.7; }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-service-list__items { columns: 2 260px; column-gap: 2.5rem; column-rule: 1px solid var(--av-ink); }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-service-list__item { break-inside: avoid; border-bottom: 1px dotted var(--av-line-2); }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-service-list__index { font-family: Georgia, serif; font-style: italic; color: var(--av-ink); }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-service-list__label { color: var(--av-ink); }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-cta {
  background: var(--av-bg); border-radius: 0; border: 3px double var(--av-ink); text-align: start; padding: 2rem;
}
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .about-cta__subtitle { color: var(--av-muted); }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .team-card { border-radius: 0; box-shadow: none; border-top: 3px solid var(--av-ink); background: transparent; }
body:is(.zg-preset-gazette,.zg-preset-vignelli,.zg-preset-hustwit,.zg-preset-norma) .team-card__media img { filter: grayscale(1); border-radius: 0; }
/* per-preset */
body.zg-preset-vignelli .about-steps__num { color: var(--color-primary); -webkit-text-stroke: 0; font-family: Helvetica, Arial, sans-serif; font-weight: 800; }
body.zg-preset-vignelli .about-steps__head { border-top-color: var(--color-primary); }
body.zg-preset-hustwit .about-steps__card { border-inline-start: 0; border-bottom: 1px solid var(--av-ink); }
body.zg-preset-norma .about-cta { border-style: solid; border-width: 1px; background: var(--av-bg-alt); }

/* ======================================================================
   FAMILY B — SWISS GRID (rams, nielsen, wroblewski)
   square cells in a strict hairline grid, tiny labels, no shadows
   ====================================================================== */
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) :is(.about-steps__head,.about-service-list__head) { text-align: start; max-width: 640px; margin-inline: 0; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) :is(.about-steps__title,.about-service-list__title,.about-cta__title) { color: var(--av-ink); font-weight: 700; letter-spacing: -.02em; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) :is(.about-steps__eyebrow,.about-service-list__eyebrow) { color: var(--av-muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-steps__intro { color: var(--av-muted); }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-steps__grid {
  gap: 1px; background: var(--av-line); border: 1px solid var(--av-line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-steps__card { background: var(--av-bg-alt); border-radius: 0; text-align: start; padding: 1.75rem 1.5rem; min-height: 190px; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-steps__num {
  width: 12px; height: 12px; font-size: 0; border-radius: 50%; background: var(--color-primary); margin-bottom: 2.5rem;
}
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-steps__card-title { color: var(--av-ink); font-size: 1rem; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-steps__card-desc { color: var(--av-muted); }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-service-list__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--av-line); border: 1px solid var(--av-line); }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-service-list__item { background: var(--av-bg); border: 0; padding: 1rem 1.25rem; flex-direction: column; gap: .35rem; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-service-list__index { color: var(--av-muted); font-size: .75rem; font-family: ui-monospace, monospace; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-service-list__label { color: var(--av-ink); }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-cta { background: color-mix(in srgb, var(--color-primary) 8%, var(--av-bg-alt)); border-radius: 0; text-align: start; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .about-cta__subtitle { color: var(--av-muted); margin: 0; }
body:is(.zg-preset-rams,.zg-preset-nielsen,.zg-preset-wroblewski) .team-card { border-radius: 0; box-shadow: none; border: 1px solid var(--av-line); }
body.zg-preset-rams .about-steps__card { background: color-mix(in srgb, var(--color-primary) 5%, var(--av-bg-alt)); }
body.zg-preset-nielsen .about-steps__num { width: auto; height: auto; font-size: .85rem; border-radius: 3px; padding: .2rem .55rem; color: var(--color-text-on-primary, #fff); background: var(--color-primary); }
body.zg-preset-wroblewski .about-steps__grid { gap: .75rem; background: none; border: 0; }
body.zg-preset-wroblewski .about-steps__card { border: 1px solid var(--av-line); border-radius: 14px; }

/* ======================================================================
   FAMILY C — DARK LUXE (dubai, aurelia, mirage, levant, gleam)
   full dark bands, gold hairlines, serif, roman numerals feel
   ====================================================================== */
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) :is(.about-steps,.about-cta,.zapgroup-team-section) {
  background: var(--av-dark); color: var(--av-on-dark-2); padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem); border-radius: 0; border-block: 1px solid var(--av-acc-on-dark-soft);
}
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) :is(.about-steps,.about-cta,.zapgroup-team-section) :is(h1,h2,h3,h4,h5,h6) { color: var(--av-on-dark); font-family: 'Frank Ruhl Libre', Georgia, serif; font-weight: 500; }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) :is(.about-steps,.about-cta,.zapgroup-team-section) :is(p,li,span,small,div) { color: var(--av-on-dark-2); }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) :is(.about-steps,.about-cta,.zapgroup-team-section) a:not(.btn) { color: var(--av-acc-on-dark); }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-steps__eyebrow { color: var(--av-acc-on-dark); letter-spacing: .3em; font-size: .75rem; }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-steps__card { background: transparent; border: 1px solid var(--av-acc-on-dark-soft); border-radius: 0; padding: 2rem 1.5rem; }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-steps__num {
  background: transparent; color: var(--av-acc-on-dark); border: 1px solid var(--av-acc-on-dark); width: 52px; height: 52px; font-family: Georgia, serif; font-weight: 400; font-size: 1.2rem;
}
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-service-list__item { border-bottom-color: color-mix(in srgb, var(--av-acc) 55%, var(--av-bg)); padding: 1.4rem 0; }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-service-list__index { color: var(--av-pri-ink); font-family: Georgia, serif; font-style: italic; font-size: 1.3rem; }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-service-list__title { font-family: 'Frank Ruhl Libre', Georgia, serif; font-weight: 500; }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-cta .btn {
  background: var(--av-dark) !important; color: var(--av-on-dark) !important; border: 1px solid var(--av-acc-on-dark) !important; border-radius: 0 !important; letter-spacing: .12em;
}
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .about-cta .btn:is(:hover,:focus-visible) { background: var(--av-acc-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-acc-on-dark) !important; }
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) .team-card { background: var(--av-dark-2); border: 1px solid var(--av-acc-on-dark-soft); border-radius: 0; box-shadow: none; }
body.zg-preset-aurelia :is(.about-steps,.about-cta,.zapgroup-team-section) { background: color-mix(in srgb, var(--av-dark) 85%, var(--color-secondary, var(--av-dark))); }
body.zg-preset-mirage .about-steps__card { border-radius: 999px 999px 0 0; text-align: center; }
body.zg-preset-levant .about-steps__num { border-radius: 50%; }
body.zg-preset-gleam .about-steps__card { background: linear-gradient(160deg, color-mix(in srgb, var(--av-acc-on-dark) 12%, transparent), transparent 60%); }

/* ======================================================================
   FAMILY D — SOFT ORGANIC (bloom, lifecoach, honey, clinic, residence)
   pastel tinted blobs, pill shapes, alternating zig-zag steps
   ====================================================================== */
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-steps__grid { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; gap: 1rem; }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-steps__card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: center; text-align: start;
  background: color-mix(in srgb, var(--color-primary) 9%, var(--av-bg)); border-radius: 40px; padding: 1.25rem 1.75rem; width: min(100%, 620px);
}
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-steps__card:nth-child(even) { margin-inline-start: auto; background: color-mix(in srgb, var(--color-primary) 5%, var(--av-bg-alt)); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-steps__num {
  grid-row: span 2; width: 58px; height: 58px; margin: 0; font-size: 1.3rem; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: var(--av-bg); color: var(--av-pri-ink); box-shadow: 0 6px 18px var(--av-shadow);
}
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-steps__card-title { color: var(--av-ink); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-steps__card-desc { color: var(--av-muted); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-service-list__items { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-service-list__item {
  border: 0; border-radius: 999px; padding: .6rem 1.2rem; background: var(--av-bg); box-shadow: 0 2px 10px var(--av-shadow); gap: .5rem; align-items: center;
}
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-service-list__index { min-width: 0; font-size: .8rem; color: var(--av-pri-ink); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-service-list__label { color: var(--av-ink); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-cta { border-radius: 48px; background: color-mix(in srgb, var(--color-primary) 12%, var(--av-bg)); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-cta__title { color: var(--av-ink); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-cta__subtitle { color: var(--av-muted); }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .about-cta .btn { border-radius: 999px !important; }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .team-card { border-radius: 28px; overflow: hidden; }
body:is(.zg-preset-bloom,.zg-preset-lifecoach,.zg-preset-honey,.zg-preset-clinic,.zg-preset-residence) .team-card__media img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
body.zg-preset-clinic .about-steps__card { border-radius: 16px; border-inline-start: 5px solid var(--color-primary); }
body.zg-preset-honey .about-steps__num { border-radius: 30%; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); box-shadow: none; }
body.zg-preset-residence .about-steps__card { border-radius: 4px; background: var(--av-bg-alt); }
body.zg-preset-lifecoach .about-cta { background: var(--av-bg); border: 2px dashed var(--av-pri-ink); }

/* ======================================================================
   FAMILY E — RUSTIC CRAFT (ranchhouse, ranch, roast, asham, forge)
   kraft-paper cards, thick borders, stamped numbers, dashed stitches
   ====================================================================== */
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) :is(.about-steps__title,.about-service-list__title,.about-cta__title) { color: var(--av-ink); text-transform: uppercase; letter-spacing: .04em; }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) :is(.about-steps__eyebrow,.about-service-list__eyebrow) { color: var(--av-pri-ink); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-steps__intro { color: var(--av-muted); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-steps__card {
  background: color-mix(in srgb, var(--color-primary) 10%, var(--av-bg-alt)); border: 3px solid var(--av-ink); border-radius: 6px; outline: 1px dashed var(--av-line-2); outline-offset: -10px; padding: 2rem 1.5rem;
}
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-steps__num {
  background: var(--av-ink); color: var(--av-bg); border-radius: 4px; width: 46px; height: 46px; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--color-primary);
}
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-steps__card-title { color: var(--av-ink); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-steps__card-desc { color: var(--av-muted); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-service-list__items { border: 3px solid var(--av-ink); background: var(--av-bg-alt); padding: .5rem 1.25rem; }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-service-list__item { border-bottom: 2px dashed var(--av-line-2); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-service-list__item:last-child { border-bottom: 0; }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-service-list__index { color: var(--av-pri-ink); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-service-list__label { color: var(--av-ink); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-cta { background: var(--av-dark); border-radius: 6px; border: 3px double var(--av-acc-on-dark); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-cta :is(h1,h2,h3,h4,h5,h6) { color: var(--av-on-dark); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-cta :is(p,span,small,li) { color: var(--av-on-dark-2); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-cta .btn { background: var(--av-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-on-dark) !important; }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-cta .btn:is(:hover,:focus-visible) { background: var(--av-acc-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-acc-on-dark) !important; }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .team-card { border: 3px solid var(--av-ink); border-radius: 6px; box-shadow: 5px 5px 0 color-mix(in srgb, var(--av-acc) 60%, var(--av-bg)); }
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .team-card__media img { filter: sepia(.35); }
body.zg-preset-roast .about-steps__card { background: color-mix(in srgb, var(--color-primary) 14%, var(--av-bg-alt)); border-radius: 50% 50% 8px 8px / 18% 18% 8px 8px; }
body.zg-preset-asham .about-steps__num { transform: none; border-radius: 50%; }
body.zg-preset-forge .about-steps__card { background: color-mix(in srgb, var(--av-ink) 7%, var(--av-bg-alt)); border-color: var(--av-ink); outline-color: var(--av-line-2); }
body.zg-preset-forge .about-cta { background: color-mix(in srgb, var(--av-dark) 80%, #000); }
body.zg-preset-ranch .about-steps__card { outline-style: solid; }

/* ======================================================================
   FAMILY F — TECH / FUTURE (orbit, beam, frost, hyp, waabi, pathone)
   deep navy band, glass cards, mono numbers, glow borders
   ====================================================================== */
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-steps {
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--color-primary) 35%, var(--av-dark)) 0%, var(--av-dark) 55%);
  color: var(--av-on-dark-2); padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem); border-radius: 24px;
}
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-steps :is(h1,h2,h3,h4,h5,h6) { color: var(--av-on-dark); }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-steps :is(p,li,span,small,a) { color: var(--av-on-dark-2); }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-steps__card {
  background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, var(--av-acc-on-dark) 30%, transparent); border-radius: 18px; text-align: start; backdrop-filter: blur(6px);
}
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-steps__num {
  font-family: ui-monospace, 'JetBrains Mono', monospace; background: transparent; width: auto; height: auto; border-radius: 0; font-size: .85rem; color: var(--av-acc-on-dark); letter-spacing: .1em;
}
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-service-list__item {
  border: 1px solid var(--av-line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .6rem; background: var(--av-bg-alt);
}
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-service-list__index { font-family: ui-monospace, monospace; color: var(--av-pri-ink); font-size: .85rem; }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-service-list__label { color: var(--av-ink); }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-cta {
  background: var(--av-dark); border-radius: 24px; border: 1px solid color-mix(in srgb, var(--color-primary) 60%, #fff); box-shadow: 0 0 40px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-cta :is(h1,h2,h3,h4,h5,h6) { color: var(--av-on-dark); }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-cta :is(p,span,small,li) { color: var(--av-on-dark-2); }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-cta .btn { background: var(--av-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-on-dark) !important; border-radius: 999px !important; }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-cta .btn:is(:hover,:focus-visible) { background: var(--av-acc-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-acc-on-dark) !important; }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .team-card { border-radius: 18px; border: 1px solid var(--av-line); box-shadow: 0 10px 30px var(--av-shadow); }
body.zg-preset-frost .about-steps { background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 22%, var(--av-dark)), var(--av-dark)); }
body.zg-preset-frost .about-steps__card { border-radius: 6px; }
body.zg-preset-beam .about-steps__card { border-top: 3px solid var(--av-acc-on-dark); }
body.zg-preset-hyp .about-steps__card { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
body.zg-preset-waabi .about-steps { border-radius: 0; }
body.zg-preset-pathone .about-steps__grid { grid-template-columns: 1fr; }
body.zg-preset-pathone .about-steps__card { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }

/* ======================================================================
   FAMILY G — BOLD POP (festive, tietae, chrisdo, rand, studio)
   neo-brutal: black outlines, hard offset shadows, big numbers
   ====================================================================== */
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) :is(.about-steps__title,.about-service-list__title,.about-cta__title) { color: var(--av-ink); font-weight: 900; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) :is(.about-steps__eyebrow,.about-service-list__eyebrow) {
  background: var(--av-ink); color: var(--av-bg); padding: .25rem .8rem; border-radius: 999px; font-size: .8rem;
}
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-steps__intro { color: var(--av-muted); }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-steps__card {
  background: var(--av-bg); border: 3px solid var(--av-ink); border-radius: 16px; box-shadow: 7px 7px 0 var(--av-ink); text-align: start; position: relative; overflow: hidden; padding-top: 4.5rem;
}
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-steps__card:nth-child(3n+1) { background: color-mix(in srgb, var(--color-primary) 18%, var(--av-bg)); }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-steps__num {
  position: absolute; top: .5rem; inset-inline-start: 1rem; width: auto; height: auto; background: none; border-radius: 0; color: var(--av-ink); font-size: 3.2rem; font-weight: 900; line-height: 1;
}
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-steps__card-title { color: var(--av-ink); font-weight: 800; }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-steps__card-desc { color: var(--av-muted); }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-service-list__items { display: flex; flex-wrap: wrap; gap: .75rem; }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-service-list__item { border: 3px solid var(--av-ink); border-radius: 12px; padding: .7rem 1rem; background: var(--av-bg); box-shadow: 4px 4px 0 var(--av-ink); }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-service-list__index { color: var(--av-ink); min-width: 0; }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-service-list__label { color: var(--av-ink); font-weight: 700; }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-cta { background: var(--av-dark); border-radius: 20px; box-shadow: 8px 8px 0 color-mix(in srgb, var(--color-primary) 80%, var(--av-dark)); }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-cta :is(h1,h2,h3,h4,h5,h6) { color: var(--av-on-dark); }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-cta :is(p,span,small,li) { color: var(--av-on-dark-2); }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-cta .btn { background: var(--av-on-dark) !important; color: var(--av-dark) !important; border: 3px solid var(--av-on-dark) !important; border-radius: 12px !important; font-weight: 800; }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-cta .btn:is(:hover,:focus-visible) { background: var(--av-acc-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-acc-on-dark) !important; }
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .team-card { border: 3px solid var(--av-ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--av-ink); }
body.zg-preset-chrisdo .about-steps__card { border-radius: 0; background: var(--av-bg); }
body.zg-preset-chrisdo .about-steps__card:nth-child(3n+1) { background: var(--av-dark); }
body.zg-preset-chrisdo .about-steps__card:nth-child(3n+1) :is(.about-steps__num,.about-steps__card-title) { color: var(--av-on-dark); }
body.zg-preset-chrisdo .about-steps__card:nth-child(3n+1) .about-steps__card-desc { color: var(--av-on-dark-2); }
body.zg-preset-rand .about-steps__card:nth-child(even) { transform: rotate(1.2deg); }
body.zg-preset-rand .about-steps__card:nth-child(odd) { transform: rotate(-1.2deg); }
body.zg-preset-studio .about-steps__card { border-radius: 999px 999px 16px 16px; padding-top: 5rem; }
body.zg-preset-tietae .about-steps__card { box-shadow: -7px 7px 0 var(--av-ink); }

/* ======================================================================
   FAMILY H — TIMELINE (institute, schoger, marcotte, spinx)
   vertical timeline with a spine; numbered nodes; list as table
   ====================================================================== */
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-steps__grid {
  grid-template-columns: 1fr; gap: 0; max-width: 720px; margin-inline: auto; position: relative; padding-inline-start: 3.25rem;
}
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-steps__grid::before {
  content: ''; position: absolute; inset-block: .5rem; inset-inline-start: 19px; width: 2px; background: color-mix(in srgb, var(--color-primary) 45%, var(--av-line));
}
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-steps__card {
  background: transparent; text-align: start; position: relative; padding: 0 0 2rem; border-radius: 0;
}
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-steps__num {
  position: absolute; inset-inline-start: -3.25rem; top: -.2rem; background: var(--av-bg); border: 2px solid var(--av-pri-ink);
  color: var(--av-pri-ink); width: 40px; height: 40px;
}
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-steps__card-title { color: var(--av-ink); font-size: 1.15rem; }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-steps__card-desc { color: var(--av-muted); font-size: .95rem; }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) :is(.about-steps__title,.about-service-list__title,.about-cta__title) { color: var(--av-ink); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-service-list__items { border: 1px solid var(--av-line); border-radius: 10px; overflow: hidden; }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-service-list__item { padding: .95rem 1.25rem; border-bottom: 1px solid var(--av-line); background: var(--av-bg); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-service-list__item:nth-child(even) { background: var(--av-bg-alt); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-service-list__item:last-child { border-bottom: 0; }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-service-list__index { color: var(--av-pri-ink); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-service-list__label { color: var(--av-ink); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-cta { background: var(--av-dark); border-radius: 10px; text-align: start; border-inline-start: 6px solid var(--color-primary); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-cta :is(h1,h2,h3,h4,h5,h6) { color: var(--av-on-dark); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-cta :is(p,span,small,li) { color: var(--av-on-dark-2); }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-cta .btn { background: var(--av-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-on-dark) !important; }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-cta .btn:is(:hover,:focus-visible) { background: var(--av-acc-on-dark) !important; color: var(--av-dark) !important; border-color: var(--av-acc-on-dark) !important; }
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .team-card { border-radius: 10px; border: 1px solid var(--av-line); box-shadow: none; }
body.zg-preset-schoger .about-steps__card { background: var(--av-bg); border-radius: 12px; box-shadow: 0 4px 14px var(--av-shadow); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
body.zg-preset-schoger .about-steps__num { top: 1rem; }
body.zg-preset-marcotte .about-steps__num { border-radius: 8px; }
body.zg-preset-spinx .about-steps__num { background: var(--av-ink); color: var(--av-bg); border-color: var(--av-ink); }
body.zg-preset-institute .about-cta { border-radius: 0; }

/* ---------- small screens + motion ---------- */
@media (max-width: 480px) {
  body[class*="zg-preset-"] :is(.about-steps,.about-cta,.zapgroup-team-section) { padding-inline: 1rem; }
  body[class*="zg-preset-"] .about-steps__card { width: 100% !important; margin-inline: 0 !important; transform: none !important; }
  body[class*="zg-preset-"] .about-service-list__items { columns: 1; }
  body[class*="zg-preset-"] .about-cta { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  body[class*="zg-preset-"] .about-steps__card { transform: none !important; transition: none !important; }
}

/* ======================================================================
   v-next — DARK BANDS: heading/text contrast (all families)
   The global dynamic CSS forces h1..h6 { color: var(--color-heading) !important }
   (functions.php), which beat every family rule above that set headings to
   --av-on-dark — so on the dark process band (Family F "hyp" etc.) the title
   and step titles rendered in the palette's dark heading colour (navy on navy).
   Instead of fighting !important, re-scope the TOKENS on each dark container:
   the forced rule now resolves to the on-dark colour there. Works in light AND
   dark colour modes (--av-dark / --av-on-dark derive from the palette).
   ====================================================================== */
body:is(.zg-preset-dubai,.zg-preset-aurelia,.zg-preset-mirage,.zg-preset-levant,.zg-preset-gleam) :is(.about-steps,.about-cta,.zapgroup-team-section),
body:is(.zg-preset-ranchhouse,.zg-preset-ranch,.zg-preset-roast,.zg-preset-asham,.zg-preset-forge) .about-cta,
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) :is(.about-steps,.about-cta),
body:is(.zg-preset-festive,.zg-preset-tietae,.zg-preset-chrisdo,.zg-preset-rand,.zg-preset-studio) .about-cta,
body.zg-preset-chrisdo .about-steps__card:nth-child(3n+1),
body:is(.zg-preset-institute,.zg-preset-schoger,.zg-preset-marcotte,.zg-preset-spinx) .about-cta {
  --color-heading: var(--av-on-dark);
  --color-text: var(--av-on-dark-2);
  --color-text-muted: var(--av-on-dark-2);
}
/* Process band: eyebrow + step numbers keep an accent tint that stays readable on dark. */
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-steps .about-steps__eyebrow { color: var(--av-acc-on-dark); }
body:is(.zg-preset-orbit,.zg-preset-beam,.zg-preset-frost,.zg-preset-hyp,.zg-preset-waabi,.zg-preset-pathone) .about-steps .about-steps__card-desc { color: var(--av-on-dark-2); }
