:root {
  --craft-mobile-arrow: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-1 -1 16 13%22%3E%3Cpath d=%22M0 5.5H14M9.05.55L14 5.5 9.05 10.45%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22/%3E%3C/svg%3E');
}

.home-logo__custom {
  display: block;
  max-width: min(40vw, 273px);
  max-height: 32px;
  object-fit: contain;
}

.home-header:not(.home-header--light) .home-logo__custom--light,
.home-header--light .home-logo__custom--dark {
  display: none;
}

.home-footer__social {
  width: auto;
  gap: 32px;
}

.home-footer__social span {
  font-size: 18px;
  white-space: nowrap;
}

.about-overview {
  --overview-gutter: clamp(32px, calc(3.333vw - 16px), 48px);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0 16px;
  padding: clamp(144px, 10vw, 192px) var(--overview-gutter);
  color: #000;
  background: #fff;
}

.about-overview h2 {
  grid-column: 1 / 2;
  margin: 0;
  font: 400 24px / 32px Bounded, sans-serif;
  text-transform: uppercase;
}

.about-overview__lead {
  grid-column: 2 / -1;
  font: 400 clamp(48px, calc(5vw - 24px), 72px) / 1 Bounded, sans-serif;
  letter-spacing: -.04em;
}

.feature-word,
.feature-word > span {
  display: inline-block;
}

.feature-word {
  overflow: clip;
  overflow-clip-margin: 2px;
  vertical-align: top;
}

.about-overview strong {
  color: #ab5224;
  font-weight: inherit;
}

.about-overview__lead strong:first-child,
.about-overview__slogan strong {
  text-transform: uppercase;
}

.about-overview__lead p,
.about-overview__detail p {
  margin: 0;
}

.about-overview__lead p + p,
.about-overview__detail p + p {
  margin-top: 1em;
}

.about-overview__detail,
.about-overview__slogan {
  grid-column: 3 / 8;
  margin: 0;
  font: 500 32px / 1 Onest, sans-serif;
}

.about-overview__detail {
  margin-top: 96px;
}

.about-overview__slogan {
  margin-top: 48px;
  font-size: 48px;
}

[data-craft-map].geography__map--svg {
  overflow: clip;
}

.portfolio-hero .portfolio-hero__inner {
  display: block;
}

.portfolio-hero .portfolio-hero__inner.container,
.portfolio-catalog .portfolio-toolbar.container {
  width: auto;
  max-width: none;
  margin-inline: clamp(16px, 2.5vw, 48px);
  padding-inline: 0;
}

.portfolio-hero .portfolio-hero__title {
  font: 400 clamp(48px, calc(5vw - 24px), 72px) / 1.24 Bounded, sans-serif;
}

.portfolio-hero__intro {
  margin: 32px 0 0;
  max-width: 56ch;
}

.portfolio-catalog .portfolio-toolbar {
  min-height: 24px;
  margin-top: 96px;
}

.portfolio-catalog .portfolio-filters,
.portfolio-catalog .portfolio-layout {
  min-height: 24px;
}

.portfolio-catalog .portfolio-filters__button,
.portfolio-catalog .portfolio-layout__button {
  position: relative;
  min-width: 0;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: #808080;
  background: transparent;
  font: 500 18px / 24px Onest, sans-serif;
  text-transform: uppercase;
}

.portfolio-layout > span {
  color: #949494;
  font: 500 18px / 24px Onest, sans-serif;
  text-transform: uppercase;
}

.portfolio-catalog .portfolio-filters__button[aria-pressed="true"],
.portfolio-catalog .portfolio-layout__button[aria-pressed="true"],
.portfolio-catalog .portfolio-filters__button:hover,
.portfolio-catalog .portfolio-layout__button:hover {
  color: #000;
}

.portfolio-filters__button::after,
.portfolio-layout__button::after,
.project-related__title::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease-out;
}

.portfolio-filters__button:hover::after,
.portfolio-filters__button:focus-visible::after,
.portfolio-filters__button[aria-pressed="true"]::after,
.portfolio-layout__button:hover::after,
.portfolio-layout__button:focus-visible::after,
.portfolio-layout__button[aria-pressed="true"]::after,
.project-related__title:hover::after,
.project-related__title:focus-visible::after {
  transform: scaleX(1);
}

