:root {
  --accent: #ff3e3e;
  --accentLight: #ffb6b6;
}

/* CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-padding-top: 200px;
  scroll-margin-top: 200px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  color: #000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-family: "Fira Sans", sans-serif;
  text-underline-offset: 3px;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 16px;
  font-weight: 400;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  text-wrap-style: balance;
  font-weight: 600;
  line-height: 1.2;
}
h1 {
  font-size: 64px;
  font-family: "Special Gothic Expanded One", sans-serif;
}

h2 {
  font-size: 32px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

h3 {
  font-size: 26px;
}

h4 {
  font-size: 22px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}
p {
  font-size: 16px;
  line-height: 1.6;
  text-wrap-style: balance;
}
strong {
  font-weight: 700;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*:focus {
  outline: none;
}
select:focus-visible,
input:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: none;
}
::selection {
  color: #fff;
  background-color: var(--accent);
}
.mobile .desktop-only {
  display: none !important;
}
.desktop .mobile-only {
  display: none !important;
}

.container {
  max-width: 1600px;
  padding: 0 20px;
  margin: 0 auto;
}
.big-padding {
  padding: 128px 0;
}

.grid {
  display: grid;
}
.grid:before,
.grid:after {
  display: none;
}

.gap16 {
  gap: 16px;
}
.gap32 {
  gap: 32px;
}
.gap64 {
  gap: 64px;
}

@media (min-width: 992px) {
  .grid1col {
    grid-template-columns: 1fr;
  }
  .grid2col {
    grid-template-columns: 1fr 1fr;
  }
  .grid3col {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .grid4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 64px;
    padding: 64px 0;
    margin: 64px 0;
  }

  .span2 {
    grid-column: span 2;
  }
  .span3 {
    grid-column: span 3;
  }
  .span4 {
    grid-column: span 4;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .grid1col {
    grid-template-columns: 1fr;
  }
  .grid2col {
    grid-template-columns: 1fr;
  }
  .grid3col {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .grid4col {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding: 32px 0;
    margin: 32px 0;
  }

  .span2 {
    grid-column: span 2;
  }
  .span3 {
    grid-column: span 3;
  }
  .span4 {
    grid-column: span 2;
  }

  .bust {
    transform: translate(20%, -268px);
  }
}
@media (max-width: 767px) {
  .grid1col {
    grid-template-columns: 1fr;
  }
  .grid2col {
    grid-template-columns: 1fr;
  }
  .grid3col {
    grid-template-columns: 1fr;
  }
  .grid4col {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
    margin: 32px 0;
  }

  .span2 {
    grid-column: span 1;
  }
  .span3 {
    grid-column: span 1;
  }
  .span4 {
    grid-column: span 2;
  }

  .bust {
    transform: translate(10%, -188px);
  }
}

.portfolio-grid:has(.portfolio-item:hover) .portfolio-item:not(:hover) {opacity: 0.5;filter: grayscale(1);}


/* cursor */
*,
button,
input[type="submit"],
a,
[role="button"] {
  cursor: none;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999;
  transition: filter 0.15s ease;
}

#custom-cursor svg polygon {
  fill: #000000;
  transition: fill 0.15s ease;
}

body.pointer-active #custom-cursor svg polygon {
  fill: #ff3e3e;
}
body.pointer-active:has(.portfolio-item:hover) #custom-cursor svg polygon {
  fill: #000;
}

/* Menu line */
.nav_wrapper {
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: #ffffffc9;
  backdrop-filter: blur(6px);
}
main {
    padding-top: 120px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 32px;
  font-family: "Special Gothic Expanded One", sans-serif;
  gap: 8px;
}

.logo a img {
  -webkit-transition: -webkit-transform 0.8s ease-in-out;
  transition: transform 0.8s ease-in-out;
}

.logo a img:hover {
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}

.navbar {
  align-items: center;
  display: flex;
  flex-direction: row;
  font-family: sans-serif;
  padding: 10px 20px;
}
.desktop .navbar {
  height: 80px;
}

.navigation {
  flex: 1;
}

/* Hamburger */
.hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
  outline: none;
  height: 30px;
  position: relative;
  width: 30px;
  z-index: 1000;
}

