/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  
  body {
    margin: 0;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
  
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input { /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
  }
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }

  /* MAIN */

  .noto-sans {
    font-family: "Noto Sans HK", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }

  body {
    font-family: big-caslon-fb, serif;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  .wrapper {
    display: block;
    position: relative;

    width: calc(100% - 120px);
    margin: 0 auto;

    padding-top: 60px;
    padding-bottom: 60px;
  }

  .header {
    display: block;
    position: relative;
  }

  .header img {
    width: 70vw;
    max-width: 550px;
  }

  .header p {
    position: absolute;
    font-size: 50px;

    top: 60px;
    left: 80px;
  }

  .content {
    display: block;
    position: relative;

    margin-top: 20px;
    margin-bottom: 120px;
  }

  .content h1 {
    font-size: clamp(36px, 14.5vw, 7em);
    margin: 0;

    pointer-events: none;
    line-height: 1em;
  }

  .split {
    display: grid;
    grid-template-columns: max-content auto;
    column-gap: 36px;
  }

  .word-block {
    width: max-content;
  }

  .word-block:hover {
    cursor: pointer;
  }

  .word-block {
    display: block;
    position: relative;

    height: clamp(38px, 15.7vw, 7.6em);
    width: 100%;
    max-width: 700px;
    overflow: hidden;
  }

  .word-block h1 {
    display: block;
    position: absolute;
    top: 0.8em;
    opacity: 0;
    transition: top 0.8s ease, opacity 0.8s ease, color 0.8s ease;
  } 

  .word-block span {
    color: black !important;
  }

  #block-1 {
    color: #FFAB60;
  }

  #block-2 {
    color: #FF7272;
  }

  #block-3 {
    color: #D0AEDD;
  }

  #block-4 {
    color: #995AD3;
  }

    .word-block .is-visible {
        top: 0;
        opacity: 1;
        -webkit-animation: slide-in .8s;
        -moz-animation: slide-in .8s;
        animation: slide-in .8s
    }

    .word-block .is-hidden {
        -webkit-animation: slide-out .8s;
        -moz-animation: slide-out .8s;
        animation: slide-out .8s
    }

    @-webkit-keyframes slide-in {
        0% {
            opacity: 0;
            -webkit-transform: translatey(-100%)
        }

        60% {
            opacity: 1;
            -webkit-transform: translatey(20%)
        }

        100% {
            opacity: 1;
            -webkit-transform: translatey(0)
        }
    }

    @-moz-keyframes slide-in {
        0% {
            opacity: 0;
            -moz-transform: translatey(-100%)
        }

        60% {
            opacity: 1;
            -moz-transform: translatey(20%)
        }

        100% {
            opacity: 1;
            -moz-transform: translatey(0)
        }
    }

    @keyframes slide-in {
        0% {
            opacity: 0;
            -webkit-transform: translatey(-100%);
            -moz-transform: translatey(-100%);
            -ms-transform: translatey(-100%);
            -o-transform: translatey(-100%);
            transform: translatey(-100%)
        }

        /* 60% {
            opacity: 0;
            -webkit-transform: translatey(20%);
            -moz-transform: translatey(20%);
            -ms-transform: translatey(20%);
            -o-transform: translatey(20%);
            transform: translatey(20%)
        } */

        100% {
            opacity: 1;
            -webkit-transform: translatey(0);
            -moz-transform: translatey(0);
            -ms-transform: translatey(0);
            -o-transform: translatey(0);
            transform: translatey(0)
        }
    }

    @-webkit-keyframes slide-out {
        0% {
            opacity: 1;
            -webkit-transform: translatey(0)
        }

        /* 60% {
            opacity: 0;
            -webkit-transform: translatey(80%)
        } */

        100% {
            opacity: 0;
            -webkit-transform: translatey(100%)
        }
    }

    @-moz-keyframes slide-out {
        0% {
            opacity: 1;
            -moz-transform: translatey(0)
        }

        /* 60% {
            opacity: 0;
            -moz-transform: translatey(80%)
        } */

        100% {
            opacity: 0;
            -moz-transform: translatey(100%)
        }
    }

    @keyframes slide-out {
        0% {
            opacity: 1;
            -webkit-transform: translatey(0);
            -moz-transform: translatey(0);
            -ms-transform: translatey(0);
            -o-transform: translatey(0);
            transform: translatey(0)
        }

        /* 60% {
            opacity: 0;
            -webkit-transform: translatey(120%);
            -moz-transform: translatey(120%);
            -ms-transform: translatey(120%);
            -o-transform: translatey(120%);
            transform: translatey(120%)
        } */

        100% {
            opacity: 0;
            -webkit-transform: translatey(100%);
            -moz-transform: translatey(100%);
            -ms-transform: translatey(100%);
            -o-transform: translatey(100%);
            transform: translatey(100%)
        }
    }

    .footer {
        display: grid;
        position: relative;

        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
    }

    .footer-text {
        display: block;
        position: relative;

        margin-bottom: 18px;
    }

    .footer-text p,
    .footer-text a {
        display: block;
        margin: 0;
    }

    .footer-text p > a {
        display: inline;
    }

    .footer-text a {
        color: black;
        text-decoration: underline;
    }

    .footer-text a:hover {
        cursor: pointer;
    }

    @media screen and (max-width: 1430px) {
        .split {
            column-gap: 2vw;
        }

        .footer {
            grid-template-columns: 1fr;
            row-gap: 0px;
        }

        .footer-text-small {
          margin-bottom: 6px !important;
        }
    }

    @media screen and (max-width: 1080px) {
        .wrapper {
            display: block;
            position: relative;
        
            width: calc(100% - 60px);
            margin: 0 auto;
        
            padding-top: 30px;
            padding-bottom: 30px;
        }

        .content {
            display: block;
            position: relative;
        
            margin-top: 20px;
            margin-bottom: 90px;
        }

        .demo-grid {
            row-gap: 60px;
            margin-bottom: 60px;
            padding-top: 30px;
        }

        .split {
          grid-template-columns: 1fr;
        }

        /* .content h1 {
            font-size: 5em;
        }

        .word-block {
            height: 7em;
        } */
    }

    @media screen and (max-width: 820px) {
        .wrapper {
            display: block;
            position: relative;
        
            width: calc(100% - 30px);
            margin: 0 auto;
        
            padding-top: 30px;
            padding-bottom: 30px;
        }

        .footer-text {
          margin-bottom: 18px;
        }
    }

    .mobile-break {
      display: none;
    }

    @media screen and (max-width: 460px) {
      .mobile-break {
        display: inline;
      }
    }
    


    /* DEMO / HOLDING */


    .wrapper-holding {
        display: block;
        position: relative;

        width: 100vw;
        height: 100vh;
    }

    .content-holding {
        display: block;
        position: absolute;

        width: fit-content;
        height: fit-content;

        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        text-align: center;
    }

    .content-holding img {
        display: block;
        position: relative;

        width: 70vw;
        margin-bottom: 30px;
    }

    .content-holding a {
        display: block;
        color: black;
        text-decoration: none;

        font-size: clamp(18px, 3.5vw, 42px);
    }

    .content-holding a:hover {
        text-decoration: underline;
    }

    .demo-body {
        height: 100vh;
    }

    .demo-wrapper {
        height: 100%;
        min-height: 960px;
        padding: 0;
    }

    .demo-wrapper .header img {
        max-width: 500px;
        padding-top: 16px;
    }

    .demo-grid {
        display: grid;
        position: relative;
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;

        padding-top: 60px;
    }

    .demo-grid .content {
        margin-top: 0;
    }

    .demo-grid .content h1 {
        font-size: 80px;
        margin: 0;

        pointer-events: none;
    }

    .demo-grid .word-block {
        display: block;
        position: relative;
    
        height: 100px;
        width: 100%;
        overflow: hidden;
    }

    .demo-footer {
        position: absolute;
        width: 100%;
        bottom: 60px;
    }

    @media screen and (max-width: 1640px) {
        .demo-grid {
            grid-template-columns: 1fr;
            row-gap: 90px;
        }

        .demo-grid .content h1 {
            font-size: clamp(18px, 10vw, 80px);
        }

        .demo-grid .word-block {
            height: clamp(40px, 13vw, 120px);
        }

        .demo-footer {
            position: relative;
        }
    }

    @media screen and (max-width: 1080px) {
        .demo-grid {
            row-gap: 60px;
            margin-bottom: 60px;
            padding-top: 30px;
        }
    }

    @media screen and (max-width: 820px) {
        .demo-grid {
            row-gap: 30px;
        }
    }
    