* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #333;
  background: #fff;
  font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 1140px;
  max-width: 92%;
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .06);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link img {
  width: 313px;
  max-width: min(313px, 58vw);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 0;
  color: #333;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #03a9f4;
}

.hero {
  --hero-fade-duration: 1100ms;
  --word-flip-duration: 750ms;
  position: relative;
  min-height: clamp(460px, 62vh, 690px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #111;
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  z-index: 0;
  transform: translateZ(0);
  transition: opacity var(--hero-fade-duration) ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  z-index: 2;
  pointer-events: none;
  background: rgba(0, 0, 0, .38);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 0;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.03em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.hero-copy {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.hero-keyword {
  display: inline-grid;
  grid-template-areas: "word";
  min-width: 5.6em;
  min-height: 1.18em;
  perspective: 900px;
  transform-style: preserve-3d;
  vertical-align: bottom;
}

.flip-word {
  grid-area: word;
  display: inline-block;
  white-space: nowrap;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  opacity: 0;
  transform: rotateY(90deg);
  transition:
    transform var(--word-flip-duration) cubic-bezier(.45, 0, .2, 1),
    opacity var(--word-flip-duration) cubic-bezier(.45, 0, .2, 1);
  will-change: transform, opacity;
}

.flip-word.is-current {
  opacity: 1;
  transform: rotateY(0deg);
}

.flip-word.is-entering {
  opacity: 0;
  transform: rotateY(90deg);
}

.flip-word.is-exiting {
  opacity: 0;
  transform: rotateY(-90deg);
}

.flip-word.is-measuring {
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.blog-divider {
  width: 100%;
  height: 1px;
  min-height: 1px;
  background: #d9d9d9;
  line-height: 0;
}

.site-footer {
  background: #222;
  color: #cfcfcf;
  text-align: center;
}

.footer-inner {
  padding: 34px 0;
  font-size: 14px;
}

.back-to-top {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin: 0 0 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 720px) {
  .header-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 68px 0;
  }
}

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

  .hero-slide,
  .flip-word {
    transition: none !important;
  }
}
