/* Chapter Hanseprozess (light, compact): head + stats, the live website scrolling through,
   three teaser tiles, and a panel that folds out with funnel, CRM, guide book, team and checklist.
   Loops only run while a block is on screen (.is-live, set by hpcase.js). */

.hpsec { background: linear-gradient(180deg, #FBFAF7 0%, #F4F1EB 100%); border-top: 1px solid var(--line); overflow: hidden; }
.hpsec::before { content: ""; position: absolute; right: -12%; top: -10%; width: 60%; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 34, 97, .10), transparent 70%); }
.hpsec em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

/* ---------- "new chapter" marker */
.hpsec__mark { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hpsec__mark span { padding: 7px 12px; border-radius: 99px; background: var(--ink); color: #fff; }
.hpsec__mark i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(255, 34, 97, 0)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.hpsec__mark.is-in i { transform: scaleX(1); }
.hpsec__mark b { font-weight: 500; color: var(--accent); }

/* ---------- head */
.hpx__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hpx__head .h2 em { display: block; }
.hpx__head .lead { margin-top: 18px; max-width: 60ch; }
.hpx__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hpx__stats div { position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.hpx__stats div::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) calc(var(--i, 0) * 120ms + 250ms); }
.hpx__stats.is-in div::after { transform: scaleX(1); }
.hpx__stats dt { font-size: clamp(28px, 3vw, 40px); line-height: 1; font-weight: 600; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hpx__stats dd { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---------- main row: live website + teasers */
.hpx__main { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hpx__show { position: relative; padding: 0 clamp(0px, 4.5vw, 64px) 6% 0; }
.hpx__browser { margin-top: 0; border-color: rgba(20, 20, 18, .12); box-shadow: 0 40px 80px -40px rgba(20, 20, 18, .45), 0 2px 6px rgba(20, 20, 18, .06); }
.hpx__screen { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #F4F3EF; }
.hpx__scroll { display: block; width: 100%; height: auto; will-change: transform; transform: translateY(0); }
/* hpcase.js runs the two mockups: it rests on the dense parts of each page and moves quickly
   in between, so empty background never stands still in the window. These two values set how long
   one page takes – the pace of the section lives here, the stop positions in the HTML. */
.hpx__show { --hpx-dur: 18s; --hpx-dur-m: 21s; }
.hpx__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(20, 20, 18, .08); z-index: 2; }
.hpx__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
.hpx__phone { position: absolute; right: 0; bottom: 0; width: 27%; aspect-ratio: 9 / 19.2; padding: 7px; border-radius: 28px; z-index: 3;
  background: #0C0C0B; box-shadow: 0 30px 60px -24px rgba(20, 20, 18, .6); }
.hpx__phone-screen { height: 100%; border-radius: 22px; overflow: hidden; background: #F4F3EF; }
.hpx__notch { position: absolute; z-index: 2; left: 50%; top: 12px; width: 34%; height: 14px; border-radius: 99px; background: #0C0C0B; transform: translateX(-50%); }

.hpx__k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hpx__teasers { margin-top: 12px; display: grid; gap: 10px; }
.hpx__tz { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 12px 14px 12px 12px; text-align: left;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.hpx__tz:hover { border-color: rgba(255, 34, 97, .4); box-shadow: 0 16px 36px -20px rgba(255, 34, 97, .45); transform: translateY(-2px); }
.hpx__tzt b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.hpx__tzt span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hpx__tza { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.hpx__tzv { position: relative; height: 54px; border-radius: 12px; background: var(--bg); overflow: hidden; }
/* mini funnel: five dots light up in turn */
.hpx__tzv--funnel { display: flex; align-items: center; justify-content: space-between; padding: 0 9px; }
.hpx__tzv--funnel::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: rgba(20, 20, 18, .15); }
.hpx__tzv--funnel i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 1px solid rgba(20, 20, 18, .25); animation: hpxDot 3s ease-in-out infinite; animation-delay: calc(var(--n) * .5s); }
.hpx__tzv--funnel i:nth-child(1) { --n: 0; } .hpx__tzv--funnel i:nth-child(2) { --n: 1; } .hpx__tzv--funnel i:nth-child(3) { --n: 2; } .hpx__tzv--funnel i:nth-child(4) { --n: 3; } .hpx__tzv--funnel i:nth-child(5) { --n: 4; }
@keyframes hpxDot { 0%, 30%, 100% { background: #fff; border-color: rgba(20, 20, 18, .25); transform: scale(1); } 8%, 20% { background: var(--accent); border-color: var(--accent); transform: scale(1.35); } }
/* mini CRM: four columns, one card hops along */
.hpx__tzv--crm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 7px; }
.hpx__tzv--crm i { border-radius: 4px; background: rgba(20, 20, 18, .06); }
.hpx__tzv--crm u { position: absolute; left: 9px; top: 24px; width: calc((100% - 30px) / 4 - 2px); height: 12px; border-radius: 3px; background: var(--accent); animation: hpxHop 4s var(--ease) infinite; }
@keyframes hpxHop { 0%, 15% { transform: translateX(0); } 25%, 40% { transform: translateX(calc(100% + 6px)); } 50%, 65% { transform: translateX(calc(200% + 10px)); } 75%, 92% { transform: translateX(calc(300% + 14px)); } 100% { transform: translateX(0); opacity: 0; } }
/* mini book */
.hpx__tzv--book { background: #0C0C0B; color: #F4F3EF; padding: 7px 8px; display: flex; flex-direction: column; justify-content: space-between; transform: perspective(300px) rotateY(-14deg); transform-origin: left; animation: hpxBook 5s ease-in-out infinite; }
.hpx__tzv--book::before { content: ""; position: absolute; right: -40%; top: -40%; width: 100%; height: 100%; background: radial-gradient(closest-side, rgba(255, 34, 97, .6), transparent); }
.hpx__tzv--book i { position: relative; width: 12px; height: 12px; border-radius: 3px; background: #F4F3EF; color: #0C0C0B; padding: 1px; }
.hpx__tzv--book i svg { display: block; width: 100%; height: 100%; }
.hpx__tzv--book b { position: relative; font-size: 8px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
@keyframes hpxBook { 0%, 100% { transform: perspective(300px) rotateY(-14deg); } 50% { transform: perspective(300px) rotateY(-28deg); } }
.hpx__cap { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; color: var(--muted); }
.hpx__cap a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.hpx__cap a:hover { color: var(--accent); border-color: var(--accent); }
.hpx__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22A565; }
.hpx__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22A565; animation: dotPing 2.4s ease-out infinite; }

/* ---------- USP: the personal page after the call */
.hpx__usp { position: relative; overflow: hidden; margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid rgba(255, 34, 97, .28); box-shadow: 0 30px 70px -40px rgba(255, 34, 97, .5); }
.hpx__usp::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(255, 34, 97, .10), transparent 70%); pointer-events: none; }
.hpx__usp > * { position: relative; }
.hpx__usp .hpx__h em { display: block; }
.hpx__usp .hpx__p { margin-top: 12px; }
.hpx__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.hpx__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: 13px; font-weight: 500; }
.hpx__chips li::before { content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.hpx__usp-shot { position: relative; padding-top: 14px; min-width: 0; }
.hpx__browser .browser__url { max-width: 72%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hpx__funnel li.is-usp .hpx__fn { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 34, 97, .12); }
.hpx__fn i { position: absolute; top: -9px; right: -16px; padding: 2px 6px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 9px/1.4 var(--mono); font-style: normal; letter-spacing: .08em; }
.hpx__funnel li > span:last-child a { color: var(--accent); font-weight: 500; white-space: nowrap; }

/* ---------- fold-out panel */
.hpx__toggle { margin-top: clamp(28px, 4vw, 44px); display: flex; justify-content: center; }
.hpx__more { gap: 10px; }
.hpx__chev { display: inline-block; transition: transform .4s var(--ease); }
.hpx__more-c, .hpx__more[aria-expanded="true"] .hpx__more-o { display: none; }
.hpx__more[aria-expanded="true"] .hpx__more-c { display: inline; }
.hpx__more[aria-expanded="true"] .hpx__chev { transform: rotate(180deg); }
.hpx__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.hpx__panel.is-open { grid-template-rows: 1fr; }
.hpx__panel-in { min-height: 0; overflow: hidden; }
.hpx__panel:not(.is-open) .hpx__panel-in { visibility: hidden; transition: visibility 0s .7s; }
.hpx__part { padding-top: clamp(36px, 5vw, 56px); }
.hpx__part:first-child { margin-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.hpx__ph { display: block; }
.hpx__h { margin-top: 8px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.hpx__k--sub { margin-top: 18px; }
.hpx__p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.hpx__note { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; color: var(--muted-2); }

/* funnel: a pulse runs along the line, each step lights up in turn */
.hpx__funnel { position: relative; margin-top: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hpx__funnel::before { content: ""; position: absolute; left: 3%; right: 3%; top: 25px; height: 2px; background: rgba(20, 20, 18, .1); }
.hpx__funnel::after { content: ""; position: absolute; left: 3%; top: 21px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 34, 97, .2), 0 0 18px 4px rgba(255, 34, 97, .45); opacity: 0; }
.hpx__funnel.is-live::after { animation: hpxPulse 7.5s linear infinite; }
@keyframes hpxPulse { 0% { left: 3%; opacity: 0; } 3% { opacity: 1; } 92% { left: 97%; opacity: 1; } 100% { left: 97%; opacity: 0; } }
.hpx__fn { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 50%;
  font-family: var(--mono); font-size: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); }
.hpx__funnel.is-live .hpx__fn { animation: hpxStep 7.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1.5s); }
@keyframes hpxStep {
  0%, 22%, 100% { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
  4%, 16% { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 7px rgba(255, 34, 97, .14), 0 12px 28px -10px rgba(255, 34, 97, .6); }
}
.hpx__funnel b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.hpx__funnel li > span:last-child { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }

.hpx__duo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* CRM mock: a card moves through the pipeline */
.hpx__crm { border-radius: 16px; overflow: hidden; border: 1px solid rgba(20, 20, 18, .12); background: #F6F5F1; color: var(--ink); font-size: 12px;
  box-shadow: 0 40px 80px -40px rgba(20, 20, 18, .45), 0 2px 6px rgba(20, 20, 18, .06); }
.hpx__crm-top { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1A1A18; }
.hpx__crm-top i { width: 10px; height: 10px; border-radius: 50%; background: #3A3936; }
.hpx__crm-top i:nth-child(1) { background: #FF5F57; } .hpx__crm-top i:nth-child(2) { background: #FEBC2E; } .hpx__crm-top i:nth-child(3) { background: #28C840; }
.hpx__crm-top span { margin: 0 auto; transform: translateX(-20px); font-family: var(--mono); font-size: 11px; color: #8D897F; }
.hpx__crm-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.hpx__crm-nav { padding: 12px 8px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.hpx__crm-nav b { width: 28px; height: 28px; border-radius: 24%; background: #141412; color: #fff; padding: 5px; margin: 0 0 10px 4px; }
.hpx__crm-nav b svg { display: block; width: 100%; height: 100%; }
.hpx__crm-nav span { padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 11px; }
.hpx__crm-nav span.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hpx__crm-main { padding: 12px; display: grid; gap: 10px; align-content: start; }
.hpx__crm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.hpx__crm-kpis div { padding: 8px 9px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.hpx__crm-kpis b { display: block; font-size: 18px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hpx__crm-kpis span { font-size: 10px; color: var(--muted); }
.hpx__crm-board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.hpx__col { min-height: 290px; padding: 7px; border-radius: 10px; background: rgba(20, 20, 18, .04); display: flex; flex-direction: column; gap: 6px; }
.hpx__col p { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 2px 2px 3px; }
.hpx__col > span, .hpx__fly { display: block; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; padding: 6px 7px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.hpx__col small, .hpx__fly small { display: block; font-weight: 400; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.hpx__fly { position: absolute; left: 0; top: 0; width: 22%; border-color: var(--accent); box-shadow: 0 10px 24px -10px rgba(255, 34, 97, .6); opacity: 0; }
.hpx__fly::after { content: "●"; position: absolute; right: 6px; top: 5px; font-size: 7px; color: var(--accent); }
.hpx__crm.is-live .hpx__fly { animation: hpxFly 7s var(--ease) infinite; }
@keyframes hpxFly {
  0% { opacity: 0; transform: translate(var(--x1, 0px), calc(var(--y1, 0px) + 12px)); }
  6%, 20% { opacity: 1; transform: translate(var(--x1, 0px), var(--y1, 0px)); }
  28%, 42% { opacity: 1; transform: translate(var(--x2, 0px), var(--y2, 0px)); }
  50%, 64% { opacity: 1; transform: translate(var(--x3, 0px), var(--y3, 0px)); }
  72%, 90% { opacity: 1; transform: translate(var(--x4, 0px), var(--y4, 0px)); }
  100% { opacity: 0; transform: translate(var(--x4, 0px), var(--y4, 0px)) scale(.96); }
}

/* 3D guide book (same as on hanseprozess.de) */
.hpx__stage { position: relative; display: grid; place-items: center; padding: 18px 0 34px; }
.hpx__stage::before { content: ""; position: absolute; width: 90%; height: 90%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 34, 97, .16), transparent 70%); }
.rg-book { position: relative; display: block; width: min(230px, 56vw); aspect-ratio: 5 / 7; perspective: 1600px; container-type: inline-size; cursor: pointer; outline: none; }
.rg-book__3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(5deg); transition: transform 1s var(--ease); animation: rgFloat 6.5s ease-in-out infinite; }
@keyframes rgFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.rg-book:hover .rg-book__3d, .rg-book:focus-visible .rg-book__3d { transform: rotateY(-16deg) rotateX(3deg); }
.rg-book__face { position: absolute; inset: 0; border-radius: 3px 12px 12px 3px; backface-visibility: hidden; }
.rg-book__back { background: #0C0C0B; transform: translateZ(-17px) rotateY(180deg); }
.rg-book__spine { position: absolute; top: 0; bottom: 0; left: -17px; width: 34px; background: linear-gradient(90deg, #070706, #1d1c1a 55%, #0c0c0b); transform: rotateY(-90deg); }
.rg-book__edge { position: absolute; top: 1.2%; bottom: 1.2%; left: calc(100% - 17px); width: 32px; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #F4F1EA 0 2px, #E3DED3 2px 3px); }
.rg-book__page { inset: 1.2% 1.5% 1.2% 0; background: #FBFAF7; transform: translateZ(15px); padding: 12cqw 9cqw; color: var(--ink); overflow: hidden; }
.rg-book__page i { display: block; font: 400 3.2cqw/1 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rg-book__page b { display: block; font-size: 7.4cqw; line-height: 1.08; letter-spacing: -.03em; margin: 4cqw 0 2cqw; }
.rg-book__page em { display: block; font-family: var(--serif); font-size: 7cqw; line-height: 1.05; color: var(--muted); }
.rg-book__page s { display: block; text-decoration: none; height: 1.6cqw; border-radius: 1cqw; background: #E8E4DB; margin-top: 3.4cqw; }
.rg-book__page s:nth-of-type(2n) { width: 86%; } .rg-book__page s:nth-of-type(3n) { width: 64%; }
.rg-book__page u { display: block; text-decoration: none; margin-top: 7cqw; font-size: 15cqw; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.rg-book__cover { background: #0C0C0B; color: #F4F3EF; transform-origin: left center; transform: translateZ(17px); transition: transform 1.1s var(--ease);
  overflow: hidden; padding: 9cqw 8cqw 8cqw 10cqw; display: flex; flex-direction: column; box-shadow: inset 3cqw 0 3cqw -2cqw rgba(255, 255, 255, .08); }
.rg-book__cover::before { content: ""; position: absolute; right: -45%; top: -30%; width: 120%; height: 85%; background: radial-gradient(closest-side, rgba(255, 34, 97, .55), rgba(255, 34, 97, .12) 55%, rgba(255, 34, 97, 0)); }
.rg-book__cover::after { content: ""; position: absolute; left: 3.2cqw; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .1); }
.rg-book__cover > * { position: relative; }
.rg-book:hover .rg-book__cover, .rg-book:focus-visible .rg-book__cover { transform: translateZ(17px) rotateY(-34deg); }
.rg-book.is-peek .rg-book__3d { transform: rotateY(-14deg) rotateX(3deg); }
.rg-book.is-peek .rg-book__cover { animation: rgPeek 2.4s var(--ease) both; }
@keyframes rgPeek { 0% { transform: translateZ(17px) rotateY(0); } 30%, 60% { transform: translateZ(17px) rotateY(-78deg); } 100% { transform: translateZ(17px) rotateY(0); } }
.rg-book__mark { display: flex; align-items: center; gap: 2.6cqw; font-size: 3.6cqw; font-weight: 600; }
.rg-book__mark span { width: 8cqw; height: 8cqw; border-radius: 24%; background: #F4F3EF; color: #0C0C0B; padding: .8cqw; }
.rg-book__mark svg { width: 100%; height: 100%; display: block; }
.rg-book__k { margin-top: auto; font: 400 2.9cqw/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #A29E95; display: flex; align-items: center; gap: 2cqw; }
.rg-book__k::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--accent); }
.rg-book__t { font-size: 12.4cqw; line-height: .96; letter-spacing: -.045em; font-weight: 600; margin-top: 3.5cqw; }
.rg-book__em { font-family: var(--serif); font-style: italic; font-size: 9.6cqw; line-height: 1.02; color: #FF5A8A; margin-top: 2cqw; }
.rg-book__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8cqw; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 4cqw; }
.rg-book__stats b { display: block; font-size: 6.4cqw; letter-spacing: -.03em; line-height: 1; }
.rg-book__stats b small { font-size: .62em; color: #FF5A8A; margin-left: .6cqw; }
.rg-book__stats span { display: block; font-size: 2.6cqw; line-height: 1.3; color: #A29E95; margin-top: 1.6cqw; padding-right: 2cqw; }
.rg-book__by { margin-top: 6cqw; font-size: 3cqw; color: #A29E95; }
.rg-book__shadow { position: absolute; left: 6%; right: -4%; bottom: -9%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 20, 18, .32), rgba(20, 20, 18, 0)); animation: rgShadow 6.5s ease-in-out infinite; }
@keyframes rgShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .75; } }

/* team chips + checklist */
.hpx__duo--end { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
.hpx__team { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hpx__team li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.hpx__team i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 600 12px var(--sans); font-style: normal; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
.hpx__team li:first-child i { background: var(--accent); border-color: var(--accent); color: #fff; }
.hpx__team b { font-size: 14px; font-weight: 600; color: var(--ink); }
.hpx__done { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: hpd; }
.hpx__done li { counter-increment: hpd; }
.hpx__done li::after { content: counter(hpd, decimal-leading-zero); margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.hpx__done li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.hpx__done li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; transform: scale(0);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i, 0) * 70ms + 200ms); }
.hpx__done.is-in li::before { transform: scale(1); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .hpx__head, .hpx__main { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hpx__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hpx__show { padding-right: 9%; }
  .hpx__done { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hpx__duo, .hpx__usp { grid-template-columns: minmax(0, 1fr); }
  .hpx__funnel { grid-template-columns: 1fr; gap: 0; }
  .hpx__funnel::before { left: 24px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .hpx__funnel::after { left: 20px; top: 14px; margin: 0; }
  .hpx__funnel.is-live::after { animation-name: hpxPulseV; }
  @keyframes hpxPulseV { 0% { top: 14px; opacity: 0; } 3% { opacity: 1; } 92% { top: calc(100% - 24px); opacity: 1; } 100% { top: calc(100% - 24px); opacity: 0; } }
  .hpx__funnel li { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; padding-bottom: 12px; }
  .hpx__fn { grid-row: span 2; margin: 0; }
  .hpx__funnel b { align-self: end; }
  .hpx__team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hpx__stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hpx__stats div { padding: 12px 12px 11px; }
  .hpx__stats dt { font-size: 28px; }
  .hpx__show { padding-right: 12%; padding-bottom: 10%; }
  .hpx__phone { width: 30%; padding: 4px; border-radius: 16px; }
  .hpx__phone-screen { border-radius: 12px; }
  .hpx__notch { top: 7px; height: 8px; }
  .hpx__tz { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 10px; }
  .hpx__tzv { height: 46px; }
  .hpx__tzt b { font-size: 14.5px; }
  .hpx__more { width: 100%; justify-content: center; }
  .hpx__usp { padding: 18px 16px; border-radius: 20px; }
  .hpx__usp .btn { width: 100%; justify-content: center; }
  .hpx__crm { font-size: 10px; }
  .hpx__crm-body { grid-template-columns: minmax(0, 1fr); }
  .hpx__crm-nav { display: none; }
  .hpx__crm-main { padding: 8px; gap: 7px; }
  .hpx__crm-kpis { gap: 5px; }
  .hpx__crm-kpis div { padding: 6px 7px; }
  .hpx__crm-kpis b { font-size: 15px; }
  .hpx__crm-kpis span { font-size: 9px; }
  .hpx__crm-board { gap: 5px; }
  .hpx__col { min-height: 250px; padding: 5px; gap: 4px; }
  .hpx__col p { font-size: 8px; letter-spacing: .06em; }
  .hpx__col > span, .hpx__fly { padding: 5px; font-size: 9px; }
  .hpx__col small, .hpx__fly small { font-size: 8px; }
  .hpx__done { grid-template-columns: 1fr 1fr; }
  .hpx__done li { padding: 10px; font-size: 12.5px; gap: 8px; }
  .hpx__done li::before { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hpx__scroll, .hpx__bar i, .hpx__fn, .hpx__funnel::after, .hpx__fly, .rg-book__3d, .rg-book__shadow, .hpx__dot,
  .hpx__tzv--funnel i, .hpx__tzv--crm u, .hpx__tzv--book { animation: none !important; }
  .hpx__fly { display: none; }
  .hpx__panel, .hpx__stats div::after, .hpsec__mark i, .hpx__done li::before { transition: none; }
  .hpx__stats div::after, .hpsec__mark i, .hpx__done li::before { transform: none; }
}

/* perf: mini animations in the teaser tiles only run while the tiles are on screen */
.hpx__teasers:not(.is-live) .hpx__tzv--funnel i, .hpx__teasers:not(.is-live) .hpx__tzv--crm u, .hpx__teasers:not(.is-live) .hpx__tzv--book { animation-play-state: paused; }

/* KI-Chatbot mock: the messages arrive one after the other */
.hpx__chat { position: relative; width: min(300px, 78vw); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid rgba(20, 20, 18, .12);
  box-shadow: 0 40px 80px -40px rgba(20, 20, 18, .45), 0 2px 6px rgba(20, 20, 18, .06); }
.hpx__chat-top { display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: #141412; color: #fff; }
.hpx__chat-top i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.hpx__chat-top span { display: grid; line-height: 1.3; }
.hpx__chat-top b { font-size: 11.5px; font-weight: 600; }
.hpx__chat-top small { font-size: 9.5px; color: #8D897F; }
.hpx__chat-top u { margin-left: auto; text-decoration: none; font-family: var(--mono); font-size: 9.5px; color: #8D897F; }
.hpx__chat-body { display: grid; gap: 7px; padding: 13px; background: #F6F5F1; }
.hpx__chat-body p { max-width: 86%; padding: 7px 10px; border-radius: 13px; font-size: 11.5px; line-height: 1.4; }
.hpx__chat-body p.is-user { justify-self: end; border-bottom-right-radius: 4px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.hpx__chat-body p.is-bot { justify-self: start; border-bottom-left-radius: 4px; background: var(--accent); color: #fff; }
.hpx__chat-foot { display: flex; align-items: center; gap: 8px; padding: 10px 13px; }
.hpx__chat-foot span { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22A565; box-shadow: 0 0 0 4px rgba(34, 165, 101, .16); }
.hpx__chat-foot em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .03em; color: var(--muted); }
.hpx__chat.is-live .hpx__chat-body p { animation: hpxMsg 9s var(--ease) infinite both; }
.hpx__chat.is-live .hpx__chat-body p:nth-child(2) { animation-delay: 1.1s; }
.hpx__chat.is-live .hpx__chat-body p:nth-child(3) { animation-delay: 2.3s; }
.hpx__chat.is-live .hpx__chat-body p:nth-child(4) { animation-delay: 3.2s; }
@keyframes hpxMsg {
  0% { opacity: 0; transform: translateY(7px) scale(.98); }
  5%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .hpx__chat.is-live .hpx__chat-body p { animation: none !important; }
}

/* ---------- six real drafts from the generator: switcher above the browser */
.hpx__sites { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.hpx__site {
  padding: 7px 13px; border-radius: 99px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--muted);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.hpx__site:hover { color: var(--ink); border-color: rgba(20, 20, 18, .3); transform: translateY(-1px); }
.hpx__site[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hpx__site--own { text-transform: none; letter-spacing: .02em; }
.hpx__site--own::before { content: "↗"; margin-right: 6px; opacity: .6; }
@media (max-width: 700px) {
  .hpx__sites { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
  .hpx__sites::-webkit-scrollbar { display: none; }
}

/* ---------- before / after: the old page against the new one */
.hpx__usp-shot { padding-top: 0; }
.hpx__ba { position: relative; margin-top: 0; aspect-ratio: 16 / 10; overflow: hidden; cursor: ew-resize; touch-action: pan-y; container-type: inline-size;
  border-color: rgba(20, 20, 18, .14); box-shadow: 0 40px 80px -40px rgba(20, 20, 18, .45), 0 2px 6px rgba(20, 20, 18, .06); }
.hpx__ba-pane { position: absolute; inset: 0; display: flex; flex-direction: column; }
.hpx__ba-pane--new { clip-path: inset(0 0 0 var(--pos, 54%)); }
.hpx__ba .browser__bar { flex: none; }
.hpx__ba .browser__url { max-width: 78%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hpx__ba-warn { display: inline-flex; align-items: center; gap: 5px; margin-right: 7px; color: #FF8A8A; font-weight: 600; }
.hpx__ba-warn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.hpx__ba-screen { flex: 1; overflow: hidden; background: #fff; }
.hpx__ba-screen img { display: block; width: 100%; height: auto; }

/* the old page is a reconstruction in the style of the 2000s, not a customer's site */
.hpx__old { flex: 1; overflow: hidden; padding: 10px 12px 0; background: #E8E6DE; color: #1A1A18;
  font-family: "Times New Roman", Times, serif; font-size: clamp(8px, 2.6cqw, 14px); line-height: 1.35; }
.hpx__old-head { padding: 6px 10px; border: 4px ridge #8AA0D8; background: #1F3C88; color: #FFE45C; font-weight: 700; letter-spacing: .08em; text-align: center; }
.hpx__old-nav { margin: 6px 0 0; color: #00309A; font-size: .92em; text-align: center; text-decoration: underline; }
.hpx__old-welcome { margin: 8px 0 0; color: #B00; font-weight: 700; text-align: center; }
.hpx__old-row { margin-top: 8px; display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 10px; align-items: start; }
.hpx__old-img { display: block; aspect-ratio: 4 / 3; border: 2px inset #B9B3A1;
  background: repeating-linear-gradient(45deg, #C9C3B1 0 6px, #D8D3C4 6px 12px); }
.hpx__old-row p { margin: 0; }
.hpx__old-ticker { margin: 8px 0 0; padding: 3px 6px; background: #FFF59D; color: #C62828; font-weight: 700; text-align: center; }
.hpx__old-foot { margin: 8px 0 0; color: #555047; font-size: .85em; text-align: center; }

.hpx__ba-line { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos, 54%); width: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 20, 18, .25); pointer-events: none; }
.hpx__ba-knob { position: absolute; z-index: 5; top: 50%; left: var(--pos, 54%); width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 10px 24px -8px rgba(20, 20, 18, .55); pointer-events: none; }
.hpx__ba-tag { position: absolute; z-index: 4; bottom: 12px; padding: 5px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 600; pointer-events: none; }
.hpx__ba-tag--old { left: 12px; background: rgba(20, 20, 18, .78); color: #fff; }
.hpx__ba-tag--new { right: 12px; background: var(--accent); color: #fff; }
.hpx__ba-range { position: absolute; z-index: 6; left: var(--pos, 54%); top: 50%; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; border: 0; -webkit-appearance: none; appearance: none; }
.hpx__ba-range:focus-visible ~ .hpx__ba-knob { box-shadow: 0 0 0 3px var(--accent), 0 10px 24px -8px rgba(20, 20, 18, .55); }
.hpx__ba-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- all six drafts, each one to look at in full */
.hpx__works { margin-top: clamp(36px, 5vw, 60px); }
.hpx__works-head { max-width: 62ch; }
.hpx__works-head .hpx__p { margin-top: 10px; }
.hpx__wgrid { list-style: none; margin: clamp(18px, 2.4vw, 26px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.hpx__work { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.hpx__work:hover, .hpx__work:focus-visible { border-color: rgba(255, 34, 97, .42); box-shadow: 0 22px 44px -26px rgba(255, 34, 97, .5); transform: translateY(-3px); }
.hpx__work-sh { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #F4F3EF; border-bottom: 1px solid var(--line); }
.hpx__work-sh img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.hpx__work:hover .hpx__work-sh img, .hpx__work:focus-visible .hpx__work-sh img { transform: translateY(-38%); }
.hpx__work-t { display: grid; gap: 2px; padding: 11px 13px 12px; }
.hpx__work-t b { font-size: 14px; font-weight: 600; }
.hpx__work-t small { color: var(--muted); font-size: 12px; }
.hpx__work-a { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(20, 20, 18, .72); color: #fff; opacity: 0; transition: opacity .25s; }
.hpx__work:hover .hpx__work-a, .hpx__work:focus-visible .hpx__work-a { opacity: 1; }

/* ---------- lightbox: the whole page, desktop and phone */
.hpx__lb { width: min(1120px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); overflow: hidden; }
.hpx__lb::backdrop { background: rgba(14, 14, 13, .72); backdrop-filter: blur(3px); }
.hpx__lb-in { display: flex; flex-direction: column; max-height: 92vh; }
.hpx__lb-top { display: flex; align-items: center; gap: 14px; padding: 15px 16px 13px; border-bottom: 1px solid var(--line); }
.hpx__lb-t { font-size: 15px; font-weight: 600; }
.hpx__lb-live { margin-left: auto; color: var(--accent); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hpx__lb-live:hover { text-decoration: underline; }
.hpx__lb-x { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.hpx__lb-x:hover { background: #F4F3EF; border-color: rgba(20, 20, 18, .3); }
.hpx__lb-body { --lbh: min(62vh, 580px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 18px 16px 6px; }
.hpx__lb-body figure { margin: 0; min-width: 0; }
.hpx__lb-body figcaption { margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.hpx__lb-frame { border-radius: 14px; overflow: hidden; border: 1px solid rgba(20, 20, 18, .14); }
.hpx__lb-view { height: var(--lbh); overflow: auto; overscroll-behavior: contain; background: #F4F3EF; }
.hpx__lb-view img { display: block; width: 100%; height: auto; }
.hpx__lb-view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hpx__lb-pframe { position: relative; width: calc(var(--lbh) * 9 / 19.2); padding: 7px; border-radius: 26px; background: #0C0C0B; }
.hpx__lb-pframe .hpx__notch { top: 15px; }
.hpx__lb-view--m { height: calc(var(--lbh) - 14px); border-radius: 20px; }
.hpx__lb-hint { margin: 0; padding: 10px 16px 16px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 860px) {
  .hpx__wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hpx__lb { width: 96vw; border-radius: 18px; }
  .hpx__lb-body { --lbh: min(56vh, 460px); grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hpx__lb-desk { display: none; }
}
@media (max-width: 600px) {
  .hpx__ba-tag { bottom: 9px; padding: 4px 9px; font-size: 10.5px; }
  .hpx__ba-tag--old { left: 9px; }
  .hpx__ba-tag--new { right: 9px; }
  .hpx__ba-knob { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .hpx__ba-note { font-size: 11.5px; }
  .hpx__wgrid { gap: 10px; }
  .hpx__work { border-radius: 14px; }
  .hpx__work-t { padding: 9px 11px 10px; }
  .hpx__work-t b { font-size: 13px; }
  .hpx__work-t small { font-size: 11.5px; }
  .hpx__lb-top { gap: 10px; padding: 12px 13px 11px; }
  .hpx__lb-t { font-size: 13.5px; }
  .hpx__lb-live { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hpx__work, .hpx__work-sh img, .hpx__work-a { transition: none; }
  .hpx__work:hover, .hpx__work:focus-visible { transform: none; }
  .hpx__work:hover .hpx__work-sh img, .hpx__work:focus-visible .hpx__work-sh img { transform: none; }
}
