/* Media Queries
--------------------------------------------------------- */
/* HOVER
---------------------------------------------------------------------------------------------------- */
/* MISC
---------------------------------------------------------------------------------------------------- */
.visually-hidden {
  overflow: hidden !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
}

/* RESET
---------------------------------------------------------------------------------------------------- */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  font-size: 100%;
  background: transparent;
  border: 0;
  outline: 0;
}

html {
  font-size: 62.5%;
}

body {
  line-height: 1;
}

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

ul,
ol {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

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

a,
input,
button,
select,
textarea {
  appearance: none;
  text-decoration: none;
  outline: none;
}

a {
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  font-size: 100%;
  color: inherit;
  background: transparent;
  outline: none;
}

button {
  padding: 0;
  cursor: pointer;
}

ins {
  text-decoration: none;
  color: #000;
  background-color: #ff9;
}

mark {
  font-style: italic;
  font-weight: 700;
  color: #000;
  background-color: #ff9;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

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

hr {
  display: block;
  height: 1px;
  padding: 0;
  border: none;
}

input,
select {
  vertical-align: middle;
}

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

:root {
  font-size: 14px;
}

body {
  margin: 0;
  --color-text: #fff;
  --color-bg: #202533;
  --color-link: #aaa;
  --color-link-hover: #fff;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.demo-1 {
  --color-text: #b91c1c;
  --color-bg: #000;
  --color-link: #b91c1c;
  --color-link-hover: #b91c1c;
  overflow-y: auto;
}

body.demo-1 .frame__tagline {
  color: rgba(185, 28, 28, 0.85);
}

body.demo-1 .frame__tagline a {
  color: #b91c1c;
}

body.demo-1 .content {
  position: relative;
  height: 100vh;
}

body.demo-1 #stage {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.demo-1-scroll-section {
  position: relative;
  min-height: 120vh;
  background: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 2rem;
}

body.demo-1 #stage-lesson {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: "";
  position: fixed;
  z-index: 1000;
}

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

.js .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: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}
a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  transition: color 0.2s;
}

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

.message {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 1rem;
  text-align: center;
}

.frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3rem 5vw;
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  display: grid;
  grid-template-rows: 1fr auto auto;
  grid-template-areas: "title" "demos" "links";
}
.frame > * {
  pointer-events: all;
}

.frame__title {
  margin: 0;
}

.frame__links {
  display: flex;
  flex-direction: column;
}
.frame__links a {
  display: inline-block;
  text-align: right;
}
@media screen and (max-width: 53em) {
  .frame__links {
    flex-direction: row;
    justify-content: center;
  }
}

.frame__links a:not(:last-child) {
  margin-bottom: 1rem;
}
@media screen and (max-width: 53em) {
  .frame__links a:not(:last-child) {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

.frame__demos {
  margin: 1rem 0;
}
@media screen and (max-width: 53em) {
  .frame__demos a:not(:last-child) {
    display: inline-block;
    margin-right: 1rem;
  }
}

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

.content {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: calc(100vh - 13rem);
  position: relative;
  justify-content: flex-start;
  align-items: center;
}

.frame__tagline {
  display: block;
  position: relative;
  margin: 0;
  line-height: 2;
  color: var(--color-link);
}
.frame__tagline a:hover {
  color: var(--color-link-hover);
}

@media screen and (min-width: 53em) {
  .message {
    display: none;
  }
  .frame {
    position: fixed;
    text-align: left;
    z-index: 100;
    top: 0;
    left: 0;
    display: grid;
    align-content: space-between;
    width: 100%;
    max-width: none;
    height: 100vh;
    padding: 3rem;
    pointer-events: none;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto auto;
    grid-template-areas: "title demos" "... ..." "... links";
  }
  .frame__title-wrap {
    grid-area: title;
    display: flex;
    flex-direction: column;
  }
  .frame__title {
    margin: 0;
  }
  .frame__demos {
    display: flex;
    align-items: center;
    margin: 0;
    grid-area: demos;
    justify-self: end;
  }
  .frame__demos a:not(:last-child) {
    margin-right: 1rem;
  }
  .frame__links {
    grid-area: links;
    padding: 0;
    justify-self: end;
  }
  .frame a {
    pointer-events: auto;
  }
  .content {
    height: 100vh;
    justify-content: center;
  }
}
/* MAIN
--------------------------------------------------------- */
html {
  font-size: 62.5%;
}

body {
  font-family: "termina", sans-serif;
  font-weight: 600;
}

#stage {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100vh;
}

/* TYPOGRAPHY
---------------------------------------------------------------------------------------------------- */
