:root {
  --paper: #efe6d8;
  --ink: #141210;
  --ink-muted: #5a534a;
  --seal: rgb(182, 8, 22);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman",
    serif;
  --sans: Montserrat, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

.hero__dragon {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__dragon img {
  position: absolute;
  top: 48%;
  right: -7%;
  width: min(94vw, 88rem);
  height: auto;
  display: block;
  transform: translateY(-50%);
  mix-blend-mode: multiply;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(
      90deg,
      transparent 4%,
      rgba(0, 0, 0, 0.12) 22%,
      rgba(0, 0, 0, 0.55) 38%,
      #000 52%,
      #000 100%
    ),
    linear-gradient(
      180deg,
      transparent 2%,
      #000 16%,
      #000 86%,
      transparent 100%
    );
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(
      90deg,
      transparent 4%,
      rgba(0, 0, 0, 0.12) 22%,
      rgba(0, 0, 0, 0.55) 38%,
      #000 52%,
      #000 100%
    ),
    linear-gradient(
      180deg,
      transparent 2%,
      #000 16%,
      #000 86%,
      transparent 100%
    );
  mask-composite: intersect;
}

.hero__institution {
  position: absolute;
  top: 4.15rem;
  left: 4.4rem;
  z-index: 4;
  margin: 0;
  width: 15.5rem;
  line-height: 0;
}

.hero__institution img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.hero__identity {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 8.5rem 0 7rem 7.25vw;
  max-width: none;
  overflow: visible;
}

.hero__title {
  margin: 0;
  line-height: 0;
  font-size: 0;
  font-weight: 500;
  overflow: visible;
}

.hero__lockup {
  position: relative;
  display: block;
  width: min(70rem, 53vw);
  max-width: none;
  overflow: visible;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  overflow: visible;
  opacity: 0;
}

.hero__write {
  position: absolute;
  left: 4.51%;
  top: 11.68%;
  width: 93.5%;
  height: 58.41%;
  overflow: visible;
}

.hero__calligraphy {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  object-fit: fill;
  mix-blend-mode: multiply;
  opacity: 0;
}

.hero__write-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero__lockup.is-written .hero__logo {
  opacity: 1;
}

.hero__lockup.is-written .hero__write {
  visibility: hidden;
  pointer-events: none;
}

.js-ink-path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo {
    opacity: 1;
  }

  .hero__write-svg,
  .hero__brush-mover,
  .hero__calligraphy {
    display: none;
  }
}

.hero__brush-mover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: min(19.125rem, 33.48vw);
  pointer-events: none;
  will-change: transform;
}

.hero__brush-img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 8.48% 95.69%;
  filter: drop-shadow(0.22rem 0.3rem 0.4rem rgba(32, 24, 16, 0.22));
}

@media (prefers-reduced-motion: reduce) {
  .hero__brush-mover {
    display: none;
  }
}

.hero__tagline {
  margin: 1.45rem 0 0 0.15rem;
  max-width: 21.5rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-muted);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.85rem;
  z-index: 4;
  display: flex;
  justify-content: center;
  margin: 0;
  transform: translateX(-50%);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 2.45rem;
  background: var(--ink);
  opacity: 0.32;
}

.hero__skip {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 4.85rem;
  z-index: 8;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.92;
  transform: translateX(-50%);
}

.hero__skip:hover,
.hero__skip:focus-visible {
  opacity: 1;
  color: var(--ink);
  outline: none;
}

body.is-after-hero .hero__skip {
  display: none;
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero {
    overflow-x: hidden;
  }

  .hero__dragon img {
    top: 40%;
    right: -20%;
    width: min(128vw, 34rem);
    transform: translateY(-52%);
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 10%,
        rgba(0, 0, 0, 0.14) 26%,
        rgba(0, 0, 0, 0.52) 44%,
        #000 58%,
        #000 100%
      ),
      linear-gradient(
        180deg,
        transparent 4%,
        #000 18%,
        #000 78%,
        transparent 94%
      );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 10%,
        rgba(0, 0, 0, 0.14) 26%,
        rgba(0, 0, 0, 0.52) 44%,
        #000 58%,
        #000 100%
      ),
      linear-gradient(
        180deg,
        transparent 4%,
        #000 18%,
        #000 78%,
        transparent 94%
      );
  }

  .hero__institution {
    top: 1.35rem;
    left: 1.15rem;
    width: min(10.85rem, 56vw);
  }

  .hero__identity {
    justify-content: center;
    padding: 6.75rem 1.15rem 5.25rem 1.15rem;
  }

  .hero__lockup {
    width: min(18.4rem, 74vw);
  }

  .hero__brush-mover {
    width: min(9.6rem, 34vw);
  }

  .hero__tagline {
    margin: 1.05rem 0 0 0.06rem;
    max-width: 17.6rem;
    font-size: 1.04rem;
    line-height: 1.48;
  }

  .hero__scroll {
    bottom: 1.2rem;
  }

  .hero__skip {
    left: 50%;
    right: auto;
    bottom: 3.35rem;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    opacity: 1;
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .hero__institution {
    width: min(10.15rem, 62vw);
  }

  .hero__identity {
    padding: 6.4rem 0.95rem 5rem 0.95rem;
  }

  .hero__lockup {
    width: min(17.4rem, 78vw);
  }

  .hero__tagline {
    font-size: 1rem;
    max-width: 16.6rem;
  }
}

@media (max-width: 960px) and (max-height: 500px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero__institution {
    top: 0.85rem;
    left: 1.1rem;
    width: min(9.75rem, 42vw);
  }

  .hero__identity {
    justify-content: center;
    padding: 4.4rem 1.4rem 3.2rem;
  }

  .hero__lockup {
    width: min(28rem, 62vw);
  }

  .hero__brush-mover {
    width: min(8.5rem, 22vw);
  }

  .hero__tagline {
    margin-top: 0.7rem;
    font-size: 1rem;
    max-width: 22rem;
  }

  .hero__dragon img {
    top: 52%;
    right: -22%;
    width: min(88vw, 34rem);
    transform: translateY(-42%);
  }

  .hero__scroll {
    bottom: 0.7rem;
  }

  .hero__scroll-line {
    height: 1.6rem;
  }

  .hero__skip {
    bottom: 2.55rem;
  }
}