@media screen and (max-width: 991px) {
  .hamburger {
    display: inline-block;
  }
  .navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

/* Hamburger lines */
.hamburger-line {
  background: #000;
  height: 3px;
  position: absolute;
  left: 0;
  transition: all 0.2s ease-out;
  width: 100%;
}
.menu-active .hamburger-line {
  background: #222;
}

/* Hover effect */
.hamburger:hover .hamburger-line,
.menu-active .hamburger:hover .hamburger-line {
  background: var(--accent);
}

/* Line positions */
.hamburger-line-top {
  top: 3px;
}

.hamburger-line-middle {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line-bottom {
  bottom: 3px;
}

/* Active menu states */
.menu-active .hamburger-line-top {
  top: 50%;
  transform: rotate(45deg) translateY(-50%);
}

.menu-active .hamburger-line-middle {
  left: 50%;
  opacity: 0;
  width: 0;
}

.menu-active .hamburger-line-bottom {
  bottom: 50%;
  transform: rotate(-45deg) translateY(50%);
}

/* Nav menu */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.25s ease-in;
  align-items: center;
  z-index: 999;
  justify-content: flex-end;
  gap: 32px;
}

@media screen and (max-width: 991px) {
  .nav-menu {
    background-color: #fff;
    color: #000;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    position: fixed;
    top: 0;
    right: unset;
    bottom: unset;
    left: 100%;
    text-align: center;
    height: 100dvh;
    width: 100%;
  }

  .menu-active .nav-menu {
    left: 0;
    opacity: 1;
    top: 0;
    transform: none;
  }
}

/* Menu items */
.nav-menu .menu-item a {
  display: block;
  line-height: 1;
  margin: 0;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  padding: 12px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease-out;
}
.nav-menu .menu-item a:not(.btn):hover {
  color: #222;
  text-decoration: none;
  transition: all 0.3s ease-out;
}
@media (max-width: 991px) {
  .nav-menu .menu-item a:hover {
    color: var(--accent);
    text-decoration: none;
  }
}

.language-wrap {
  display: flex;
}
.nav-menu .menu-item .language-wrap a:not(:last-child) {
  border-right: solid 3px var(--accent);
}
.nav-menu .menu-item .language-wrap a {
  font-size: 14px;
  padding: 4px 12px;
}

.nav-menu .menu-item .nav-link.btn {
  background: var(--accent);
  color: #fff;
}
.nav-menu .menu-item .nav-link.btn:hover {
  background: #000;
  color: #fff;
}

#hero h1 {
  font-size: clamp(60px, 8dvw, 150px);
  font-family: "Special Gothic Expanded One", sans-serif;
  line-height: 1;
  letter-spacing: 3%;
  font-weight: 500;
  margin-bottom: 32px;
  position: relative;
  isolation: isolate;
  text-wrap-style: balance;
}
.text-xl {
  line-height: 1.2;
  letter-spacing: 3%;
  font-size: clamp(36px, 5dvw, 60px);
}
.text-accent {
  position: relative;
  isolation: isolate;
  display: inline-block;
}
#hero h1 .text-accent {z-index: -1;}
.text-accent:after {
  content: "";
  background-image: url("imgs/stroke_1.svg");
  display: block;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  top: -15px;
  left: -15px;
  opacity: 0.75;
}
.text-accent.thin-accent:after {
  background-image: url("imgs/stroke_2.svg");
}

/* portfolio gallery */

