@font-face { font-family: "Bounded ENGSV"; src: url("../../fonts/Bounded-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope ENGSV"; src: url("../../fonts/Manrope-VariableFont_wght.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #f5f7f9;
  --ink: #161616;
  --muted: #686b70;
  --gutter: clamp(16px, calc(1.2307692308px + 4.1025641026vw), 80px);
  --gap: 20px;
  --radius: clamp(12px, 3.125vw, 60px);
  --display: "Bounded ENGSV", Bounded, sans-serif;
  --body-size: clamp(14px, 1.4vw, 18px);
  --heading-size: clamp(28px, 3.2vw, 40px);
  --large-size: clamp(40px, 4.167vw, 80px);
  color-scheme: light;
}
.case-story { display: flow-root; color: var(--ink); background: var(--paper); font: 400 var(--body-size)/1.28 "Manrope ENGSV", Manrope, sans-serif; }
:where(.case-story) section { padding: 0; }
:where(.case-story) img { display: block; max-width: 100%; }
:where(.case-story) :is(figure, h1, h2, h3, p, ul, ol, li) { margin: 0; }
.case-story a { color: inherit; text-decoration: none; }
.case-story :focus-visible { outline: 2px solid #2c48ff; outline-offset: 4px; }
.case-story :is(h1, h2, h3) { font-family: var(--display); font-weight: 600; }
.case-story h1 { font-size: var(--large-size); line-height: 1; }
:where(.case-story) h2, .case-story :is(#task, #solution) { font-size: var(--heading-size); line-height: 1.1; }
:where(.case-story) h3 { font-size: var(--body-size); line-height: inherit; }
.shell { margin-inline: var(--gutter); }
.muted { color: var(--muted); }
.year { display: inline-block; padding: 5px 20px; border: 1px solid #d5d7da; border-radius: 90px; white-space: nowrap; }

.intro { padding-top: clamp(150px, 11.98vw, 230px); }
.intro__subtitle { margin-top: 22px; font-size: clamp(16px, 1.25vw, 20px); }
.intro__details { display: grid; grid-template-columns: 1fr minmax(0, 42%) auto; align-items: start; gap: 20px; margin-top: clamp(34px, 3.35vw, 64px); margin-bottom: clamp(50px, 4vw, 80px); font-size: 16px; }
.intro__client, .intro__year { display: flex; align-items: baseline; gap: 12px; }
.project-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.project-link img { width: 24px; height: 24px; }

.film, .film__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); isolation: isolate; background: #262626; }
.film__background, .film__screen { position: absolute; object-fit: cover; }
.film__background { width: 100%; height: 100%; inset: 0; filter: brightness(.66); }
.film--hero .film__background { transform: scaleX(-1); }
.film__screen { inset: 18.48% 15.74% auto; width: 68.52%; height: 63.07%; border-radius: 1.2% / 2.5%; box-shadow: 0 0 35px #0006; }
.film__preloader { display: grid; place-items: center; background: #1c1d22; }
.film__preloader img { width: 22%; }
.film__industry-preview { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 5%; padding: 2.5%; background: #f6f6f6; color: #1c1d22; container-type: inline-size; }
.film__industry-preview img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.film__industry-preview strong { display: block; margin-block: 6% 4%; font-size: 3.5cqw; }
.film__industry-preview p { margin-bottom: 7%; font-size: 1.32cqw; }
.film__industry-preview span { font-size: 2cqw; }
.film__industry-preview .film__label { display: inline-block; padding: 3% 6%; color: white; background: #e80004; font-size: 1.1cqw; }

.task { display: grid; grid-template-columns: minmax(0, 50%) minmax(0, 16.48%) minmax(0, 1fr); column-gap: 8.5%; padding-top: clamp(40px, 4.17vw, 80px); padding-bottom: clamp(40px, 5.15vw, 100px); }
.task h2, .task h3 { margin-block-end: clamp(20px, 1.6vw, 30px); }
.task > div:not(:first-child) { padding-top: clamp(0px, .85vw, 16px); }
.task ul { list-style: none; padding: 0; }
.task li { list-style: none; }
.task li + li { margin-top: 16px; }

.mosaic { position: relative; overflow: hidden; width: 100%; }
.mosaic::before { position: absolute; content: ""; z-index: 1; pointer-events: none; background-size: 100% 100%; background-repeat: no-repeat; }
.mosaic--intro { aspect-ratio: 1920 / 1216; background: #262626; }
.mosaic--intro::before { inset: 6.50% 4.115%; background-image: url("assets/grid-intro.svg"); }
.mosaic__photo { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: var(--w); height: var(--h); object-fit: cover; }
.tile-a { --x: 5.156%; --y: 8.882%; --w: 34.219%; --h: 53.29%; }
.tile-b { --x: 42.292%; --y: 8.882%; --w: 52.083%; --h: 82.237%; }
.mosaic--gallery { aspect-ratio: 1920 / 2972; background: linear-gradient(#262626, #1b1b1b 67%); }
.mosaic--gallery::before { inset: 2.66% 4.115%; background-image: url("assets/grid-gallery.svg"); }
.mosaic__base { position: absolute; top: 64%; width: 100%; height: 36%; object-fit: cover; }
.tile-c { --x: 5.625%; --y: 3.634%; --w: 52.083%; --h: 21.804%; }
.tile-d { --x: 60.625%; --y: 15.478%; --w: 15.417%; --h: 9.96%; }
.tile-e { --x: 60.625%; --y: 27.322%; --w: 33.75%; --h: 21.804%; }
.tile-f { --x: 23.958%; --y: 39.166%; --w: 15.417%; --h: 9.96%; }
.tile-g { --x: 5.625%; --y: 50.976%; --w: 15.417%; --h: 9.96%; }
.tile-h { --x: 23.958%; --y: 50.976%; --w: 33.75%; --h: 9.96%; }
.tile-i { --x: 78.958%; --y: 50.976%; --w: 15.417%; --h: 9.96%; }
.tile-j { --x: 5.625%; --y: 62.82%; --w: 15.417%; --h: 9.926%; }
.film--loader, .film--industries { margin-block: clamp(40px, 4.167vw, 80px); }
.theme-scene { --theme-height: max(440px, 47.917vw); }

.stages { display: grid; grid-template-columns: minmax(0, calc((100% + 20px) / 4 - 5px)) 18px minmax(0, 1fr); align-items: start; padding-block: clamp(40px, 6.25vw, 120px) clamp(40px, 5.2vw, 100px); }
.stages h2 { padding-right: 15px; font-size: clamp(22px, 2.084vw, 40px); }
.stages__track { display: grid; place-items: center; height: 242px; }
.stages__track input { min-height: 0; border: 0; border-radius: 0; appearance: none; writing-mode: vertical-lr; direction: ltr; width: 18px; height: 100%; margin: 0; padding: 0; background: linear-gradient(#dfe1e3, #dfe1e3) center / 2px 100% no-repeat; cursor: ns-resize; }
.stages__track input::-webkit-slider-thumb { appearance: none; width: 2px; height: 61px; background: #161616; }
.stages__track input::-moz-range-thumb { width: 1px; height: 61px; border: 0; border-radius: 0; background: #161616; }
.stages__scroll { max-height: 242px; min-height: 0; overflow-y: auto; padding-inline: clamp(22px, 6.8vw, 131px) 20px; scrollbar-width: none; overscroll-behavior-y: contain; }
.stages__scroll::-webkit-scrollbar { display: none; }
.stages__scroll ol { padding-left: 24px; max-width: 65ch; }
.stages__scroll li { list-style: decimal; padding-left: 8px; max-width: 60ch; }
.stages__scroll li::marker { color: #797b80; font-family: var(--display); font-size: 14px; }
.stages__scroll li + li { margin-top: 27px; }
.wide-shot { aspect-ratio: 1920 / 990; overflow: hidden; background: #161616; }
.wide-shot img { width: 100%; height: 100%; object-fit: cover; }
.text-row { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); padding-block: clamp(40px, 6.25vw, 120px) clamp(40px, 5.2vw, 100px); }
.film--industries + .text-row { padding-top: clamp(0px, 2.1vw, 40px); }
.text-row p { max-width: 57em; }
.site-shot img { width: 100%; height: auto; }
.phones img { border-radius: var(--radius); }
.phones { margin-block-start: clamp(20px, 5.2vw, 100px); }
.editorial { padding-block: clamp(55px, 6.25vw, 120px) clamp(40px, 5.2vw, 100px); }
.editorial-composition { display: flow-root; position: relative; isolation: isolate; }
.editorial-composition::before { content: ""; z-index: -1; position: absolute; top: calc(clamp(20px, 5.2vw, 100px) + (100% - 2 * var(--gutter)) * 779 / 1760); left: -8.079%; width: 76.412%; aspect-ratio: 1467.1123 / 539.2986; background: url("assets/visual-wave.svg") center / contain no-repeat; transform: rotate(10.673deg); transform-origin: top left; pointer-events: none; }
.editorial__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 8.8vw, 169px); padding-inline-start: calc((100% - 2 * var(--gutter) + var(--gap)) / 3); }
.editorial h2 { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: clamp(14px, 1.6vw, 30px); }
.editorial p { max-width: 425px; }

.fragments { position: relative; container-type: inline-size; margin-block: clamp(40px, 5.21vw, 100px) clamp(40px, 6.25vw, 120px); aspect-ratio: 1920 / 3116; overflow: hidden; background: radial-gradient(ellipse at 52% 52%, #161616, #262626); color: #fff; }
.fragments__title { position: absolute; top: 2.567%; left: 4.167%; width: 28%; }
.fragments__title h2 { font-size: 2.083333cqw; }
.fragments__title p { position: absolute; top: 13.28cqw; font-size: .9375cqw; color: #5f5f61; }
.fragment { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; }
.fragment--menu { --x: 35.05%; --y: 2.57%; --w: 45.3125%; }
.fragment--scroll { --x: 0; --y: 11.8%; --w: 53.65%; }
.fragment--menu-mobile { --x: 81.406%; --y: 7.381%; --w: 14.427%; }
.fragment--sectors { --x: 4.167%; --y: 30.359%; --w: 45.3125%; }
.fragment--sectors-alt { --x: 27.344%; --y: 33.729%; --w: 45.3125%; }
.fragment--sectors-mobile { --x: 81.406%; --y: 30.359%; --w: 14.427%; }
.fragment--services { --x: 27.344%; --y: 52.632%; --w: 45.3125%; }
.fragment--lab { --x: 0; --y: 56.23%; --w: 53.65%; }
.fragment--services-mobile { --x: 81.406%; --y: 55.199%; --w: 14.427%; }
.fragment--career { --x: 4.167%; --y: 76.99%; --w: 45.3125%; }
.fragment--vacancy { --x: 50.521%; --y: 74.422%; --w: 45.3125%; }

.technology { padding-block: clamp(40px, 5.2vw, 100px) clamp(60px, 7.3vw, 140px); }
.technology__grid { display: grid; grid-template-columns: 1fr .74fr 1.26fr; align-items: start; gap: var(--gap); padding-top: 60px; border-top: 1px solid #d5d7da; }
.technology h3 { margin-bottom: 12px; color: #a8aaad; }
.technology__marks { width: min(504px, calc((100% - var(--gap)) * 2 / 3)); margin: clamp(60px, 7.55vw, 145px) 0 0 calc((100% + var(--gap)) / 3); }

@media (max-width: 767px) {
  :root { --large-size: clamp(32px, 11.11vw, 56px); --gap: 16px; }
  .intro { padding-top: 120px; }
  .intro h1 { max-width: 8em; }
  .intro__subtitle { margin-top: 16px; }
  .intro__details { grid-template-columns: minmax(0, 1fr) auto; gap: 30px 12px; margin-top: 36px; margin-bottom: 50px; font-size: 14px; }
  .intro__client { grid-area: 1 / 1 / 2 / -1; gap: 8px; }
  .intro__year { gap: 8px; }
  .year { padding: 5px 16px; }
  .film__screen { inset: 8.65% 4.88% auto; width: 90.24%; height: 82.7%; }
  .task { grid-template-columns: 1fr; row-gap: 40px; }
  .task > div:not(:first-child) { padding-top: 0; }
  .task li + li { margin-top: 8px; }
  .task h2, .task h3 { margin-bottom: 24px; }
  .mosaic--intro { aspect-ratio: 360 / 688; }
  .mosaic--intro::before, .mosaic--gallery::before { inset: 0; }
  .mosaic--intro::before { background-image: url("assets/grid-intro-mobile.svg"); }
  .tile-a, .tile-b { --x: 8.889%; --w: 82.222%; --h: 43.023%; }
  .tile-a { --y: 4.651%; }
  .tile-b { --y: 52.326%; }
  .theme-scene { --theme-height: clamp(440px, 112vw, 640px); }
  .stages { display: none; }
  .wide-shot { aspect-ratio: 360 / 260; }
  .text-row { grid-template-columns: 1fr; gap: 24px; }
  .site-shot { margin-inline: 0; }
  .phones img { border-radius: 12px; }
  .editorial-composition::before { display: none; }
  .editorial__inner { grid-template-columns: 1fr; padding: 0; }
  .mosaic--gallery { aspect-ratio: 360 / 1510; }
  .mosaic--gallery::before { background-image: url("assets/grid-gallery-mobile.svg"); }
  .mosaic__base { top: 78.212%; height: 21.788%; width: 163.889%; max-width: none; left: -31.945%; }
  .tile-c { --x: 8.889%; --y: 2.12%; --w: 82.222%; --h: 8.742%; }
  .tile-d { --x: 8.889%; --y: 12.98%; --w: 36.667%; --h: 8.742%; }
  .tile-f { --x: 54.444%; --y: 12.98%; --w: 36.667%; --h: 8.742%; }
  .tile-e { --x: 8.889%; --y: 23.841%; --w: 82.222%; --h: 19.603%; }
  .tile-g { --x: 8.889%; --y: 45.629%; --w: 36.667%; --h: 8.742%; }
  .tile-h { --x: 8.889%; --y: 56.49%; --w: 82.222%; --h: 8.742%; }
  .tile-i { --x: 8.889%; --y: 67.351%; --w: 36.667%; --h: 8.742%; }
  .tile-j { --x: 54.444%; --y: 67.351%; --w: 36.944%; --h: 8.742%; }
  .fragments { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; padding: 40px 0; gap: 8px; }
  .fragments__title { position: static; width: auto; align-self: stretch; margin: 0 var(--gutter) 20px; }
  .fragments__title h2 { font-size: 28px; }
  .fragments__title p { position: static; margin-top: 10px; font-size: 14px; }
  .fragment { position: static; width: 77.778%; }
  .fragment--menu { order: 1; }
  .fragment--scroll { order: 2; width: 91%; margin-block: -14px; }
  .fragment--menu-mobile { order: 3; width: 33.333%; margin-bottom: 8px; }
  .fragment--sectors { order: 4; }
  .fragment--sectors-alt { order: 5; }
  .fragment--sectors-mobile { order: 6; width: 33.333%; margin-bottom: 8px; }
  .fragment--services { order: 7; }
  .fragment--lab { order: 8; width: 91%; margin-block: -14px; }
  .fragment--services-mobile { order: 9; width: 33.333%; margin-bottom: 8px; }
  .fragment--career { order: 10; }
  .fragment--vacancy { order: 11; }
  .technology__grid { grid-template-columns: 1fr; gap: 36px; }
  .technology__marks { margin-inline-start: 0; width: min(265px, 100%); }
  .wide-shot--contact img { object-position: 45% center; }

}


