/*
 * Homepage product pictures: the watch-only scene "So arbeitet Bob" and the bento wall
 * "Was Bob heute kann". Rules follow the Stageshow method (one focal object, real words only
 * where the story is, filler as bars, panels bleed off an edge instead of floating on a plate).
 * Build: web/WEBSITE.md, cases: web/MARKETING.md. Scoped to .hb-site; site.css owns the page frame.
 */
.hb-site {
  --hb-sage-900: #283b21;
  --hb-sage-700: #42563b;
  --hb-sage-400: #8fa67f;
  --hb-sage-100: #e3e9db;
  --hb-sage-50: #edf0e5;
  --hb-amber: #8a4f00;
  --hb-amber-bg: #fff3d6;
  --hb-picture-shadow: 0 1px 2px rgba(21, 23, 19, .06), 0 14px 34px -10px rgba(21, 23, 19, .2);
}

/* ---------- shared bits ---------- */
.hb-site .hb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--hb-sage-100);
  color: var(--hb-sage-900);
}
.hb-site .hb-chip[data-tone="open"] { background: var(--hb-amber-bg); color: var(--hb-amber); box-shadow: inset 0 0 0 1.5px currentColor; }
.hb-site .hb-chip[data-tone="draft"] { background: var(--hb-amber-bg); color: var(--hb-amber); }
.hb-tile-picture b:empty,
.hb-scene b:empty { display: block; height: 7px; border-radius: 4px; background: #e6e8e0; }

/* ---------- watch scene ---------- */
.hb-site .hb-section-kicker { margin-bottom: 16px; color: var(--hb-sage-700); font-size: 13px; font-weight: 600; }
.hb-watch-section { padding-block: 88px 96px; border-top: 1px solid var(--hb-line); }
.hb-watch-section .hb-demo-heading > p { max-width: 340px; }
.hb-scene { margin: 0; }
.hb-scene-host {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--hb-sage-50);
}
.hb-scene-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  color: var(--hb-ink);
  font-size: 13px;
  line-height: 1.4;
  visibility: hidden;
}
.hb-scene-stage[data-scaled="true"] { visibility: visible; }
.hb-scene-window {
  position: absolute;
  left: 44px;
  top: 48px;
  width: 800px;
  height: 560px;
  display: grid;
  grid-template-rows: 38px 1fr;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--hb-picture-shadow);
}
.hb-scene-chrome { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid #eceee7; background: #fbfbf8; }
.hb-scene-chrome i { width: 12px; height: 12px; border-radius: 50%; background: #e2e3dd; }
.hb-scene-chrome span { margin-inline: auto; padding: 3px 44px; border-radius: 7px; background: #f1f2ec; color: var(--hb-muted); font-size: 12px; }
.hb-scene-body { display: grid; grid-template-columns: 196px 1fr; min-height: 0; }
.hb-scene-side { display: grid; align-content: start; gap: 12px; padding: 18px 16px; border-right: 1px solid #eceee7; background: #f7f8f3; }
.hb-scene-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.hb-scene-brand svg { width: 22px; height: 24px; }
.hb-scene-nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; }
.hb-scene-nav[data-active="true"] { background: #fff; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.hb-scene-nav i { flex: none; width: 14px; height: 14px; border-radius: 4px; background: #dfe2d8; }
.hb-scene-nav i[data-accent="true"] { background: var(--hb-yellow); }
.hb-scene-main { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; min-width: 0; padding: 26px 96px 26px 30px; }
.hb-scene-banner { display: none; }
.hb-scene-title { display: flex; align-items: baseline; gap: 12px; }
.hb-scene-title strong { font-size: 24px; letter-spacing: -.5px; }
.hb-scene-title span { color: var(--hb-muted); font-size: 13px; }
.hb-scene-stage[data-animated="true"] .hb-scene-title span,
.hb-scene-stage[data-animated="true"] .hb-scene-lock span { animation: hb-scene-day .6s ease both; }
@keyframes hb-scene-day { from { opacity: 0; transform: translateY(-5px); } }
.hb-scene-collapse { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -16px; transition: grid-template-rows .55s cubic-bezier(.2, .8, .2, 1), opacity .4s ease, margin-top .55s cubic-bezier(.2, .8, .2, 1); }
.hb-scene-collapse > div { min-height: 0; overflow: hidden; }
.hb-scene-collapse[data-open="true"] { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.hb-scene-quiet { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #fbfbf8; color: var(--hb-muted); font-size: 13.5px; }
.hb-scene-quiet img { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #9db890; }
.hb-scene-quiet strong { display: block; color: var(--hb-ink); font-size: 14.5px; }
.hb-scene-card { display: grid; gap: 6px; padding: 14px 16px 16px; border-left: 4px solid var(--hb-ink); border-radius: 4px 12px 12px 4px; background: #fbfbf8; }
.hb-scene-chip { display: inline-flex; align-items: center; gap: 5px; width: max-content; padding: 3px 8px; border-radius: 999px; background: var(--hb-sage-100); color: var(--hb-sage-900); font-size: 11px; font-weight: 700; line-height: 1.3; }
.hb-scene-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; margin-top: 6px; }
.hb-scene-button { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--hb-line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .12s ease, background .2s ease; }
.hb-scene-button[data-primary="true"] { border-color: var(--hb-yellow); background: var(--hb-yellow); }
.hb-scene-button[data-pressed="true"] { transform: scale(.96); background: #f2e100; }
.hb-scene-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 9px 0; border-top: 1px solid #eceee7; }
.hb-scene-row > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-sage-400); }
.hb-scene-row > b { flex: 1 1 auto; max-width: 60%; }
.hb-scene-section { color: var(--hb-muted); font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.hb-scene-card[data-state="disputed"] { border-left-color: #b42318; }
.hb-scene-card[data-state="approved"] { border-left-color: var(--hb-sage-400); }
.hb-scene-invoice { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hb-scene-invoice strong { display: block; font-size: 16px; letter-spacing: -.2px; }
.hb-scene-invoice span { color: var(--hb-muted); font-size: 12px; }
.hb-scene-invoice .hb-scene-amount { color: var(--hb-ink); font-size: 20px; font-weight: 750; letter-spacing: -.4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-scene-report { margin-top: 6px; padding-top: 10px; border-top: 1px solid #eceee7; }
.hb-scene-report h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; }
.hb-scene-report ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.hb-scene-report li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.hb-scene-report li > svg { flex: none; margin-top: 2px; color: var(--hb-sage-700); }
.hb-scene-report li > i { flex: none; display: grid; place-items: center; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: var(--hb-amber-bg); color: var(--hb-amber); font-size: 10px; font-style: normal; font-weight: 800; }
.hb-scene-report li[data-status="hinweis"] { font-weight: 650; }
.hb-scene-report li small { display: block; color: #4b5045; font-size: 12px; font-weight: 500; }
.hb-scene-report li[data-status="hinweis"] small { color: var(--hb-amber); }
.hb-scene-verdict { margin-top: 8px; font-size: 13px; }
.hb-scene-actions small { color: var(--hb-muted); font-size: 12px; }
.hb-scene-chip[data-tone="critical"] { background: #fdecea; color: #b42318; }
.hb-scene-ledger { display: grid; gap: 4px; margin-top: 6px; }
.hb-scene-phone { position: absolute; left: 776px; top: 70px; width: 248px; height: 507px; }
.hb-scene-screen { position: absolute; left: 5.33%; top: 2.5%; width: 89.33%; height: 95%; overflow: hidden; border-radius: 34px; background: linear-gradient(160deg, #50634b 0%, #283b21 55%, #1b2617 100%); }
.hb-scene-bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hb-scene-lock { display: grid; justify-items: center; gap: 2px; padding-top: 46px; color: #fff; }
.hb-scene-lock span { font-size: 12px; font-weight: 600; opacity: .85; }
.hb-scene-lock strong { font-size: 64px; font-weight: 600; letter-spacing: -2px; line-height: 1; }
.hb-scene-notification { position: absolute; left: 8px; right: 8px; top: 156px; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: start; padding: 10px 12px; border-radius: 18px; background: rgba(245, 246, 241, .94); color: var(--hb-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(-24px) scale(.96); transition: transform .6s cubic-bezier(.2, .9, .25, 1.15), opacity .35s ease; }
.hb-scene-notification[data-shown="true"] { opacity: 1; transform: none; }
.hb-scene-notification img { width: 34px; height: 34px; border-radius: 50%; background: #9db890; }
.hb-scene-notification-head { display: flex; justify-content: space-between; font-size: 11.5px; line-height: 1.3; }
.hb-scene-notification-head span { color: var(--hb-muted); }
.hb-scene-notification p { color: #2b2e28; font-size: 11.5px; line-height: 1.35; }
.hb-scene-cursor { position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); transition: transform 1.1s cubic-bezier(.45, .05, .25, 1), opacity .3s ease; }
.hb-scene-cursor[data-visible="true"] { opacity: 1; }
.hb-scene-cursor svg { display: block; transform-origin: 3px 3px; transition: transform .12s ease; }
.hb-scene-cursor[data-down="true"] svg { transform: scale(.86); }

/* Compact: a redesign for the phone column, not a squeeze. Bob's message arrives as a banner. */
.hb-scene-stage[data-layout="compact"] .hb-scene-window { left: 0; top: 0; width: 358px; height: 640px; grid-template-rows: 1fr; border-radius: 16px 16px 0 0; box-shadow: none; }
.hb-scene-stage[data-layout="compact"] .hb-scene-chrome,
.hb-scene-stage[data-layout="compact"] .hb-scene-side,
.hb-scene-stage[data-layout="compact"] .hb-scene-phone { display: none; }
.hb-scene-stage[data-layout="compact"] .hb-scene-body { grid-template-columns: 1fr; }
.hb-scene-stage[data-layout="compact"] .hb-scene-main { gap: 14px; padding: 16px; }
.hb-scene-stage[data-layout="compact"] .hb-scene-banner { display: grid; grid-template-rows: 0fr; margin-bottom: -14px; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1), margin-bottom .5s; }
.hb-scene-stage[data-layout="compact"] .hb-scene-banner[data-shown="true"] { grid-template-rows: 1fr; margin-bottom: 0; }
.hb-scene-stage[data-layout="compact"] .hb-scene-banner > div { min-height: 0; overflow: hidden; }
.hb-scene-stage[data-layout="compact"] .hb-scene-banner .hb-scene-notification { position: relative; left: 0; right: 0; top: 0; background: #f2f3ed; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.hb-scene-stage[data-layout="compact"] .hb-scene-banner .hb-scene-notification p,
.hb-scene-stage[data-layout="compact"] .hb-scene-banner .hb-scene-notification-head { font-size: 12.5px; }
.hb-scene-touch { display: block; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 2px solid #fff; border-radius: 50%; background: rgba(21, 23, 19, .3); transition: transform .12s ease; }
.hb-scene-cursor[data-down="true"] .hb-scene-touch { transform: scale(.8); }

.hb-scene-caption { display: grid; gap: 14px; margin-top: 16px; }
.hb-scene-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: hb-step; }
.hb-scene-steps li { position: relative; padding: 12px 0 0 0; border-top: 2px solid var(--hb-line); color: var(--hb-muted); font-size: 13px; line-height: 1.45; counter-increment: hb-step; transition: border-color .3s ease, color .3s ease; }
.hb-scene-steps li::before { content: counter(hb-step) " · "; font-weight: 700; }
.hb-scene-steps li[data-active="true"] { border-top-color: var(--hb-ink); color: var(--hb-ink); }
.hb-scene-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--hb-muted); font-size: 12px; }
.hb-scene-toggle { padding: 7px 14px; border: 1px solid var(--hb-line); border-radius: 999px; background: #fff; color: var(--hb-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.hb-scene-toggle:focus-visible { outline: 2px solid var(--hb-ink); outline-offset: 2px; }

/* ---------- bento wall ---------- */
.hb-services { display: block; }
.hb-services [id] { scroll-margin-top: 32px; }
.hb-services-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.hb-services-intro > div { max-width: 380px; }
.hb-services-intro p { color: var(--hb-muted); font-size: 15px; }
.hb-services-intro .hb-text-link { margin-top: 8px; }
.hb-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hb-tile { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 390px; overflow: hidden; isolation: isolate; border-radius: 24px; background: var(--hb-paper); }
.hb-tile-wide { grid-column: span 2; }
.hb-tile-hero { min-height: 450px; }
.hb-tile .hb-service-link { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 0; text-decoration: none; }
.hb-tile .hb-service-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.hb-tile .hb-service-link > svg { flex: none; margin-top: 4px; }
.hb-tile-copy { display: block; min-width: 0; }
.hb-tile h3 { font-size: 20px; font-weight: 650; letter-spacing: -.4px; line-height: 1.3; }
.hb-tile-copy p { max-width: 42ch; margin-top: 6px; color: var(--hb-muted); font-size: 15px; line-height: 1.45; }
.hb-tile .hb-service-status { display: block; margin-top: 8px; color: var(--hb-sage-700); font-size: 12px; font-weight: 600; }
.hb-tile:focus-within { outline: 2px solid var(--hb-ink); outline-offset: 4px; }
.hb-tile a:focus-visible { outline: none; }
@media (hover: hover) {
  .hb-tile:has(.hb-service-link:hover) h3 { text-decoration: underline; text-underline-offset: 4px; }
}
.hb-tile-picture { position: relative; flex: 1 1 auto; min-height: 210px; margin-top: 22px; }
.hb-tile-panel { position: absolute; left: 28px; right: -24px; top: 0; bottom: -24px; padding: 18px 20px; border-radius: 16px 0 0 0; background: #fff; box-shadow: var(--hb-picture-shadow); font-size: 13px; line-height: 1.4; }

/* Termine: a week timeline, the open promise in focus. */
.hb-timeline { --label: 96px; padding: 16px 0 0; }
.hb-timeline-head,
.hb-timeline-row { position: relative; display: grid; grid-template-columns: var(--label) repeat(4, minmax(0, 1fr)); align-items: center; padding-inline: 20px; }
.hb-timeline-head { padding-bottom: 10px; border-bottom: 1px solid #eceee7; color: var(--hb-muted); font-size: 11px; font-weight: 700; }
.hb-timeline-head strong { color: var(--hb-ink); font-size: 13px; }
.hb-timeline-row { height: 48px; border-bottom: 1px solid #f0f1eb; }
.hb-timeline-row > span { color: #3d4238; }
.hb-timeline-row[data-focus="true"] > span { color: var(--hb-ink); font-weight: 750; }
.hb-bar-track {
  position: absolute;
  top: 15px;
  left: calc(20px + var(--label) + (100% - 40px - var(--label)) * var(--from) / 4);
  width: calc((100% - 40px - var(--label)) * (var(--to) - var(--from)) / 4);
  height: 18px;
  border-radius: 6px;
  background: var(--hb-sage-400);
  transform-origin: left;
}
.hb-bar-track[data-tone="open"] { background: #fff; box-shadow: inset 0 0 0 2px var(--hb-ink); background-image: repeating-linear-gradient(-45deg, transparent 0 6px, #eef0e8 6px 12px); }
.hb-bar-track[data-tone="later"] { background: #e6e8e0; }
.hb-timeline-row .hb-chip { position: absolute; top: 14px; left: calc(20px + var(--label) + (100% - 40px - var(--label)) * var(--at) / 4 + 8px); }
.hb-timeline-note { padding: 12px 20px; color: var(--hb-muted); font-size: 12.5px; }

/* Statement: the page's core sentence, said once. */
.hb-tile-ink { justify-content: space-between; gap: 28px; padding: 28px; background: var(--hb-ink); color: #fff; }
.hb-tile-statement { display: block; font-size: clamp(30px, 3.4vw, 48px); font-weight: 650; letter-spacing: -1.2px; line-height: 1.08; }
.hb-tile-statement span { display: block; color: var(--hb-yellow); }
.hb-tile-by { display: flex; align-items: center; gap: 14px; }
.hb-tile-by img { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #9db890; }
.hb-tile-by p { color: #c9ccc2; font-size: 14px; line-height: 1.45; }

/* Budget: one number big, one bar, two figures. */
.hb-budget-head { display: flex; justify-content: space-between; padding-right: 24px; font-size: 13px; }
.hb-budget-head span { color: var(--hb-muted); font-weight: 600; }
.hb-budget-number { margin-top: 10px; font-size: 34px; font-weight: 750; letter-spacing: -1px; line-height: 1.05; white-space: nowrap; }
.hb-budget-sub { margin-top: 4px; color: var(--hb-muted); font-size: 12.5px; }
.hb-budget-stack { display: flex; height: 14px; margin: 18px 24px 14px 0; overflow: hidden; border-radius: 7px; background: repeating-linear-gradient(-45deg, #eef0e8 0 5px, #e3e6dc 5px 10px); }
.hb-budget-stack i { display: block; height: 100%; transform-origin: left; }
.hb-budget-stack i[data-part="paid"] { width: 28.43%; background: var(--hb-sage-900); }
.hb-budget-stack i[data-part="open"] { width: 66.33%; background: var(--hb-sage-400); }
.hb-budget-legend { display: grid; gap: 7px; padding-right: 24px; font-size: 12.5px; }
.hb-budget-legend span { display: flex; align-items: center; gap: 8px; }
.hb-budget-legend i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.hb-budget-legend i[data-part="paid"] { background: var(--hb-sage-900); }
.hb-budget-legend i[data-part="open"] { background: var(--hb-sage-400); }
.hb-budget-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Bautagebuch: a week of entries, today's draft in focus. */
.hb-diary { padding: 6px 0 0; }
.hb-diary-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 8px 44px 8px 20px; border-bottom: 1px solid #f0f1eb; }
.hb-diary-row > span { color: var(--hb-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hb-diary-row > em { color: var(--hb-muted); font-size: 11.5px; font-style: normal; white-space: nowrap; }
.hb-diary-row[data-focus="true"] { background: #fbfbf8; }
.hb-diary-row[data-focus="true"] > span { color: var(--hb-ink); font-weight: 700; }
.hb-diary-row[data-focus="true"] > strong { font-size: 13.5px; }

/* Unterlagen: a small pile, only the top sheet has words. */
.hb-papers { position: absolute; inset: 0; }
.hb-paper { position: absolute; left: 50%; display: grid; align-content: start; gap: 8px; width: 236px; height: 250px; margin-left: -118px; padding: 16px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(21, 23, 19, .08), 0 4px 12px -4px rgba(21, 23, 19, .14); }
.hb-paper[data-layer="back"] { top: 32px; transform: rotate(-7deg) translateX(-26px); background: #fafaf6; }
.hb-paper[data-layer="middle"] { top: 20px; transform: rotate(5deg) translateX(22px); background: #fcfcf9; }
.hb-paper[data-layer="top"] { top: 10px; transform: rotate(-1.5deg); box-shadow: var(--hb-picture-shadow); }
.hb-paper strong { font-size: 13px; }
.hb-paper span { color: var(--hb-muted); font-size: 12.5px; line-height: 1.4; }
.hb-paper .hb-chip { margin-bottom: 6px; }
.hb-paper b { height: 6px; }

/* Leistungsverzeichnis: a draft with one open quantity. */
.hb-lv { padding: 16px 0 0; }
.hb-lv-head { display: flex; align-items: center; gap: 10px; padding: 0 20px 12px; border-bottom: 1px solid #eceee7; }
.hb-lv-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px 40px; align-items: center; gap: 12px; min-height: 42px; padding: 8px 20px; border-bottom: 1px solid #f0f1eb; }
.hb-lv-row > span:first-child { color: var(--hb-muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.hb-lv-row > span:nth-child(3) { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.hb-lv-row > span:nth-child(3) b { margin-left: auto; }
.hb-lv-row > span:last-child { color: var(--hb-muted); }
.hb-lv-row > span[data-open="true"] { color: var(--hb-amber); font-weight: 800; }
.hb-lv-row[data-head="true"] { min-height: 34px; color: var(--hb-muted); font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.hb-lv-row[data-head="true"] > span:first-child { font-family: inherit; font-size: 11px; }

/* The outlook stays visibly apart from what is available today. */
.hb-tile-outlook { justify-content: flex-start; gap: 10px; min-height: 0; padding: 28px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--hb-line); }
.hb-tile-outlook .hb-service-status { margin: 0; }
.hb-tile-outlook h3 + p { color: var(--hb-muted); font-size: 15px; }
.hb-tile-outlook .hb-text-link { margin-top: auto; }

/* Motion: bars follow the scroll position of their picture (FeatureReveal sets `--grow`
   from 0 to 1), so scrolling back shrinks them again. Each bar grows within its own part
   of that progress. Without `--grow` (no JavaScript, reduced motion) bars are full. */
.hb-bar-track,
.hb-budget-stack i {
  --grow-from: 0;
  --grow-to: .7;
  transform: scaleX(clamp(0, calc((var(--grow, 1) - var(--grow-from)) / (var(--grow-to) - var(--grow-from))), 1));
}
.hb-timeline-row:nth-child(3) .hb-bar-track { --grow-from: .1; --grow-to: .8; }
.hb-timeline-row:nth-child(4) .hb-bar-track { --grow-from: .2; --grow-to: .9; }
.hb-timeline-row:nth-child(5) .hb-bar-track { --grow-from: .3; --grow-to: 1; }
.hb-budget-stack i[data-part="paid"] { --grow-from: 0; --grow-to: .6; }
.hb-budget-stack i[data-part="open"] { --grow-from: .4; --grow-to: 1; }
/* The open promise appears where the Estrich bar arrives, not before it. */
.hb-timeline-row .hb-chip { opacity: clamp(0, calc((var(--grow, 1) - .8) / .15), 1); }

@media (max-width: 1000px) {
  .hb-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-tile-outlook { grid-column: span 2; }
  .hb-scene-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hb-watch-section { padding-block: 56px 64px; }
  .hb-services-intro { display: block; margin-bottom: 28px; }
  .hb-services-intro > div { margin-top: 16px; max-width: 52ch; }
  .hb-bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hb-tile-wide,
  .hb-tile-outlook { grid-column: auto; }
  .hb-tile { min-height: 360px; border-radius: 20px; }
  .hb-tile-ink { min-height: 0; }
  .hb-tile .hb-service-link { padding: 22px 20px 0; }
  .hb-tile-panel { left: 20px; }
  .hb-timeline { --label: 74px; }
  .hb-timeline-head, .hb-timeline-row { padding-inline: 14px; }
  .hb-bar-track { left: calc(14px + var(--label) + (100% - 28px - var(--label)) * var(--from) / 4); width: calc((100% - 28px - var(--label)) * (var(--to) - var(--from)) / 4); }
  .hb-tile-hero { min-height: 460px; }
  .hb-timeline-row[data-focus="true"] { height: 66px; align-items: start; padding-top: 12px; }
  .hb-timeline-row[data-focus="true"] .hb-bar-track { top: 12px; }
  .hb-timeline-row .hb-chip { left: 14px; top: 36px; }
  .hb-lv, .hb-budget { right: 0; }
  .hb-lv-row { grid-template-columns: 78px minmax(0, 1fr) 56px 26px; gap: 8px; padding-inline: 14px; }
  .hb-scene-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hb-scene-steps li { padding-top: 8px; }
  .hb-scene-host { border-radius: 16px; }
  .hb-scene-meta { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-bar-track,
  .hb-budget-stack i { transform: none; }
  .hb-timeline-row .hb-chip { opacity: 1; }
}

/* The planned flow is drawn as an outline only: nothing here is available yet. */
.hb-outlook-steps { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: hb-outlook; }
.hb-outlook-steps li { position: relative; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; padding: 10px 14px; border: 1.5px dashed #c9cdc0; border-radius: 12px; color: var(--hb-muted); font-size: 14px; font-weight: 600; counter-increment: hb-outlook; }
.hb-outlook-steps li::before { content: counter(hb-outlook); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef0e8; color: var(--hb-sage-700); font-size: 11px; font-weight: 700; }
.hb-outlook-steps li + li { margin-left: 22px; }
.hb-outlook-steps li + li + li { margin-left: 44px; }
.hb-scene-stage[data-layout="compact"] .hb-scene-invoice .hb-scene-amount { font-size: 17px; }
