/* Shared site chrome and interface details. */
.ab-nav{
  --ab-nav-pad:clamp(12px,1.5vw,20px);
  position:fixed;top:12px;left:50%;z-index:50;
  width:min(calc(100% - var(--ab-gut) * 2 + var(--ab-nav-pad) * 2),calc(var(--ab-page) + var(--ab-nav-pad) * 2));
  height:52px;transform:translateX(-50%);border-radius:var(--ab-radius-pill);
  background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
}
.ab-nav--solid,.ab-nav--open{
  background:rgba(247,247,244,.86);
  -webkit-backdrop-filter:blur(12px) saturate(1.4);backdrop-filter:blur(12px) saturate(1.4);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.05);
}
.ab-nav--dark.ab-nav--solid,.ab-nav--dark.ab-nav--open{
  background:rgba(20,20,20,.78);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 10px 30px rgba(0,0,0,.16);
}
.ab-nav__in{position:relative;height:100%;display:flex;align-items:center;gap:16px;padding:0 10px 0 var(--ab-nav-pad)}
.ab-nav__in>.ab-btn,.ab-nav__tel{flex-shrink:0}
.ab-nav__in>.ab-mark{flex-shrink:1;min-width:0}
.ab-nav .ab-mark{white-space:nowrap}
.ab-nav__links{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;margin:0;font-size:14px;white-space:nowrap}
.ab-nav__links a{color:var(--ab-c-ink);opacity:.72}
.ab-nav__links a[aria-current="page"]{opacity:.72;text-decoration:none}
.ab-nav__tel{display:block;margin-left:auto;font-size:14px;white-space:nowrap}
.ab-nav .ab-btn{min-height:32px;padding:0 12px;font-size:14px}
.ab-nav__in>.ab-nav__cta{margin-left:0}
.ab-nav__toggle{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--ab-c-ink);touch-action:manipulation;-webkit-user-select:none;user-select:none}
.ab-nav--dark .ab-nav__toggle{color:var(--ab-c-white)}
.ab-nav__toggle:active,.ab-drawer__close:active{transform:scale(.97);background:rgba(127,127,127,.12)}
.ab-site-shell{background:var(--ab-c-paper)}
.ab-drawer{position:fixed;inset:0 auto 0 0;margin:0;border:0;border-radius:0;width:min(82vw,320px);max-width:none;height:100dvh;max-height:none;padding:calc(14px + env(safe-area-inset-top,0px)) 16px calc(24px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;background:transparent;color:var(--ab-c-ink);transform:translateX(-100%);transition:transform var(--ab-dur-ui) var(--ab-ease-out)}
.ab-drawer:not([open]){display:none}
.ab-drawer[open]{display:flex;flex-direction:column}
.ab-drawer::backdrop{background:transparent}
.ab-drawer.ab-is-open{transform:translateX(0)}
.ab-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:4px;flex:none;margin-bottom:18px;padding-left:12px}
.ab-drawer__brand{font-size:17px;font-weight:500;letter-spacing:-.025em;white-space:nowrap}
.ab-drawer__close{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;touch-action:manipulation}
.ab-drawer__links{display:grid;gap:0;padding-bottom:24px}
.ab-drawer__links a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:10px;font-size:17px;line-height:1.3;touch-action:manipulation}
.ab-drawer__links a[aria-current="page"]{background:transparent;font-weight:400}
.ab-drawer__links a:active{background:#DAD8D3}
.ab-drawer__contact{display:grid;gap:16px;margin-top:auto;padding:24px 12px 0;border-top:1px solid rgba(0,0,0,.09)}
.ab-drawer__contact>a:not(.ab-btn){font-size:15px}
.ab-drawer__contact .ab-btn{min-height:44px;background:var(--ab-c-ink);color:var(--ab-c-white);font-size:15px;padding-inline:12px}
.ab-drawer-active,.ab-drawer-active body{background:var(--ab-c-paper);overscroll-behavior:none}
.ab-site-shell.ab-shell-locked{position:fixed;inset:0;z-index:60;width:100%;height:100dvh;overflow:hidden;border-radius:48px;box-shadow:-16px 0 42px rgba(20,20,20,.12);transform:translate3d(0,0,0);transform-origin:left center;transition:transform var(--ab-dur-ui) var(--ab-ease-out);will-change:transform}
.ab-drawer-instant .ab-site-shell,.ab-drawer-instant .ab-drawer{transition:none}
@media(prefers-reduced-motion:reduce){.ab-site-shell.ab-shell-locked,.ab-drawer{transition:none}}

.ab-art__sq,.ab-art__sq--warn,.ab-ui__dot,.ab-ui__dot--ok{border-radius:50%;background:var(--ab-c-lens)}
@media(hover:hover) and (pointer:fine){.ab-nav__toggle:hover{background:rgba(127,127,127,.12)}}
@media(max-width:1240px){
  .ab-nav__tel{display:none}
  .ab-nav__in>.ab-nav__cta{margin-left:auto}
}
@media(max-width:1080px){
  .ab-nav__links{display:none}
  .ab-nav__toggle{display:flex}
  .ab-nav__in{gap:10px;padding-left:6px}
}
@media(max-width:600px){
  .ab-nav{top:10px;width:calc(100% - 20px);height:50px}
  .ab-nav__in{padding:0 10px 0 4px;gap:6px}
  .ab-nav__in>.ab-nav__cta{display:inline-flex;min-height:32px;font-size:13px;padding-inline:12px;margin-left:auto}
  .ab-nav .ab-mark{font-size:16px}
  .ab-nav__toggle{margin-left:0}
  :root{--ab-nav-h:60px}
}
@media(max-width:380px){.ab-drawer{padding-inline:12px}.ab-drawer__brand{font-size:16px}}

@media(max-width:380px){.ab-nav__in{gap:4px;padding-right:6px}.ab-nav .ab-mark{font-size:14px}.ab-nav__toggle{width:44px}.ab-nav__in>.ab-nav__cta{font-size:12px;padding-inline:10px}.ab-drawer__brand{font-size:15px}.ab-drawer__head{padding-left:8px}.ab-drawer__close{width:44px}}

/* Keep keyboard focus visible, without a ring from pointer-triggered autofocus. */
.ab-drawer--pointer .ab-drawer__close:focus{outline:none}

/* The home title aligns with the introductions on inner pages. */
.ab-hero.ab-hero--home{padding-top:calc(var(--ab-nav-h) + clamp(44px,5vw,76px))}
.ab-hero__prelude{height:20.15px;margin-bottom:24px}
@media(max-width:600px){.ab-hero.ab-hero--home{padding-top:calc(var(--ab-nav-h) + 36px)}.ab-hero__prelude{height:18.6px;margin-bottom:20px}}

.ab-nowrap{white-space:nowrap}


/* Readable secondary copy on the existing paper and card surfaces. */
html:root{--ab-c-ink-2:#686761;--ab-c-ink-3:#85847E}
.ab .ab-case__desc{color:var(--ab-fg-2)}
.ab-hero--home .ab-hero__lead{color:#8D928E}
@media(max-width:1200px){
 html .ab-hero--light .ab-hero__lead,html .ab-pg-case .ab-dialog__lead,html .ab-head .ab-lead,html .ab-cases__head .ab-lead{color:var(--ab-c-ink-2)}
}

/* Keyboard-triggered controls respond immediately. */
html:not(.ab-js-pointer){scroll-behavior:auto}
html:not(.ab-js-pointer) :is(.ab-btn,.ab-case__more,.ab-preview__play,.ab-dialog__close),html:not(.ab-js-pointer) .ab-story__toggle::after{transition:none;transform:none}
html .ab-dialog.ab-dialog--instant,html .ab-dialog.ab-dialog--instant::backdrop{transition:none}

/* Anchor headings clear the floating header, including their reveal transform. */
.ab .ab-h2[id]{scroll-margin-top:40px}
.ab-motion .ab [data-ab-reveal][id]:target{opacity:1;transform:none;transition:none}

/* Case cards share the same story, person, result order and spacing. */
:is(.ab-cases__row,.ab-rop-cases) .ab-case__body>.ab-case__person{padding:0;margin:8px 0}
:is(.ab-cases__row,.ab-rop-cases) .ab-case__metric{padding-top:16px}

/* The current page is marked with a short solid line. */
html .ab-nav__links a[aria-current="page"]{position:relative;opacity:1;color:var(--ab-c-ink);text-decoration:none}
html .ab-nav__links a[aria-current="page"]::after{content:"";position:absolute;left:50%;bottom:-8px;width:20px;height:3px;transform:translateX(-50%);border-radius:999px;background:currentColor;pointer-events:none}
html .ab-nav--dark .ab-nav__links a[aria-current="page"]{color:var(--ab-c-white)}
.ab-drawer__links a{color:var(--ab-c-ink-2)}
.ab-drawer__links a[aria-current="page"]{color:var(--ab-c-ink-2)}
.ab-drawer__links a[aria-current="page"]::after{content:none}

/* Keep person captions quieter than the case story and result. */
:is(.ab-cases__row,.ab-rop-cases) .ab-case__person-info{opacity:.76}
/* Keep each original portrait intact and frame the face inside the avatar. */
.ab-case__avatar--portrait{position:relative;overflow:hidden;isolation:isolate}
.ab-case__avatar--portrait img{position:absolute;display:block;width:var(--ab-portrait-width,100%);height:auto;max-width:none;max-height:none;left:var(--ab-portrait-left,0);top:var(--ab-portrait-top,0);margin:0;border-radius:0}
.ab-case__avatar--portrait[data-ab-avatar="artem-migachev"]{--ab-portrait-width:130.91%;--ab-portrait-left:-15.45%;--ab-portrait-top:-9.09%}
.ab-case__avatar--portrait[data-ab-avatar="vlad-naumov"]{--ab-portrait-width:237.04%;--ab-portrait-left:-72.22%;--ab-portrait-top:-54.81%}
.ab-case__avatar--portrait[data-ab-avatar="konstantin-orlov"]{--ab-portrait-width:240%;--ab-portrait-left:-57.5%;--ab-portrait-top:-21.25%}
.ab-case__avatar--portrait[data-ab-avatar="denis-ustyantsev"]{--ab-portrait-width:288%;--ab-portrait-left:-90%;--ab-portrait-top:-80%}

/* Match Cursor's space below the header, without breadcrumb placeholders. */
:root{--ab-hero-top-gap:112px}
html .ab.ab-hero:is(.ab-hero--home,.ab-hero--light){padding-top:calc(var(--ab-nav-h) + var(--ab-hero-top-gap))}
@media(max-width:600px){:root{--ab-hero-top-gap:105px}}

/* Compact heading-to-card spacing on the contacts page. */
.ab-contact-section .ab-head{margin-bottom:24px}
@media(max-width:600px){.ab-contact-section .ab-head{margin-bottom:20px}}

/* Brand stays on one line; the shared fitter reduces it only when necessary. */
html .ab-mix{display:inline-flex;flex-flow:row nowrap;white-space:nowrap;max-width:none}
html .ab-mix>*{flex-shrink:0}
html .ab-mix__plain{white-space:nowrap}
html .ab-mark{min-width:0}
html .ab-tile--word .ab-mix{flex-wrap:nowrap}
@media(max-width:600px){html .ab-nav .ab-mix{font-size:17px;align-items:center}html .ab-nav .ab-mix__gap{display:inline-block}}
@media(max-width:380px){html .ab-nav .ab-mix{font-size:15px}}

/* Directional link feedback: horizontal only, immediate for keyboard input. */
html:not(.ab-js-pointer) .ab-case__more svg{transition:none;transform:none}
@media(prefers-reduced-motion:reduce){html .ab-case__more svg{transition:none;transform:none}}

/* Quiet grey ASCII texture behind the interface on both process sections. */
.ab .ab-glyph--quiet{background:#E8E7E3;--ab-fg:#777671}
.ab .ab-glyph--quiet .ab-glyph__cv{opacity:.38}

/* Mobile comparisons: one compact label to the left of the full text. */
.ab-cmp__label{display:none}
.ab-cmp__text{display:contents}
@media(max-width:860px){
 html :is(.ab-vs__table,.ab-other__table) thead{display:none}
 html :is(.ab-vs__table,.ab-other__table),html :is(.ab-vs__table,.ab-other__table) :is(tbody,tr,th,td){display:block;width:auto!important;border:0}
 html :is(.ab-vs__table,.ab-other__table) tbody tr{padding:24px 0;border-bottom:1px solid var(--ab-c-rule)}
 html :is(.ab-vs__table,.ab-other__table) tbody th{margin:0 0 12px;padding:0 2px;font-size:18px;line-height:1.25;font-weight:500}
 html :is(.ab-vs__table,.ab-other__table){--ab-cmp-label-w:64px}
 html .ab-other__table{--ab-cmp-label-w:96px}
 html :is(.ab-vs__table,.ab-other__table) tbody td{display:grid;grid-template-columns:var(--ab-cmp-label-w) minmax(0,1fr);align-items:start;gap:12px;min-width:0;margin:0;padding:14px;font-size:16px;line-height:1.45}
 html :is(.ab-vs__table,.ab-other__table) tbody tr>td:last-child{margin-top:8px;padding:16px 14px;border:1px solid var(--ab-c-card-line);border-radius:var(--ab-radius);background:var(--ab-c-card)}
 html :is(.ab-vs__table,.ab-other__table) tbody td::before{display:none;content:none}
 html .ab-cmp__label{display:inline-flex;align-items:center;justify-self:start;min-height:26px;padding:3px 0;background:transparent;font:12px/1.15 var(--ab-font-dot);color:var(--ab-c-ink-2);white-space:nowrap}
 html td:last-child>.ab-cmp__label{padding-inline:8px;border-radius:var(--ab-radius-pill);background:var(--ab-c-ink);color:var(--ab-c-white)}
 html :is(.ab-vs__table,.ab-other__table) .ab-cmp__text{display:block;grid-column:2;min-width:0;max-width:none;width:auto;margin:0;font:inherit;overflow-wrap:normal;word-break:normal}
}

/* One leading interval per section. Adjacent sections never add two intervals. */
html:root{--ab-gap-section:clamp(64px,8vw,96px);--ab-gap-block:clamp(32px,4vw,48px);--ab-dur-swap:220ms;--ab-dur-reveal:280ms;--ab-dur-grow:500ms}
html .ab.ab-section,html .ab.ab-logos{padding-top:var(--ab-gap-section);padding-bottom:0}
html .ab.ab-foot{padding-top:var(--ab-gap-section)}
html .ab.ab-show{padding-top:var(--ab-gap-block)}
html .ab-other{margin-top:var(--ab-gap-section)}
html .ab-split + *{margin-top:var(--ab-gap-block)}

/* The preparation note belongs to the page, without a separate colored card. */
.ab-contact-details .ab-pg-tiles{align-items:start;column-gap:var(--ab-gap-block);row-gap:32px}
.ab-contact-prep{display:grid;align-content:start;gap:16px;min-width:0;padding:24px 0}
.ab-contact-prep .ab-pg-tile__h{max-width:30ch;font-size:24px;line-height:1.25;text-wrap:pretty}
.ab-contact-prep .ab-pg-tile__p{max-width:48ch}
@media(max-width:600px){
 .ab-contact-prep{padding:0;gap:12px}
 .ab-contact-prep .ab-pg-tile__h{font-size:22px}
}

/* The shifted mobile page follows the 50–52px header's corner radius. */
@media(max-width:1080px){.ab-site-shell.ab-shell-locked{border-radius:26px}}
@media(max-width:600px){.ab-site-shell.ab-shell-locked{border-radius:25px}}

/* The same short, interruptible motion language on home and inner pages. */
.ab-show__cards:not([data-motion-running="true"]) .ab-show__card,
.ab-drawer-active .ab-show__card{animation-play-state:paused}
html.ab-motion [data-ab-reveal]{transition-delay:calc(min(var(--ab-i,0),3) * 30ms)}
html.ab-motion [data-ab-reveal]:not(.ab-in){transform:translateY(8px)}
html.ab-motion [data-ab-reveal]:focus-within{opacity:1;transform:none;transition:none}
@media(min-width:861px){
 html .ab-steps__art .ab-steps__bg{transition:opacity 260ms var(--ab-ease-out)}
 html .ab-steps__stage .ab-step__frag{transition:opacity 220ms var(--ab-ease-out),transform 220ms var(--ab-ease-out),visibility 0s}
 html .ab-steps__stage .ab-step__frag:not(.ab-is-current){transition:opacity 160ms var(--ab-ease-out),transform 160ms var(--ab-ease-out),visibility 0s linear 160ms}
}
html:not(.ab-js-pointer) .ab-q__plus::before,html:not(.ab-js-pointer) .ab-q__plus::after,
html:not(.ab-js-pointer) :is(.ab-nav,[data-ab-reveal],.ab-chart__bar,.ab-link,.ab-round,.ab-btn svg,.ab-tile--go,.ab-tile--go svg),
html:not(.ab-js-pointer) .ab-steps :is(.ab-step__name,.ab-step__time,.ab-steps__bg,.ab-step__frag,.ab-step__frag .ab-ui__rows>*,.ab-step__frag .ab-ui__flow>*){transition:none}
html:not(.ab-js-pointer) :is(.ab-btn svg,.ab-tile--go svg){transform:none}
html:not(.ab-js-pointer) :is(.ab-round:active,.ab-tile--go:active){transform:none}
@media(hover:hover) and (pointer:fine){html.ab-js-pointer .ab-tile--go:hover svg{transform:translateX(4px)}}
@media(prefers-reduced-motion:reduce){
 html .ab *,html .ab *::before,html .ab *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
 html.ab-motion [data-ab-reveal],html .ab-btn svg,html .ab-tile--go svg{transform:none}
 html .ab-logos__track{width:100%;transform:none!important;will-change:auto}
 html .ab-logos__group{width:100%;justify-content:center}
 html .ab-logos__item{white-space:normal}
}
