/* Content and accessibility refinements. The original visual system stays in style.css. */
html { color-scheme: dark; background: #141517; }
/* Match the UXLab sites' Safari canvas configuration. Cover the large viewport
   beneath browser chrome; keep safe-area padding on content and controls, not
   on the canvas. clip avoids creating another hidden scroll container. */
@supports (-webkit-touch-callout: none) {
  html, body { min-height: 100lvh; overflow: clip; }
  body.is-dark { background: transparent; }
  .wrapper:has(.pp-section),
  .wrapper #content:has(.pp-section),
  .a-pagepiling:has(> .pp-section) { height: 100lvh; min-height: 100lvh; }
  .a-pagepiling:has(> .pp-section) { overflow: clip !important; }
  .section.pp-section { height: 100lvh; }
}
/* The legacy section flex box capped its child at the viewport height. A taller
   centred child then overflowed above scrollTop=0, making headings unreachable. */
.section.pp-scrollable { display: block; -webkit-overflow-scrolling: touch; }
.section > .slide-container {
  height: auto;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.slide-container > .container {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1200px;
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px));
}
.slide-container .row > [class*="col-"] { min-width: 0; }
/* Older navigation CSS sets every <nav> to 30px. Content navigation must
   contribute its full height to the section, including the Explore footer. */
