@font-face {
  font-family: "Pretendard Event";
  src: url("../fonts/Pretendard-Regular.subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Pretendard Event";
  src: url("../fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Pretendard Event";
  src: url("../fonts/Pretendard-Bold.subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Stack Sans Headline";
  src: url("../fonts/StackSansHeadline-Variable.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 200 700;
}

:root {
  color-scheme: dark;
  --page-width: 1920px;
  --header-height: 108px;
  --font-sans: "Pretendard Event", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  --font-display: "Stack Sans Headline", "Pretendard Event", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #03060c;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background: #03060c;
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #05070c;
  background: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: transparent;
  transition: background-color 200ms ease;
}

.site-header[data-kv-passed] {
  background-color: rgba(0, 0, 0, 0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--page-width));
  height: 100%;
  margin: 0 auto;
  padding: 0 80px;
}

.brand {
  display: block;
  width: 154px;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 65%));
}

.brand__image {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(56px, 6vw, 116px);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgb(0 0 0 / 65%);
}

.primary-nav a,
.hero-cta {
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  opacity: .72;
}

.nav-toggle {
  display: none;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 70%));
}

.hero {
  position: relative;
  width: min(100%, var(--page-width));
  aspect-ratio: 1920 / 1064;
  margin: 0 auto;
  overflow: hidden;
  background: #090b10;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgb(0 0 0 / 52%) 0%, rgb(0 0 0 / 16%) 54%, rgb(0 0 0 / 12%) 100%),
    linear-gradient(0deg, rgb(0 0 0 / 26%) 0%, transparent 42%);
}

.hero__content {
  position: absolute;
  z-index: 2;
  top: 34.5%;
  left: max(7.8%, calc((100% - 1440px) / 2));
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(68px, 6.25vw, 120px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.025em;
}

.hero__tagline {
  margin: 24px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(31px, 2.6vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.025em;
}

.hero__meta,
.hero-cta {
  font-family: var(--font-sans);
}

.hero__meta {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 35px);
  line-height: 1.2;
}

.hero__meta span {
  margin-left: 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 230px;
  margin-top: 58px;
  padding: 22px 29px;
  border-radius: 999px;
  color: #27272b;
  background: #fff;
  box-shadow: 0 10px 34px rgb(0 0 0 / 22%);
  font-size: 22px;
  font-weight: 700;
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.hero-cta:focus-visible,
.artwork-link:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 5px;
}

.body-artwork {
  position: relative;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  background: #03060c;
}

.body-artwork picture,
.body-artwork img {
  display: block;
  width: 100%;
  height: auto;
}

.artwork-anchor {
  position: absolute;
  top: var(--desktop-top);
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: var(--header-height);
}

.artwork-link {
  position: absolute;
  z-index: 3;
  display: block;
}

.artwork-link--tech {
  top: 5.39%;
  left: 40.5%;
  width: 5.9%;
  height: .52%;
  border-radius: 999px;
}

.artwork-fallback {
  display: none;
  min-height: 40vh;
  margin: 0;
  padding: 80px 24px;
  text-align: center;
}

.body-artwork[data-image-error] picture,
.body-artwork[data-image-error] .artwork-anchor,
.body-artwork[data-image-error] .artwork-link {
  display: none;
}

.body-artwork[data-image-error] .artwork-fallback {
  display: block;
}

@media (max-width: 767px) {
  :root {
    --header-height: 84px;
  }

  .site-header__inner {
    padding: 0 22px;
  }

  .brand {
    width: 118px;
  }

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    gap: 6px;
    width: 44px;
    padding: 8px;
    border: 0;
    color: #fff;
    background: transparent;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .primary-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 30px;
    visibility: hidden;
    background: rgb(3 6 12 / 96%);
    font-size: 22px;
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body[data-nav-open] {
    overflow: hidden;
  }

  body[data-nav-open] .primary-nav {
    visibility: visible;
    opacity: 1;
  }

  body[data-nav-open] .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body[data-nav-open] .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body[data-nav-open] .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    aspect-ratio: 720 / 1584;
  }

  .hero__image {
    object-position: 54% center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgb(3 6 12 / 26%) 0%, rgb(3 6 12 / 2%) 32%, rgb(3 6 12 / 12%) 70%, rgb(3 6 12 / 30%) 100%);
  }

  .hero__content {
    top: 23.5%;
    right: 22px;
    left: 22px;
  }

  .hero h1 {
    font-size: clamp(58px, 16.7vw, 84px);
  }

  .hero__tagline {
    margin: 12px 0 4px;
    font-size: clamp(24px, 7vw, 36px);
  }

  .hero__meta {
    font-size: clamp(14px, 3.8vw, 19px);
    white-space: nowrap;
  }

  .hero__meta span {
    margin-left: 4px;
  }

  .hero-cta {
    min-width: 132px;
    margin-top: 36px;
    padding: 14px 17px;
    font-size: 15px;
  }

  .artwork-anchor {
    top: var(--mobile-top);
    scroll-margin-top: var(--header-height);
  }

  .artwork-link--tech {
    top: 4.08%;
    left: 48.8%;
    width: 23.5%;
    height: .52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