.portfolio-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.portfolio-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-item svg {
    position: absolute;
    inset: 0;
    overflow: visible;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.s1 {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition:
    opacity 0.3s linear 0s,
    clip-path 0s linear 0.3s;
}
.s2 {
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  transition:
    opacity 0.3s linear 0s,
    clip-path 0s linear 0.3s;
}
.s3 {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition:
    opacity 0.3s linear 0s,
    clip-path 0s linear 0.3s;
}
.s4 {
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  transition:
    opacity 0.3s linear 0s,
    clip-path 0s linear 0.3s;
}
.s5 {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition:
    opacity 0.3s linear 0s,
    clip-path 0s linear 0.3s;
}
.s6 {
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  transition:
    opacity 0.3s linear 0s,
    clip-path 0s linear 0.3s;
}

.portfolio-item:hover .s1 {
  clip-path: inset(0 0% 0 0);
  opacity: 1;
  transition:
    clip-path 0.05s linear 0s,
    opacity 0s linear 0s;
}
.portfolio-item:hover .s2 {
  clip-path: inset(0 0 0 0%);
  opacity: 1;
  transition:
    clip-path 0.05s linear 0.05s,
    opacity 0s linear 0s;
}
.portfolio-item:hover .s3 {
  clip-path: inset(0 0% 0 0);
  opacity: 1;
  transition:
    clip-path 0.05s linear 0.1s,
    opacity 0s linear 0s;
}
.portfolio-item:hover .s4 {
  clip-path: inset(0 0 0 0%);
  opacity: 1;
  transition:
    clip-path 0.05s linear 0.15s,
    opacity 0s linear 0s;
}
.portfolio-item:hover .s5 {
  clip-path: inset(0 0% 0 0);
  opacity: 1;
  transition:
    clip-path 0.05s linear 0.2s,
    opacity 0s linear 0s;
}
.portfolio-item:hover .s6 {
  clip-path: inset(0 0 0 0%);
  opacity: 1;
  transition:
    clip-path 0.05s linear 0.25s,
    opacity 0s linear 0s;
}

.item-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  opacity: 0;
  color: #fff;
  transition: opacity 0.3s linear 0s;
}
.portfolio-item:hover .item-caption {
  opacity: 1;
  transition: opacity 0.15s linear 0.3s;
}

.caption-heading {
  font-family: "Special Gothic Expanded One", sans-serif;
  line-height: 1.2;
  letter-spacing: 3%;
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 16px;
}
.caption-text {
  line-height: 1.4;
  letter-spacing: 3%;
  font-weight: 400;
  font-size: 20px;
  max-width: 60%;
  margin: 0 20%;
}
#footer {
  margin-top: 64px;
}

#footer .footer-flex {
  padding: 16px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 64px;
}

#footer .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Special Gothic Expanded One", sans-serif;
  line-height: 1;
  letter-spacing: 3%;
  font-weight: 500;
  font-size: 32px;
}
.timeline-list,
.skill-list {
  list-style-type: none;
  padding: 0;
  margin: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline-year,
.skill-name {
  font-size: 32px;
  font-family: "Special Gothic Expanded One", sans-serif;
  line-height: 1;
  letter-spacing: 3%;
  font-weight: 500;
  margin-right: 24px;
}
.timeline-name,
.skill-desc {
  color: var(--accent);
  font-weight: 500;
  font-size: 24px;
}
.timeline-list p,
.skill-list p {
  font-size: 24px;
}
.timeline-name + p,
.skill-desc + p {
  border-top: solid 0.5px;
  margin-top: 16px;
  padding-top: 16px;
}

.btn.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  padding: 12px 24px;
  text-align: center;
  position: relative;
  margin: 0;
  line-height: 1;
}
.btn.btn-primary:hover {
  background: #000;
  color: #fff;
}

.portfolio-item {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.portfolio-item.hidden {
  display: none;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.filter-btn {
  font-size: 24px;
}

.filter-btn.active {
  font-weight: 600;
}

.main-link {
  font-size: clamp(56px, 8dvw, 120px);
  font-family: "Special Gothic Expanded One", sans-serif;
  line-height: 1;
  letter-spacing: 3%;
  font-weight: 500;
  transition: all 0.3s ease-out;
}
.main-link.smaller {
  font-size: clamp(24px, 4dvw, 40px);
}
.main-link:hover {
  filter: blur(3px);
  transition: all 0.3s ease-out;
}

dialog#addressDialog {
  border: none;
  border-radius: 12px;
  padding: 32px 40px;
  max-width: 340px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
dialog#addressDialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
dialog#addressDialog p {
  line-height: 1.6;
  font-size: 24px;
  font-family: "Special Gothic Expanded One", sans-serif;
  letter-spacing: 3%;
  font-weight: 500;
  transition: all 0.3s ease-out;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

#contact_form {
  background: var(--accent);
  padding: 64px;
  margin: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#contact_form label {
  font-size: 0;
  position: relative;
}
#contact_form .asterisk {
  font-size: 32px;
  font-weight: 600;
  position: absolute;
  right: 10px;
}
#contact_form input,
#contact_form textarea {
  font-size: 16px;
  border: none;
  width: 100%;
  padding: 8px 16px;
  color: #000;
  font-weight: 600;
}
#contact_form input::placeholder,
#contact_form textarea::placeholder {
  font-size: 16px;
  color: #666;
  font-weight: 600;
}
#contact_form button {
  display: block;
  line-height: 1;
  margin: 0;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  padding: 12px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease-out;
  background: #fff;
}
#contact_form button:hover {
  transition: all 0.3s ease-out;
  background: #000;
  color: #fff;
}
@media (max-width: 767px) {
  #contact_form {
    padding: 64px 32px;
    margin: 64px -20px;
  }
}

