@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");

:root {
  --ink: #302a26;
  --paper: #f7f4f0;
  --taupe: #8c7d70;
  --accent: #b7a896;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #e8e3dd;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
img {
  -webkit-user-select: none;
  user-select: none;
}

.hero,
.slides,
.slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100svh;
}

.hero {
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y;
}

.hero img {
  -webkit-user-drag: none;
}

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

.slide {
  z-index: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 1.15s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1.15s step-end;
}

.slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition:
    opacity 1.15s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s step-start;
}

.slide__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 8s ease-out;
}

.slide.is-active .slide__background {
  transform: scale(1);
}

.slide__content {
  position: absolute;
  z-index: 2;
  top: 52%;
  left: 3.35vw;
  width: min(39.5vw, 690px);
  transform: translateY(-50%);
  text-align: center;
}

.slide:nth-child(1) .headline,
.slide:nth-child(3) .headline {
  width: calc(100% + 3vw);
  padding-left: 7.4vw;
  text-align: left;
}

.brand-symbol {
  display: block;
  width: clamp(142px, 10.45vw, 182px);
  height: auto;
  margin: 0 auto clamp(28px, 3.4vh, 37px);
  filter: drop-shadow(0 2px 6px rgba(50, 42, 36, 0.08));
}

.headline {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 2.45vw, 2.72rem);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.headline span {
  display: block;
}

.signature {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: clamp(24px, 3.5vh, 34px);
  font-family: var(--serif);
}

.signature__rule {
  width: 36px;
  height: 1px;
  margin-bottom: clamp(22px, 2.9vh, 29px);
  background: currentColor;
  opacity: 0.8;
}

.signature strong {
  font-size: clamp(1.1rem, 1.36vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.signature small {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: clamp(0.65rem, 0.72vw, 0.77rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.39em;
  text-transform: uppercase;
}

.slide-count {
  position: absolute;
  z-index: 5;
  top: calc(var(--hero-header-height, 84px) + 32px);
  left: 4.05vw;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 0.65s ease;
}

.slide-count__slash {
  margin: 0 0.68em;
}

.slide-count__line {
  position: relative;
  display: block;
  width: clamp(128px, 11.4vw, 198px);
  height: 1px;
  margin-left: 1.2em;
  overflow: hidden;
  background: currentColor;
  opacity: 0.65;
}

.slide-count__line::after {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  transform: translateX(-100%);
}

.hero.is-playing .slide-count__line::after {
  animation: progress 6.5s linear forwards;
}

.carousel-nav {
  position: absolute;
  z-index: 5;
  bottom: 7.4vh;
  left: 4.05vw;
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: color 0.65s ease;
}

.carousel-nav__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: clamp(190px, 16vw, 278px);
}

.carousel-nav__track::before {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: calc(16.666% - 5px);
  left: calc(16.666% - 5px);
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.52;
}

.carousel-nav button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 9px;
}

.carousel-nav button i {
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 4px transparent;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.carousel-nav button span {
  font-family: var(--serif);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 0.48;
  transition: opacity 0.35s ease;
}

.carousel-nav button:hover i,
.carousel-nav button:focus-visible i,
.carousel-nav button.is-active i {
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
  transform: scale(1.06);
}

.carousel-nav button.is-active span {
  opacity: 1;
}

.carousel-nav button:focus-visible {
  border-radius: 4px;
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.slide__content > *:not(.brand-symbol) {
  opacity: 0;
  transform: translateY(16px);
}

.slide.is-active .slide__content > *:not(.brand-symbol) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.slide__content .brand-symbol {
  opacity: 1;
  transform: none;
  transition: none;
}

.slide.is-active .slide__content .headline {
  transition-delay: 0.36s;
}

.slide.is-active .slide__content .signature {
  transition-delay: 0.5s;
}

.hero[data-count-tone="light"] .slide-count,
.hero[data-nav-tone="light"] .carousel-nav,
.hero[data-nav-tone="light"] .desktop-controls {
  color: var(--paper);
}

.desktop-controls {
  position: absolute;
  z-index: 5;
  right: 4.05vw;
  bottom: 6.8vh;
  display: flex;
  gap: 11px;
  color: var(--ink);
  transition: color 0.65s ease;
}

.desktop-controls button {
  display: grid;
  width: clamp(44px, 3.35vw, 54px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 58%, transparent);
  border-radius: 50%;
  color: inherit;
  background: color-mix(in srgb, currentColor 7%, transparent);
  cursor: pointer;
  place-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.desktop-controls button:hover {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 16%, transparent);
  transform: translateY(-2px);
}

.desktop-controls button:active {
  transform: translateY(0) scale(0.96);
}

.desktop-controls button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.desktop-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.director-message {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: #302a26;
  background: #eee8e1;
}

.director-message__visual,
.director-message__portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.director-message__portrait {
  object-fit: cover;
  object-position: center;
}

.director-message__visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(246, 242, 237, 0.24) 0%,
    rgba(246, 242, 237, 0.13) 33%,
    rgba(246, 242, 237, 0) 55%
  );
}

.director-message__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 4.1vw;
  width: min(41vw, 800px);
  transform: translateY(-50%);
}