.portfolio-catalog .portfolio-gallery,
.portfolio-catalog .portfolio-gallery[data-columns="4"] {
  margin-top: 48px;
}

.project-related__title {
  position: relative;
}

.project-heading {
  min-height: 0;
  align-items: center;
  gap: 16px;
  padding: 48px clamp(32px, 2.5vw, 48px);
}

.project-heading__title {
  font-size: 32px;
  line-height: 48px;
}

.project-heading__meta {
  color: #808080;
  font: 500 24px / 32px Onest, sans-serif;
  text-transform: none;
}

.project-hero .project-hero__play {
  right: clamp(24px, 2.5vw, 48px);
  left: auto;
}

.home-header .home-header__controls {
  --control-divider: rgb(255 255 255 / 10%);
}

@media (min-width: 761px) {
  .home-header .home-header__link {
    font-weight: 500;
    transition: color .24s ease, opacity .24s ease;
  }

  .home-header__bar:has(.home-header__link:is(:hover, :focus-visible), .home-header__controls > :is(:hover, :focus-within)) :is(.home-header__link, .home-header__controls > *) {
    opacity: .5;
  }

  .home-header__bar:has(.home-header__link:is(:hover, :focus-visible), .home-header__controls > :is(:hover, :focus-within)) :is(.home-header__link:is(:hover, :focus-visible), .home-header__controls > :is(:hover, :focus-within)) {
    opacity: 1;
    color: inherit;
  }
}

.home-header__nav .craft-sliding-indicator {
  display: none;
}

.home-header .home-header__link {
  border-color: transparent;
}

.home-header--light .home-header__controls {
  --control-divider: rgb(0 0 0 / 10%);
}

.home-header .home-header__controls > :is(.home-header__language, .home-header__action) {
  flex-shrink: 0;
  justify-content: flex-start;
  width: var(--home-header-control-size);
  border: 0;
  border-inline-start: 1px solid var(--control-divider);
  background: transparent;
  transition: width .35s cubic-bezier(.22, 1, .36, 1), background-color .24s ease, opacity .24s ease;
}

.home-header .home-header__controls > :last-child {
  border-inline-end: 1px solid var(--control-divider);
}

.home-header--light .home-header__controls > :is(.home-header__language, .home-header__action) {
  border-block: 1px solid var(--control-divider);
}

.home-header .home-header__controls > :is(.home-header__language, .home-header__action):hover {
  background-color: rgb(255 255 255 / 8%);
}

.home-header--light .home-header__controls > .home-header__action:hover {
  background-color: rgb(0 0 0 / 5%);
}

.home-header .home-header__language-option {
  width: calc(var(--home-header-control-size) - 1px);
  min-width: calc(var(--home-header-control-size) - 1px);
  font-weight: 500;
  letter-spacing: .02em;
}

.home-header .home-header__language:has(.home-header__language-option + .home-header__language-option):is(:hover, :focus-within) {
  width: calc(var(--home-header-control-size) * 2 - 1px);
}

.home-header--light .home-header__language-option--active {
  background-color: rgb(0 0 0 / 6%);
}

.home-header .home-header__language-option + .home-header__language-option {
  border-inline-start: 1px solid var(--control-divider);
}

.home-header .home-header__action {
  padding-inline: calc((var(--home-header-control-size) - 24px - 2px) / 2);
}

.home-header .home-header__action--phone:is(:hover, :focus-visible) {
  width: 192px;
}

.home-header .home-header__action--email:is(:hover, :focus-visible, .is-copied) {
  width: 216px;
}

@supports (interpolate-size: allow-keywords) {
  .home-header .home-header__action {
    interpolate-size: allow-keywords;
  }

  .home-header .home-header__action:is(:hover, :focus-visible, .is-copied) {
    width: max-content;
    max-width: min(36vw, 32rem);
  }
}

.home-header .home-header__action img {
  width: 24px;
  height: 24px;
}

.home-header.home-header--light .home-header__action img {
  filter: brightness(0);
}

