:root {
  --lime: #bbf34e;
}

body {
  background: #080e0b;
}

.header {
  background: linear-gradient(#080e0be8, transparent);
  color: #e3e3da;
}

.header.on-light {
  background: linear-gradient(#e8e9dff5, transparent);
}

.header nav {
  gap: 24px;
}

.header nav .login {
  position: relative;
  padding-left: 26px;
}

.header nav .login::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: currentColor;
  opacity: .5;
}

html[lang="ko"] .header nav .nav-link,
html[lang="ko"] .header nav .login {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: 17px !important;
}

.hero {
  --reveal-at: 2.55s;
  --hero-scale: 1.15;
  --wordmark-width: min(calc(580px * var(--hero-scale)), 64vw);
  --wordmark-overhang-top: calc(var(--wordmark-width) * 0.0221);
  --wordmark-overhang-bottom: calc(var(--wordmark-width) * 0.0348);
  --hero-gap-above-wordmark: calc(20.5px * var(--hero-scale));
  --hero-gap-below-wordmark: calc(38px * var(--hero-scale));
  --intro-font-scale: 1.8;
  --full-name-scale: 1.75;
  background: #080e0b;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/static/images/whois-grunge-connected.png') center/100% 100% no-repeat;
  opacity: .96;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(#0b38242e, #0b38242e),
    linear-gradient(90deg, transparent 10%, #08090833 26%, #08090833 74%, transparent 90%);
  pointer-events: none;
}

.collage-copy {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

html[lang="ko"] .collage-copy :is(pre, div) {
  position: absolute;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: clamp(10px, 1vw, 16px) !important;
  line-height: 1.45;
  letter-spacing: 0 !important;
  margin: 0;
  color: #99bb64;
  text-shadow: 0 1px 2px #000;
  white-space: pre;
  transform-origin: center;
}

html[lang="ko"] .collage-copy :is(.collage-terminal, .collage-values) {
  font-family: Menlo, Monaco, "Cascadia Code", Consolas, "Liberation Mono", monospace !important;
  font-variant-ligatures: none;
  line-height: 1.5;
}

html[lang="ko"] .collage-copy .collage-terminal {
  left: 2.1%;
  top: 10.5%;
  transform: rotate(-9deg);
  padding: 8px;
  background: #090f0be8;
}

html[lang="ko"] .collage-copy .collage-values {
  left: 81%;
  right: auto;
  top: 67.5%;
  transform: rotate(-8deg);
  padding: 7px;
  background: #090f0be8;
}

.hero-content,
.scroll-link {
  z-index: 1;
}

.hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 105px;
  padding-bottom: 120px;
}

.hero .hero-content .intro {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5b8b0;
  font-family: "East Sea Dokdo", cursive !important;
  font-size: calc(20px * var(--hero-scale) * var(--intro-font-scale)) !important;
  margin: 0 0 calc(var(--hero-gap-above-wordmark) + var(--wordmark-overhang-top));
}

.hero .hero-content h1 {
  width: var(--wordmark-width);
  margin: 0 auto calc(var(--hero-gap-below-wordmark) + var(--wordmark-overhang-bottom));
}

.hero .hero-content .full-name {
  font-family: "Island Moments", cursive;
  font-size: calc(clamp(18px, 1.8vw, 27px) * var(--hero-scale) * var(--full-name-scale));
  color: #dedfd5;
  margin: 0 0 17px;
}

@media (max-width: 1000px) {
  .collage-copy {
    opacity: .75;
  }

  html[lang="ko"] .collage-copy .collage-terminal {
    font-size: 9px !important;
  }
}

@media (max-width: 700px) {
  .header nav {
    gap: 10px;
  }

  html[lang="ko"] .header nav .nav-link,
  html[lang="ko"] .header nav .login {
    font-size: 12px !important;
  }

  .header nav .login {
    padding-left: 17px;
  }

  .hero::before {
    background-size: auto 100%;
  }

  .collage-copy {
    display: none;
  }

  .hero .hero-content {
    padding-bottom: 110px;
  }

  .hero {
    --hero-scale: 1.05;
    --wordmark-width: min(calc(460px * var(--hero-scale)), 88vw);
    --hero-gap-above-wordmark: calc(19px * var(--hero-scale));
    --hero-gap-below-wordmark: calc(35px * var(--hero-scale));
  }

  .hero .hero-content .intro {
    display: block;
    padding: 0 12px;
  }

  .hero .hero-content .full-name {
    font-size: calc(18px * var(--hero-scale) * var(--full-name-scale));
    padding: 0 14px;
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  .header {
    padding-inline: 12px;
  }

  .brand {
    transform: none;
  }

  .brand-logo {
    width: 40px;
  }

  .header nav {
    gap: 8px;
  }

  .header nav .login {
    padding-left: 10px;
  }
}

.brush-wordmark {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1890 / 832;
  -webkit-mask: url('/static/images/whois-brush-reference.png') center / contain no-repeat;
  mask: url('/static/images/whois-brush-reference.png') center / contain no-repeat;
}

.brush-letters,
.brush-piece,
.brush-underline,
.brush-underline > span {
  position: absolute;
  inset: 0;
}

.brush-letters {
  clip-path: polygon(0 0, 100% 0, 100.000% 60.938%, 87.302% 64.062%, 74.074% 69.111%, 60.847% 73.317%, 47.619% 79.207%, 35.450% 84.014%, 33.598% 88.101%, 30.159% 89.904%, 23.810% 94.231%, 13.228% 100.000%, 0.000% 100.000%);
}

.brush-piece {
  background-color: var(--lime);
  animation: brush-letter-in .24s var(--letter-delay) ease-out both;
}

.brush-w {
  --letter-delay: .3s;
  clip-path: polygon(0 0, 49% 0, 26% 100%, 0 100%);
}

.brush-h {
  --letter-delay: .6s;
  clip-path: polygon(49% 0, 65.5% 0, 41% 100%, 26% 100%);
}

.brush-o {
  --letter-delay: .9s;
  clip-path: polygon(65.5% 0, 75.5% 0, 55.3% 100%, 41% 100%);
}

.brush-i {
  --letter-delay: 1.2s;
  clip-path: polygon(75.5% 0, 84% 0, 62% 100%, 55.3% 100%);
}

.brush-s {
  --letter-delay: 1.5s;
  clip-path: polygon(84% 0, 100% 0, 100% 100%, 62% 100%);
}

.brush-underline {
  clip-path: polygon(0.000% 100.000%, 13.228% 100.000%, 23.810% 94.231%, 30.159% 89.904%, 33.598% 88.101%, 35.450% 84.014%, 47.619% 79.207%, 60.847% 73.317%, 74.074% 69.111%, 87.302% 64.062%, 100.000% 60.938%, 100% 100%, 0 100%);
}

.brush-underline > span {
  background-color: var(--lime);
  animation: brush-underline-draw .65s 1.85s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes brush-letter-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes brush-underline-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brush-piece,
  .brush-underline > span {
    animation: none;
    opacity: 1;
  }

  .brush-underline > span {
    clip-path: none;
  }
}
