:root {
  --msikma-blue: #006AFF;
  --gsikma-primary: #1970d1;
  --gsikma-regular: #666;
  --gsikma-header: #222;
  --tooya-info-bg: #363436;
  --tooya-info-fg: #e0e2e6;
  --tooya-info-fgstrong: #fff;
  --tooya-primary: #1400FF;
  --tooya-primary-old: #fc00ff;
}
@font-face {
  font-family: 'global_comm_two';
  src: url('global_comm_two-webfont.woff2') format('woff2'), url('global_comm_two-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'mingei_mono';
  src: url('mingeimono-bold-webfont.woff2') format('woff2'), url('mingeimono-bold-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'mingei_mono';
  src: url('mingeimono-regular-webfont.woff2') format('woff2'), url('mingeimono-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
}
body {
  font-size: 1.2vw;
  margin: 1vw;
  font-family: "mingei_mono", serif;
  color: var(--gsikma-regular);
}

#body.info-page {
  background: var(--tooya-info-bg);
  color: var(--tooya-info-fg);
}
#body.info-page .segments.tooya-info strong {
  color: var(--tooya-info-fgstrong);
}
#body.info-page .segment.navigation #tooya_info {
  color: var(--tooya-info-fgstrong);
}
#body.home-page .segment.navigation #tooya_home {
  color: var(--tooya-primary);
}
#body.works-page .segment.navigation #tooya_works {
  color: var(--tooya-primary);
}
article.segment,
article.segments {
  padding-top: 4.7vw;
}
.segments.error .segment {
  flex-direction: column;
  width: 100%;
}
.segments.error .segment h2 {
  margin-bottom: 0;
}
.segments.tooya-info {
}
.segments.tooya-info .inner {
  display: flex;
  justify-content: space-between;
}
.segments.tooya-info .info-segment {
  width: calc(33% - 1.1vw);
}
.segments.tooya-info .info-segment img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1vw;
}
.segments.tooya-info .cols-group-1 {
  width: calc(66% - 1vw);
  display: flex;
  justify-content: space-between;
}
.segments.tooya-info .cols-group-1 .info-segment {
  width: calc(50% - 1.1vw);
}
.segments.tooya-info .about p:first-child,
.segments.tooya-info .clients-list p:first-child {
  margin-top: 0;
}
.segments.tooya-info .inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.segments.tooya-info .inner em {
  font-style: normal;
  color: var(--tooya-primary);
  font-weight: bold;
}
.segments.tooya-info .inner a {
  color: inherit;
  text-decoration: none;
}
.segments.tooya-info .inner a:not([href^=mailto]) {
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.segments.tooya-info .inner a:hover {
  color: var(--tooya-primary);
  border-bottom-color: rgba(252, 0, 255, 0.5);
}
article.segments a {
  color: var(--tooya-primary);
  text-decoration: none;
}
article.segments a:hover {
  text-decoration: underline;
}
.segments {
  display: flex;
  justify-content: space-between;
}
.segment.single-work {
}
.segment.single-work .top-image {
  margin-left: -2vw;
  margin-right: -2vw;
  background: black;
}
.segment.single-work .top-image video {
  width: 100%;
  height: auto;
  display: block;
}
.segment.single-work .top-image .embed {
  width: 100%;
  height: calc(100vw * 0.56);
  display: block;
}
.segment.single-work .image img {
  display: block;
  width: 100%;
  height: auto;
}
.segment.single-work .main-info {
  display: flex;
  margin: 2vw 0 4vw;
  justify-content: space-between;
}
.segment.single-work .main-info .main {
  flex: 0 0 calc(33% - 1.1vw);
}
.segment.single-work .main-info .main .name {
  font-weight: bold;
}
.segment.single-work .main-info .main p {
  margin: 0;
}
.segment.single-work .main-info .story {
  flex: 0 0 66%;
}
.segment.single-work .main-info .story p:first-child {
  margin-top: 0;
}
.segment.single-work .main-info .story p:last-child {
  margin-bottom: 0;
}
.segment.single-work .rest-images {
  margin-left: -2vw;
  position: relative;
  left: 2vw;
  overflow: hidden;
}
.segment.single-work .rest-images img,
.segment.single-work .rest-images video,
.segment.single-work .rest-images .embed-wrapper {
  width: calc(100% - 2vw);
  float: left;
  height: auto;
  display: block;
  margin-bottom: 2vw;
}
.segment.single-work .rest-images .embed {
  width: 100%;
}
.segment.single-work .rest-images .embed,
.segment.single-work .rest-images .embed-wrapper {
  height: calc(100vw * 0.55);
  background: black;
}
.segment.single-work .rest-images img.image-portrait {
  width: calc(33% - 1.34vw);
  margin-right: 1.5vw;
}
.segments .segment.top-nav {
  position: relative;
  z-index: 500;
  overflow: visible;
}
.segments .segment.double {
  width: calc(66.666% - 0.6vw);
}
.segments .segment {
  display: flex;
  width: calc(33.333% - 0.6vw);
  overflow: hidden;
  padding-bottom: 3.6vw;
}

.segments.full-width .segment {
  width: 100%;
}
.segments.full-width .segment:not(:last-child) {
  padding-bottom: 0;
}

.segments.text-vertical .segment:last-child {
  padding-bottom: 0;
  margin-bottom: 3.6vw;
}
.segments.text-vertical .segment a {
}
.segments.text-vertical .segment .text {
  bottom: 0;
  padding: 0 !important;
  text-transform: uppercase;
}
.segments.text-vertical .segment .text::before {
  display: none;
}
.segments.text-vertical .segment .text .title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  position: relative;
  padding: 1.8vw 1vw;
  height: calc(100% - 3.6vw);
}
.segments.text-vertical .segment .text .title::before {
  position: absolute;
  content: '';
  z-index: -1;
  background: var(--tooya-primary);
  inset: 0;
  opacity: 0;
}
.segments.text-vertical .segment a:hover .text .title::before {
  opacity: 0.75;
}