.home-header .home-header__action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-header .home-header__controls > :is(.home-header__language, .home-header__action),
  .home-header .home-header__action span {
    transition: none;
  }
}

.home-footer__map-link {
  opacity: .55;
  transition: opacity .24s ease;
}

.home-footer__map-link:hover,
.home-footer__map-link:focus-visible {
  opacity: 1;
}

.design-pixels {
  position: relative;
  pointer-events: none;
}

.design-pixels svg {
  display: block;
  width: 100%;
  height: auto;
}

.design-pixels__art--mobile {
  display: none;
}

.design-pixels--footer-gray-pixels {
  position: absolute;
  inset: auto 0 0;
}

.page--about .geography {
  min-height: 0;
  padding: 48px clamp(32px, 2.5vw, 48px) 38px;
  overflow: hidden;
}

@media (min-width: 761px) {
  .page--about .geography {
    padding-top: clamp(64px, 5vw, 96px);
  }
}

.page--about .geography__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  color: #000;
  font: 400 24px / 32px Bounded, sans-serif;
  text-transform: uppercase;
}

.page--about .geography__title span {
  color: #ab5224;
}

.page--about [data-craft-map] {
  height: min(45.104vw, 866px);
  min-height: 0;
  margin-top: 64px;
  overflow: clip;
}

[data-craft-map] .geography__stage {
  width: 1596px;
  height: 866px;
  max-width: none;
  transform-origin: top left;
}