.director-message__logo {
  display: block;
  width: clamp(82px, 7.7vw, 126px);
  height: auto;
  margin: 0 0 clamp(27px, 3.4vh, 42px);
  filter: drop-shadow(0 2px 7px rgba(61, 48, 39, 0.1));
}

.director-message h2 {
  margin: 0;
  font-family: var(--serif);
  /* font-size: clamp(2.2rem, 3.1vw, 3.85rem); */
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.director-message h2 span {
  display: block;
}

.director-message__copy {
  margin-top: clamp(27px, 3.6vh, 42px);
  color: rgba(48, 42, 38, 0.72);
  font-size: clamp(0.91rem, 1.02vw, 1.08rem);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.director-message__copy p {
  margin: 0;
}

.director-message__copy p + p {
  margin-top: clamp(17px, 2.1vh, 24px);
}

.director-message__promise {
  margin: clamp(21px, 2.7vh, 31px) 0 0;
  font-size: clamp(0.96rem, 1.08vw, 1.16rem);
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.director-message__signoff {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-top: clamp(20px, 2.4vh, 29px);
  color: rgba(48, 42, 38, 0.72);
  font-size: clamp(0.76rem, 0.84vw, 0.9rem);
  letter-spacing: -0.02em;
}

.director-message__signoff img {
  display: block;
  width: clamp(115px, 9.4vw, 158px);
  height: auto;
  margin-top: 9px;
  object-fit: contain;
  object-position: left center;
}

.director-profile-link {
  position: absolute;
  z-index: 3;
  right: 4.1vw;
  bottom: 6.5vh;
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: clamp(220px, 17.5vw, 292px);
  padding: 15px 17px 15px 19px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 2px;
  color: #423831;
  background: rgba(248, 245, 240, 0.6);
  box-shadow: 0 12px 36px rgba(64, 50, 39, 0.12);
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.director-profile-link span,
.director-profile-link strong {
  grid-column: 1;
}

.director-profile-link span {
  margin-bottom: 5px;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  opacity: 0.55;
}

.director-profile-link strong {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.director-profile-link svg {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  width: 24px;
  margin-left: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  transition: transform 0.3s ease;
}

.director-profile-link:hover {
  background: rgba(255, 252, 248, 0.88);
  box-shadow: 0 16px 42px rgba(64, 50, 39, 0.17);
  transform: translateY(-3px);
}

.director-profile-link:hover svg {
  transform: translateX(4px);
}

.director-profile-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

@keyframes progress {
  to {
    transform: translateX(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .slides {
    cursor: grab;
  }

  .hero.is-dragging .slides {
    cursor: grabbing;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 960px) {
  .desktop-controls {
    display: none;
  }

  .slide__background {
    object-position: 62% center;
  }

  .slide::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(
      180deg,
      rgba(30, 25, 22, 0.02) 12%,
      rgba(30, 25, 22, 0.04) 44%,
      rgba(30, 25, 22, 0.64) 100%
    );
  }

  .slide__content {
    top: auto;
    right: 7vw;
    bottom: 9.5vh;
    left: 7vw;
    width: auto;
    color: var(--paper);
    transform: none;
  }

  .slide:nth-child(1) .headline,
  .slide:nth-child(3) .headline {
    width: auto;
    padding-left: 0;
    text-align: center;
  }

  .brand-symbol {
    width: clamp(105px, 24vw, 146px);
    margin-bottom: 20px;
  }

  .headline,
  .signature {
    color: var(--paper);
  }

  .headline {
    font-size: clamp(1.55rem, 5.7vw, 2.25rem);
    line-height: 1.5;
    text-shadow: 0 1px 12px rgba(23, 18, 15, 0.2);
  }

  .signature {
    margin-top: 19px;
  }

  .signature__rule {
    margin-bottom: 17px;
  }

  .signature small {
    margin-top: 13px;
  }

  .slide-count {
    top: calc(var(--hero-header-height, 84px) + 24px);
    left: 6vw;
    color: var(--paper);
    text-shadow: 0 1px 8px rgba(20, 16, 14, 0.3);
  }

  .slide-count__line {
    width: clamp(76px, 21vw, 130px);
  }

  .carousel-nav {
    right: 7vw;
    bottom: 3.2vh;
    left: 7vw;
    justify-content: center;
  }

  .carousel-nav__track {
    width: min(50vw, 210px);
  }

  .director-message {
    display: flex;
    min-height: auto;
    overflow: visible;
    flex-direction: column;
  }

  .director-message__visual {
    position: relative;
    order: 2;
    width: 100%;
    height: clamp(440px, 68svh, 650px);
    overflow: hidden;
  }

  .director-message__portrait {
    object-position: 68% center;
  }

  .director-message__visual::after {
    background: linear-gradient(
      180deg,
      rgba(33, 27, 23, 0) 62%,
      rgba(33, 27, 23, 0.18) 100%
    );
  }

  .director-message__content {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: 100%;
    padding: 45px 7vw 72px;
    transform: none;
    background: #f3eee8;
  }

  .director-message__logo {
    width: clamp(74px, 15vw, 105px);
    margin-bottom: 25px;
  }

  /* .director-message h2 {
    font-size: clamp(1.9rem, 5.6vw, 2.75rem);
    line-height: 1.46;
  } */

  .director-message__copy {
    max-width: 680px;
    margin-top: 27px;
    font-size: clamp(0.92rem, 2.15vw, 1.04rem);
    line-height: 1.85;
  }

  .director-message__promise {
    margin-top: 25px;
    font-size: clamp(0.96rem, 2.25vw, 1.08rem);
  }

  .director-profile-link {
    right: 6vw;
    bottom: 24px;
    min-width: 220px;
  }
}

@media (max-width: 540px) {
  .slide__background {
    object-position: 67% center;
  }

  .slide__content {
    right: 5vw;
    bottom: 13vh;
    left: 5vw;
  }

  .carousel-nav {
    right: 5vw;
    left: 5vw;
  }

  .headline {
    font-size: clamp(1.35rem, 6.1vw, 1.78rem);
  }

  .signature strong {
    font-size: 1rem;
  }

  .signature small {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
  }

  .director-message__visual {
    height: clamp(420px, 62svh, 560px);
  }

  .director-message__portrait {
    object-position: 69% center;
  }

  .director-message__content {
    padding: 39px 6vw 61px;
  }

  /* .director-message h2 {
    font-size: clamp(1.65rem, 7.2vw, 2.1rem);
  } */

  .director-message__copy {
    font-size: 0.91rem;
    line-height: 1.82;
  }

  .desktop-break {
    display: none;
  }

  .director-message__promise {
    font-size: 0.94rem;
  }

  .director-message__signoff img {
    width: 126px;
  }

  .director-profile-link {
    right: 5vw;
    bottom: 20px;
    min-width: 205px;
    padding: 13px 15px 13px 16px;
  }

  .director-profile-link svg {
    margin-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide__background,
  .slide__content > *:not(.brand-symbol) {
    transition-duration: 0.01ms !important;
  }

  .slide-count__line::after {
    animation: none !important;
  }
}