.segments.text-vertical .segment .text .type {
  display: none;
}
.segments.text-inside .segment a {
  position: relative;
}
.segments.text-inside .segment a .text {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 1vw;
}
.segments.text-inside .segment a .text > * {
  position: relative;
  z-index: 60;
}
.segments.text-inside .segment a:hover .text,
.segments.text-inside .segment a:hover .text .light,
.segments.text-inside .segment a:hover .text .dark {
  color: white !important;
}
.segments.text-inside .segment a .text .light {
  color: white;
}
.segments.text-inside .segment a .text .dark {
  color: black;
}
.segments.text-inside .segment a .image {
  margin-bottom: 0;
}
.segments.subtle-hover .segment a:hover .text::before {
  position: absolute;
  content: '';
  z-index: 1;
  background: var(--tooya-primary);
  inset: 0;
  opacity: 0.75;
}
.segments.text-inside .segment a:hover .text {
  color: white;
}
.segments .segment .container {
  align-self: flex-start;
  width: 100%;
}
.segments .segment .container p {
  margin: 0;
}
#body.info-page .segments.tooya-info .inner a:hover,
#body.info-page .segments.header .segment.tagline,
#body.info-page .segments.tooya-info .inner em {
  color: var(--tooya-primary-old) !important;
}

/* Header section */
.segments.header {
  background: white;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 5.7vw;
  z-index: 500;
}
#body.info-page .segments.header {
  background: var(--tooya-info-bg);
}
.segments.header.is-hidden {
  transform: translate(0, -5.8vw);
}
.segments.header.is-visible {
  transform: translate(0, 0);
}
.segments.header > .inner {
  width: 100%;
  padding: 2vw 1vw;
  display: flex;
  justify-content: space-between;
}
.segments.header .segment {
  height: 1.6vw;
  font-weight: bold;
}
.segments.header .segment.navigation ul {
  margin: 0;
  margin-left: -1.45vw;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  display: flex;
}
.segments.header .segment.navigation ul li {
  display: block;
}
.segments.header .segment.navigation ul li.active a {
  color: var(--tooya-primary);
}
.segments.header .segment.navigation ul li a {
  text-decoration: none;
  color: #666;
  padding: 0.5vw;
  margin-left: 0.95vw;
  text-transform: lowercase;
}
.segments.header .segment.navigation ul li a,
.segments.header .segment.time p {
}
.segments.header .segment.navigation ul li a:hover {
  color: var(--tooya-primary);
}
.info-page .segments.header .segment.navigation ul li a:hover {
  color: var(--tooya-primary-old);
}
.segments.header .segment.tagline br {
  display: none;
}
.segments.header .segment.tagline {
  white-space: nowrap;
  color: var(--tooya-primary);
}
.segments.header .segment.social-media {
  margin-top: -0.3vw;
  text-align: right;
}
.segments.header .segment.social-media a {
  display: inline-block;
  width: 2.5vw;
  height: 2.5vw;
  margin-left: 0.4rem;
  filter: invert(35%) sepia(91%) saturate(0%) hue-rotate(231deg) brightness(95%) contrast(96%);
}
.segments.header .segment.social-media a:hover {
  filter: invert(16%) sepia(67%) saturate(6513%) hue-rotate(249deg) brightness(83%) contrast(157%);
}
.segments.header .segment.social-media a img {
  width: 100%;
  height: auto;
}