.geography__art {
  display: block;
  width: 1596px;
  height: 866px;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

[data-craft-map]:not(.geography__map--svg) > .geography__art {
  margin-inline: auto;
}

[data-craft-map] .geography__marker {
  width: 6px;
  height: 6px;
  background: #737373;
  transition: background-color .2s ease, box-shadow .24s ease;
}

[data-craft-map] .geography__marker:not(.geography__marker--labeled, .is-selected, :hover, :focus-visible) {
  opacity: .3;
}

[data-craft-map] .geography__marker:is(:hover, :focus-visible) {
  animation: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgb(171 82 36 / 30%);
}

[data-craft-map] .geography__marker:is(.is-selected, .geography__marker--highlight) {
  z-index: 7;
  background: #111;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgb(171 82 36 / 54%);
}

[data-craft-map] .geography__marker .geography__marker-label {
  inset: 50% auto auto calc(100% + 8px);
  color: #555;
  font-size: 12px;
  transform: translateY(-50%);
}

[data-craft-map] .geography__marker:is(.geography__marker--labeled, .is-selected, :hover, :focus-visible) .geography__marker-label {
  visibility: visible;
  opacity: 1;
}

[data-craft-map] .geography__marker:is(.is-selected, .geography__marker--highlight) .geography__marker-label {
  color: #111;
}

[data-craft-map] .geography__marker.is-label-suppressed .geography__marker-label {
  visibility: hidden;
  opacity: 0;
}

[data-craft-map] .geography__controls {
  opacity: 0;
  transition: opacity .24s ease;
}

[data-craft-map]:hover .geography__controls,
[data-craft-map]:focus-within .geography__controls {
  opacity: 1;
}

@media (max-width: 1100px) {
  .home-header .home-logo__custom {
    width: 114px;
    max-height: 10px;
  }
}

@media (max-width: 760px) {
  html {
    scrollbar-width: none;
  }

  .design-pixels__art--desktop {
    display: none;
  }

  .design-pixels__art--mobile {
    display: block;
  }

  .design-pixels--about-pixels {
    display: none;
  }

  .about-timeline__card {
    cursor: pointer;
  }

  .design-pixels--project-pixels {
    height: 0;
    z-index: 1;
  }

  .project-heading {
    z-index: 2;
    background: transparent;
  }

  .page--about .geography {
    padding: 48px 0 0;
  }

  .page--about .geography__title {
    padding-inline: 16px;
    font-size: 14px;
    line-height: 24px;
  }

  .page--about [data-craft-map] {
    height: 655px;
    margin-top: 49px;
  }

  [data-craft-map] .geography__marker .geography__marker-label {
    font-size: 8px;
  }

  [data-craft-map] .geography__marker--highlight .geography__marker-label {
    left: calc(100% + 16px);
  }

  [data-craft-map]:not(.geography__map--svg) > .geography__art {
    margin-inline: max(-810px, calc(-990px + 50%)) 0;
  }
}

@media (min-width: 761px) {
  .home-header {
    --header-inset-y: clamp(16px, calc(1.667vw - 8px), 24px);
    top: var(--header-inset-y);
    inset-inline: clamp(32px, calc(3.333vw - 16px), 48px);
  }

  .home-header .home-header__bar {
    --home-header-control-size: 56px;
    min-height: 56px;
    padding: 0 16px 0 0;
  }

  .home-header .home-header__link {
    padding-inline: 12px;
    font-size: 14px;
    font-weight: 500;
  }

  .home-header .home-header__controls {
    gap: 0;
  }

  .home-footer {
    min-height: clamp(720px, calc(20.833vw + 420px), 820px);
    height: auto;
    padding: clamp(72px, 5vw, 96px) clamp(32px, 2.5vw, 48px) 48px;
  }

  .home-footer__title {
    margin: 0;
    font-size: clamp(48px, calc(5vw - 24px), 72px);
    line-height: 1;
  }

  .page--home .home-footer__title {
    color: #fff;
  }

  .home-footer__top {
    margin-top: clamp(64px, calc(5vw - 8px), 88px);
    padding-bottom: clamp(72px, 5vw, 96px);
  }

  .home-footer__nav {
    gap: 8px;
    font-size: 14px;
    line-height: 24px;
  }

  .home-footer__contacts {
    gap: 0;
    padding-top: clamp(72px, calc(5vw - 1px), 95px);
  }

  .home-footer__contacts span,
  .home-footer__contacts p,
  .home-footer__contacts a {
    font-size: clamp(16px, .9375vw, 18px);
    line-height: 24px;
  }

  .home-footer__contacts > div {
    gap: 16px;
    padding-right: 24px;
  }

  .home-footer__contacts > div:first-child p + a {
    margin-top: -16px;
  }

  .home-footer__bottom {
    bottom: 48px;
    left: clamp(32px, 2.5vw, 48px);
    font-size: clamp(16px, .9375vw, 18px);
    line-height: 24px;
  }

  .page--home .home-footer {
    margin-top: 0;
  }

  .portfolio-hero {
    padding-top: clamp(240px, calc(16.667vw), 320px);
  }
}

@media (max-width: 760px) {
  .page--home .home-hero,
  .about-cover,
  .project-page .project-hero {
    block-size: 100vh;
    block-size: 100dvh;
    max-height: none;
    min-height: 0;
  }

  .project-page .project-hero__video {
    display: block;
    height: 100%;
  }

  .project-heading {
    align-items: flex-start;
    padding-inline: 16px;
  }

  .project-heading__title {
    max-width: 299px;
    font-size: 24px;
    line-height: 32px;
  }

  .project-heading__meta {
    font-size: 12px;
    line-height: 16px;
  }

  .project-story {
    gap: 8px;
  }

  .home-footer__social {
    width: 100%;
    gap: 16px;
  }

  .home-footer__social span {
    font-size: 16px;
    line-height: 24px;
    margin-right: auto;
  }

  .home-footer {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
  }

  .home-footer--light .home-footer__top {
    gap: 32px;
    margin-top: 24px;
  }

  .home-footer--light .home-footer__social {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .home-footer--light .home-footer__contacts {
    gap: 20px;
    padding-top: 32px;
  }

  .home-footer .home-footer__contacts > div:first-child > .home-footer__map-link,
  .home-footer--light .design-pixels--footer-gray-pixels {
    display: none;
  }

  .home-footer .home-footer__bottom {
    position: static;
    margin-top: auto;
    padding-top: 48px;
  }

  .about-overview {
    display: block;
    padding: 48px 16px;
  }

  .about-overview h2 {
    font-size: 14px;
    line-height: 24px;
  }

  .about-overview__lead {
    margin-top: 32px;
    font-size: 18px;
    letter-spacing: -.02em;
  }

  .about-overview__detail,
  .about-overview__slogan {
    margin: 32px 0 0 calc((100% - 48px) / 4 + 16px);
    font-size: 12px;
    line-height: 16px;
  }

  .about-overview__slogan {
    font-size: 18px;
    line-height: 1;
  }

  .portfolio-hero .portfolio-hero__title {
    font-size: 24px;
    line-height: 32px;
  }

  .portfolio-hero {
    padding-top: 128px;
  }

  .portfolio-catalog .portfolio-toolbar {
    margin-top: 32px;
  }

  .portfolio-catalog .portfolio-filters {
    gap: 16px;
  }

  .portfolio-catalog .portfolio-filters__button {
    flex: 0 1 auto;
    font-size: 12px;
    line-height: 16px;
  }

  .portfolio-catalog .portfolio-gallery,
  .portfolio-catalog .portfolio-gallery[data-columns="4"] {
    margin-top: 32px;
  }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 16px max(48px, env(safe-area-inset-bottom));
  overflow: hidden auto;
  visibility: hidden;
  background: #ab5224;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: visibility 0s linear .45s, opacity .35s ease, transform .45s var(--ease);
}

.admin-bar #wpadminbar {
  position: fixed;
}

.admin-bar .home-header {
  top: var(--header-inset-y, 16px);
  margin-top: var(--wp-admin--admin-bar--height, 32px);
}

.admin-bar .menu {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.menu__head {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 16px;
}

.menu__top {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 12px;
  background: #ffffff1a;
}

.menu__close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.menu__close img {
  display: block;
  width: 12.38px;
  height: 12.69px;
}

.menu__logo .home-logo__custom {
  width: 114px;
  height: 10px;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.menu__languages {
  position: relative;
  display: flex;
  min-height: 40px;
  border: 1px solid #fff;
}

.menu__languages::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: #fff3;
  content: "";
  pointer-events: none;
  transition: transform .35s var(--ease);
}

.menu__languages:has(.menu__language:nth-child(2).menu__language--active)::before {
  transform: translateX(100%);
}

.menu__language {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  min-width: 0;
  min-height: 38px;
  place-items: center;
  color: #fff;
  font: 500 14px / 20px Onest, sans-serif;
}

.menu__nav {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font: 400 14px / 20px Onest, sans-serif;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .4s var(--ease);
}

.menu.is-open .menu__link {
  transform: none;
}

#mobile-menu .menu__link[aria-current="page"] {
  font-weight: 700;
}

#mobile-menu .menu__link:not([aria-current="page"]) {
  font-weight: 400;
}

