@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap";
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  border: 0;
  margin: 0;
  padding: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@font-face {
  font-family: gilroyextrabold;
  src: url("gilroy-extrabold-webfont.05fb1d5b.woff2") format("woff2"), url("gilroy-extrabold-webfont.e4f8f74a.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

*, :before, :after {
  box-sizing: border-box;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes upDown {
  0% {
    bottom: 70px;
  }

  70% {
    bottom: 75px;
  }

  100% {
    bottom: 70px;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  color: #bbb;
  background-color: #0f0f0f;
  font: 1.4rem / 1.5 Montserrat, IBM Plex Sans Thai, sans-serif;
  transition: background .5s linear;
}

body.switchBg {
  background-color: #000;
  transition: background .5s linear;
}

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  float: left;
  width: 100%;
  margin: 8px 0;
  font-family: gilroyextrabold, IBM Plex Sans Thai, sans-serif;
}

h1 {
  font-size: 6.4rem;
}

h2 {
  text-align: right;
  font-size: 3.2rem;
}

h2:after {
  content: ".";
  color: #fee376;
  animation: .7s infinite blink;
  display: inline-block;
}

p {
  float: left;
  width: 100%;
  margin: 8px 0;
}

ul, li {
  float: left;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

img {
  float: left;
  max-width: 100%;
}

a {
  color: #fee376;
}

a.resume {
  color: #fff;
  float: left;
  margin: 16px 0;
  font-weight: 500;
  text-decoration: none;
}

a.resume:before {
  content: "———";
  float: left;
  margin-right: 8px;
}

svg {
  float: left;
}

header {
  z-index: 100;
  width: 100%;
  height: 48px;
  position: fixed;
  top: 10px;
}

header .logo {
  float: left;
  margin: 13px 20px;
}

header .hamburger {
  z-index: 3;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: fixed;
  top: 10px;
  right: 10px;
  overflow: hidden;
}

header .hamburger span {
  opacity: 1;
  -o-transition: .25s ease-in-out;
  background: #fff;
  width: 13px;
  height: 2px;
  transition: all .25s ease-in-out;
  display: block;
  position: absolute;
  transform: rotate(0);
}

header .hamburger span:nth-child(2n) {
  left: 50%;
}

header .hamburger span:nth-child(odd) {
  left: 0;
}

header .hamburger span:first-child, header .hamburger span:nth-child(2) {
  top: calc(50% - 7px);
}

header .hamburger span:nth-child(3), header .hamburger span:nth-child(4) {
  top: calc(50% - 1px);
}

header .hamburger span:nth-child(5), header .hamburger span:nth-child(6) {
  top: calc(50% + 5px);
}

header .hamburger span:first-child {
  width: 8px;
  left: calc(50% - 8px);
}

header .hamburger span:nth-child(3) {
  left: calc(50% - 13px);
}

header .hamburger span:nth-child(5) {
  width: 4px;
  left: calc(50% - 4px);
}

header .hamburger.active span:first-child, header .hamburger.active span:nth-child(6) {
  transform: rotate(45deg);
}

header .hamburger.active span:nth-child(2), header .hamburger.active span:nth-child(5) {
  transform: rotate(-45deg);
}

header .hamburger.active span:nth-child(3) {
  opacity: 0;
  left: -50%;
}

header .hamburger.active span:nth-child(4) {
  opacity: 0;
  left: 100%;
}

header .hamburger.active span:first-child, header .hamburger.active span:nth-child(5) {
  width: 13px;
  left: calc(50% - 11px);
}

header .hamburger.active span:nth-child(2), header .hamburger.active span:nth-child(6) {
  width: 13px;
  left: calc(50% - 3px);
}

header .hamburger.active span:first-child, header .hamburger.active span:nth-child(2) {
  top: calc(50% - 5px);
}

header .hamburger.active span:nth-child(5), header .hamburger.active span:nth-child(6) {
  top: calc(50% + 3px);
}

header nav {
  background-color: #000;
  width: 90%;
  height: 100vh;
  min-height: 640px;
  transition: all .5s linear;
  position: fixed;
  top: 0;
  right: -100%;
  box-shadow: -6px 0 16px #00000080;
}

header nav.active {
  transition: all .5s linear;
  right: 0;
}

header nav ul {
  width: 128px;
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
}

header nav li {
  float: left;
  width: 100%;
}

header nav li:nth-child(-n+3) {
  font-size: 2.2rem;
  font-weight: 800;
}

header nav li:nth-child(3) {
  margin-bottom: 24px;
}

header nav li:nth-child(4) {
  margin-bottom: 48px;
}

header nav li:nth-child(4) a {
  float: left;
  margin-right: 8px;
}

header nav li:last-child {
  margin: 24px 0;
  font-size: 1.2rem;
}

header nav li:last-child a {
  line-height: 24px;
}

header nav li:nth-last-child(2) {
  margin: 24px 0;
  font-size: 1.4rem;
}

header nav li:nth-last-child(2) a {
  float: left;
  margin-right: 8px;
}

header nav li:nth-last-child(2) a.active {
  color: #fee376;
  font-weight: 600;
}

header nav a {
  color: #fff;
  line-height: 32px;
  text-decoration: none;
  display: block;
}

header .lang {
  display: none;
}

.me {
  filter: grayscale();
  z-index: -1;
  opacity: .16;
  max-width: none;
  height: 100vh;
  min-height: 640px;
  transition: all .8s linear;
  position: fixed;
  top: 0;
  left: -50%;
  transform: translateX(-45%);
}

.me.active {
  opacity: 1;
  filter: grayscale(0);
  height: 55vh;
  transition: all .8s linear;
  left: 0%;
}

.me.hidden {
  opacity: 0;
}

.container {
  float: none;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

section {
  width: 100%;
  position: relative;
}

section.hello {
  height: 100vh;
  min-height: 640px;
}

section.hello .hello--me {
  width: 270px;
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
}

section.hello .hello--me span {
  color: #fee376;
}

section.hello .hello--me .hello--typed {
  color: #fff;
}

section.hello:before, section.hello:after {
  z-index: 1;
  position: absolute;
}

section.hello:before {
  content: "Scroll";
  font-size: 1.4rem;
  animation: .7s infinite upDown;
  display: inline-block;
  bottom: 65px;
  left: calc(50% - 20px);
  transform: rotate(-90deg);
}

section.hello:after {
  content: "";
  background-color: #fff;
  width: 1px;
  height: 104px;
  bottom: 0;
  left: 50%;
  transform: translateY(50%);
}

section.pirune {
  min-height: 640px;
  padding: 100px 20px;
  overflow: hidden;
}

section.pirune > div {
  float: left;
  width: 100%;
  margin-top: 30vh;
  overflow: hidden;
}

section.pirune > div p strong {
  color: #fff;
  font-weight: 500;
}

section.pirune > div p span {
  color: #fee376;
}

section.pirune > div p u {
  font-weight: 500;
  text-decoration: none;
}

section.projects {
  background-color: #0f0f0f;
  width: 100%;
  padding: 64px 16px;
  overflow: hidden;
}

section.projects div {
  width: 100%;
  overflow: hidden;
}

section.projects div p {
  float: left;
  line-height: 24px;
}

section.projects div img {
  margin-right: 8px;
}

section.projects a {
  color: #fff;
  font-weight: 600;
}

section.projects ul {
  max-width: 432px;
  margin: 0 auto;
}

section.projects li {
  margin: 8px 0;
}

section.clients {
  text-align: center;
  padding: 100px 16px;
}

section.clients ul {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  padding: 16px 0;
  display: flex;
}

section.clients ul li {
  width: 25%;
  padding: 12px;
}

footer {
  background-color: #0f0f0f;
  width: 100%;
  padding: 24px 20px;
  overflow: hidden;
}

footer p a {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 600;
}

footer a {
  color: #bababa;
  text-decoration: none;
  display: block;
}

footer a span {
  color: #fff;
}

footer ul {
  width: 100%;
}

footer ul li {
  margin: 16px 0;
}

footer ul li:first-child {
  width: 100%;
}

footer ul li:nth-child(2) a {
  line-height: 28px;
}

footer ul li:last-child {
  float: right;
}

@media screen and (width >= 48em) {
  body {
    font-size: 1.5rem;
  }

  h2 {
    text-align: left;
  }

  .me {
    filter: grayscale();
    z-index: -1;
    opacity: .16;
    transition: all .8s linear;
    left: -15%;
    transform: translateX(-45%);
  }

  .me.active {
    height: 75vh;
    left: -1%;
  }

  .me.hidden {
    opacity: 0;
  }

  section.hello .hello--me {
    left: 45%;
    transform: translate(0%, -50%);
  }

  section.pirune > div {
    float: left;
    width: 55%;
    margin-left: 45%;
  }

  section.projects ul {
    float: none;
    flex-wrap: wrap;
    max-width: 768px;
    display: flex;
  }

  section.projects ul li {
    width: 50%;
    padding: 12px;
  }

  section.clients p span {
    display: block;
  }

  section.clients ul {
    float: none;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 48px;
  }

  section.clients ul li {
    padding: 12px 24px;
  }

  footer svg {
    float: right;
  }

  footer ul li:first-child {
    width: 50%;
  }

  footer ul li:nth-child(2) {
    width: 30%;
    padding-top: 8px;
  }

  footer ul li:nth-child(2) a {
    line-height: 28px;
  }

  footer ul li:last-child {
    float: right;
    text-align: right;
    width: 20%;
    padding-top: 4px;
  }
}

@media screen and (width >= 60em) {
  html, body {
    height: 100%;
  }

  body {
    font-size: 1.6rem;
  }

  body:after {
    content: "";
    z-index: -1;
    border: 50px solid #000;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    transition: all .5s ease-in-out;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  body.active .me {
    height: 100vh;
    min-height: 640px;
    top: 0;
  }

  body.active:after {
    width: calc(100% + 100px);
    height: calc(100vh + 100px);
    transition: all .5s ease-in-out;
  }

  h1 {
    margin-left: -5px;
    font-size: min(max(5vw, 10rem), 14.4rem);
  }

  h2 {
    font-size: min(max(3vw, 5rem), 6.6rem);
  }

  header {
    height: 50px;
    padding: 0 50px;
    top: 0;
  }

  header .logo {
    margin: 15px 0;
  }

  header .hamburger {
    background-color: #000;
    border-radius: 50%;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
  }

  header .lang {
    float: right;
    font-size: 1.4rem;
    display: block;
  }

  header .lang a {
    color: #fff;
    padding: 2px;
    line-height: 50px;
    text-decoration: none;
    display: inline-block;
  }

  header .lang a.active {
    color: #fee376;
    font-weight: 600;
  }

  .me {
    height: calc(100vh - 100px);
    top: 50px;
    left: 45%;
    transform: translateX(-80%);
  }

  .me.active {
    height: 75vh;
    left: 48%;
  }

  section.hello .hello--me {
    width: 45%;
    left: 52%;
  }

  section.pirune {
    padding: 100px 20px 260px;
  }

  section.pirune > div {
    width: 565px;
    margin-left: 50%;
  }

  section.projects ul {
    width: 100%;
    max-width: 1368px;
  }

  section.projects ul li {
    width: 33.3333%;
  }

  footer {
    padding: 64px 20px;
  }

  footer svg {
    float: right;
  }

  footer ul li:first-child {
    width: 60%;
  }

  footer ul li:nth-child(2) {
    width: 30%;
    padding-top: 24px;
  }

  footer ul li:last-child {
    width: 10%;
    padding-top: 20px;
  }

  footer p a {
    font-size: 3.2rem;
  }
}
