/* HOME PAGE */

body.home-page {
  position: relative;
  overflow: hidden;
}

/* HERO */

.hero-home {
  --paper-top-height: clamp(42px, 6.8vw, 96px);
  --paper-bottom-height: clamp(42px, 6.8vw, 96px);
  --paper-side-width: clamp(30px, 4.8vw, 76px);

  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 680px;
  isolation: isolate;
  overflow: hidden;
  background: #07101a;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -4;

  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1.045);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;

  background:
    radial-gradient(circle at 72% 45%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(
      90deg,
      rgba(6, 11, 18, 0.04) 0%,
      rgba(6, 11, 18, 0.08) 40%,
      rgba(6, 11, 18, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(238, 246, 255, 0.12) 0%,
      rgba(0, 0, 0, 0.06) 46%,
      rgba(0, 0, 0, 0.28) 100%
    );
}

/* RIPPED PAPER FRAME */

.paper-frame {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.paper-frame__piece {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
}

.paper-frame__piece--top {
  top: 0;
  left: 0;
  width: 100%;
  height: var(--paper-top-height);
  object-fit: fill;
  object-position: center top;
}

.paper-frame__piece--bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--paper-bottom-height);
  object-fit: fill;
  object-position: center bottom;
}

.paper-frame__piece--left {
  top: 0;
  left: 0;
  width: var(--paper-side-width);
  height: 100%;
  object-fit: fill;
  object-position: left center;
}

.paper-frame__piece--right {
  top: 0;
  right: 0;
  width: var(--paper-side-width);
  height: 100%;
  object-fit: fill;
  object-position: right center;
}

/* HERO CONTENT */

.hero-content {
  position: absolute;
  top: 45%;
  right: clamp(72px, 9vw, 150px);
  z-index: 6;

  width: min(720px, 48vw);
  transform: translateY(-46%);
  text-align: center;
}

.hero-korean {
  margin: 0 0 4px;

  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(20px, 2.05vw, 36px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.02em;

  color: rgba(255, 255, 255, 0.82);

  opacity: 0;
  transform: translateY(28px);
  animation: textReveal 1s var(--ease-premium) forwards;
  animation-delay: 0.75s;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-small {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(52px, 5.4vw, 94px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.075em;

  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);

  opacity: 0;
  transform: translateY(42px);
  animation: titleReveal 1.35s var(--ease-premium) forwards;
  animation-delay: 0.9s;
}

.geoje-svg {
  width: min(520px, 36vw);
  height: auto;
  margin-top: -2px;
  margin-bottom: -5px;

  opacity: 0;
  transform: translateY(46px) scale(0.96);
  filter: blur(8px) drop-shadow(0 18px 38px rgba(0, 0, 0, 0.16));
  animation: geojeReveal 1.5s var(--ease-premium) forwards;
  animation-delay: 1.05s;
}

/* ACTIONS */

.hero-actions {
  margin-top: clamp(24px, 3vw, 38px);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.5vw, 20px);

  opacity: 0;
  transform: translateY(24px);
  animation: textReveal 1.1s var(--ease-premium) forwards;
  animation-delay: 1.55s;
}

.paper-button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: clamp(286px, 25vw, 420px);
  min-height: clamp(58px, 5vw, 78px);
  padding: 14px 42px;

  border: 0;
  background: transparent;
  color: #111827;

  font-family: "Space Mono", monospace;
  font-size: clamp(16px, 1.40vw, 24px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0px;
  text-decoration: none;
  text-align: center;

  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform 0.1s var(--ease-premium),
    filter 0.1s var(--ease-premium);
}

.paper-button::before {
  content: "";
  position: absolute;
  inset: -12px -28px;
  z-index: -1;

  background-image: var(--paper-button-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.12));
  transition:
    transform 0.1s var(--ease-premium),
    filter 0.1s var(--ease-premium);
}

.paper-button--primary {
  --paper-button-bg: url("../img/button-paper-1.png");
}

.paper-button--secondary {
  --paper-button-bg: url("../img/button-paper-2.png");
  min-width: clamp(380px, 31vw, 560px);
}

.paper-button:hover {
  transform: translateY(-4px) rotate(-0.8deg);
}

.paper-button:hover::before {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
  transform: scale(1.018);
}

.paper-button:active {
  transform: translateY(-1px) scale(0.985);
}

/* UNIVERSITY LOGOS */

.hero-logos {
  position: fixed;
  left: clamp(42px, 6vw, 96px);
  bottom: clamp(42px, 6vw, 86px);
  z-index: 34;

  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);

  opacity: 0;
  transform: translateY(22px);
  animation: textReveal 1.1s var(--ease-premium) forwards;
  animation-delay: 1.65s;
}

.hero-logos img {
  display: block;
  max-height: clamp(30px, 3.1vw, 48px);
  width: auto;
  object-fit: contain;

  opacity: 0.88;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero-content {
    right: clamp(46px, 6vw, 80px);
    width: min(640px, 56vw);
  }

  .geoje-svg {
    width: min(470px, 42vw);
  }
}

@media (max-width: 900px) {
  .hero-home {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 8, 16, 0.18), rgba(3, 8, 16, 0.34)),
      linear-gradient(90deg, rgba(3, 8, 16, 0.12), rgba(3, 8, 16, 0.18));
  }

  .hero-content {
    top: 53%;
    right: 50%;
    width: calc(100vw - 72px);
    transform: translate(50%, -44%);
  }

  .hero-title-small {
    font-size: clamp(42px, 13vw, 72px);
    letter-spacing: -0.07em;
  }

  .geoje-svg {
    width: min(390px, 78vw);
  }

  .paper-button,
  .paper-button--secondary {
    min-width: min(420px, 82vw);
    min-height: 62px;
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: -2.2px;
  }

  .hero-logos {
    left: 34px;
    bottom: 36px;
    gap: 16px;
  }

  .hero-logos img {
    max-height: 32px;
  }
}

@media (max-width: 560px) {
  .hero-home {
    --paper-top-height: 52px;
    --paper-bottom-height: 52px;
    --paper-side-width: 28px;
  }

  .hero-content {
    width: calc(100vw - 54px);
  }

  .hero-korean {
    font-size: clamp(16px, 5vw, 22px);
  }

  .paper-button,
  .paper-button--secondary {
    min-width: min(340px, 78vw);
    padding-inline: 28px;
  }

  .hero-logos {
    left: 30px;
    bottom: 30px;
  }

  .hero-logos img {
    max-height: 26px;
  }
}