.breadcrumbs {
  display: flex;
  gap: 16px;
}
.breadcrumbs a {
  color: var(--accent);
}

.project-category {
  color: #fff;
  margin: 16px 16px 0px;
  font-size: 24px;
}
.project-description {
  margin-top: 16px;
  padding-top: 16px;
  font-size: 24px;
  font-size: clamp(16px, 2dvw, 24px);
}
.project-cta-heading {
  color: #000;
  text-align: center;
  margin: 64px 0 32px;
}
.project-parameters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  margin-top: 24px;
}
.project-parameters:not(:has(> div:nth-child(5))) {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.project-parameters:not(:has(> div:nth-child(4))) {
  grid-template-columns: 1fr 1fr 1fr;
}
.project-parameters div {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: solid 1px;
  border-left: none;
}
.project-parameters div:first-child {
  border-left: solid 1px;
}
.project-parameters span {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 12px;
}

/* ---------- browser frame ---------- */
.browser-window {
  max-width: 1366px;
  width: 100%;
  margin: 32px auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6e4dc;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
}
.browser-bar {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  border: solid 1px #c55d5c;
  background: #ec5e61;
}
.dot.yellow {
  border: solid 1px #d1ac5b;
  background: #fbc547;
}
.dot.green {
  border: solid 1px #4ea650;
  background: #4fbf51;
}
.browser-body {
  background: #fff;
}
.browser-body img {
  display: block;
  width: 100%;
  height: auto;
}

.browser-body .slick-dots li button:before {
  color: #000;
  opacity: 0.3;
  font-size: 8px;
}
.browser-body .slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--accent);
}
.browser-body .slick-prev:before,
.browser-body .slick-next:before {
  color: #000;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 64px;
}
.mobile .lightbox {
  padding: 64px 16px;
}
.lightbox.open {
  display: flex;
}

.lightbox-inner {
  width: 100%;
  max-width: 1920px;
}
.lightbox-slider img {
  display: block;
  max-height: calc(100dvh - 64px);
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 999;
}
.mobile .lightbox-close {
  border: none;
  background: #fff;
  color: #000;
  font-size: 42px;
}
.lightbox-close:hover {
  border-color: var(--accent);
}
.browser-body .slick-loading img,
.lightbox-slider .slick-loading img {
  visibility: hidden;
}
.browser-body .slick-slide,
.lightbox-slider .slick-slide {
  background: transparent;
}

.in-index #hero {
  background-image: url(imgs/bust.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
}
.thank-you #hero {
  background-image: url(imgs/happy_bust.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
}

@media (min-width: 600px) and (max-width: 991px) {
  .in-index #hero,
  .thank-you #hero {
    background-position: right bottom;
    padding-bottom: 0;
    background-size: 60%;
  }
  .in-index #hero h1,
  .thank-you #hero h1 {
    max-width: 60%;
  }
  .in-index #hero h1 + div .text-xl,
  .thank-you #hero h1 + div .text-xl {
    max-width: 50%;
  }
  .project-parameters:has(> div:nth-child(4)) {
    grid-template-columns: 1fr 1fr;
  }
  .project-parameters:has(> div:nth-child(5)) div:last-child {
    grid-column: span 2;
    border-top: none;
    border-left: solid 1px;
  }
  .project-parameters:has(> div:nth-child(4)) div:nth-child(1),
  .project-parameters:has(> div:nth-child(4)) div:nth-child(2) {
    border-bottom: none;
  }
  .project-parameters:has(> div:nth-child(4)) div:nth-child(3) {
    border-left: solid 1px;
  }
}

