@charset "utf-8";
/*@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@200;700&display=swap");*/
@import url("fonts.css");

* { margin: 0; padding: 0; -webkit-font-smoothing: subpixel-antialiased; }
body { background: #fff; color: #333; margin: 0; padding: 0; height: 100%; width: 100%; behavior: url("/csshover.htc"); overflow-x: hidden; -webkit-font-smoothing: subpixel-antialiased; }
html, input, textarea { font: 200 16px/1.5em "Kanit", "Helvetica", "Arial", sans-serif; letter-spacing: 0; }
body.loading { opacity: 0; }
body:not(.loading) { opacity: 1; }
td { vertical-align: top; }
form { display: block; }
table { empty-cells: show; }

*.notransition, *.notransition > *, .notransition * {
  /*CSS transitions*/
  -o-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -webkit-transition: none !important;
  transition: none !important;
}
/* ELEMENTS */
a, a:visited, a:link, a:hover, a:target { color: inherit; text-decoration: underline !important; cursor: pointer; }
a:hover, a:target { text-decoration: none !important; color: #999; }
textarea, input[type=text], input[type=password], input[type=email], input[type=tel] { background: transparent; border: solid rgba(255, 255, 255, .25); border-width: 0 0 1px; color: #fff; padding: 2px 5px; max-width: calc(100% - 12px); width: 450px; outline: none; }
textarea { min-height: 100px; /*border-width: 1px*/; resize: vertical; }
textarea:focus, input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=tel]:focus,
textarea:hover, input[type=text]:hover, input[type=password]:hover, input[type=email]:hover, input[type=tel]:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .5) !important; color: #fff; }
textarea:valid, input[required]:valid, input:not(:placeholder-shown) { border-color: #fff !important; }
/*textarea:invalid, textarea:empty, input:invalid, input:empty { border-color: #ccc !important; }*/
input[type=button], input[type=submit], input[type=reset] { border: 2px solid #fff; background: transparent; color: #fff; padding: 5px 15px 7px; min-width: 150px; cursor: pointer; border-radius: 30px; font-size: 18px; outline: none; }
input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover { background: rgba(255, 255, 255, .1); }
::-webkit-input-placeholder { color: #aaa; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 200; letter-spacing: .025em; }
::-moz-placeholder { color: #aaa; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 200; letter-spacing: .025em; }
:-moz-placeholder { color: #aaa; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 200; letter-spacing: .025em; }
:-ms-input-placeholder { color: #aaa; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 200; letter-spacing: .025em; }
/*********************************/
#top { position: fixed; top: 0; left: 0; right: 0; display: block !important; z-index: 100; pointer-events: none; }
#top > div { text-align: right; max-width: 100%; width: min-content; white-space: nowrap; margin: 0 3.5rem 0 auto; padding: .5rem .5rem; border-radius: 0 0 .5rem .5rem; font-size: 0; pointer-events: all; background-color: rgba(255, 255, 255, .8); }
#top a { display: inline-block; vertical-align: middle; border-radius: .125rem; pointer-events: all; }
/*#top a + a { margin-left: .25rem; }*/
#top img { display: block; max-width: 3rem; max-height: 3rem; cursor: pointer; padding: .5rem; }
#top a:hover { background-color: #eee; }
@supports (filter: invert(100%)) {
  #top a { background-color: transparent !important; }

  #top a:hover { filter: invert(100%); background-color: #fff !important; }
}
/*********************************/
div#intro { max-width: 100%; position: relative; overflow: hidden; min-height: 250px; min-width: 300px; }
div#intro div.image { max-width: 100%; background: center center no-repeat; background-size: cover; position: absolute; height: 100%; width: 100%; }
div#intro div.image img { max-width: 100%; visibility: hidden; pointer-events: none; vertical-align: top; }
div#intro div.logo { position: absolute; bottom: 10px; left: 50px; right: 0; max-width: 80%; }
div#intro div.logo img { max-width: 100%; max-height: inherit; }
div#intro div#logo { position: absolute; top: 48%; left: 50%; margin: -116px 0 0 -116px; width: 233px; height: 233px; /*max-width: 30%; max-height: 30%;*/ opacity: 0; transform-origin: 50% 50%; }
div#logo.fixed { position: fixed !important; }
div#intro div#logo.spin { opacity: 1; }
div#logo svg { overflow: visible; }
div#intro div#logo img { max-width: 100%; }
/*********************************/
div#menu { position: fixed; top: 0; bottom: 0; left: 0px; background: #f6f6f6; padding: 50px 0px 25px; width: 260px; z-index: 100; margin: 0 0 0 -260px; }
div#menu::after { content: ""; background: inherit; position: absolute; top: 0; left: 0; bottom: 0; right: 0; pointer-events: none; z-index: 1; box-shadow: 0 0 0 transparent; }
body.menu { margin-left: 260px !important; }
body.menu div#menu, div#menu.visible { margin-left: 0; }
div#menu div { position: absolute; left: 100%; top: 0; width: 50px; height: 50px; background: #dddddddd center center no-repeat; background-size: 25px 25px; cursor: pointer; z-index: 0; pointer-events: none; }
div#menu div::before { content: ""; position: absolute; left: 0; top: 0; width: 50px; height: 50px; background: #dddddd url(/images/menu.png) center center no-repeat; background-size: 25px 25px; opacity: 0; }
/*div#menu div:hover { background-color: #bbb; }*/
div#menu div:hover::before { filter: invert(1); }
div#menu div.vis::before { opacity: 1; }
body.menu div#menu div, body.menu div#menu div::before { opacity: 1 !important; width: 50px !important; height: 50px !important; pointer-events: auto !important; }
div#menu div.vis { pointer-events: auto; }
div#menu div:hover { background-color: #eee; }
body.menu div#menu div, div#menu.visible div { background-color: #eee; }
body.menu div#menu div::before, div#menu.visible div::before { background-image: url(/images/menu_close.png) !important; }
div#menu ul { display: block; position: relative; z-index: 2; }
div#menu li { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; padding: 5px 20px; }
div#menu li:hover { text-decoration: underline; background: rgba(0, 0, 0, 0.1) }
div#menu li.sel { background: rgba(0, 0, 0, 0.03); }
/*********************************/
div.project { position: relative; width: 100%; overflow: hidden; opacity: 1; }
div.project > div.text { max-width: 40%; padding: 75px 5% 150px; overflow: hidden; position: relative; z-index: 2; min-width: 250px; background: #fff; margin: 0; box-sizing: border-box; min-height: 50%; height: max-content }
div.project > div.text h1 { font: 700 2.5rem/.9em "Kanit", "Helvetica Neue", Helvetica, sans-serif; margin-bottom: .5em; letter-spacing: 0em }
div.project > div.text p { font: 200 1rem/1.25em "Kanit", "Helvetica Neue", Helvetica, sans-serif; }
div.project div.icon { position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; /*max-height: 100%; max-height: 100vh !important;*/ background: center center no-repeat; z-index: 5; opacity: 1; background-size: 280px; cursor: pointer; }
div.project:not(.visible) div.icon, #contact div.icon { opacity: 1 !important; width: 60%; }
div.project:not(#contact) div.icon:hover { opacity: .75 !important; }
div.project.b > div.text { margin-left: auto }
div.project.a div.icon { left: auto !important; right: 0 !important; }
div.project.b div.icon { left: 0 !important; right: auto !important; }
/*div.project.hover div.icon { opacity: .5; }*/
/*div.project.visible { opacity: 1; }*/
div.project.visible div.icon { width: 60% !important; }
/*div.project.a div.icon { left: 35%; right: 0; }*/
/*div.project.visible.a div.icon { left: 40%; right: 0; }*/
/*div.project.visible.b div.icon { right: 40%; left: 0; }*/
/*********************************/
div.project span.button { background: #fff; color: #333; position: absolute; top: 50%; display: inline-block; line-height: 1.5em; padding: .5rem; cursor: pointer; opacity: 0; z-index: 5; pointer-events: none; }
div.project.fixed span.button.view { position: fixed; top: 50% !important; }
div.project:not(.visible) span.button.view { opacity: 0 !important; }
/*div.project.fixed span.button.back { position: fixed; top: 1.25rem !important; }*/
div.project.nobuttons span.button { display: none !important; }
div.project span.button:hover { background: #333; color: #fff; border-color: #fff; /*opacity: 1; */ }
div.project.a span.button { left: 67.5%; }
div.project.b span.button { left: 32.5%; }
div.project.view span.button { left: 50%; }
div.project span.button.back { opacity: 1; width: 3rem; height: 3rem; background: url(/images/back.png) center center no-repeat; background-size: 2rem auto; box-sizing: border-box; border-radius: .125rem; }
div.project span.button.back:hover { filter: invert(100%); background-color: #fff; }
div.project.hover span.button { opacity: 1; pointer-events: auto; }
div.project span.button.back { left: auto !important; right: -100px !important; top: 1.25rem; margin: 0 !important; }
div.project.view span.button.back { right: 15px !important; pointer-events: auto; }
div.project.fixed span.button.back.fixed, div.project span.button.back.fixed { top: 1.25rem !important; position: fixed; }
/*********************************/
div.project.view.a > div.text { margin-left: -40%; }
div.project.view.b > div.text { margin-right: -40% }
div.project.view span.button.view, div.project:not(.view) span.button.back { opacity: 0 !important; pointer-events: none; }
div.project.view div.icon { opacity: 0 !important; pointer-events: none; /*left: 0 !important; right: 0 !important;*/ width: 100% !important; }
/*********************************/
div.project div.gallery { max-width: 100vw; position: absolute; left: 0; right: 0; top: 0; bottom: 0; max-height: 100%; max-height: 100vh !important; z-index: 0; white-space: nowrap; overflow: hidden; font-size: 0; line-height: 0; }
div.project.fixed div.gallery, div.project.fixed div.icon { position: fixed; top: 0 !important; bottom: 0 !important; height: auto !important; max-height: 100%; max-height: 100vh !important; }
/*div.project.view div.gallery { cursor: move; }*/
div.project.a div.gallery { left: 40%; }
div.project.b div.gallery { right: 40%; }
div.project div.gallery img, div.project div.gallery div.text { max-height: 100%; vertical-align: middle; margin-right: 0; opacity: 1; pointer-events: auto; cursor: pointer; }
div.project div.gallery div.text { display: inline-block; white-space: normal; min-width: 15rem; max-width: 75vw; box-sizing: border-box; padding: 1rem 15vw 2rem; font-size: 1rem; line-height: 1.5em; }
div.project div.gallery div.text h2 { font-size: 1.75em; line-height: 1.2em; margin-bottom: 1rem; }
div.project div.gallery div.text > div.t { font-size: 1em; line-height: 1.4em; }
div.project div.gallery img { max-width: 100vw; }
div.project div.gallery img:hover { opacity: .95; }
div.project div.gallery img:last-child { margin-right: 0px; }
div.project.view div.gallery { left: 0 !important; right: 0 !important; }

div.project div.gallery div.text.small { font-size: .8rem; line-height: 1.25em; }
div.project div.gallery div.text.small h2 { font-size: 1.25em; line-height: 1em; }

div.project ul.list { display: none; text-align: center; margin-top: 4px; }
div.project ul.list li { display: inline-block; width: .5rem; height: .5rem; border-radius: 1rem; overflow: hidden; background-color: #000; margin: 0 4px 4px 0; cursor: pointer; }
div.project ul.list li:hover { background-color: #666; }
div.project ul.list li.sel { background-color: #e52053; }
/*********************************/
div.project .arr { position: absolute; top: 0; bottom: 0; width: 2.5rem; z-index: 10; overflow: hidden; cursor: pointer; background: center center no-repeat; background-size: 2rem auto; opacity: 1; transition: background-color .2s ease, width .2s ease, opacity .2s ease; }
div.project .arr:hover { /*opacity: .8;*/ background-color: #00000030; width: 4rem; }
div.project .arr.hidden, div.project:not(.view) .arr { opacity: 0 !important; pointer-events: none !important; }
div.project .arr.left { left: 0; background-image: url(/images/arrow_left.png)}
div.project .arr.right { right: 0; background-image: url(/images/arrow_right.png) }
/*********************************/
div#contact { margin: 0; padding: 0; cursor: default; }
div#contact div.icon { cursor: default; }
div#contact h1 { margin: 0 0 1em; }
div#contact p { margin: 0 0 1em; }
div#contact .icon div.txt { color: #fff; margin: 3rem auto; max-width: 30em; }
div#contact .icon div.txt h2 { margin-bottom: 1rem; }
div#contact .icon div.txt p { font-size: .8em; line-height: 1.4em; }

/*div#contact form { display: block !important; padding: 0 35px; max-width: 500px; width: calc(100% - 70px); margin: 0 auto; }*/
/*div#contact table { width: 100%; border-spacing: 0 15px; margin: 100px auto; }*/
/*div#contact textarea, div#contact input { display: block; margin: 0 auto; max-width: calc(100% - 10px) !important; width: 100% !important; }*/
/*div#contact td.submit { text-align: center; }*/
/*div#contact td.submit input { width: auto !important; }*/
/*********************************/
div#blocks { text-align: center; padding: 0; background: #161616; color: #fff; font-size: 0; }
div.block { display: inline-block; max-width: 33.333333%; width: 33.333333%; min-width: 350px; margin: 0 auto; padding: 0 25px; text-align: left; vertical-align: top; font-size: 1rem; line-height: 1.5em; box-sizing: border-box }
div.block h1 { cursor: pointer; padding: 25px 25px; margin: 0 -25px; font-size: 1.2em; text-align: center; max-width: 100%; }
div.block:not(.hidden) { background: #eee; color: #333 }
/*div.block:first-child h1 { text-align: right; }*/
/*div.block:last-child h1 { text-align: left; }*/
/*div.block h1 { text-align: center; }*/
div.block h1:hover { background: rgba(255, 255, 255, 0.04); }
div.block div { overflow: hidden; height: 0; opacity: 1; }
div.block.hidden > div { height: 0 !important; opacity: 0; }
div.block p { font-size: .7rem; line-height: 1.5em; max-width: 40em; margin: 1em auto 0; min-width: 300px; color: #333; }
div.block p:last-child { margin-bottom: 100px; }
/*********************************/
div#copyright { text-align: center; margin: 0 auto; background: #000; padding: 25px 25px; color: #fff; font-size: .75rem; line-height: 1.5em; }
/*********************************/
/*#main .fhade:not(.project), #main .fhade .text { opacity: 0; }*/
/*#main .fhade .icon { width: 100%; z-index: 100; left: 0; right: 0; }*/
/*#main .fhade.visible, #main .fhade.visible .text { opacity: 1; }*/
/*#main .fhade.visible.a .icon { right: 0; left: 35%; width: 65%; z-index: 2; }*/
/*#main .fhade.visible.b .icon { left: 0; width: 65%; z-index: 2; }*/
#textadd {}
#cookie-popup { position: fixed; bottom: 0; left: 0; right: 0; padding: 1rem; z-index: 100; background: #ccccccdd; color: #000; box-shadow: 0 0 40px -15px #000000, 0 0 3px 1px #00000020; line-height: 1.5rem; height: 1.5rem; transition: opacity .5s ease, margin .5s ease; text-align: right; cursor: pointer; }
#cookie-popup::after { content: ""; display: inline-block; width: 1rem; height: 1rem; background: url(/images/menu_close.png) center center no-repeat; background-size: contain; vertical-align: middle; margin-left: .5rem; }
#cookie-popup:hover { background-color: #bbbbbb; }
#cookie-popup.closed { opacity: 0; margin-bottom: -3.5rem }
#cookie-popup:hover::after { filter: invert(1) }