nav.service-list, nav.menu-explore, nav.explore-links { height: auto; }
.slide-container .lines, .contact-ornament { pointer-events: none; }
.slide-contacts > .slide-container { padding-bottom: max(7rem, calc(14vw + 2rem)); }
.slide-contacts .contact-ornament { z-index: 0; }
.slide-contacts .slide-container > .container { position: relative; z-index: 1; }
.slide-descr p:last-child { margin-bottom: 0; }
.slide-descr a, .explore-links a, .menu-explore a { color: #ffe97f; }
.slide-descr a { text-decoration: underline; text-underline-offset: .2em; }
.intro-lede { font-weight: 600; color: #fff; }
.archive-intro, .case-summary, .capability-list dd {
  font-size: max(1rem, 16px);
  line-height: 1.65;
  color: #b4b4d5;
}
.archive-intro { margin: 1rem auto 1.5rem; max-width: 44rem; }
.capability-list { margin: 1.5rem 0 0; }
.capability-list > div { border-top: 1px solid rgba(180,180,213,.22); padding: .85rem 0; }
.capability-list dt { color: #fff; font-size: max(1rem, 16px); font-weight: 600; }
.capability-list dd { margin: .35rem 0 0; }
.casestudy-caption { max-width: 60rem; margin: .9rem auto 0; padding: 0 .5rem; letter-spacing: 0; }
.casestudy-caption h3 { font-size: max(1rem, 16px); color: #fff; margin-bottom: .25rem; }
.case-date { font-size: max(.875rem, 14px); margin-bottom: .2rem; color: #ffe97f; }
.case-summary { margin: 0 auto; max-width: 50rem; }
.testimonial-item h3 { font-size: 1.5rem; }
.testimonial-item .slide-descr { margin-top: 1rem; }
.slide-contacts .explore-links { margin: 2.5rem 0 0; text-align: left; }
.explore-links h3 { font-size: max(.875rem, 14px); text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.explore-links ul { padding: 0; margin: 1rem 0; }
.explore-links li { padding: .55rem 0; border-top: 1px solid rgba(180,180,213,.22); }
.explore-links a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; font-size: max(1rem, 16px); }
.explore-links a span { color: #b4b4d5; font-size: max(.875rem, 14px); }
.explore-links > p { color: #b4b4d5; font-size: max(.875rem, 14px); line-height: 1.6; }
.menu-explore { display: grid; gap: .6rem; padding-bottom: 1.5rem; font-size: max(.875rem, 14px); }
.menu-downloads { margin-bottom: 1rem; }
.menu { overflow-y: auto; }
.menu-main a { display: inline-flex; align-items: center; min-height: 44px; }
.menu-main { min-height: 20rem; flex-shrink: 0; height: auto; }
.menu-footer { margin-top: auto; flex-shrink: 0; }
.menu .menu-ornament { position: relative; left: auto; right: auto; bottom: auto; width: 100%; flex-shrink: 0; margin-top: 1rem; }
.slide-about .parallax { pointer-events: none; z-index: 0; }
.slide-about .slide-container > .container { position: relative; z-index: 2; }
.slide-about .slide-descr { position: relative; z-index: 2; }
.slide-photo-about img { width: auto; max-width: 100%; height: auto; margin: 0 auto; display: block; }
.slide-descr, .vacancy-item-text, .reward-item-descr { font-size: max(1rem, 16px); }
.title-mini, .job-position { font-size: max(.875rem, 14px); }
.slide-title { overflow-wrap: break-word; margin-right: 0; }
.slide-title .text-typed { line-height: 1.1; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 2000; padding: .75rem 1rem; background: #ffe97f; color: #111; }
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, section:focus-visible { outline: 2px solid #ffe97f; outline-offset: 4px; }
.nav-toggle-btn { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.slide-awards .reward-list { margin-top: 1.5rem; }
.slide-awards .reward-item { margin-top: 1rem; }
.slide-awards .reward-item-photo { width: 6rem; padding-right: 1rem; }
.slide-awards .reward-item-detail { min-width: 0; }
.slide-awards .reward-item-title { font-size: max(.875rem, 14px); margin-right: 0; }
.slide-contacts .contact-form input.form-control,
.slide-contacts .contact-form textarea.form-control { font-size: max(1rem, 16px); }
.explore-links a span { overflow-wrap: anywhere; }
.owl-carousel .owl-dot { min-width: 32px; min-height: 44px; }
.portfolio-carousel .owl-dots { display: flex; flex-wrap: nowrap; justify-content: center; width: min(100%, 40rem); margin: .5rem auto 0; }
.portfolio-carousel .owl-dots .owl-dot { flex: 1 1 0; min-width: 0; max-width: 32px; padding: 0; }
.portfolio-carousel .owl-dots .owl-dot span { margin-left: auto; margin-right: auto; }
.slide-portfolio .portfolio-carousel { width: calc(100vw - 6px); margin-left: calc(-50vw + 3px); }
.owl-carousel .owl-stage-outer { overflow: clip; }
.owl-carousel { touch-action: pan-y pinch-zoom; overscroll-behavior-x: contain; }
.slide-portfolio .slide-container { padding-top: 3rem; padding-bottom: 2rem; justify-content: flex-start; }
.slide-portfolio .slide-container > .container {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 5rem);
}
.slide-portfolio .container > .row { flex-shrink: 0; }
.slide-portfolio .portfolio-carousel { margin-top: auto; padding-top: 1rem; }
.slide-portfolio .archive-intro { margin-top: .75rem; margin-bottom: 1rem; }
@media (min-width: 992px) {
  .slide-contacts > .slide-container { padding-top: 3rem; padding-bottom: calc(6vw + 1rem); }
  .slide-contacts .contact-ornament { padding-bottom: 6%; }
  .slide-contacts .col-lg-8 { flex-basis: 100%; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .slide-contacts .col-lg-8 > .animate-element:first-child,
  .slide-contacts .col-lg-8 > .slide-descr { grid-column: 1 / -1; }
  .slide-contacts .contact-form { grid-column: 1; grid-row: 3; width: 100%; margin-top: 1.5rem; }
  .slide-contacts .contact-social-icons { grid-column: 1; grid-row: 4; margin-top: 1rem; }
  .slide-contacts .explore-links { grid-column: 2; grid-row: 3 / span 2; margin-top: 1.5rem; }
  .slide-contacts .slide-descr { margin-top: 1rem; }
}
@media (max-width: 991px) {
  .slide:not(.slide-about) .slide-photo { display: none; }
  .slide-container .row > .col-md-5,
  .slide-container .row > .col-md-6 { flex-basis: 100%; max-width: 100%; }
  .slide-container .row > .col-md-1 { display: none; }
}
@media (min-width: 992px) {
  .slide-skills .capabilities-copy { flex-basis: 58.333333%; max-width: 58.333333%; }
  .slide-skills .capabilities-art { flex-basis: 41.666667%; max-width: 41.666667%; }
  .slide-skills .col-md-1 { display: none; }
  .slide-skills .capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .slide-skills .slide-title { margin-right: 0; }
}
@media (min-width: 768px) and (max-height: 840px) {
  .slide-about > .slide-container { padding-top: 4rem; padding-bottom: 1.25rem; }
  .slide-about .slide-descr { margin-top: 1.15rem; }
  .slide-photo-about { margin-top: 1.5rem; }
  .slide-photo-about img { max-height: min(35vh, 300px); }
  .slide-awards > .slide-container { padding-top: 2rem; padding-bottom: 1.25rem; }
  .slide-awards .slide-title { font-size: 2.25rem; margin-bottom: .4rem; }
  .slide-awards .slide-descr { margin-top: .8rem; font-size: .95rem; line-height: 1.48; }
  .slide-awards .slide-descr p { margin-bottom: .5rem; }
  .slide-awards .reward-list { margin-top: .8rem; }
  .slide-awards .reward-item { margin-top: .55rem; }
  .slide-awards .reward-item-photo { width: 4.5rem; }
  .slide-awards .reward-item-descr { font-size: .92rem; line-height: 1.38; }
}
@media (max-width: 767px) {
  .slide-container { padding-top: max(6rem, env(safe-area-inset-top, 0px)); padding-bottom: max(4rem, env(safe-area-inset-bottom, 0px)); }
  .body-piling .nav-toggle-btn { top: max(20px, env(safe-area-inset-top, 0px)); right: max(15px, env(safe-area-inset-right, 0px)); }
  .slide-testimonials .col-md-5 {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 10rem);
  }
  .slide-testimonials .testimonial-carousel {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 2rem;
  }
  .section > .slide-container { justify-content: flex-start; }
  .slide-awards > .slide-container { padding-top: 2rem; padding-bottom: 2rem; }
  .slide-awards .slide-descr { margin-top: 1rem; }
  .slide-photo-about { margin-top: 1.75rem; max-width: 100%; }
  .slide-photo-about img { max-height: 28svh; }
  .slide-title { font-size: 1.75rem; }
  .casestudy-caption { padding: 0 .25rem; }
  .case-summary { font-size: 16px; line-height: 1.55; }
  .slide-resume .vacancy-item { margin-bottom: 1.5rem; }
  .slide-resume .slide-title-margin-md { margin-bottom: 1rem; }
  .menu-main { min-height: 0; }
  .menu { padding-top: max(5.5rem, calc(env(safe-area-inset-top) + 4.5rem)); }
  .menu-main > ul > li { margin-bottom: .25rem; }
  .slide-container > .container { padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-left: max(24px, env(safe-area-inset-left, 0px)); }
  .slide:not(.slide-about) .slide-photo { display: none; }
  .slide-descr { margin-top: 1.25rem; }
  .slide-contacts > .slide-container { padding-bottom: max(5rem, calc(14vw + 2rem)); }
  .slide-contacts .contact-form { max-width: 100%; }
  .slide-contacts .explore-links { margin-top: 2rem; }
  .explore-links a { flex-direction: column; }
  .slide-resume .row { row-gap: 1.5rem; }
  .slide-awards .reward-item-photo { width: 4.5rem; }
  .slide-title .text-typed { display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .portfolio-carousel.owl-theme .owl-nav [class*='owl-'] {
    background: rgba(20, 21, 23, 0.78);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
  }
}
@media (max-width: 767px) and (max-height: 640px) {
  .slide-about > .slide-container { padding-top: 4.5rem; padding-bottom: 1.25rem; }
  .slide-about .slide-descr { margin-top: .85rem; font-size: .9375rem; line-height: 1.48; }
  .slide-about .slide-descr p { margin-bottom: .5rem; }
  .slide-photo-about { margin-top: 1rem; }
  .slide-photo-about img { max-height: 22svh; }
  .slide-portfolio > .slide-container { padding-top: 4.5rem; padding-bottom: 1rem; }
  .slide-portfolio .slide-container > .container { min-height: calc(100svh - 5.5rem); }
  .slide-portfolio .archive-intro { font-size: .9375rem; line-height: 1.42; margin: .4rem auto .5rem; }
  .slide-portfolio .portfolio-carousel { padding-top: .25rem; }
  .casestudy-caption { margin-top: .45rem; }
  .case-summary { font-size: .9375rem; line-height: 1.42; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .animate-element { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .parallax { display: none; }
}
@media print {
  html, body { overflow: visible !important; height: auto !important; }
  .wrapper:has(.pp-section), .wrapper #content:has(.pp-section), .a-pagepiling:has(> .pp-section) { height: auto; min-height: 0; overflow: visible !important; }
  .section { position: relative !important; height: auto !important; transform: none !important; }
  .slide-container { min-height: 0; padding: 2rem 0; }
  .animate-element { opacity: 1 !important; visibility: visible !important; animation: none !important; }
  .slide-photo, .header, #pp-nav, .parallax { display: none; }
}