@media (max-width: 599px) {
  .project-parameters,
  .project-parameters:not(:has(> div:nth-child(4))) {
    grid-template-columns: 1fr 1fr;
  }
  .project-parameters:has(> div:nth-child(4)) div:nth-child(1),
  .project-parameters:has(> div:nth-child(4)) div:nth-child(2) {
    border-bottom: none;
  }
  .project-parameters:has(> div:nth-child(4)) div:nth-child(3) {
    border-left: solid 1px;
  }
  .project-parameters:has(> div:nth-child(5)) div:last-child {
    grid-column: span 2;
    border-top: none;
    border-left: solid 1px;
  }
  .in-index #hero,
  .thank-you #hero {
    background-position: right bottom;
    padding-bottom: 40%;
    background-size: 60%;
  }
  #hero + section .portfolio-grid {
    margin-top: 0;
    padding-top: 0;
  }

  .in-index #hero h1 + div .text-xl,
  .thank-you #hero h1 + div .text-xl {
    max-width: 100%;
    margin-top: 32px;
  }
  .in-index #hero h1 + div .text-xl + em,
  .thank-you #hero h1 + div .text-xl + em {padding-bottom: 200px;}
  .project-parameters > div {
    padding: 8px 16px;
  }
}

.slick-dots {
  display: flex;
  justify-content: center;
  list-style-type: none;
  gap: 16px;
  position: absolute;
  z-index: 999;
  bottom: 32px;
  left: 50%;
  padding: 4px 8px;
  background: #fff;
  border-radius: 16px;
  transform: translateX(-50%);
}
.mobile .slick-dots {
  bottom: 8px;
}
.slick-dots li {
  line-height: 0;
}
.slick-dots li button {
  font-size: 0;
  width: 8px;
  height: 8px;
  background: #dcdcdc;
  border-radius: 1000%;
  line-height: 1;
  padding: 0;
}
.slick-dots li.slick-active button {
  background: var(--accent);
}
.slick-dots li button:hover,
.slick-dots li.slick-active button:hover {
  background: #000;
}
.lightbox-slider .slick-prev,
.lightbox-slider .slick-next {
  position: absolute;
  z-index: 999;
  background: #fff;
  font-size: 0;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #000;
}
.lightbox-slider .slick-next {
  left: unset;
  right: 16px;
}
.lightbox-slider .slick-prev:before,
.lightbox-slider .slick-next:before {
  content: "\21BD";
  font-size: 26px;
  font-weight: 900;
  line-height: 0;
  line-height: 9px;
}
.lightbox-slider .slick-next:before {
  content: "\21C1";
}
.lightbox-slider .slick-prev:hover,
.lightbox-slider .slick-next:hover {
  color: #fff;
  background: var(--accent);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 64px 0;
}
@media (max-width: 991px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
}

.browser-slider img,
.lightbox-slider img {
  display: block;
  width: 100%;
  height: auto;
}
.browser-body {
  aspect-ratio: 16 / 9;
}

body.mobile .browser-bar {
  display: none;
}
body.mobile .browser-body {
  aspect-ratio: auto;
}

body.mobile .browser-slider img {
  width: auto;
  max-height: 70vh;
  margin: 0 auto;
}

.desktop .disclaimer {
  display: none;
}
.mobile .disclaimer {
  font-size: 16px;
  text-align: center;
  font-weight: 400;
  display: block;
  color: var(--accent);
}

.project-parameters a {
  text-decoration: underline;
}
.project-parameters a:hover {
  text-decoration: none;
}

