@import url("https://fonts.googleapis.com/css?family=Anton|Buenard:400,700");
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
video {
  display: inline-block;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden] {
  display: none;
}
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  cursor: default;
  /* scroll-behavior: smooth; */
}
body {
  margin: 0;
  overflow-x: hidden;
  cursor: default;
  background-color: #111;
}
a:focus {
  outline: thin dotted;
}
a:active,
a:hover {
  outline: 0;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
strong {
  font-weight: bold;
}
dfn {
  font-style: italic;
}
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}
mark {
  background: #ff0;
  color: #000;
}
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}
pre {
  white-space: pre-wrap;
}
q {
  quotes: "\201C""\201D""\2018""\2019";
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
img {
  border: 0;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  margin: 0;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  border: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}
button,
input {
  line-height: normal;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: default;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
  vertical-align: top;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*,
*::after,
*::before {
  box-sizing: border-box;
}

/*SECTION 0 */
.section-0 {
  height: 100vh;
  position: relative;
}

#myVideo {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100vh;
}

/*SECTION 1 AND SECTION 1.1 */

.section-1 {
  --color-text: #252528;
  --color-bg: #afb6bc;
  --color-link: #252528;
  --color-link-hover: #252528;
  --color-menu-text: #252528;
  --color-bg-move: #afb6bc;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: fieldwork-hum, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
}

.section-1 main {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  align-items: center;
}

.section-1 .js main {
  overflow: hidden;
}

.cursor {
  display: none;
}

/* Page Loader */
.js .section-1 .loading::before {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .section-1 .loading::after {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnimS1 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnimS1 {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

.section-1 a {
  text-decoration: none;
  color: var(--color-link);
}

.section-1 a:hover,
.section-1 a:focus {
  color: var(--color-link-hover);
  outline: 0;
}

.section-1 .frame {
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 1000;
  grid-area: 1 / 1 / 2 / 2;
  align-self: start;
}

.section-1 .frame__title {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.section-1 .frame__links {
  display: inline;
}

.section-1 .frame__github,
.section-1 .frame__links a:not(:last-child),
.section-1 .frame__demos a:not(:last-child) {
  margin-right: 1rem;
}

.section-1 .frame__demos {
  margin: 1rem 0;
}

.section-1 .frame__demo--current,
.section-1 .frame__demo--current:hover {
  color: var(--color-text);
}

.section-1 .content,
.section-1 .content__move {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  align-items: center;
  grid-area: 1 / 1 / 2 / 2;
  justify-self: center;
  position: relative;
  will-change: transform;
}

.section-1 .content--first {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.section-1 .content__move {
  background: var(--color-bg-move);
}

.section-1 .columns {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 100%;
  grid-gap: 1.5rem;
  padding: 0 8vw;
}

.section-1 .column {
  position: relative;
  align-self: start;
  will-change: transform;
}

.section-1 .column--bottom {
  align-self: end;
}

.section-1 .column__img {
  width: 100%;
  display: block;
  opacity: 0.4;
  background-size: cover;
  background-position: 50% 50%;
  height: 25vw;
}

.section-1 .column__img:nth-child(odd) {
  height: 30vw;
}

.section-1 .column__img:not(:last-child) {
  margin-bottom: 1.5rem;
}

.section-1 .menu {
  grid-area: 1 / 1 / 2 / 2;
  width: 100vw;
  height: 100vh;
  padding: 15vh 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.section-1 .menu__item {
  display: flex;
  font-weight: 800;
  font-size: 16vw;
  line-height: 1.1;
  cursor: pointer;
  padding-bottom: 1rem;
  -webkit-text-stroke: 2px var(--color-menu-text);
  text-stroke: 2px var(--color-menu-text);
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  color: transparent;
}

header {
  --color-text: #252528;
  --color-bg: #afb6bc;
  --color-link: #252528;
  --color-link-hover: #252528;
  --color-menu-text: #252528;
  --color-bg-move: #afb6bc;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: fieldwork-hum, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-transform: uppercase;
}

header .menu__item {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  cursor: pointer;
  -webkit-text-stroke: 2px var(--color-menu-text);
  text-stroke: 2px var(--color-menu-text);
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  color: transparent;
}

.section-1 .menu__item:hover,
header .menu__item:hover {
  -webkit-text-fill-color: var(--color-menu-text);
  text-fill-color: var(--color-menu-text);
  color: var(--color-menu-text);
  text-decoration: none;
}

.section-1 .item {
  position: relative;
}

.section-1-1 .item {
  position: relative;
  width: 100%;
  height: 100vh;
}

.js .section-1 .item {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  pointer-events: none;
}

.js .section-1 .item--current {
  opacity: 1;
  pointer-events: auto;
}

.section-1 .item__img {
  height: 300px;
  width: 100%;
  flex: none;
  background-size: cover;
  background-position: 50% 25%;
  opacity: 0.8;
}

.section-1 .item__content {
  padding: 2rem;
  height: calc(100vh - 300px);
  overflow: auto;
}

.section-1 .item__content-title {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.2;
  pointer-events: none;
}

.section-1 .menu__item span,
header .menu__item span,
.section-1 .item__content-title span {
  display: inline-block;
  white-space: pre;
  pointer-events: none;
  will-change: transform;
}

.section-1 .item__content-subtitle {
  font-weight: normal;
  margin: 0;
  font-size: 1.5rem;
}

.section-1 .item__content-text {
  margin: 5vh 0 4rem 0;
  position: relative;
  line-height: 1.5;
}

.section-1 .item__content-text::after {
  content: "";
  width: 2rem;
  height: 2px;
  position: absolute;
  background: currentColor;
  top: calc(100% + 3rem);
}

.section-1 .item__content-back {
  cursor: pointer;
}

@media screen and (min-width: 53em) {
  .section-1 .frame {
    position: fixed;
    text-align: left;
    z-index: 10000;
    top: 0;
    left: 0;
    display: grid;
    align-content: space-between;
    width: 100%;
    max-width: none;
    height: 100vh;
    padding: 3rem 4rem;
    pointer-events: none;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "title ..."
      "... ..."
      "links links";
  }
  .section-1 .frame__title-wrap {
    grid-area: title;
    display: flex;
  }
  .section-1 .frame__title {
    margin: 0;
    font-weight: normal;
  }
  .section-1 .frame__links {
    grid-area: links;
    padding: 0;
    justify-self: end;
  }
  .section-1 .frame a {
    pointer-events: auto;
  }
  .section-1 .menu__item {
    font-size: 12vh;
  }
  .section-1 .item {
    height: 100%;
    width: 100%;
    display: flex;
  }
  .section-1 .item__img {
    height: 100%;
    width: 45%;
    background-position: 50% 50%;
  }
  .section-1 .item__content {
    padding: 7.5vh 8vw 0 8vw;
    height: calc(100% - 12rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
  }
  .section-1 .item__content-title {
    font-size: 5vw;
  }
  .section-1 .item__content-subtitle {
    font-size: 2vw;
  }
  .section-1 .item__content-text {
    margin-bottom: 0;
  }
}

@media (any-pointer: fine) {
  .cursor {
    display: block;
  }
  .cursor__inner {
    z-index: 9999;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    mix-blend-mode: difference;
    border-radius: 50%;
  }
  .cursor__inner--circle {
    width: 25px;
    height: 25px;
    border: 1px solid #fff;
  }
}

/* SECTION 1.1 */
.section-1-1 {
  /* pointer-events: none; */
}

.section-1-1 .item__img {
  display: table-cell;
  width: 40%;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.section-1-1 .item__content {
  display: table-cell;
  height: 100vh;
  padding: 10vh 8vw;
}

.section-1-1 .item__content-title {
  font-size: 4.5rem;
  margin: 0;
  line-height: 1.4;
  pointer-events: none;
  font-weight: bold;
}

.section-1-1 .item__content-subtitle {
  font-weight: normal;
  margin: 0;
  font-size: 2.5rem;
}

.section-1-1 .item__content-text {
  margin: 5vh 0 4rem 0;
  position: relative;
  line-height: 1.5;
  font-size: 1.3rem;
  height: 580px;
}

/*SECTION 2*/
.section-2 {
  --color-text: #000;
  --color-bg: #ececec;
  /* --color-bg: #afb6bc; */
  --color-link: #000;
  --color-link-hover: #000;
  --color-info: #000;
  font-family: "Buenard", serif;
  min-height: 100vh;
  color: #57585c;
  color: var(--color-text);
  background-color: #fff;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section-2 .preview-open {
  overflow: hidden;
}

/* Page Loader */
.js .section-2 .loading::before {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .section-2 .loading::after {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnimS2 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnimS2 {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

.section-2 a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
}

.section-2 a:hover,
.section-2 a:focus {
  color: var(--color-link-hover);
  outline: none;
}

.section-2 .hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Icons */
.section-2 .icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin: 0 auto;
  fill: currentColor;
}

.section-2 main {
  position: relative;
}

.section-2 .content {
  position: relative;
}

/* Header */
.section-2 .codrops-header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  align-items: center;
  padding: 2rem;
}

.section-2 .codrops-header__title {
  font-size: 1em;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.section-2 .info {
  margin: 0 0 0 1.25em;
  color: var(--color-info);
}

.section-2 .github {
  display: block;
  margin: 0 0 0 auto;
}

/* Top Navigation Style */
.section-2 .codrops-links {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 1em 0 0;
  text-align: center;
  white-space: nowrap;
}

.section-2 .codrops-icon {
  display: inline-block;
  margin: 0.15em;
  padding: 0.25em;
}

.section-2 .grid {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 10rem;
}

.section-2 .grid__item {
  display: flex;
  justify-content: center;
  margin: 0 0 10rem 0;
  cursor: pointer;
}

.section-2 .box {
  position: relative;
  margin: 2rem;
}

.section-2 .box__title {
  margin: 0;
  line-height: 1;
  position: absolute;
  z-index: 100;
}

.section-2 .box__title-inner {
  display: block;
  position: relative;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 3rem;
  letter-spacing: 0.15rem;
  line-height: 1.25;
  font-family: "Anton", sans-serif;
}

.section-2 .box__title-inner[data-hover] {
  -webkit-text-stroke: 2px #000;
  text-stroke: 2px #000;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  color: transparent;
}

.section-2 .box__title-inner::before {
  content: attr(data-hover);
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  -webkit-text-fill-color: #000;
  text-fill-color: #000;
  color: #000;
  transition: all 0.3s;
}

.section-2 .grid__item:hover .box__title-inner::before {
  height: 100%;
  width: 100%;
}

.section-2 .box__text {
  margin: 0;
  position: absolute;
  top: -6rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 1.75rem;
  margin: 0.5rem 1rem;
  font-family: "Anton", sans-serif;
}

.section-2 .box__text-inner {
  position: relative;
  display: block;
  border: 6px solid var(--color-text);
  padding: 0.25rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.85);
}

.section-2 .box__text-inner--reverse {
  background: var(--color-text);
  color: var(--color-bg);
}

.section-2 .box__img {
  display: block;
  flex: none;
  margin: 0 auto;
  max-width: 100%;
  filter: grayscale(1);
  transition: filter 0.3s;
  pointer-events: none;
}

.section-2 .grid__item:hover .box__img:not(.box__img--original) {
  filter: grayscale(0);
}

.section-2 .box__shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -1rem;
  left: -1rem;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAOklEQVQoU43MSwoAMAgD0eT+h7ZYaOlHo7N+DNHL2HAGgBWcyGcKbqTghTL4oQiG6IUpOqFEC5bI4QD8PAoKd9j4XwAAAABJRU5ErkJggg==);
}

.section-2 .box__deco {
  font-size: 6rem;
  line-height: 1;
  font-weight: bold;
  position: absolute;
  bottom: -4rem;
  right: -4rem;
  display: none;
}

.section-2 .box__content {
  position: absolute;
  max-width: 195px;
  font-size: 0.9rem;
  text-align: right;
  display: none;
}

.section-2 .box__content strong {
  white-space: nowrap;
}

.section-2 .overlay {
  pointer-events: none;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
}

.section-2 .overlay--open {
  pointer-events: auto;
}

.section-2 .overlay__reveal {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #000;
  position: absolute;
  z-index: 100;
  transform: translate3d(100%, 0, 0);
}

.section-2 .overlay__item {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background: #ececec;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 5vw;
  justify-content: center;
}

.section-2 .overlay__item .box {
  max-width: 600px;
  max-height: 100%;
  margin: 0;
}

.section-2 .overlay__item .box__title {
  bottom: 0;
}

.section-2 .box__img--original {
  max-height: calc(100vh - 10rem);
  filter: none;
}

.section-2 .overlay__close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: 0;
  margin: 1rem;
  padding: 1rem;
  opacity: 0;
  font-size: 30px;
  font-family: "Anton", sans-serif;
  font-weight: 800;
}

.section-2 .overlay__close:focus {
  outline: none;
}

.section-2 .overlay__content {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 40rem;
  margin: 1rem 0 0 10vw;
}

@media screen and (min-width: 55em) {
  .section-2 .grid {
    display: grid;
    align-items: center;
    padding: 3rem 3rem 3rem 3rem;
    grid-row-gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
  .section-2 .grid__item {
    margin: 0;
  }
  .section-2 .box {
    margin: 4rem;
  }
  .section-2 .box__title {
    top: -4rem;
    right: -4.5rem;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
  }
  .section-2 .box__title--straight {
    -webkit-writing-mode: horizontal-tb;
    writing-mode: horizontal-tb;
  }
  .section-2 .box__title--straight .box__title-inner::before {
    width: 0;
    height: auto;
  }
  .section-2 .box__title--bottom {
    bottom: -5rem;
    top: auto;
  }
  .section-2 .box__title--left {
    left: -2rem;
    right: auto;
  }
  .section-2 .box__text--topcloser {
    top: -5rem;
  }
  .section-2 .box__text--bottom {
    bottom: -5rem;
    top: auto;
  }
  .section-2 .box__text--bottomcloser {
    bottom: -5rem;
    top: auto;
  }
  .section-2 .box__text--right {
    right: 0;
    left: auto;
  }
  .section-2 .box__text-inner--rotated1 {
    transform: rotate(4deg);
  }
  .section-2 .box__text-inner--rotated2 {
    transform: rotate(-3deg);
  }
  .section-2 .box__text-inner--rotated3 {
    transform: rotate(-15deg);
  }
  .section-2 .box__deco {
    display: block;
  }
  .section-2 .box__deco--left {
    right: auto;
    left: -3rem;
  }
  .section-2 .box__deco--top {
    top: 0;
    bottom: auto;
  }
  .section-2 .overlay__item {
    flex-direction: row;
  }
  .section-2 .overlay__content {
    font-size: 1rem;
    margin-top: 0;
    font-family: Arial;
  }
  .section-2 .overlay__item .box__title--bottom {
    bottom: 0;
  }
}

@media screen and (min-width: 80em) {
  /* .section-2 .grid {
    grid-template-columns: repeat(3, 1fr);
  } */
  .section-2 .grid__item:nth-child(4n-2) {
    margin-top: -8rem;
    margin-bottom: 8rem;
  }
  .section-2 .grid__item:nth-child(4n) {
    margin-top: -5rem;
  }
  .section-2 .box {
    margin: 6rem 4.5rem;
  }
  .section-2 .box__content {
    display: block;
  }
}

@media screen and (max-width: 55em) {
  .section-2 .content {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .section-2 .content--fixed {
    position: relative;
    z-index: 1000;
    display: block;
    padding: 0.85em;
  }
  .section-2 .codrops-header {
    flex-direction: column;
    align-items: center;
    padding-bottom: 5rem;
  }
  .section-2 .codrops-header__title {
    font-weight: bold;
    padding-bottom: 0.25em;
    text-align: center;
  }
  .section-2 .info {
    margin: 0;
  }
  .section-2 .github {
    display: block;
    margin: 1em auto;
  }
  .section-2 .codrops-links {
    margin: 0;
  }
}

.section-2 {
  padding-top: 8rem;
}

/* Section 3 */
.section-3 {
  height: 100vh;
}

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

.section-3 :root {
  font-size: 18px;
}

.section-3 main {
  height: 100%;
  width: 100%;
  position: relative;
}

.section-3 a {
  text-decoration: underline;
  color: var(--color-link);
  outline: none;
}

.section-3 a:focus,
.section-3 a:hover {
  text-decoration: none;
  color: var(--color-link-hover);
  outline: none;
  cursor: pointer;
}

.section-3 .unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.section-3 .unbutton:focus {
  outline: none;
}

.js .section-3 .loading:after,
.js .section-3 .loading:before {
  content: "";
  position: fixed;
  z-index: 1000;
}

.js .section-3 .loading:before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .section-3 .loading:after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnimS3 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnimS3 {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

.section-3 .message {
  z-index: 100;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.5rem;
  font-size: 0.75rem;
  position: relative;
}

.section-3 .no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.section-3 .frame {
  padding: 1rem 5vw;
  position: relative;
  z-index: 1000;
}

.section-3 .frame__title {
  font-size: 1rem;
  margin: 0 0 1rem;
  font-weight: 400;
}

.section-3 .frame__links {
  display: inline;
}

.section-3 .frame__demos a:not(:last-child),
.section-3 .frame__links a:not(:last-child) {
  margin-right: 1rem;
}

.section-3 .frame__demos {
  margin: 1rem 0;
}

.section-3 .frame__demo--current,
.section-3 .frame__demo--current:hover {
  color: var(--color-text);
  text-decoration: none;
}

.section-3 .content {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 300px;
  justify-content: center;
  position: relative;
  align-items: center;
}

.section-3 .grid {
  column-gap: 8px;
  position: absolute;
  width: 160%;
  height: 130%;
  /*top: -10%;*/
  /*left: -10%;*/
  display: grid;
  grid-template-columns: repeat(50, 2%);
  grid-template-rows: repeat(50, 2%);
  perspective: 1000px;
}

.section-3 .grid--inactive {
  pointer-events: none;
}

.section-3 .grid__item {
  grid-area: var(--grid-row) / var(--grid-column) / span 12 / span 5;
}

.section-3 .grid__item,
.section-3 .grid__item-img {
  position: relative;
  will-change: transform;
}

.section-3 .grid__item-img {
  width: 150%;
  height: 150%;
  background-size: cover;
  background-position: 50% 50%;
  border-radius: 10px;
}

.section-3 .char {
  will-change: transform;
}

.section-3 .pos-1 {
  --grid-row: 10;
  --grid-column: 1;
}

.section-3 .pos-2 {
  --grid-row: 1;
  --grid-column: 18;
}

.section-3 .pos-3 {
  --grid-row: 1;
  --grid-column: 29;
}

.section-3 .pos-4 {
  --grid-row: 15;
  --grid-column: 12;
}

.section-3 .pos-5 {
  --grid-row: 17;
  --grid-column: 25;
}

.section-3 .pos-6 {
  --grid-row: 20;
  --grid-column: 43;
}

.section-3 .pos-7 {
  --grid-row: 35;
  --grid-column: 5;
}

.section-3 .pos-8 {
  --grid-row: 40;
  --grid-column: 14;
}

.section-3 .pos-9 {
  --grid-row: 37;
  --grid-column: 29;
}

.section-3 .pos-10 {
  --grid-row: 35;
  --grid-column: 42;
}

.section-3 .pos-11 {
  --grid-row: 1;
  --grid-column: 44;
}

.section-3 .pos-12 {
  --grid-row: 32;
  --grid-column: 20;
}

.section-3 .pos-13 {
  --grid-row: 22;
  --grid-column: 2;
}

.section-3 .pos-14 {
  --grid-row: 9;
  --grid-column: 38;
}

.section-3 .pos-15 {
  --grid-row: 4;
  --grid-column: 7;
}

.section-3 .pos-16 {
  --grid-row: 28;
  --grid-column: 36;
}

.section-3 .content__title {
  font-size: 18vw;
  margin: 0;
  line-height: 1.2;
  position: relative;
  color: var(--color-title);
  text-transform: uppercase;
  pointer-events: none;
}

.section-3 .content__title-line {
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.section-3 .content__title-line--1 {
  margin-left: -5vw;
}

.section-3 .content__title-line--2 {
  margin-right: -5vw;
}

.section-3 .preview {
  position: relative;
  pointer-events: none;
}

.js .section-3 .preview {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.section-3 .preview__item {
  position: relative;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 50% 50%;
  grid-template-areas: "preview-back preview-back" "preview-img preview-title" "preview-content preview-content";
}

.js .section-3 .preview__item {
  perspective: 1000px;
}

.js .section-3 .preview__item:not(.preview__item--open) {
  position: absolute;
  overflow: hidden;
  height: 0;
  opacity: 0;
}

.js .section-3 .preview__item--open {
  pointer-events: auto;
}

.section-3 .preview__item-back {
  grid-area: preview-back;
  justify-self: start;
  font-size: 0.857rem;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 90px;
  margin-bottom: 1rem;
  background: url(../img/videos/arrow.2103f144.svg) no-repeat 0 50%;
}

.section-3 .preview__item-title {
  grid-area: preview-title;
  font-family: dystopian, sans-serif;
  font-size: 6vw;
  font-size: clamp(1.5rem, 6vw, 20vh);
  margin: 0;
  grid-column-start: 1;
  align-self: center;
  padding-left: 1rem;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.section-3 .preview__item-imgwrap {
  width: 100px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  grid-area: preview-img;
  transform-origin: 50% 100%;
}

.section-3 .preview__item-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
}

.section-3 .preview__item-content {
  grid-area: preview-content;
  max-width: calc(1100px - 40vh);
  min-height: 440px;
  line-height: 1.3;
}

.section-3 .preview__item-meta {
  color: var(--color-text-alt);
  text-transform: uppercase;
  font-size: 0.857rem;
  padding: 1rem 0 0;
}

.section-3 .preview__item-meta span {
  display: block;
}

.section-3 .preview__item-info {
  display: block;
  color: var(--color-link);
  margin: 1rem 0;
}

.section-3 .preview__item-button {
  color: #fff;
  border: 0;
  border-radius: 2rem;
  text-transform: uppercase;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  background: #000;
  padding: 1rem 2rem;
  display: inline-block;
  cursor: pointer;
  margin-bottom: 1rem;
}

.section-3 .preview__item-button:active,
.section-3 .preview__item-button:focus,
.section-3 .preview__item-button:hover {
  outline: none;
  background: var(--color-link);
}

.section-3 .cursor {
  display: none;
}

@media screen and (min-width: 53em) {
  .section-3 main {
    overflow: hidden;
  }
  .section-3 .message {
    display: none;
  }
  .section-3 .frame {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: grid;
    align-content: space-between;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 1rem 1.5rem;
    grid-gap: 6vw;
    pointer-events: none;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    grid-template-areas: "title links ..." "... ... ..." "... ... ...";
  }
  .section-3 .frame__title-wrap {
    grid-area: title;
    display: flex;
  }
  .section-3 .frame__title {
    margin: 0;
  }
  .section-3 .frame__tagline {
    position: relative;
    margin: 0 0 0 1rem;
    padding: 0 0 0 1rem;
    opacity: 0.5;
  }
  .section-3 .frame__demos {
    margin: 0;
    grid-area: demos;
    justify-self: end;
  }
  .section-3 .frame__links {
    grid-area: links;
    padding: 0;
  }
  .section-3 .frame a {
    pointer-events: auto;
  }
  .section-3 .content {
    height: 100%;
  }
  .section-3 .preview__item {
    height: 100%;
    width: 80vw;
    grid-template-columns: 47% 53%;
    grid-template-rows: minmax(max(5rem, 18vh), 1fr) auto auto 1fr;
    grid-template-areas: "... ..." "preview-back ..." "preview-title preview-title" "preview-img preview-content";
  }
  .section-3 .preview__item-title {
    justify-self: center;
    padding: 0;
  }
  .section-3 .preview__item-meta {
    padding: 1rem 0;
  }
  .section-3 .preview__item-info {
    margin: 1rem 0 3rem;
  }
  .section-3 .preview__item-imgwrap {
    width: 100%;
    height: 100%;
    grid-row-start: 3;
    border-radius: 10px 10px 0 0;
  }
  .section-3 .preview__item-content {
    padding: 0 0 0 4rem;
  }
}

@media (any-pointer: fine) {
  .section-3 .cursor {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 9999;
  }
  .section-3 .cursor,
  .section-3 .cursor__svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
  }
  .section-3 .cursor__svg-circle {
    fill: var(--cursor-fill);
    stroke: var(--cursor-stroke);
    stroke-width: var(--cursor-stroke-width);
  }
  .section-3 .cursor__text {
    position: absolute;
    top: 1.875rem;
    left: 80px;
    font-size: 0.857rem;
    text-transform: uppercase;
    font-weight: 500;
    fill: var(--cursor-text);
  }
}

.section-3 .splitting .char,
.section-3 .splitting .word {
  display: inline-block;
}

.section-3 .splitting .char {
  position: relative;
}

.section-3 .splitting .char:after,
.section-3 .splitting .char:before {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  transition: inherit;
  user-select: none;
}

.section-3 .splitting {
  --word-center: calc(var(--word-total) / 2 - 0.5);
  --char-center: calc(var(--char-total) / 2 - 0.5);
  --line-center: calc(var(--line-total) / 2 - 0.5);
}

.section-3 .splitting .word {
  --word-percent: calc(var(--word-index) / var(--word-total));
  --line-percent: calc(var(--line-index) / var(--line-total));
}

.section-3 .splitting .char {
  --char-percent: calc(var(--char-index) / var(--char-total));
  --char-offset: calc(var(--char-index) - var(--char-center));
  --distance: calc(
    var(--char-offset) * var(--char-offset) / var(--char-center)
  );
  --distance-sine: calc(var(--char-offset) / var(--char-center));
  --distance-percent: calc(var(--distance) / var(--char-center));
}

.section-3 .splitting.cells img {
  width: 100%;
  display: block;
}

@supports (display: grid) {
  .section-3 .splitting.cells {
    position: relative;
    overflow: hidden;
    background-size: cover;
    visibility: hidden;
  }
  .section-3 .splitting .cell-grid {
    background: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template: repeat(var(--row-total), 1fr) / repeat(var(--col-total), 1fr);
  }
  .section-3 .splitting .cell {
    background: inherit;
    position: relative;
    overflow: hidden;
  }
  .section-3 .splitting .cell-inner {
    background: inherit;
    position: absolute;
    visibility: visible;
    width: calc(100% * var(--col-total));
    height: calc(100% * var(--row-total));
    left: calc(-100% * var(--col-index));
    top: calc(-100% * var(--row-index));
  }
  .section-3 .splitting .cell {
    --center-x: calc(var(--col-total) / 2 - 0.5);
    --center-y: calc(var(--row-total) / 2 - 0.5);
    --offset-x: calc(var(--col-index) - var(--center-x));
    --offset-y: calc(var(--row-index) - var(--center-y));
    --distance-x: calc(var(--offset-x) * var(--offset-x) / var(--center-x));
    --distance-y: calc(var(--offset-y) * var(--offset-y) / var(--center-y));
  }
}

.section-3 {
  margin: 0;
  --color-text: #000;
  --color-text-alt: #848484;
  --color-title: #d3d3d3;
  --color-bg: #dcdcdc;
  --color-link: #e3154d;
  --color-link-hover: #000;
  color: var(--color-text);
  background-color: var(--color-bg);
  --cursor-stroke: #e3154d;
  --cursor-fill: none;
  --cursor-stroke-width: 1px;
  --cursor-text: #000;
  font-family: tenon, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.preview-open {
  overflow: hidden;
}

/* VIDEO MODAL */

.modal-dialog {
  min-width: 800px;
  max-width: 800px;
  margin: 30px auto;
}

.modal-body {
  position: relative;
  padding: 0px;
}
.close {
  position: absolute;
  right: -30px;
  top: 0;
  z-index: 999;
  font-size: 2rem;
  font-weight: normal;
  color: #fff;
  opacity: 1;
}

.full-screen {
  display: block;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#panels {
  overflow: hidden;
  /* pointer-events: none; */
}

#panels #panels-container {
  height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding: 0;
  overflow: hidden;
  background-color: #ddd;
}

#panels #panels-container .panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #333;
  text-align: left;
}

#panels #panels-container .panel iframe {
  position: relative;
  top: 50px;
}

.station-logo {
  width: 240px;
  position: absolute;
  bottom: 130px;
  left: calc(30% - 240px);
  opacity: 0;
}

#redfm .station-logo {
  background-color: rgba(0, 0, 0, 0.7);
}

.item__content-text {
  position: relative;
}

.item__content-radio {
  position: absolute;
  bottom: 120px;
  width: 100%;
  text-align: center;
}

#redfm .item__content {
  background-color: #000;
  color: #fff;
}

#en-lefko .item__content {
  background-color: #713072;
  color: #fff;
}

#hit .item__content {
  background-color: #ee5757;
  color: #fff;
}

#melodia .item__content {
  background-color: #fff;
}

#kid-radio .item__content {
  background-color: #ffe505;
}

.station-btn,
.play-music-btn {
  /* border-radius: 4px; */
  background-color: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-size: 24px;
  width: 220px;
  height: 60px;
  line-height: 60px;
  display: inline-block;
  text-align: center;
}

.station-btn {
  margin-right: 1.5vw;
}

.play-music-btn {
  margin-left: 1.5vw;
}

.station-btn span,
.play-music-btn span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.station-btn:hover,
.play-music-btn:hover {
  color: initial;
  text-decoration: none;
}

.station-btn span:after,
.play-music-btn span:after {
  content: "\00bb";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.station-btn:hover span,
.play-music-btn:hover span {
  padding-right: 25px;
}

.station-btn:hover span:after,
.play-music-btn:hover span:after {
  opacity: 1;
  right: 0;
}

#redfm .station-btn,
#redfm .play-music-btn {
  background-color: #d61921;
  color: #fff;
}

#en-lefko .station-btn,
#en-lefko .play-music-btn {
  color: #713072;
  background-color: #fff;
}

#hit .station-btn,
#hit .play-music-btn {
  color: #ee5757;
  background-color: #fff;
}

#melodia .station-btn,
#melodia .play-music-btn {
  color: #fff;
  background-color: #333;
}

#kid-radio .station-btn,
#kid-radio .play-music-btn {
  color: #ffe505;
  background-color: #b426ec;
}

#preview-32, #preview-34, #preview-35, #preview-42 {
  width: 100%;
  overflow-y: scroll;
  padding-left: 10%;
  padding-right: 10%;
}

.preview__item-description {
  padding-bottom: 100px;
}

