/* autoflow.ki / Portfolio. Extends the existing Forest & Brass identity.
   Motion: GSAP (ScrollTrigger, SplitText), Lenis und Vanta NET aus ./vendor/, gesteuert
   von portfolio.js. Ohne JS oder mit reduzierter Bewegung gilt das statische Layout. */
@font-face {
  font-family: "Inter"; src: url("./fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Anton"; src: url("./fonts/Anton-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Caveat"; src: url("./fonts/Caveat-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
.portfolio-page {
  --container: 1440px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --muted: #a1a693;
  overflow-x: clip;
}
.portfolio-page :focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 5px; }
.portfolio-page p > a { text-decoration: underline; text-underline-offset: .2em; }
.portfolio-page main:focus { outline: none; }
.portfolio-page .nav { background: rgba(18,22,15,.9); }
.portfolio-page .nav__inner { min-height: 84px; }
.portfolio-page .nav__links > a { position: relative; }
.portfolio-page .nav__links > a::after {
  content: ""; position: absolute; bottom: -8px; left: 0; right: 0; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.portfolio-page .nav__links > a[aria-current="location"]::after { transform: scaleX(1); }
.portfolio-page .progress { width: 100%; transform: scaleX(0); transform-origin: left; transition: none; height: 2px; }
.portfolio-page .btn { will-change: auto; transition: transform 160ms var(--ease-out), background 160ms ease, border-color 160ms ease; }
.portfolio-page .btn::after { display: none; }
.portfolio-page .btn:hover { transform: none; box-shadow: none; }
.portfolio-page .btn:active { transform: scale(.97); }
.portfolio-page .btn span { font-size: 1.25em; margin-left: .7rem; }
.text-brass { color: var(--brass-bright); }
.portfolio-page .reveal { opacity: 1; transform: none; animation: none; }
/* GSAP schreibt Deckkraft und Transform direkt; CSS-Transitions würden jeden Frame nachziehen. */
.portfolio-page[data-motion="on"] .reveal,
.portfolio-page[data-motion="on"] .flow-node,
.portfolio-page[data-motion="on"] .flow-map__paths,
.portfolio-page[data-motion="on"] .flow-map__result,
.portfolio-page[data-motion="on"] .about__portrait img { transition: none; }
.portfolio-page[data-motion="on"] .about__portrait:hover img { transform: none; }
/* Eyebrow-Strich und Ablauf-Schritte werden per GSAP gezeichnet bzw. aufgehellt. */
.portfolio-page .eyebrow::before { transform-origin: left; transform: scaleX(var(--eb, 1)); }
.steps--live .step__no { transition: color .45s ease; }
.steps--live .step:not(.is-lit) .step__no { color: var(--muted); }
.split-block { display: block; }

/* Lenis übernimmt das weiche Scrollen; natives smooth würde doppelt glätten. */
html.lenis { scroll-behavior: auto; }
/* motion-boot.js: Hero bis zum ersten GSAP-Frame verstecken (max. 3 s). */
html.motion-boot .hero--portfolio .hero__copy,
html.motion-boot .hero--portfolio .hero__stage,
html.motion-boot .hero--portfolio .hero__bottom { opacity: 0; }

/* Nav taucht beim Runterscrollen ab, beim Hochscrollen wieder auf. */
.portfolio-page .nav { transition: transform 380ms var(--ease-out), background .1s ease, border-color .1s ease; }
.portfolio-page .nav.nav--hidden:not(:focus-within) { transform: translateY(-100%); }

/* Vanta-NET-Hintergrund: rechts stark, hinter dem Text fast unsichtbar. */
.hero__vanta {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, rgba(0,0,0,.35) 42%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 18%, rgba(0,0,0,.35) 42%, #000 75%);
}
.hero__vanta.is-live { opacity: .85; }
.hero__vanta.is-live ~ .hero__grid { opacity: .08; }
.portfolio-page .hero--portfolio {
  padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: 0; overflow: clip;
  min-height: min(850px, calc(100svh - 84px)); display: flex; flex-direction: column;
}
.hero--portfolio .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5%; flex: 1; }
.hero--portfolio .hero__copy { padding-bottom: 3.5rem; }
.hero--portfolio .hero__aurora { opacity: .55; filter: none; }
.hero--portfolio .hero__grid { opacity: .2; background-size: 80px 80px; }
.hero--portfolio .pill { border: 0; padding: 0; background: none; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; white-space: normal; }
.hero--portfolio .h1 { max-width: none; font-size: clamp(3.6rem, 6.35vw, 6.35rem); line-height: 1.03; letter-spacing: -.015em; }
.hero__line { display: block; }
/* Oberzeile in der H1: Suchbegriff + Ort, optisch wie die frühere Pill. */
.hero__kicker { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.75rem; font-family: "Inter", system-ui, sans-serif; font-size: .7rem; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .09em; color: var(--body); }
.hero__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 10px var(--sage); flex: none; }
.hero__line--gold { color: var(--brass-bright); }
.hero--portfolio .hero__sub { font-size: clamp(1rem, 1.2vw, 1.125rem); max-width: 42ch; margin-top: 1.5rem; margin-bottom: 1.8rem; }
.hero--portfolio .hero__actions { gap: 1.4rem; flex-wrap: wrap; }
.hero--portfolio .btn--lg { font-size: .9rem; --pad-x: 1.35rem; --pad-y: .95rem; }
.hero__text-link { display: inline-flex; align-items: center; gap: .8rem; color: var(--cream); font-size: .9rem; min-height: 44px; }
.hero__text-link span { color: var(--brass-bright); transition: transform 200ms var(--ease-out); }
.hero--portfolio .hero__note { font-size: .76rem; max-width: 48ch; }
.hero--portfolio .hero__stage { position: relative; margin: 0; max-width: none; padding-top: 3rem; padding-bottom: 2rem; }
.stage__label { display: flex; align-items: center; gap: 8px; font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1rem; color: var(--muted); }
.stage__label > span:last-child { margin-left: auto; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass-bright); flex: none; }
.hero__stage .mock { z-index: 1; border-radius: 10px; background: linear-gradient(140deg,#28332a,#1a231b); box-shadow: 0 35px 90px -40px #000; transform: perspective(1000px) rotateY(-7deg) rotateX(3deg); }
.hero__stage .mock__body { padding: 18px; }
.hero__stage .mock__bars { height: 96px; }
.hero__stage .mock__bars i { animation: none; }
.hero__stage .mock__kpi { padding: 12px 9px; }
.hero__stage .mock__value { font-variant-numeric: tabular-nums; font-size: clamp(1rem, 1.7vw, 1.55rem); }
.hero__stage .mock__label { font-size: .56rem; letter-spacing: .065em; }
.hero__stage .mock__delta { font-size: .62rem; }
.hero__stage .mock__rows li { font-size: .66rem; }
.hero__stage .mock__rows em { font-size: .6rem; }
.hero__stage .mock__title { font-size: .66rem; margin-left: 4px; }
.hero__stage .mock__caption { font-size: .66rem; max-width: 48ch; padding-top: 2.2rem; }
.hero__orbit { position: absolute; inset: -8% -18%; pointer-events: none; transform: rotate(-30deg); }
.hero__orbit i { position: absolute; inset: 7%; border: 1px solid rgba(201,154,58,.15); border-radius: 50%; }
.hero__orbit i:nth-child(2) { inset: 14%; border-style: dashed; opacity: .55; }
.hero__orbit i:nth-child(3) { inset: 0; opacity: .4; }
.hero__orbit::after { content: ""; position: absolute; top: 22%; right: 17%; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-bright); box-shadow: 0 0 25px rgba(201,154,58,.5); }
.stage__source { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid rgba(201,154,58,.3); padding: 10px 14px; border-radius: 7px; font-size: .7rem; z-index: 2; }
.stage__source img { width: 18px; height: 18px; object-fit: contain; }
.stage__source--mail { top: -12px; right: 22%; transform: rotate(5deg); }
.stage__source--data { left: -16px; top: 35%; transform: rotate(-5deg); }
.stage__source--data span { color: var(--brass); font-size: 1.1rem; }
.stage__receipt { position: absolute; bottom: 65px; right: -12px; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 15px 18px; border: 1px solid rgba(201,154,58,.35); border-radius: 8px; background: #293228; box-shadow: 0 14px 35px #0005; transform: rotate(-3deg); }
.stage__check { width: 26px; height: 26px; display: grid; place-items: center; background: var(--brass); color: var(--bg); border-radius: 50%; }
.stage__receipt strong { display: block; font-size: .72rem; color: var(--cream); }
.stage__receipt div > span { display: block; font-size: .62rem; color: var(--muted); }
.hero__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; padding-block: 1.5rem; border-top: 1px solid var(--line); gap: 1rem; }
.scroll-cue { display: flex; gap: 1rem; align-items: center; min-height: 44px; font-size: .74rem; color: var(--body); }
.scroll-cue__icon { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--brass-bright); }
.hero__location { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hero__location span { color: var(--brass); margin-left: 1rem; }

/* Scroll explanation: the document keeps native scrolling at every size. */
.flow-story { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: 6rem 4rem; }
.flow-story__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr); gap: 10%; align-items: start; }
.flow-story__visual { position: sticky; top: 120px; }
.flow-story .h2 { font-size: clamp(2.6rem,4.3vw,4.3rem); }
.flow-story .h2 > span { color: var(--brass-bright); }
.flow-map { position: relative; width: 100%; aspect-ratio: 600 / 440; margin-top: 1.5rem; isolation: isolate; }
.flow-map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px,transparent 1px); background-size: 20px 20px; mask-image: radial-gradient(ellipse,#000,transparent 75%); }
.flow-map__wires { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brass); overflow: visible; }
.flow-map__paths { opacity: .65; clip-path: inset(0); transition: opacity 600ms ease, clip-path 600ms var(--ease-in-out); }
.flow-node { position: absolute; display: grid; width: 29%; padding: 13px 12px; background: #1c241b; border: 1px solid var(--line); border-radius: 6px; transition: transform 600ms var(--ease-in-out), border-color 200ms ease; }
.flow-node > span { color: var(--brass); font-size: .6rem; }
.flow-node strong { color: var(--cream); font-size: clamp(.65rem,1vw,.9rem); font-weight: 500; }
.flow-node small { color: var(--muted); font-size: .58rem; }
.flow-node--one { top: 7%; left: 0; }
.flow-node--two { top: 7%; right: 0; }
.flow-node--three { bottom: 7%; left: 0; }
.flow-node--four { bottom: 7%; right: 0; }
.flow-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 25%; aspect-ratio: 1; border: 1px solid rgba(201,154,58,.55); border-radius: 25%; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 60px -20px rgba(201,154,58,.3); }
.flow-core__symbol { color: var(--cream); font-size: clamp(2rem,4vw,3.5rem); font-weight: 750; letter-spacing: -.08em; line-height: 1; }
.flow-core__symbol span { color: var(--brass); }
.flow-core small { font-size: .6rem; margin-top: .6rem; color: var(--muted); }
.flow-map__result { position: absolute; bottom: -8%; left: 0; right: 0; display: flex; gap: .65rem; justify-content: center; align-items: center; color: var(--brass-bright); font-size: .72rem; }
.flow-story__progress { display: flex; align-items: center; gap: 12px; margin-top: 3rem; font-size: .6rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.flow-story__progress > div { height: 1px; background: var(--line); flex: 1; }
.flow-story__progress i { display: block; background: var(--brass); width: 100%; height: 1px; transform-origin: left; }
.flow-chapter { min-height: 63vh; min-height: 63svh; display: flex; flex-direction: column; justify-content: center; padding-block: 4rem; }
.chapter-number { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-bright); display: block; margin-bottom: 1.6rem; }
.flow-chapter h3 { font-size: clamp(1.6rem,2.6vw,2.5rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.15; margin-bottom: 1.4rem; }
.flow-chapter p { font-size: .95rem; line-height: 1.85; max-width: 38ch; }
.chapter-tag { display: inline-block; color: var(--muted); font-size: .75rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.flow-chapter .hero__text-link { margin-top: 1.5rem; }
/* Die Szene selbst läuft als scrub-Timeline in portfolio.js (buildFlow). */
.flow-ready .flow-map__paths path { stroke-dasharray: 1; }
.flow-map__pulses { color: var(--brass-bright); }
.flow-map__pulses path { stroke-dasharray: .05 .95; stroke-linecap: round; opacity: 0; }

/* The real project is the centerpiece, with a sticky screenshot narrative. */
.portfolio-page #referenzen { background: var(--bg); }
.portfolio-page .section__head--lead h2 { font-size: clamp(2.6rem,4.7vw,4.5rem); }
.portfolio-page .section__head p { font-size: 1rem; line-height: 1.8; }
.featured-project { padding: clamp(1.25rem,3vw,2.5rem); border: 1px solid rgba(201,154,58,.25); background: linear-gradient(150deg,#232c20,#181e16 55%); border-radius: 10px; margin-bottom: 5rem; }
.project-intro { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding-bottom: 2.5rem; }
.project-index { display: block; color: var(--brass-bright); font-size: .63rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.project-intro h3 { font-size: clamp(1.9rem,3.5vw,3rem); font-weight: 600; letter-spacing: -.07em; line-height: 1.1; }
.project-intro h3 span { color: var(--brass); }
.project-intro p { font-size: .8rem; color: var(--body); }
.project-open { display: inline-flex; align-items: center; gap: 1rem; font-size: .8rem; white-space: nowrap; }
.project-open > span { display: grid; place-items: center; border: 1px solid var(--brass); color: var(--brass-bright); width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; transition: transform 160ms var(--ease-out), background 160ms ease; }
.project-tour { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: 4%; align-items: start; }
.project-screen { position: sticky; top: 160px; min-width: 0; border: 1px solid #ffffff15; border-radius: 7px; overflow: hidden; box-shadow: 0 30px 60px -30px #0008; background: #151b13; }
.project-screen__bar { display: flex; align-items: center; gap: .8rem; padding: 13px 14px; font-size: .52rem; color: var(--muted); }
.window-dots { color: #8a916e; letter-spacing: .2em; font-size: .48rem; }
.project-screen__badge { margin-left: auto; color: var(--brass-bright); }
.project-screen__images { position: relative; }
.project-screen__image { display: block; }
.project-screen__image img { width: 100%; height: auto; }
.project-screen__footer { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; font-size: .55rem; color: var(--muted); }
.project-chapter { min-height: 55svh; padding-block: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.project-chapter h4 { color: var(--cream); font-size: clamp(1.25rem,1.9vw,1.8rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 1rem; }
.project-chapter p { font-size: .85rem; line-height: 1.8; }
.project-outro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.7rem; }
.project-outro dl { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.project-outro dt { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.project-outro dd { color: var(--cream); font-size: .7rem; }
.project-outro .hero__text-link { font-size: .75rem; white-space: nowrap; }
.project-ready .project-screen__images { aspect-ratio: 2926 / 1388; }
.project-ready .project-screen__image { position: absolute; inset: 0; visibility: hidden; overflow: hidden; }
.project-ready .project-screen__image img { height: 100%; object-fit: contain; background: #fff; }
/* Neues Bild wischt über das vorherige (GSAP clip-path). */
.project-ready .project-screen__image.is-current { visibility: visible; z-index: 2; }
.project-ready .project-screen__image.is-previous { visibility: visible; z-index: 1; }
.portfolio-page .case { background: transparent; border-radius: 7px; transition: border-color 200ms ease; }
.portfolio-page .case:hover { transform: none; box-shadow: none; }
.portfolio-page .case__body { padding: 1.4rem; }
.portfolio-page .case__client { font-size: .6rem; color: var(--brass-bright); }
.portfolio-page .case h3 { font-size: 1.05rem; }
.portfolio-page .case p { font-size: .84rem; }
.portfolio-page .case__shot { aspect-ratio: 16 / 10; }
.portfolio-page .case__img { object-fit: contain; background: #182020; }
.portfolio-page .case:hover .case__img { transform: none; }
.case__detail { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.5rem; font-size: .72rem; color: var(--cream); min-height: 44px; }
.case__detail span { color: var(--brass); font-size: 1.2rem; }
.portfolio-page .case__chips { padding-bottom: 1rem; }
.portfolio-page .marquee { margin-top: 4rem; mask-image: none; }
.portfolio-page .marquee__track { animation: none; width: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 2.5rem; }
.portfolio-page .marquee img { height: 22px; max-width: 100px; object-fit: contain; }
/* Laufband nur mit aktiver Bewegung; Abstand per margin, damit -50 % nahtlos loopt. */
.portfolio-page .marquee--live { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.portfolio-page .marquee--live .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; }
.portfolio-page .marquee--live img { margin-right: 3.5rem; flex: none; }
.portfolio-page .offers--two { max-width: none; }
.portfolio-page .offer { min-width: 0; border-radius: 7px; background: transparent; box-shadow: none; transition: border-color 200ms ease; }
.portfolio-page .offer .btn { white-space: normal; text-align: center; }
.portfolio-page .offer--featured { background: rgba(201,154,58,.025); border-color: rgba(201,154,58,.4); }
.portfolio-page .offer:hover { transform: none; box-shadow: none; }
.portfolio-page .offer h3 { font-size: 1.5rem; letter-spacing: -.04em; }
.portfolio-page .offer__tag { color: var(--brass-bright); font-size: .65rem; }
.portfolio-page .scope { border-radius: 0; background: none; }
.portfolio-page #prozess { background: var(--bg-2); border-top: 1px solid var(--line); }
.portfolio-page #prozess .illus { display: none; }
.portfolio-page .steps { position: relative; padding-top: 2rem; }
.portfolio-page .steps::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg,var(--brass),var(--line)); transform-origin: left; transform: scaleX(var(--steps-line, 1)); }
.portfolio-page .step { border: 0; padding-left: 0; padding-right: 1.5rem; }
.portfolio-page .step__no { color: var(--brass); font-size: 3.5rem; margin-bottom: 2rem; }
.portfolio-page .training__card { border-radius: 7px; }
.portfolio-page .training__card .illus { display: none; }
.portfolio-page #training { padding-top: 2rem; background: var(--bg-2); }
.portfolio-page .about { gap: 10%; }
.portfolio-page .about__portrait { border-radius: 7px; }
.portfolio-page .about__portrait:hover img { transform: none; }
.portfolio-page #faq { background: var(--bg); border-top: 1px solid var(--line); }
.portfolio-page .faq__list { max-width: none; gap: 0; }
.portfolio-page .faq__item { background: transparent; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.portfolio-page .faq__item summary { padding: 1.5rem 0; }
.portfolio-page .faq__item p { padding: 0 0 1.5rem; max-width: 75ch; }
.portfolio-page .cta-final { background: var(--bg-2); }
.portfolio-page .cta-final h2 { font-size: clamp(2.8rem,6vw,5.5rem); }
.portfolio-page .cta-final__glow { opacity: .5; }
.portfolio-page .form input, .portfolio-page .form select, .portfolio-page .form textarea { border-radius: 6px; }
.portfolio-page .form input::placeholder, .portfolio-page .form textarea::placeholder { opacity: 1; }
.portfolio-page .motion-toggle { display: none; }
.portfolio-page.motion-ready .motion-toggle { display: inline-flex; }
.motion-toggle { align-items: center; gap: .5rem; background: transparent; color: var(--muted); font: inherit; font-size: .7rem; border: 1px solid var(--line); border-radius: 4px; padding: .6rem .8rem; min-height: 44px; cursor: pointer; }
.portfolio-page[data-motion="off"] *, .portfolio-page[data-motion="off"] *::before, .portfolio-page[data-motion="off"] *::after { animation: none !important; transition-duration: 0s !important; }
.portfolio-page[data-motion="off"] .reveal { opacity: 1; transform: none; }
.portfolio-page[data-motion="off"] .flow-story__visual,
.portfolio-page[data-motion="off"] .project-screen { position: relative; top: auto; }
.portfolio-page[data-motion="off"] .flow-chapter,
.portfolio-page[data-motion="off"] .project-chapter { min-height: 0; }

@media (hover: hover) and (pointer: fine) {
  .portfolio-page .btn:hover { transform: translateY(-2px); }
  .portfolio-page .btn:active { transform: scale(.97); }
  .hero__text-link:hover span { transform: translate(2px,-2px); }
  .project-open:hover > span { transform: rotate(45deg); background: #c99a3a14; }
  .case__detail:hover, .hero__text-link:hover { color: var(--brass-bright); }
}
@media (min-width: 901px) and (min-height: 701px) and (prefers-reduced-motion: no-preference) {
  .portfolio-page.motion-ready .scroll-cue__icon { animation: scroll-invite 1800ms var(--ease-in-out) 1.6s 2; }
  @keyframes scroll-invite { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  /* Neigung des Dashboards setzt GSAP (buildHero), damit es beim Scrollen gerade rückt. */
  .portfolio-page[data-motion="on"] .hero__stage .mock { transform: none; }
}
@media (max-width: 1100px) {
  .hero--portfolio .hero__inner { gap: 3%; }
  .hero--portfolio .h1 { font-size: 6.4vw; }
  .hero--portfolio .hero__actions { gap: .8rem; }
  .hero__stage .mock__rows li { flex-wrap: wrap; }
  .flow-story__layout { gap: 7%; }
  .project-outro { align-items: flex-start; }
  .project-outro dl { gap: 1.5rem; }
}
@media (max-width: 900px), (max-height: 700px) {
  .flow-story__visual { position: relative; top: auto; }
  .flow-story__layout { grid-template-columns: 1fr; }
  .flow-story__visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .flow-story__chapters { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
  .flow-chapter { min-height: 0; padding-block: 2rem; justify-content: flex-start; }
  .flow-chapter h3 { font-size: 1.5rem; }
  .flow-chapter p { font-size: .85rem; }
  .chapter-number { font-size: .6rem; }
  .project-tour { grid-template-columns: 1fr; }
  .project-screen { position: relative; top: auto; }
  .project-tour__chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .project-chapter { min-height: 0; }
  .project-screen__image + .project-screen__image { border-top: 8px solid var(--bg); }
}
@media (max-width: 900px) {
  .portfolio-page .nav__inner { min-height: 76px; }
  .portfolio-page .nav__links { inset: 76px 0 auto; max-height: calc(100dvh - 76px); overflow-y: auto; transform: translateY(-8px); opacity: 0; transition: opacity 200ms ease, transform 200ms var(--ease-out), visibility 200ms; padding-block: 1rem 2rem; }
  .portfolio-page .nav__links[data-open] { opacity: 1; transform: none; }
  .portfolio-page .nav__links > a::after { display: none; }
  .portfolio-page.nav-open { overflow: clip; }
  .hero--portfolio .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero--portfolio .h1 { font-size: clamp(3.5rem,10.5vw,6rem); }
  .hero--portfolio .hero__sub { max-width: 48ch; }
  .hero--portfolio .hero__copy { padding-bottom: 2.5rem; }
  .hero--portfolio .hero__stage { width: 100%; max-width: 620px; margin: 1.5rem auto 2rem; padding-top: 2rem; }
  .hero__stage .mock { transform: none; }
  .hero__stage .mock__value { font-size: 1.4rem; }
  .hero__stage .mock__bars { height: 90px; }
  .hero__stage .mock__rows li { font-size: .75rem; }
  .hero__stage .mock__rows li:nth-child(n+3) { display: flex; }
  .stage__source--mail { top: -20px; right: 8%; }
  .stage__source--data { left: -8px; }
  .hero__location { display: none; }
  .project-intro { flex-wrap: wrap; }
  .project-intro p { margin-right: auto; }
  .portfolio-page .cases { grid-template-columns: repeat(2,1fr); }
  .portfolio-page .cases .case:last-child { grid-column: 1 / -1; max-width: 600px; }
}
@media (max-width: 600px) {
  .portfolio-page .nav__cta { gap: .6rem; }
  .portfolio-page .nav__cta > .btn { font-size: .72rem; --pad-x: .9rem; --pad-y: .7rem; }
  .portfolio-page .brand__logo { height: 24px; }
  .hero--portfolio { padding-top: 2.5rem; }
  .hero--portfolio .pill { font-size: .56rem; letter-spacing: .04em; }
  .hero__kicker { font-size: .56rem; letter-spacing: .04em; }
  .hero--portfolio .h1 { font-size: clamp(3.2rem,13vw,4.8rem); }
  .hero--portfolio .hero__actions { flex-direction: row; align-items: center; gap: .65rem; }
  .hero--portfolio .hero__actions .btn { width: auto; }
  .hero--portfolio .hero__text-link { font-size: .8rem; }
  .hero--portfolio .hero__stage { margin-top: 1rem; }
  .hero__stage .mock__kpis { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .hero__stage .mock__kpi:last-child { grid-column: auto; }
  .hero__stage .mock__kpi { padding: 10px 6px; }
  .hero__stage .mock__body { padding: 10px; gap: 10px; }
  .hero__stage .mock__value { font-size: 1rem; }
  .hero__stage .mock__delta { font-size: .53rem; }
  .hero__stage .mock__label { font-size: .5rem; }
  .hero__stage .mock__rows li { font-size: .6rem; }
  .hero__stage .mock__rows em { font-size: .55rem; }
  .stage__source--data { top: 31%; left: -9px; font-size: .6rem; padding: 6px 9px; }
  .stage__receipt { bottom: 58px; right: -4px; padding: 10px 12px; }
  .stage__receipt strong { font-size: .65rem; }
  .stage__label { font-size: .52rem; }
  .hero__stage .mock__caption { max-width: 44ch; font-size: .61rem; }
  .scroll-cue { font-size: .65rem; }
  .flow-story { padding-block: 4rem 2rem; }
  .flow-story .h2 { font-size: clamp(2.2rem,10vw,3.5rem); }
  .flow-node { padding: 9px; width: 31%; }
  .flow-node strong { font-size: .65rem; }
  .flow-node small { font-size: .47rem; }
  .flow-core small { font-size: .45rem; }
  .flow-core__symbol { font-size: 2rem; }
  .flow-story__chapters { grid-template-columns: 1fr; gap: 0; }
  .flow-chapter { padding: 2rem 0; border-top: 1px solid var(--line); }
  .flow-chapter h3 { font-size: 1.9rem; }
  .flow-chapter p { max-width: none; font-size: .95rem; }
  .chapter-number { margin-bottom: 1rem; }
  .portfolio-page .section__head--lead h2 { font-size: clamp(2.3rem,9vw,3.4rem); }
  .featured-project { margin-inline: -4px; padding: 1rem; margin-bottom: 3rem; }
  .project-intro { gap: 1rem; padding-bottom: 1.5rem; }
  .project-intro > div { width: 100%; }
  .project-intro p { font-size: .7rem; }
  .project-open { font-size: .7rem; gap: .5rem; }
  .project-open > span { width: 36px; height: 36px; }
  .project-tour__chapters { grid-template-columns: 1fr; gap: 0; }
  .project-chapter { padding-block: 1.5rem; }
  .project-chapter + .project-chapter { border-top: 1px solid var(--line); }
  .project-screen__badge, .project-screen__footer > span:last-child { display: none; }
  .project-screen__bar { padding: 10px; font-size: .5rem; }
  .project-screen__footer { font-size: .5rem; padding: 10px; }
  .project-outro { flex-direction: column; gap: 1rem; }
  .project-outro dl { display: grid; grid-template-columns: 1fr 1fr; }
  .project-outro dd { font-size: .65rem; }
  .portfolio-page .cases { grid-template-columns: 1fr; }
  .portfolio-page .case__body { padding: 1.25rem; }
  .portfolio-page .marquee__track { gap: 1.5rem; }
  .portfolio-page .marquee img { max-width: 75px; height: 20px; }
  .portfolio-page .steps { gap: 2rem; }
  .portfolio-page .step { display: grid; grid-template-columns: 48px 1fr; gap: .5rem 1rem; padding-right: 0; }
  .portfolio-page .step__no { grid-row: span 2; font-size: 2.2rem; margin: 0; }
  .portfolio-page .step h3 { margin: 0; }
  .portfolio-page .step p { grid-column: 2; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-page .flow-story__visual, .portfolio-page .project-screen { position: relative; top: auto; }
  .portfolio-page .flow-chapter { min-height: 0; padding-block: 2rem; }
  .portfolio-page .project-chapter { min-height: 0; }
  .portfolio-page .hero__stage .mock { transform: none; }
  .portfolio-page .reveal.motion-pending { opacity: 1; transform: none; }
}

/* ---------- Lösungskatalog (Leistungen) ---------- */
.catalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.solution {
  display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; min-width: 0;
  border: 1px solid var(--line); border-radius: 7px; background: rgba(238,233,221,.015);
  transition: border-color 200ms ease;
}
.solution[hidden] { display: none; }
.solution--wide { grid-column: span 2; background: rgba(201,154,58,.03); border-color: rgba(201,154,58,.3); }
.solution__area { display: flex; align-items: center; gap: .6rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-bright); }
.solution__area em { font-style: normal; letter-spacing: .08em; color: var(--bg); background: var(--brass); border-radius: 3px; padding: .15rem .4rem; }
.solution h3 { font-size: 1.2rem; letter-spacing: -.03em; line-height: 1.2; }
.solution > p { font-size: .9rem; line-height: 1.65; }
.solution__points { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .45rem; }
.solution--wide .solution__points { grid-template-columns: 1fr 1fr; gap: .45rem 1.5rem; }
.solution__points li { position: relative; padding-left: 1.2rem; font-size: .82rem; line-height: 1.5; color: var(--body); }
.solution__points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--brass); }
.solution__note { font-size: .78rem !important; color: var(--muted); border-top: 1px solid var(--line); padding-top: .75rem; }
.solution__link { margin-top: auto; padding-top: .75rem; display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: .8rem; color: var(--cream); }
.solution__link span { color: var(--brass-bright); font-size: 1.15rem; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .solution:hover { border-color: rgba(201,154,58,.45); }
  .solution__link:hover { color: var(--brass-bright); }
  .solution__link:hover span { transform: translate(2px, 2px); }
}

/* ---------- Kontakt: Versprechen + Person links, Formular rechts ---------- */
.portfolio-page .cta-final .contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; text-align: left; }
.portfolio-page .cta-final .contact h2 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
.portfolio-page .cta-final .contact .lead { margin: 0 0 1.75rem; max-width: 44ch; }
.portfolio-page .cta-final .contact .eyebrow { display: inline-flex; }
.contact__promises { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .7rem; }
.contact__promises li { display: flex; gap: .7rem; color: var(--cream); font-size: .95rem; }
.contact__promises .ck { color: var(--brass); flex: none; }
.contact__person { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact__person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(201,154,58,.4); }
.contact__person strong { display: block; color: var(--cream); font-size: .95rem; }
.contact__person span { display: block; color: var(--muted); font-size: .82rem; }
.portfolio-page .cta-final .form { margin: 0; max-width: none; }
.portfolio-page .cta-final .form .btn { justify-self: start; }
.portfolio-page .cta-final .form__note { text-align: left; }

@media (max-width: 1100px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution--wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .portfolio-page .cta-final .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .catalog { grid-template-columns: 1fr; }
  .solution--wide .solution__points { grid-template-columns: 1fr; }
  .solution { padding: 1.25rem; }
}
.form__label { display: block; }

/* ---------- Unterseiten (z. B. dashboard-fuer-kmu) ---------- */
.sub-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.sub-hero .hero__grid { opacity: .2; background-size: 80px 80px; }
.sub-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 6%; align-items: center; }
.sub-hero .h1 { font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: 1.02; margin: 1.25rem 0 1.5rem; }
.sub-hero__lead { font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 48ch; margin-bottom: 2rem; }
.sub-hero .hero__actions { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.sub-hero__stage { position: relative; }
.sub-hero__stage .mock__caption { padding-top: 1rem; font-size: .66rem; color: var(--muted); }
.breadcrumb { font-size: .72rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--body); text-decoration: underline; text-underline-offset: .2em; }
.breadcrumb [aria-current] { color: var(--brass-bright); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare__col { border: 1px solid var(--line); border-radius: 7px; padding: clamp(1.25rem, 3vw, 2rem); }
.compare__col--after { border-color: rgba(201,154,58,.4); background: rgba(201,154,58,.03); }
.compare__col h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1.1rem; }
.compare__col--after h3 { color: var(--brass-bright); }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.compare__col li { position: relative; padding-left: 1.4rem; color: var(--body); }
.compare__col li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.compare__col--after li { color: var(--cream); }
.compare__col--after li::before { content: "✓"; color: var(--brass); }
.catalog--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subpage #kennzahlen .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; }
.sources > div { position: relative; padding-top: 1rem; }
/* Linie als Pseudo-Element, damit service.js sie zeichnen kann (--draw). */
.sources > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(201,154,58,.45); transform-origin: left; transform: scaleX(var(--draw, 1)); }
.sources dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-bright); margin-bottom: .5rem; }
.sources dd { margin: 0; color: var(--cream); font-size: .95rem; line-height: 1.6; }
.sources__note { margin-top: 2rem; color: var(--muted); font-size: .9rem; max-width: 70ch; }
.example { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6%; align-items: center; }
.example__copy p { margin-top: 1rem; max-width: 46ch; }
.example__copy .hero__text-link { margin-top: 1.25rem; }
.example__shot { margin: 0; border: 1px solid #ffffff15; border-radius: 7px; overflow: hidden; background: #151b13; box-shadow: 0 30px 60px -30px #0008; }
.example__shot img { width: 100%; height: auto; background: #fff; }
.example__shot figcaption { padding: 10px 14px; font-size: .62rem; color: var(--muted); }
@media (max-width: 1100px) {
  .subpage #kennzahlen .catalog, .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sub-hero__inner, .example { grid-template-columns: 1fr; gap: 2.5rem; }
  .sub-hero__stage .mock { transform: none; }
  .catalog--three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .compare, .subpage #kennzahlen .catalog, .sources { grid-template-columns: 1fr; }
  .sub-hero .h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
}
.catalog--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sources--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sources--three dd { color: var(--body); font-size: .92rem; }
.proof { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.25rem 1.5rem; border-left: 2px solid var(--brass); background: rgba(201,154,58,.04); border-radius: 0 7px 7px 0; }
.proof p { max-width: 75ch; }
.proof strong { color: var(--cream); }
.proof a { color: var(--brass-bright); }
@media (max-width: 1100px) { .catalog--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sources--three { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .catalog--two, .catalog--four { grid-template-columns: 1fr; } }


/* ---------- Leistungsseiten: Hero-Szenen (Animation in service.js, Endzustand ohne JS) ---------- */
html.motion-boot .sub-hero__stage { opacity: 0; }
/* Flach statt 3D-Neigung: GSAP animiert Position und Deckkraft, eine perspective() würde dabei zerlegt. */
.sub-hero__stage .mock { transform: none; }
.scene { position: relative; }

/* Belegerfassung: Beleg + erkannte Felder */
.scene--receipt { min-height: 520px; }
.receipt {
  position: relative; z-index: 1; width: 60%; padding: 1.3rem 1.25rem 1.15rem; overflow: hidden;
  background: #f3efe4; color: #2a2a24; border-radius: 4px; box-shadow: 0 30px 60px -25px #000;
  transform: rotate(-3deg); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .7rem; line-height: 1.5;
}
.receipt p { margin: 0; }
.receipt__vendor { font-weight: 700; font-size: .84rem; }
.receipt__meta { color: #5f5d53; }
.receipt__items { list-style: none; margin: .8rem 0; padding: .6rem 0; border-block: 1px dashed #b3ae9d; display: grid; gap: .3rem; }
.receipt__items li, .receipt__total { display: flex; justify-content: space-between; gap: 1rem; }
.receipt__total { font-weight: 700; font-size: .78rem; }
.receipt [data-field] { border-radius: 3px; margin-inline: -3px; padding-inline: 3px; transition: background .25s ease, box-shadow .25s ease; }
.receipt [data-field].is-hit { background: rgba(201,154,58,.25); box-shadow: 0 0 0 1.5px rgba(160,116,30,.8); }
.receipt__scan { position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0; background: var(--brass-bright); box-shadow: 0 0 18px 5px rgba(224,185,104,.55); pointer-events: none; }
.receipt-result { position: absolute !important; right: 0; top: 232px; width: 60%; z-index: 2; }
.receipt-result__fields { margin: 0; padding: 14px 16px 4px; display: grid; gap: .45rem; }
.receipt-result__fields div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); font-size: .72rem; }
.receipt-result__fields dt { color: var(--muted); }
.receipt-result__fields dd { margin: 0; color: var(--cream); font-weight: 500; text-align: right; }
.receipt-result__status { display: flex; align-items: center; gap: .5rem; padding: 10px 16px 14px; font-size: .72rem; color: var(--brass-bright); }
.receipt-result__status.is-busy { color: var(--muted); }
.receipt-result__status.is-busy .status-dot { background: var(--muted); }
.scene--receipt .mock__caption, .scene--offer .mock__caption { position: absolute; left: 0; bottom: 0; }

/* Angebots-Entwürfe: Anfrage + Dokument */
.scene--offer { min-height: 470px; }
.offer-mail { position: relative; z-index: 3; width: 66%; padding: 14px 16px; background: var(--bg-2); border: 1px solid rgba(201,154,58,.3); border-radius: 8px; box-shadow: 0 14px 35px rgba(0,0,0,.4); font-size: .78rem; line-height: 1.55; transform: rotate(-2deg); }
.offer-mail p { color: var(--body); }
.offer-mail__from { display: block; margin-bottom: .35rem; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass-bright); }
.offer-mail mark { color: var(--cream); background: linear-gradient(var(--brass), var(--brass)) no-repeat 0 100% / var(--u, 100%) 2px; }
.offer-doc { position: relative; z-index: 2; width: 88%; margin: -12px 0 0 auto; padding-bottom: 44px; }
.offer-doc__to { padding: 12px 16px 0; font-size: .68rem; color: var(--muted); }
.offer-doc__table { width: calc(100% - 32px); margin: 8px 16px 16px; border-collapse: collapse; font-size: .72rem; font-variant-numeric: tabular-nums; }
.offer-doc__table th { padding-bottom: .4rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .56rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.offer-doc__table td { padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--body); }
.offer-doc__table th:nth-child(2), .offer-doc__table td:nth-child(2) { text-align: center; }
.offer-doc__table th:last-child, .offer-doc__table td:last-child { text-align: right; }
.offer-doc__table tfoot td { border-bottom: 0; padding-top: .7rem; color: var(--cream); font-weight: 600; }
.offer-doc__table .offer-doc__sum { color: var(--brass-bright); }
.offer-doc__stamp { position: absolute; right: 16px; bottom: 14px; padding: .35rem .6rem; border: 1.5px solid var(--brass); border-radius: 4px; background: rgba(18,22,15,.88); color: var(--brass-bright); font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; transform: rotate(-7deg); }

/* Firmenwissen: Chat mit Quelle */
.chat__body { display: grid; gap: .8rem; padding: 16px; }
.chat__q { justify-self: end; max-width: 80%; padding: .6rem .8rem; border: 1px solid rgba(201,154,58,.35); border-radius: 10px 10px 2px 10px; background: rgba(201,154,58,.13); color: var(--cream); font-size: .78rem; }
.chat__search { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .62rem; color: var(--muted); }
.chat__label { text-transform: uppercase; letter-spacing: .1em; }
.chat__docs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.chat__docs li { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--body); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.chat__docs li.is-scan, .chat__docs li.is-source { border-color: var(--brass); background: rgba(201,154,58,.1); color: var(--cream); }
.chat__a { max-width: 90%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; background: #232d25; color: var(--cream); font-size: .8rem; line-height: 1.55; }
.chat__src { padding-left: .2rem; font-size: .64rem; color: var(--brass-bright); }

/* Content-Agent: Beiträge gegen den Kanalschnitt */
.outliers { display: grid; gap: .5rem; }
.outliers__plot { position: relative; height: 92px; display: flex; align-items: flex-end; gap: 5px; margin-top: 12px; }
.outliers__plot i { position: relative; flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: rgba(238,233,221,.16); transform-origin: 50% 100%; transition: background .3s ease; }
.outliers__plot i.is-out { background: linear-gradient(180deg, var(--brass-bright), rgba(201,154,58,.35)); }
.outliers__plot i.is-out::after { content: attr(data-x); position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: .55rem; font-style: normal; color: var(--brass-bright); white-space: nowrap; }
.outliers__base { position: absolute; left: 0; right: 0; bottom: 36%; z-index: 1; border-top: 1px dashed rgba(238,233,221,.45); transform-origin: left; }
.outliers__base em { position: absolute; right: 0; top: -15px; font-size: .52rem; font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

@media (max-width: 900px) {
  .sub-hero__stage .receipt-result, .sub-hero__stage .offer-doc, .sub-hero__stage .chat { transform: none; }
}
@media (max-width: 640px) {
  .receipt { width: 78%; }
  .receipt-result { width: 82%; top: 250px; }
  .scene--receipt { min-height: 540px; }
  .offer-mail { width: 88%; }
  .offer-doc { width: 100%; }
}