#mobile-menu .menu__link:not([aria-current="page"])::before {
  display: none;
  content: none;
}

.menu__link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

#mobile-menu .menu__link[aria-current="page"]::before {
  width: 8px;
  height: 8px;
  flex: none;
  background: url('../source/figma/mobile-menu-active-dot.svg') center / contain no-repeat;
  content: "";
}

.menu__socials {
  display: block;
  width: 110.23px;
  height: 26.06px;
  flex: none;
}

.menu__meta {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  font: 400 14px / 20px Onest, sans-serif;
}

.menu__meta a:last-child {
  border-bottom: 1px solid currentColor;
  font-size: 16px;
  line-height: 24px;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}

.is-site-loading {
  overflow: hidden;
}

.is-site-loading .site-loader {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.site-loader__art {
  width: min(max(100vw, 560px), 160vh);
  aspect-ratio: 16 / 9;
}

.site-loader__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .page--home .home-hero__caption {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 760px) {
  .project-heading > .design-pixels--project-pixels {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  .project-related__group {
    grid-template-rows: auto auto;
  }
  .project-related__card.is-mobile-active > img {
    height: auto;
    aspect-ratio: 20 / 11;
  }
  .project-related__card.is-mobile-thumb img {
    height: auto;
    aspect-ratio: 20 / 11;
  }
}
@keyframes project-related-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--project-related-cycle)), 0, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .page--home .home-hero__caption img { clip-path: inset(50%); }
  .page--home .is-hero-caption-ready .home-hero__caption img {
    animation: hero-eye-reveal .5s cubic-bezier(.22, 1, .36, 1) both;
  }
}
@keyframes hero-eye-reveal {
  from { clip-path: inset(50%); opacity: 0; }
  to { clip-path: inset(0); opacity: 1; }
}