/* Works section */
.segments.works {
  flex-wrap: wrap;
}
.segments.works .work {
}
.segments.works .work .container {
  text-decoration: none;
  color: inherit;
}
.segments.works .work .container:hover {
  color: var(--tooya-primary);
}
.segments.works .work .container.case-hover .image {
  overflow: hidden;
  position: relative;
}
.segments.works:not(.subtle-hover) .work .container.case-hover:hover .image .image-src {
  filter: brightness(0.75) sepia(100%) hue-rotate(200deg) saturate(5);
}
.segments.works.subtle-hover .work .container.case-hover:hover .image::before,
.segments.works.subtle-hover .work .container.case-hover:hover .image::after {
  display: none;
}
.segments.works .work .container.case-hover:hover .image::before {
  position: absolute;
  content: '';
  z-index: 1;
  background: var(--tooya-primary);
  inset: 0;
  opacity: 0.75;
}
.segments.works .work .container.case-hover:hover .image::after {
  --view-case-width: 12vw;
  --view-case-height: 3vw;
  text-align: center;
  position: absolute;
  top: calc(50% - (var(--view-case-height) / 2));
  left: calc(50% - (var(--view-case-width) / 2));
  width: var(--view-case-width);
  height: var(--view-case-height);
  line-height: var(--view-case-height);
  color: white;
  z-index: 10;
  font-weight: bold;
  content: 'view case';
}
.segments.works .work .title {
  font-weight: bold;
}
.segments.works .work .type {
}
.segments.works .work .type p:first-child:before {
  content: '— ';
}
.segments.works .work .image {
  margin-bottom: 4px;
}
.segments.works .work .image .image-src {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer section */
.segments.footer .segment {
  font-weight: bold;
  height: 5em;
  padding-bottom: 2em;
}

/* Responsive fixes */
@media (max-width: 780px) {
  body, h1, h2 {
    font-size: 2.0vw;
  }
  .segments.header {
    height: 10vw;
  }
  .segments.header.is-hidden {
    transform: translate(0, -6.8vw);
  }
  .segments.header .segment {
    height: 2.6vw;
  }

  article.segments,
  .segments.works {
    padding-top: 9.0vw;
  }
  .segments .segment.is-fake-item {
    /* Hide the placeholder elements that are only there to take up space in the 3-column layout. */
    display: none;
  }
  .segments:not(.full-width) .segment {
    width: calc(50% - 0.6vw) !important;
  }
  .segments.thirds .segment {
    width: calc(33.333% - 2vw);
  }

  /* Tooya info reshuffling. */
  .segments.tooya-info .info-segment {
    width: calc(50% - 1.1vw);
  }
  .segments.tooya-info .cols-group-1 {
    /* No idea why -0.15vw is needed. */
    width: calc(50% - 1.1vw);
    display: block;
  }
  .segments.tooya-info .cols-group-1 .info-segment {
    width: 100%;
  }
  .segments.tooya-info .cols-group-1 .info-segment.clients-list {
    padding-top: 2vw;
  }

  /* Move social media over the second column. */
  .segments.header .segment.social-media {
    position: absolute;
    margin-top: -0.5vw;
    left: calc(50% + 1vw);
    width: calc(50% - 3vw) !important;
  }
  .segments.header .segment.social-media a {
    width: 4.1666vw;
    height: 4.1666vw;
  }
  .segments.header .inner {
    flex-direction: row;
  }
  .segments.header .segment.navigation.top-nav {
    width: auto !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    flex: 1 0 calc(50% + 1vw);
  }
  .segments.header .segment.tagline {
    flex: 1 0 calc(50% - 1vw);
  }
  .segments.header .segment.tagline br {
    display: block;
  }
}
@media (max-width: 480px) {
  body, h1, h2 {
    font-size: 3.5vw;
  }
  .segments:not(.full-width) .segment {
    width: calc(100%) !important;
  }
  .segments.header {
    height: 12.7vw;
  }
  .segments.header.is-hidden {
    transform: translate(0, -12.8vw);
  }

  .segments.header .segment {
    height: 5.6vw;
  }
  .segments.works {
    padding-top: 12.1vw;
  }
  .segments .segment {
    width: 100% !important;
  }
  /* Special sizing for the top header. */
  .segments.header {
    height: auto !important;
  }
  .segments.header .inner {
    flex-direction: column;
    padding-bottom: 2vw;
  }
  .segments.header .segment.navigation {
    width: auto !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    flex: 0 0 !important;
  }
  .segments.header .segment.tagline {
    display: none;
  }
  .segments.header .segment.navigation .container {
    align-self: auto;
  }
  .segments.header .segment.tooya {
    width: calc(20% - 2vw);
  }
  .segments.header .segment.time {
    width: calc(40% - 2vw);
  }

  /* Better spacing */
  .segments.header .segment.navigation ul {
    margin-left: -3.5vw;
  }
  .segments.header .segment.navigation ul li a {
    margin-left: 3vw;
  }

  /* Tooya info reshuffling. */
  .segments.tooya-info {
    padding-top: 10.2vw;
  }
  .segments.tooya-info .inner {
    display: block;
  }
  .segments.tooya-info .info-segment {
    width: 100%;
  }
  .segments.tooya-info .cols-group-1 {
    width: 100%;
    display: block;
    padding-top: 2vw;
  }
  .segments.tooya-info .cols-group-1 .info-segment {
    width: 100%;
  }
  .segments.tooya-info .cols-group-1 .info-segment.clients-list {
    padding-top: 2vw;
  }
  .segments.tooya-info .info-segment.contact {
    padding-top: 2vw;
    margin-bottom: 3vw;
  }

  .segments.header .segment.social-media {
    margin-top: 1.3vw;
  }
  .segments.header .segment.social-media a {
    width: 7.3vw;
    height: 7.3vw;
  }

  .segments.text-vertical .segment .text .title {
    writing-mode: horizontal-tb;
    text-orientation: sideways;
    height: auto;
  }
}
