@font-face {
  font-family: "Proxima Nova Local";
  src: url("assets/fonts/proximanova-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova Local";
  src: url("assets/fonts/proximanova-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova Local";
  src: url("assets/fonts/proximanova-semibold-webfont.woff2") format("woff2"),
    url("assets/fonts/proximanova-semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova Local";
  src: url("assets/fonts/proximanova-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #111111;
  --dark: #333333;
  --muted: #757575;
  --line: #dddddd;
  --soft: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  --card-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
  --card-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  font-family: "Proxima Nova Local", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  background: var(--white);
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
.project-gallery img:focus-visible {
  outline: 3px solid #4f9cff;
  outline-offset: 4px;
}

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 62px;
  background: var(--black);
}

.header-shell {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  width: 40px;
  height: 62px;
  overflow: hidden;
  text-indent: -9999px;
  background: url("assets/sprite-mobile.png") 0 -63px no-repeat;
  transition: opacity 180ms ease;
}

.logo:hover {
  opacity: 0.55;
}

.nav-toggle {
  width: 44px;
  height: 62px;
  border: 0;
  padding: 0;
  overflow: hidden;
  text-indent: -9999px;
  cursor: pointer;
  background: url("assets/sprite-mobile.png") -42px -63px no-repeat;
  transition: opacity 180ms ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  opacity: 0.65;
}

.site-nav {
  position: absolute;
  top: 62px;
  right: 0;
  left: 0;
  display: none;
  background: #222222;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.nav-open .site-nav {
  display: block;
}

.main-links,
.social-links,
.work-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-links a {
  display: block;
  min-height: 64px;
  line-height: 64px;
  color: var(--white);
  text-decoration: none;
  text-transform: lowercase;
  border-top: 1px solid #212121;
  border-bottom: 1px solid #363636;
  transition: color 180ms ease, background-color 180ms ease;
}

.main-links a:hover {
  color: #bdbdbd;
  background: #1b1b1b;
}

.main-links a[aria-current="page"] {
  color: var(--muted);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 22px;
}

.social-links a {
  display: block;
  width: 32px;
  height: 32px;
  overflow: hidden;
  text-indent: -9999px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px 32px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-links a:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.social-links .telegram a {
  background-image: url("assets/social-telegram.svg?v=20260626-7");
}

.social-links .whatsapp a {
  background-image: url("assets/social-whatsapp.svg?v=20260626-8");
}

.social-links .linkedin a {
  background-image: url("assets/social-linkedin.svg?v=20260626-7");
}

.social-links .facebook a {
  background-image: url("assets/social-facebook.svg?v=20260626-7");
}

.social-links .instagram a {
  background-image: url("assets/social-instagram.svg?v=20260626-7");
}

.content {
  min-height: 100vh;
}

.hero {
  background: var(--white);
  overflow: hidden;
}

.face {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.face-img {
  width: 100%;
  height: auto;
}

.designer-img,
.coder-img,
.designer-bg,
.coder-bg {
  display: none;
}

.role-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 44%;
  color: var(--muted);
  text-decoration: none;
}

.designer-panel {
  left: 0;
}

.coder-panel {
  right: 0;
  text-align: right;
}

.description {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  transition: color 160ms ease, opacity 80ms linear;
}

.designer-panel .description {
  left: 0;
}

.coder-panel .description {
  right: 0;
}

.role-heading {
  display: block;
  color: var(--dark);
  font-size: clamp(22px, 7vw, 46px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.role-copy {
  display: none;
}

.role-panel:hover .role-heading {
  color: var(--muted);
}

.chevron-left {
  padding-right: 0.04em;
}

.chevron-right {
  padding-left: 0.08em;
}

.latest-work {
  padding: 58px 0 44px;
  background: var(--soft) url("assets/bg-grey-med.png") repeat;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

.latest-work h2 {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.work-card {
  padding: 16px 16px 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.work-card a {
  display: block;
  color: var(--dark);
  text-decoration: none;
}

.work-card img {
  width: 100%;
  aspect-ratio: 314 / 184;
  object-fit: cover;
  border-radius: 8px;
}

.card-copy {
  position: relative;
  display: block;
  min-height: 80px;
  padding: 16px 0;
}

.card-title,
.card-type {
  display: block;
  overflow: hidden;
}

.card-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 300;
}

.card-type {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow-r {
  display: none;
}

.site-footer {
  position: relative;
  min-height: 90px;
  padding: 34px 0 22px;
  color: var(--muted);
  background: var(--soft);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 16px;
}

.gradient-white {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--white));
}

.footer-shell {
  display: grid;
  gap: 12px;
  padding-bottom: 42px;
}

.copyright,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.copyright:hover,
.footer-nav a:hover {
  color: var(--dark);
}

.footer-nav {
  display: none;
}

.back-top {
  position: absolute;
  left: 50%;
  bottom: -40px;
  display: block;
  width: 118px;
  height: 90px;
  margin-left: -59px;
  overflow: hidden;
  text-indent: -9999px;
  background: url("assets/sprite.png") 0 -217px no-repeat;
  transition: bottom 180ms ease;
}

.back-top:hover {
  bottom: -35px;
}

.page-hero {
  padding: 58px 0 48px;
  background: var(--white);
}

.page-title {
  margin: 0;
  color: var(--dark);
  font-size: clamp(54px, 15vw, 112px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
}

.page-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--dark);
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.2;
  font-weight: 300;
}

.page-description {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.page-band {
  padding: 54px 0;
  background: var(--soft) url("assets/bg-grey-med.png") repeat;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

.page-band.white {
  background: var(--white);
  box-shadow: none;
}

.section-heading {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.text-columns {
  display: grid;
  gap: 28px;
}

.text-block h2,
.page-card h2 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 300;
}

.text-block p,
.page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-card {
  padding: 22px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.page-card a,
.contact-list a {
  color: var(--dark);
  text-decoration: none;
  transition: color 180ms ease;
}

.page-card a:hover,
.contact-list a:hover {
  color: var(--muted);
}

.page-card img {
  width: 100%;
  aspect-ratio: 314 / 184;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 8px;
}

.page-card .card-type {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-list {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 300;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-meta li {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.button-link {
  display: inline-block;
  min-height: 46px;
  margin-top: 28px;
  padding: 12px 18px;
  color: var(--white);
  text-decoration: none;
  background: var(--dark);
  border-radius: 4px;
  transition: background-color 180ms ease, color 180ms ease;
}

.button-link:hover {
  color: var(--white);
  background: var(--muted);
}

.project-gallery {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-gallery img {
  width: 100%;
  cursor: zoom-in;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  background: var(--white);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 64px 84px 34px;
  background: #2f2f2f;
}

.lightbox-frame {
  position: relative;
  display: flex;
  width: min(1120px, 100%);
  max-height: calc(100vh - 160px);
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.42);
}

.lightbox-close,
.lightbox-nav {
  z-index: 2;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid #4f9cff;
  outline-offset: 4px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 34px;
  line-height: 40px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  width: 56px;
  height: 74px;
  padding: 0 0 5px;
  border-radius: 6px;
  font-size: 58px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
  left: max(18px, calc((100vw - 1280px) / 2));
}

.lightbox-next {
  right: max(18px, calc((100vw - 1280px) / 2));
}

.image-lightbox.single .lightbox-nav {
  display: none;
}

.lightbox-counter {
  margin: 18px 0 0;
  color: #d6d6d6;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 700px) {
  .image-lightbox {
    padding: 62px 14px 24px;
  }

  .lightbox-frame {
    max-height: calc(100vh - 170px);
  }

  .lightbox-image {
    max-height: calc(100vh - 170px);
    border-radius: 6px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    width: 44px;
    height: 58px;
    font-size: 46px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

}

@media (min-width: 630px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .role-panel {
    width: 32%;
  }

  .role-copy {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.35;
  }

  .work-card {
    padding: 8px 8px 0;
  }

  .card-copy {
    padding: 16px;
  }

  .text-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 830px) {
  .site-header {
    height: 92px;
  }

  .header-shell {
    height: 92px;
  }

  .logo {
    width: 62px;
    height: 92px;
    background: url("assets/sprite.png") 0 -93px no-repeat;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 30px;
    width: auto;
    background: transparent;
    box-shadow: none;
  }

  .main-links {
    display: flex;
    align-items: center;
  }

  .main-links a {
    min-height: 92px;
    padding: 0 16px;
    line-height: 92px;
    border: 0;
    background: transparent;
    font-size: 16px;
  }

  .main-links a:hover {
    color: var(--muted);
    background: transparent;
  }

  .social-links {
    gap: 24px;
    padding: 0;
  }

  .latest-work {
    padding: 61px 0 96px;
  }

  .latest-work h2 {
    margin-bottom: 48px;
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
  }

  .page-hero {
    padding: 76px 0 70px;
  }

  .page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
  }

  .footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .footer-nav {
    display: flex;
    gap: 24px;
  }
}

@media (min-width: 1140px) {
  .face {
    width: 1040px;
    height: 600px;
  }

  .face-img {
    display: none;
  }

  .designer-img,
  .coder-img {
    position: absolute;
    top: 0;
    z-index: 1;
    display: block;
    width: 420px;
    height: 600px;
    background: url("assets/sprite-home.png") 0 0 no-repeat;
    will-change: width, left, right;
  }

  .designer-img {
    left: 100px;
    background-position: 0 -600px;
  }

  .coder-img {
    right: 100px;
    background-position: 100% 0;
  }

  .designer-bg,
  .coder-bg {
    position: absolute;
    bottom: 0;
    z-index: 0;
    display: block;
    width: 420px;
    height: 200px;
    background: url("assets/sprite-home.png") 0 -1300px no-repeat;
  }

  .designer-bg {
    left: 100px;
  }

  .coder-bg {
    right: 100px;
    background-position: 100% -1300px;
  }

  .role-panel {
    width: 520px;
    height: 600px;
  }

  .description {
    top: 180px;
    width: 290px;
    transform: none;
    padding: 0;
  }

  .designer-panel .description {
    left: -20px;
  }

  .coder-panel {
    text-align: left;
  }

  .coder-panel .description {
    right: 0;
  }

  .role-heading {
    font-size: 76px;
    line-height: 1.1;
  }

  .role-copy {
    font-size: 18px;
    line-height: 1.4;
  }

  .arrow-r {
    position: absolute;
    top: 24px;
    right: 10px;
    display: block;
    width: 32px;
    height: 32px;
    background: url("assets/sprite.png") -63px -107px no-repeat;
  }

  .card-copy {
    padding-right: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
