/* ==========================================================================
   Ant-Hive Learning case study (case-study-1.html)
   Signature: honey/amber accent + honeycomb motifs. Accent is decoration only;
   every data mark uses the shared chart tokens (charts.css). Provenance markers
   are neutral and shape-coded (outline hex = client-reported, filled hex = live).
   All selectors are scoped under .cs--anthive.
   ========================================================================== */
.cs--anthive {
  --ah-honey: #ffb547;
  --ah-amber: #ff9a1f;
  --ah-ink: #ffc970;
  --ah-line: rgba(255, 181, 71, .30);
  --ah-line-2: rgba(255, 181, 71, .55);
  --ah-tint: rgba(255, 170, 60, .07);
  --ah-tint-2: rgba(255, 170, 60, .13);
  --ah-glow: rgba(255, 160, 40, .20);
  --ah-grad: linear-gradient(115deg, #ffe0a0 0%, #ffb547 38%, #ff8a3d 72%, #ff9f6b 100%);
  --ah-fill: linear-gradient(150deg, #ffd88a 0%, #ffad3b 55%, #ff8f2e 100%);
  --ah-on-fill: #1d1303;
  --ah-pat-o: .2;
  --ah-hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31.18' height='54' viewBox='0 0 31.18 54'%3E%3Cpath d='M15.59 0V9L31.18 18V36L15.59 45L0 36V18L15.59 9M15.59 45V54' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  --ah-hex-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 23.1'%3E%3Cpath d='M10 1.6 18.4 6.45V16.65L10 21.5 1.6 16.65V6.45Z' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ah-hexclip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
[data-theme="light"] .cs--anthive {
  --ah-honey: #c46a00;
  --ah-amber: #d97706;
  --ah-ink: #9a4f00;
  --ah-line: rgba(196, 106, 0, .26);
  --ah-line-2: rgba(196, 106, 0, .5);
  --ah-tint: rgba(245, 158, 11, .07);
  --ah-tint-2: rgba(245, 158, 11, .13);
  --ah-glow: rgba(245, 158, 11, .16);
  --ah-grad: linear-gradient(115deg, #b45309, #c2410c);
  --ah-fill: linear-gradient(150deg, #ffd27a 0%, #ffb02e 55%, #ff9a1f 100%);
  --ah-pat-o: .14;
}

/* honey accent on every heading serif accent and eyebrow dot of this page.
   The shared CTA band (.cta-final) is excluded, so it keeps the ZidTech blue. */
.cs--anthive h1 .grad-text,
.cs--anthive h2 .grad-text:not(.cta-final *) { background-image: var(--ah-grad); }
.cs--anthive .ah-nb { white-space: nowrap; }
.cs--anthive .eyebrow:not(.eyebrow--plain):not(.cta-final *)::before { width: 10px; height: 11.5px; border-radius: 0; clip-path: var(--ah-hexclip); background: var(--ah-fill); box-shadow: none; }
/* light theme: small honey marks (eyebrow dots, swimlane nodes, schematic brand) match the rust heading accent */
[data-theme="light"] .cs--anthive .eyebrow:not(.eyebrow--plain):not(.cta-final *)::before,
[data-theme="light"] .cs--anthive .ah-node,
[data-theme="light"] .cs--anthive .ah-hex--xs .ah-hex-in { background: var(--ah-grad); }

/* hexagon primitive: outer = border colour, inner = fill */
.cs--anthive .ah-hex { --hs: 44px; position: relative; display: inline-grid; flex: none; width: var(--hs); height: calc(var(--hs) * 1.1547); clip-path: var(--ah-hexclip); background: var(--ah-line-2); }
.cs--anthive .ah-hex-in { position: absolute; inset: 1.5px; display: grid; place-items: center; clip-path: var(--ah-hexclip); background: linear-gradient(160deg, var(--ah-tint-2), var(--ah-tint)), var(--panel); color: var(--ah-ink); }
.cs--anthive .ah-hex-in svg { width: 18px; height: 18px; }
.cs--anthive .ah-hex--s { --hs: 40px; }
.cs--anthive .ah-hex--s .ah-hex-in svg { width: 17px; height: 17px; }
.cs--anthive .ah-hex--xs { --hs: 16px; }
.cs--anthive .ah-hex--xs .ah-hex-in { inset: 1px; background: var(--ah-fill); }
.cs--anthive .ah-hex--n { --hs: 40px; }
.cs--anthive .ah-hex--n b { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-size: 12.5px; letter-spacing: .04em; }

/* source labels + provenance markers: neutral colour, shape-coded */
.cs--anthive .ah-src { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.cs--anthive .ah-src::before { content: ""; display: inline-block; flex: none; width: 9px; height: 10.4px; clip-path: var(--ah-hexclip); background: var(--text-2); }
.cs--anthive .ah-src--client::before { clip-path: none; -webkit-mask: var(--ah-hex-outline) center / 100% 100% no-repeat; mask: var(--ah-hex-outline) center / 100% 100% no-repeat; }
.cs--anthive .ah-foot { font-size: 13px; color: var(--text-3); max-width: 70ch; }

/* ---------------------------------------------------------------- hero */
.cs--anthive .ah-hero::before { background: conic-gradient(from 200deg, rgba(255, 170, 60, 0), rgba(255, 170, 60, .28), rgba(72, 225, 255, .18), rgba(255, 140, 50, .26), rgba(255, 170, 60, 0)); opacity: .6; }
.cs--anthive .ah-hero .display { max-width: 15ch; }
.cs--anthive .ah-hero-grid { --hg: clamp(44px, 7vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hg); align-items: center; }
.cs--anthive .ah-hero-copy { min-width: 0; }
/* tablets (700-959px): copy on top, then the hive and its note side by side */
@media (min-width: 700px) and (max-width: 959px) {
  .cs--anthive .ah-hero-grid { grid-template-columns: auto minmax(0, 340px); justify-content: center; column-gap: clamp(32px, 5vw, 56px); }
  .cs--anthive .ah-hero-copy { grid-column: 1 / -1; }
  .cs--anthive .ah-hive { grid-column: 1; }
  .cs--anthive .ah-hive-note { grid-column: 2; align-self: center; margin-top: 0; }
}
/* 960px and up: copy left, hive right, note under the buttons */
@media (min-width: 960px) {
  .cs--anthive .ah-hero-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 0; column-gap: clamp(36px, 4.5vw, 80px); }
  .cs--anthive .ah-hero-copy { grid-column: 1; grid-row: 1; }
  .cs--anthive .ah-hive { grid-column: 2; grid-row: 1 / span 2; }
  .cs--anthive .ah-hero .display { font-size: clamp(2.5rem, 5.2vw, 3.6rem); }
}
@media (min-width: 1100px) {
  .cs--anthive .ah-hero { padding-top: clamp(128px, 16vh, 168px); }
  .cs--anthive .ah-hero .display { font-size: clamp(2.5rem, .6rem + 5vw, 5.6rem); }
}

/* the hive: five key numbers on a honeycomb, with a faint comb behind it */
.cs--anthive .ah-hive { --w: 168px; --g: 9px; --h: calc(var(--w) * 1.1547); position: relative; isolation: isolate; justify-self: center; display: grid; gap: 18px; justify-items: center; }
.cs--anthive .ah-hive::before { content: ""; position: absolute; inset: -28px -20px; z-index: -1; pointer-events: none; background: var(--ah-honey); opacity: var(--ah-pat-o); -webkit-mask: var(--ah-hex-mask) 0 0 / 31.18px 54px, radial-gradient(closest-side, transparent 52%, #000 72%, transparent 100%); -webkit-mask-composite: source-in; mask: var(--ah-hex-mask) 0 0 / 31.18px 54px, radial-gradient(closest-side, transparent 52%, #000 72%, transparent 100%); mask-composite: intersect; }
@media (min-width: 960px) { .cs--anthive .ah-hive::before { inset: -56px -72px; } }
.cs--anthive .ah-hive-cells { position: relative; list-style: none; margin: 0; padding: 0; width: calc(var(--w) * 2 + var(--g)); height: calc(var(--h) * 2.5 + var(--g) * 1.732); }
.cs--anthive .ah-cell { position: absolute; width: var(--w); height: var(--h); clip-path: var(--ah-hexclip); background: var(--ah-line-2); transition: scale .6s var(--spring); }
@media (hover: hover) { .cs--anthive .ah-cell:hover { scale: 1.035; } }
/* all four outer cells share one neutral edge; honey is decoration and marks only the core */
.cs--anthive .ah-cell:not(.is-core) { background: var(--line-3); }
.cs--anthive .ah-cell--tl { left: 0; top: 0; }
.cs--anthive .ah-cell--tr { left: calc(var(--w) + var(--g)); top: 0; }
.cs--anthive .ah-cell--c { left: calc(var(--w) / 2 + var(--g) / 2); top: calc(var(--h) * .75 + var(--g) * .866); z-index: 1; }
.cs--anthive .ah-cell--bl { left: 0; top: calc(var(--h) * 1.5 + var(--g) * 1.732); }
.cs--anthive .ah-cell--br { left: calc(var(--w) + var(--g)); top: calc(var(--h) * 1.5 + var(--g) * 1.732); }
.cs--anthive .ah-cell-in { position: absolute; inset: 1.5px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 0 15%; text-align: center; clip-path: var(--ah-hexclip); background: radial-gradient(90% 70% at 50% 0%, var(--ah-tint-2), transparent 70%), var(--glass-strong); }
.cs--anthive .ah-cell b { display: block; font-size: 38px; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.cs--anthive .ah-cl { font-size: 12.5px; line-height: 1.3; color: var(--text-2); max-width: 12ch; text-wrap: balance; }
/* every outer label gets two lines, so paired numbers sit on one baseline */
.cs--anthive .ah-cell:not(.is-core) .ah-cl { min-height: 2.6em; display: grid; align-content: start; }
.cs--anthive .ah-cell.is-core { background: var(--ah-fill); box-shadow: 0 0 0 1px var(--ah-line); filter: drop-shadow(0 18px 40px rgba(255, 150, 40, .35)); }
.cs--anthive .ah-cell.is-core .ah-cell-in { background: var(--ah-fill); }
.cs--anthive .ah-cell.is-core b { font-size: 52px; color: var(--ah-on-fill); }
.cs--anthive .ah-cell.is-core .ah-cl { color: rgba(29, 19, 3, .86); font-weight: 600; font-size: 13.5px; }
/* hive source line (measured facts only): under the hive on phones and tablets,
   under the buttons on desktop (clear of the bottom-right chat widget) */
.cs--anthive .ah-hive-note { display: grid; gap: 10px; justify-self: center; width: 100%; max-width: 345px; margin-top: calc(20px - var(--hg)); }
.cs--anthive .ah-hive-note p { display: grid; gap: 4px; align-content: start; }
.cs--anthive .ah-hive-note small { font-size: 12px; line-height: 1.45; color: var(--text-2); }
@media (min-width: 960px) {
  .cs--anthive .ah-hive-note { grid-column: 1; grid-row: 2; justify-self: start; align-self: start; max-width: 400px; margin-top: 30px; }
}
/* 960-1099px: a smaller hive so the copy column keeps its width */
@media (min-width: 960px) and (max-width: 1099px) {
  .cs--anthive .ah-hive { --w: 140px; --g: 7px; }
  .cs--anthive .ah-cell b { font-size: 30px; }
  .cs--anthive .ah-cell.is-core b { font-size: 42px; }
  .cs--anthive .ah-cell-in { gap: 6px; padding: 0 12%; }
  .cs--anthive .ah-cl, .cs--anthive .ah-cell.is-core .ah-cl { font-size: 12px; }
}

/* screenshot stage under the hero */
.cs--anthive .ah-stage { position: relative; isolation: isolate; margin-top: clamp(40px, 5vw, 64px); padding: clamp(16px, 3.2vw, 40px) clamp(16px, 3.2vw, 40px) clamp(16px, 2.4vw, 28px); border-radius: var(--r-xl); border: 1px solid var(--ah-line); background: radial-gradient(60% 90% at 90% 30%, var(--ah-glow), transparent 70%), radial-gradient(60% 70% at 5% 100%, rgba(0, 156, 255, .10), transparent 70%), linear-gradient(180deg, var(--card-a), var(--card-b)); box-shadow: var(--shadow-l); overflow: hidden; }
.cs--anthive .ah-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ah-honey); opacity: var(--ah-pat-o); -webkit-mask: var(--ah-hex-mask) 0 0 / 31.18px 54px, linear-gradient(90deg, #000, transparent 18%, transparent 82%, #000); -webkit-mask-composite: source-in; mask: var(--ah-hex-mask) 0 0 / 31.18px 54px, linear-gradient(90deg, #000, transparent 18%, transparent 82%, #000); mask-composite: intersect; }
.cs--anthive .ah-shots { position: relative; max-width: 1040px; margin-inline: auto; padding: 0 44px 30px 0; }
.cs--anthive .ah-browser { position: relative; }
.cs--anthive .ah-browser img { aspect-ratio: 1600 / 860; object-fit: cover; object-position: top; }
.cs--anthive .browser-bar span { color: var(--text-2); }
.cs--anthive .ah-https { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.cs--anthive .ah-https svg { width: 11px; height: 11px; color: var(--ok); }
.cs--anthive .ah-phone { position: absolute; right: 0; bottom: 0; z-index: 2; width: 24%; max-width: 160px; min-width: 92px; padding: 6px; border-radius: 26px; }
.cs--anthive .ah-phone::before { top: 11px; height: 13px; }
.cs--anthive .ah-phone img { border-radius: 21px; }
.cs--anthive .ah-stage-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 13px; color: var(--text-3); text-align: center; }
.cs--anthive .ah-cap-https { display: none; }

@media (max-width: 640px) {
  .cs--anthive .ah-hive { --w: 150px; --g: 7px; }
  .cs--anthive .ah-cell b { font-size: 32px; }
  .cs--anthive .ah-cell.is-core b { font-size: 44px; }
  .cs--anthive .ah-cell-in { gap: 6px; padding: 0 13%; }
  .cs--anthive .ah-cl, .cs--anthive .ah-cell.is-core .ah-cl { font-size: 12px; }
  .cs--anthive .ah-shots { padding: 0 26px 22px 0; }
  .cs--anthive .ah-phone { min-width: 82px; width: 30%; padding: 4px; border-radius: 18px; }
  .cs--anthive .ah-phone::before { top: 7px; height: 8px; }
  .cs--anthive .ah-phone img { border-radius: 15px; }
  /* the phone mock covers the right end of the browser bar here, so HTTPS moves into the caption,
     and the caption clears the phone's drop shadow (small-text contrast in light theme) */
  .cs--anthive .ah-https { display: none; }
  .cs--anthive .ah-cap-https { display: inline; }
  .cs--anthive .ah-stage-cap { margin-top: 26px; }
}
@media (min-width: 641px) and (max-width: 959px) {
  .cs--anthive .ah-hive { --w: 152px; --g: 8px; }
  .cs--anthive .ah-cell b { font-size: 34px; }
  .cs--anthive .ah-cell.is-core b { font-size: 46px; }
}
@media (max-width: 959px) { .cs--anthive .ah-hive-note small { font-size: 13.5px; } }
@media (max-width: 640px) { .cs--anthive .ah-hive-note { max-width: 320px; } }
@media (max-width: 420px) {
  .cs--anthive .ah-hive { --w: 128px; --g: 7px; }
  .cs--anthive .ah-cell b { font-size: 28px; }
  .cs--anthive .ah-cell.is-core b { font-size: 40px; }
  .cs--anthive .ah-cell-in { gap: 5px; padding: 0 12%; }
  .cs--anthive .ah-cl, .cs--anthive .ah-cell.is-core .ah-cl { font-size: 12px; }
}
@media (max-width: 359px) { .cs--anthive .ah-hive { --w: 118px; } }

/* ---------------------------------------------------------------- overview */
.cs--anthive .ah-glance { padding: clamp(20px, 2.6vw, 30px); border-color: var(--ah-line); background: radial-gradient(80% 120% at 100% 0%, var(--ah-tint-2), transparent 60%), linear-gradient(180deg, var(--card-a), var(--card-b)); }
.cs--anthive .ah-glance-h { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-ink); }
.cs--anthive .ah-glance-grid { display: grid; gap: 18px 24px; margin-top: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cs--anthive .ah-glance-grid { grid-template-columns: 1fr 1fr; } .cs--anthive .ah-glance-i:nth-child(5) { grid-column: 1 / -1; } }
.cs--anthive .ah-glance-i { display: flex; gap: 14px; align-items: center; }
.cs--anthive .ah-glance-i small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cs--anthive .ah-glance-i b { display: block; margin-top: 3px; font-weight: 500; font-size: 15.5px; line-height: 1.4; color: var(--text); }
.cs--anthive .ah-glance-f { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cs--anthive .ah-glance-f small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

/* ---------------------------------------------------------------- platform map */
.cs--anthive .ah-map-chart .zc-card { border-color: var(--line); }
.cs--anthive .ah-map-grid { display: grid; gap: clamp(24px, 3vw, 36px) 24px; grid-template-columns: minmax(0, 1fr); }
.cs--anthive .ah-areas { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cs--anthive .ah-areas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1140px) {
  .cs--anthive .ah-map-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .cs--anthive .ah-map-chart { position: sticky; top: 112px; }
}
.cs--anthive .ah-area { padding: 22px; }
.cs--anthive .ah-area header { display: flex; gap: 14px; align-items: center; }
.cs--anthive .ah-area h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; }
.cs--anthive .ah-area header p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.cs--anthive .ah-area header > div { min-width: 0; flex: 1; }
.cs--anthive .ah-area-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.cs--anthive .ah-staff-tag { flex: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 3px 7px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(var(--ink), .03); white-space: nowrap; }
.cs--anthive .ah-mods { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; }
.cs--anthive .ah-mods li { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.cs--anthive .ah-mods--m, .cs--anthive .ah-more { display: none; }
.cs--anthive .ah-more summary { display: inline-flex; align-items: center; margin-top: 8px; padding: 5px 2px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ah-ink); cursor: pointer; list-style: none; }
.cs--anthive .ah-more summary::-webkit-details-marker { display: none; }
.cs--anthive .ah-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cs--anthive .ah-more .ah-more-c, .cs--anthive .ah-more[open] .ah-more-o { display: none; }
.cs--anthive .ah-more[open] .ah-more-c { display: inline; }
.cs--anthive .ah-more .ah-mods { margin-top: 6px; }
@media (max-width: 640px) {
  .cs--anthive .ah-mods--all { display: none; }
  .cs--anthive .ah-mods--m { display: flex; }
  .cs--anthive .ah-more { display: block; }
  .cs--anthive .ah-mods { margin-top: 14px; }
}

/* ---------------------------------------------------------------- swimlane */
.cs--anthive .ah-stages { list-style: none; margin: 0; padding: 0; }
.cs--anthive .ah-stages:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-l); }
.cs--anthive .ah-stage-h { display: flex; align-items: center; gap: 12px; }
.cs--anthive .ah-stage-h h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; }
.cs--anthive .ah-step p { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.cs--anthive .ah-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cs--anthive .ah-step-tag { display: inline-block; white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ah-ink); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--ah-line); background: var(--ah-tint); }
.cs--anthive .ah-step-role { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cs--anthive .ah-step-role svg { width: 14px; height: 14px; }
.cs--anthive .ah-role { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.cs--anthive .ah-role--h { font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cs--anthive .ah-lanes-roles, .cs--anthive .ah-lane-bg { display: none; }

/* phone / tablet: one card per stage */
@media (max-width: 1199px) {
  .cs--anthive .ah-stages { display: grid; gap: 12px; }
  .cs--anthive .ah-stage-col { padding: 20px; border-radius: var(--r-l); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-a), var(--card-b)); }
  .cs--anthive .ah-stage-h { padding-bottom: 6px; }
  .cs--anthive .ah-step { padding: 14px 0 2px; border-top: 1px solid var(--line); margin-top: 12px; }
  .cs--anthive .ah-step p { margin-top: 6px; }
  .cs--anthive .ah-node { display: none; }
}
@media (min-width: 640px) and (max-width: 899px) { .cs--anthive .ah-stages { grid-template-columns: 1fr 1fr; } .cs--anthive .ah-stage-col:last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) and (max-width: 1199px) { .cs--anthive .ah-stages { grid-template-columns: repeat(6, 1fr); } .cs--anthive .ah-stage-col { grid-column: span 2; } .cs--anthive .ah-stage-col:nth-child(n+4) { grid-column: span 3; } }
.cs--anthive .ah-swipe { display: none; }
@media (max-width: 639px) {
  .cs--anthive .ah-lanes { margin-inline: calc(var(--gutter) * -1); }
  .cs--anthive .ah-stages { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cs--anthive .ah-stages:focus-visible { outline-offset: -2px; border-radius: 0; }
  .cs--anthive .ah-stages::-webkit-scrollbar { display: none; }
  .cs--anthive .ah-stage-col { scroll-snap-align: start; }
  .cs--anthive .ah-swipe { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .cs--anthive .ah-swipe svg { width: 15px; height: 15px; color: var(--ah-ink); }
}

/* desktop: a true swimlane (roles = rows, stages = columns), aligned with subgrid */
@media (min-width: 1200px) {
  .cs--anthive .ah-lanes { position: relative; display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(3, auto); border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-a), var(--card-b)); overflow: hidden; }
  .cs--anthive .ah-lanes-roles { display: grid; grid-column: 1; grid-row: 1 / span 4; grid-template-rows: subgrid; position: relative; z-index: 1; border-right: 1px solid var(--line); background: var(--surface); }
  .cs--anthive .ah-role { align-items: flex-start; padding: 21px 16px 0 18px; }
  .cs--anthive .ah-role:not(.ah-role--h) > span:last-child { line-height: 46px; }
  .cs--anthive .ah-role--h { align-items: center; padding-top: 0; min-height: 76px; }
  .cs--anthive .ah-lane-bg { display: block; grid-column: 1 / -1; position: relative; z-index: 0; border-top: 1px solid var(--line); }
  .cs--anthive .ah-lane-bg::after { content: ""; position: absolute; left: 150px; right: 0; top: 44px; height: 0; border-top: 1.5px dashed var(--ah-line); }
  .cs--anthive .ah-stages { grid-column: 2 / -1; grid-row: 1 / span 4; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; position: relative; z-index: 1; }
  .cs--anthive .ah-stages:focus-visible { outline-offset: -3px; border-radius: 0; }
  .cs--anthive .ah-stage-col { grid-row: 1 / span 4; display: grid; grid-template-rows: subgrid; transition: background .4s var(--ease); }
  .cs--anthive .ah-stage-col:hover { background: linear-gradient(180deg, var(--ah-tint-2), transparent); }
  .cs--anthive .ah-stage-h { min-height: 76px; padding: 0 16px; }
  .cs--anthive .ah-step { position: relative; padding: 36px 16px 24px; }
  .cs--anthive .ah-step-role { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cs--anthive .ah-node { position: absolute; left: 16px; top: 36px; width: 14px; height: 16px; clip-path: var(--ah-hexclip); background: var(--ah-fill); box-shadow: 0 0 0 4px var(--bg); }
  .cs--anthive .ah-step p { margin-top: 28px; }
}

/* ---------------------------------------------------------------- before / after ledger */
.cs--anthive .ah-ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs--anthive .ah-led-head { display: none; }
.cs--anthive .ah-led-row { display: grid; gap: 10px; grid-template-columns: 1fr; padding: 18px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.cs--anthive .ah-led-k { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.cs--anthive .ah-led-b p { color: var(--text-2); font-size: 15px; }
.cs--anthive .ah-led-a p { color: var(--text); font-size: 15.5px; font-weight: 500; }
.cs--anthive .ah-led-a .ah-led-k { color: var(--ah-ink); }
.cs--anthive .ah-led-a .ah-step-tag { margin-top: 10px; }
.cs--anthive .ah-led-arrow { display: none; }
@media (min-width: 860px) {
  .cs--anthive .ah-led-head { display: grid; grid-template-columns: 1fr 64px 1.15fr; padding: 0 1px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
  .cs--anthive .ah-led-head span { padding-inline: 26px; }
  .cs--anthive .ah-led-head span:nth-child(2) { padding: 0; }
  .cs--anthive .ah-led-head span:last-child { color: var(--ah-ink); }
  .cs--anthive .ah-led-row { grid-template-columns: 1fr 64px 1.15fr; align-items: center; gap: 0; padding: 0; overflow: hidden; }
  .cs--anthive .ah-led-b, .cs--anthive .ah-led-a { padding: 20px 26px; }
  .cs--anthive .ah-led-a { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: linear-gradient(90deg, var(--ah-tint-2), var(--ah-tint) 60%, transparent); border-left: 1px solid var(--ah-line); }
  .cs--anthive .ah-led-a p { flex: 1 1 260px; }
  .cs--anthive .ah-led-a .ah-step-tag { margin-top: 0; }
  .cs--anthive .ah-led-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cs--anthive .ah-led-arrow { display: grid; place-items: center; }
  .cs--anthive .ah-led-arrow .ah-hex { --hs: 34px; }
  .cs--anthive .ah-led-arrow .ah-hex-in svg { width: 15px; height: 15px; }
  .cs--anthive .ah-led-row { transition: border-color .4s var(--ease); }
  .cs--anthive .ah-led-row:hover { border-color: var(--ah-line); }
}

/* ---------------------------------------------------------------- inside the build */
.cs--anthive .ah-shots-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.cs--anthive .ah-shot { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* 860px and up: the two frames share row 1 and the captions row 2, so both edges line up */
@media (min-width: 860px) {
  .cs--anthive .ah-shots-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto; align-items: stretch; column-gap: 16px; row-gap: 0; }
  .cs--anthive .ah-shot { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 14px; }
}
.cs--anthive .ah-shot .browser { flex: 1; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-m); }
.cs--anthive .ah-shot .browser-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs--anthive .ah-shot-img { position: relative; flex: 1; min-height: 0; aspect-ratio: 1120 / 1013; overflow: hidden; background: #f4f6fa; }
@media (min-width: 860px) { .cs--anthive .ah-shot-img { aspect-ratio: auto; min-height: 360px; } }
.cs--anthive .ah-shot-img picture { display: contents; }
.cs--anthive .ah-shot-img img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 100%; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .cs--anthive .ah-shot:hover .ah-shot-img img { transform: scale(1.025); } }
.cs--anthive .ah-shot figcaption { font-size: 14px; color: var(--text-2); max-width: 64ch; }
.cs--anthive .ah-shot figcaption b { color: var(--text); font-weight: 600; }

/* admin console schematic: labels from the page names, skeleton bars for values, no data */
.cs--anthive .ah-schem-tag { margin-left: auto; flex: none; font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--line-3); }
.cs--anthive .ah-schem-body { flex: 1; display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); min-height: 0; background: rgba(var(--ink), .02); }
.cs--anthive .ah-schem-nav { list-style: none; margin: 0; padding: 14px 10px; display: grid; align-content: start; gap: 2px; border-right: 1px solid var(--line); background: rgba(var(--ink), .025); }
.cs--anthive .ah-schem-nav li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 8px; border-radius: 8px; font-size: 12px; line-height: 1.25; color: var(--text-2); }
.cs--anthive .ah-schem-nav li > i { flex: none; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--line-3); }
.cs--anthive .ah-schem-nav li.is-on { color: var(--text); background: var(--ah-tint-2); box-shadow: inset 2px 0 0 var(--ah-honey); }
.cs--anthive .ah-schem-nav li.is-on > i { border-color: var(--ah-ink); }
.cs--anthive .ah-schem-nav .ah-schem-brand { margin-bottom: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cs--anthive .ah-schem-main { display: grid; align-content: start; gap: 14px; padding: 16px; min-width: 0; }
.cs--anthive .ah-schem-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs--anthive .ah-schem-head b { font-size: 15px; font-weight: 600; }
.cs--anthive .ah-sk { display: block; width: 78%; height: 7px; border-radius: 99px; background: rgba(var(--ink), .1); }
.cs--anthive .ah-sk--s { width: 62%; background: rgba(var(--ink), .07); }
.cs--anthive .ah-sk-search { display: inline-flex; align-items: center; gap: 7px; width: 38%; min-width: 0; height: 28px; padding: 0 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(var(--ink), .04); font-size: 12px; color: var(--text-3); }
.cs--anthive .ah-sk-search svg { flex: none; width: 13px; height: 13px; }
.cs--anthive .ah-sk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cs--anthive .ah-sk-kpi { display: grid; gap: 8px; min-width: 0; padding: 11px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
.cs--anthive .ah-sk-kpi small, .cs--anthive .ah-sk-th em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cs--anthive .ah-sk-kpi b { font-size: 20px; font-weight: 500; line-height: 1; color: var(--text-3); }
.cs--anthive .ah-sk-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs--anthive .ah-sk-panel { display: grid; align-content: start; gap: 0; min-width: 0; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
.cs--anthive .ah-sk-panel--wide { grid-column: 1 / -1; }
.cs--anthive .ah-sk-panel b { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.cs--anthive .ah-sk-th, .cs--anthive .ah-sk-tr { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; align-items: center; }
.cs--anthive .ah-sk-th { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.cs--anthive .ah-sk-tr { min-height: 30px; padding: 6px 0; }
.cs--anthive .ah-sk-tr + .ah-sk-tr { border-top: 1px solid rgba(var(--ink), .05); }
.cs--anthive .ah-sk-pill { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(var(--ink), .04); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--text-2); }
@media (max-width: 640px) {
  .cs--anthive .ah-schem-body { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .cs--anthive .ah-schem-nav { padding: 10px 6px; }
  .cs--anthive .ah-schem-nav li { padding: 4px 6px; font-size: 11px; gap: 6px; }
  .cs--anthive .ah-schem-nav li > i { width: 8px; height: 8px; }
  .cs--anthive .ah-schem-main { padding: 10px; gap: 10px; }
  .cs--anthive .ah-schem-head b { font-size: 13.5px; }
  .cs--anthive .ah-sk-search { width: 52%; height: 24px; padding: 0 8px; font-size: 11px; }
  .cs--anthive .ah-sk-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cs--anthive .ah-sk-panels { grid-template-columns: minmax(0, 1fr); }
  .cs--anthive .ah-sk-kpi, .cs--anthive .ah-sk-panel { padding: 9px; }
  .cs--anthive .ah-sk-kpi b { font-size: 17px; }
  .cs--anthive .ah-sk-kpi:nth-child(n+3), .cs--anthive .ah-sk-panel:nth-child(n+3) { display: none; }
  .cs--anthive .ah-sk-panel--wide { --cols: 2 !important; }
  .cs--anthive .ah-sk-panel--wide .ah-sk-th > :nth-child(n+3), .cs--anthive .ah-sk-panel--wide .ah-sk-tr > :nth-child(n+3) { display: none; }
  .cs--anthive .ah-shot-img { aspect-ratio: 780 / 1040; background: #23384d; }
  .cs--anthive .ah-shot-img img { object-position: 50% 0; }
  .cs--anthive .ah-led-row { gap: 8px; padding: 14px 16px; }
  .cs--anthive .ah-led-k { margin-bottom: 4px; }
}

/* ---------------------------------------------------------------- outcome + live check */
.cs--anthive .ah-band { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); background: radial-gradient(70% 120% at 100% 0%, var(--ah-glow), transparent 60%), radial-gradient(60% 90% at 0% 100%, var(--ah-tint-2), transparent 70%), linear-gradient(180deg, var(--card-a), var(--card-b)); border-color: var(--ah-line); }
.cs--anthive .ah-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ah-honey); opacity: var(--ah-pat-o); -webkit-mask: var(--ah-hex-mask) 0 0 / 31.18px 54px, linear-gradient(200deg, #000, transparent 30%); -webkit-mask-composite: source-in; mask: var(--ah-hex-mask) 0 0 / 31.18px 54px, linear-gradient(200deg, #000, transparent 30%); mask-composite: intersect; }
.cs--anthive .ah-band p { margin-top: 12px; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); max-width: 34ch; }
/* "Client summary" label + the client-reported figures, kept out of the hero */
.cs--anthive .ah-band p.ah-band-src { display: grid; gap: 5px; justify-items: start; max-width: 46ch; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; letter-spacing: 0; }
.cs--anthive .ah-band-src small { font-size: 13px; color: var(--text-2); }
[data-theme="light"] .cs--anthive .ah-band { background: radial-gradient(70% 120% at 100% 0%, rgba(245, 158, 11, .2), transparent 62%), radial-gradient(60% 90% at 0% 100%, rgba(245, 158, 11, .16), transparent 70%), linear-gradient(180deg, var(--card-a), var(--card-b)); }
@media (min-width: 992px) { .cs--anthive .ah-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; } }
.cs--anthive .ah-check { padding: 22px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cs--anthive .ah-check-h { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cs--anthive .ah-check-h svg { width: 14px; height: 14px; color: var(--ok); }
.cs--anthive .ah-check-d { white-space: nowrap; }
.cs--anthive .ah-check ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.cs--anthive .ah-check li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.cs--anthive .ah-check li:first-child { border-top: 0; }
.cs--anthive .ah-check li > svg { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--ok); }
.cs--anthive .ah-check li b { display: block; font-size: 15px; font-weight: 600; }
.cs--anthive .ah-check li span { display: block; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 640px) {
  .cs--anthive .ah-band { padding: 26px 20px; gap: 22px; border-radius: var(--r-l); }
  .cs--anthive .ah-check { padding: 16px 16px 8px; }
  .cs--anthive .ah-check-h { font-size: 10.5px; letter-spacing: .1em; align-items: flex-start; }
  .cs--anthive .ah-check-h svg { margin-top: 1px; flex: none; }
  .cs--anthive .ah-check-sep { display: none; }
  .cs--anthive .ah-check-d { display: block; margin-top: 2px; }
  .cs--anthive .ah-check li { gap: 10px; }
}

/* ---------------------------------------------------------------- touch + phones: 44px tap targets, 16px body text */
.cs--anthive .ah-more summary { min-height: 44px; margin-top: 2px; padding: 0 2px; }
.cs--anthive .zc-table summary { display: inline-flex; align-items: center; min-height: 44px; }
.cs--anthive .crumbs a { display: inline-block; min-width: 44px; padding: 13px 4px; margin: -13px -4px; text-align: center; }
.cs--anthive .cta-contacts { row-gap: 0; }
.cs--anthive .cta-contacts a { min-height: 44px; }
@media (max-width: 1199px) { .cs--anthive .ah-step p { font-size: 16px; } }
@media (max-width: 859px) { .cs--anthive .ah-led-b p, .cs--anthive .ah-led-a p { font-size: 16px; } }
@media (max-width: 640px) {
  .cs--anthive .ah-glance-i b { font-size: 16px; }
  .cs--anthive .ah-shot figcaption { font-size: 16px; }
  .cs--anthive .ah-check li b { font-size: 16px; }
  .cs--anthive .ah-check li span { font-size: 14.5px; }
  .cs--anthive .ah-area header p { font-size: 14.5px; }
  .cs--anthive .ah-hive-note small { font-size: 13.5px; }
  .cs--anthive .ah-foot, .cs--anthive .ah-stage-cap { font-size: 14px; }
  .cs--anthive .ah-mods li { font-size: 12.5px; }
  .cs--anthive .ah-step-tag { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs--anthive .ah-cell, .cs--anthive .ah-shot-img img, .cs--anthive .ah-led-row, .cs--anthive .ah-stage-col { transition: none; }
}