.ref-grid {
    list-style-type: none;
    padding: 0;
    margin: 64px 0;
    gap: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.ref {}
.ref .ref-logo {
    padding: 0 16px;
    display: flex;
    justify-content: flex-end;
}
.ref .ref-logo img {
    max-width: 128px;
    max-height: 72px;
}
.ref .ref-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ref .ref-stars {
    font-size: 32px;
    color: var(--accent);
    line-height: 1;
}
.ref .ref-name {
    font-size: 24px;
    font-family: "Special Gothic Expanded One", sans-serif;
    line-height: 1;
    letter-spacing: 3%;
    font-weight: 500;
    margin: -8px 0 0 0;
    padding: 16px 16px 0 16px;
    display: flex;
    justify-content: flex-end;
}
.ref .ref-link {
    color: #000;
    text-decoration: underline;
}
.ref .ref-link:hover {
    color: #000;
    text-decoration: none;
}
.ref .ref-text {}

.client-slider {margin:64px 0 0;}
.client-slider .slick-track {display:flex;align-items: center;}
.client-slider span {padding:16px 32px;}
.client-slider img {
    max-width: 200px;
    max-height: 150px;
    width: 100%;
    height: 100%;
}
.client-slider .slick-dots {
    position: unset;
    margin: 32px auto 0;
    transform: none;
}
@media (max-width:991px) {
  .client-slider span {padding:0 16px;}
}

#bug-banner {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    line-height: 1.4;
    text-align: center;
    max-height: 200px;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease, opacity .2s ease;
    bottom: 0;
    left: 0;
    right: 0;
}
  #bug-banner[hidden] { display: none; }
  #bug-banner.is-closing { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
  #bug-banner-ok {
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    white-space: nowrap;
    display: grid;
    padding: 0;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}
  #bug-banner-ok:after {
    content: '+';
    font-size: 30px;
    font-weight: 300;
    transform: rotate(45deg);
    line-height: 0;
}
  #bug-banner-ok:hover, #bug-banner-ok:focus-visible { background: #fff; color: #111; outline: none; }

.bug-track {
    --scale: 1;
    --fw: calc(24px * var(--scale));
    --fh: calc(35px * var(--scale));
    position: fixed;
    left: 16px;
    bottom: 16px;
    transform: rotate(25deg);
}

.bug {
  width: var(--fw);
  height: var(--fh);

  background-color: #222;
  -webkit-mask: url("imgs/bug_sprite.svg") 0 0 / calc(var(--fw) * 8) var(--fh) no-repeat;
          mask: url("imgs/bug_sprite.svg") 0 0 / calc(var(--fw) * 8) var(--fh) no-repeat;

  animation: legs 0.72s steps(8) infinite;
}

@keyframes legs {
  to { -webkit-mask-position: calc(var(--fw) * -8) 0;
               mask-position: calc(var(--fw) * -8) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bug { animation: none; }
}

#custom-cursor { display: none; }
html.cursor-on #custom-cursor { display: block; }
html.cursor-on, html.cursor-on * { cursor: none; }



@media (max-width:991px) {
  main {
    padding-top:90px;
  }
.portfolio-item {
    aspect-ratio: unset;
}
.portfolio-item img {
    position: unset;
}
.portfolio-item svg {
    display: none;
}
.item-caption {
    justify-content: flex-end;
    padding: 0 24px 24px;
    opacity: 1;
    background: #FF3E3E;
    background: linear-gradient(0deg, rgba(255, 62, 62, 0.5) 0%, rgba(255, 62, 62, 0) 100%);
}
.caption-heading {
    margin-bottom: 0;
}
.caption-text {
    display: none;
}
}

@media (max-width: 599px) {
  .client-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.client-slider span {padding:0;
display: flex;
        align-items: center;
      }
.client-slider img {
        max-width: 100px;
        height: auto;
}
.client-slider {
        display: flex;
        flex-wrap: wrap;
        gap: 32px;
        justify-content: center;
    }
.client-slider span:nth-child(3) {order:97;}
.client-slider span:nth-child(7) {order:98;}
.client-slider span:nth-child(14) {order:99;}
.client-slider span:nth-child(3) img,
.client-slider span:nth-child(7) img,
.client-slider span:nth-child(14) img {max-height: 80px;}
#bug-banner {
    padding-left: 60px;
    text-align: left;
}
.text-xl {
    font-size: 30px;
}
}

@media (max-width: 599px) {
.thank-you #hero {
        background-position: right bottom;
        padding-bottom: 80%;
        background-size: 60%;
    }
}
@media (min-width: 600px) and (max-width: 767px) {
.thank-you #hero .container {
    display: flex;
    align-items: center;
    padding-bottom: 400px;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.thank-you #hero .container {
      min-height: 80dvh;
    display: flex;
    align-items: center;
}
}
@media (min-width: 992px) {
.thank-you #hero .container {
      min-height: 70dvh;
    display: flex;
    align-items: center;
}
.hide-on-desktop {display: none;}
}
.contact-label {font-size: 14px;color: var(--accent);display:block;}

.btn-contact.is-loading { opacity: 0.8; pointer-events: none; }

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }


@media (max-width: 991px) {
.project main {
        display: flex;
        flex-direction: column;
}
.project-description .hide-on-desktop {margin: 32px; gap: 16px;}
}