@font-face {
  font-family: "BareunBatang";
  src: url("/fonts/BareunBatangOTFM.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.intro-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 64px);
  overflow: hidden;
  color: #b8afa5;
  background-color: #2e3f3d;
  background-image: url("/images/intro-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.intro-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-family: Arial, sans-serif;
  font-size: clamp(11px, 1vw, 16px);
  letter-spacing: .12em;
}

.intro-topline p,
.intro-title p {
  margin: 0;
}

.intro-title {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 40px);
  transform: translate(-50%, -50%);
  text-align: center;
}

.intro-title h1 {
  margin: 0 0 clamp(10px, 1.5vw, 22px);
  color: #b8afa5;
  font-family: "BareunBatang", serif;
  font-size: clamp(54px, 8vw, 140px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
}

.intro-title p {
  color: #b8afa5;
  font-family: Arial, sans-serif;
  font-size: clamp(10px, 1vw, 16px);
  letter-spacing: .18em;
}

.intro-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: center;
  color: #b8afa5;
  font-family: Arial, sans-serif;
  font-size: clamp(10px, .9vw, 14px);
  letter-spacing: .16em;
  text-decoration: none;
}

.intro-scroll-arrow {
  font-size: 20px;
  line-height: 1;
}

.hero-scroll {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: clamp(18px, 2.2vw, 34px);
  transform: translateX(-50%);
  color: #d8ddd8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .75s ease, visibility 0s linear .75s;
  white-space: nowrap;
}

.hero-section.scroll-ready .hero-scroll {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .75s ease;
}

@media (max-width: 600px) {
  .intro-section {
    padding: 24px 20px;
    background-position: center center;
  }

  .intro-topline {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .intro-title h1 {
    font-size: clamp(48px, 14vw, 76px);
  }

  .intro-title p {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .intro-scroll {
    font-size: 9px;
  }
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #171c1b;
}

.home-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3000 / 1622;
  overflow: hidden;
  isolation: isolate;
  background: #d5d6d0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  margin: 0;
  padding: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 1;
}

.layer-background {
  z-index: 0;
}

.layer-letter {
  z-index: 1;
}

.layer-silhouette {
  z-index: 2;
}

.layer-mask-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;

  -webkit-mask-image: url("/images/main/black.webp");
  mask-image: url("/images/main/black.webp");

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  mask-mode: alpha;
}

.layer-mask {
  z-index: 3;
}

.layer-photo {
  z-index: 4;
}

.layer-date {
  z-index: 5;
}

.hero-stage.animation-pending .moving-letter,
.hero-stage.animation-pending .layer-date,
.hero-stage.animation-pending .layer-photo {
  opacity: 0;
}

.hero-stage.animation-pending .moving-letter {
  transform: translate3d(-110vw, 0, 0);
}

.hero-stage.animation-pending .layer-date {
  transform: translate3d(110vw, 0, 0);
}

.hero-stage.animation-pending .layer-photo {
  transform: scale(1.035);
}

.hero-stage.js-enabled .moving-letter {
  will-change: transform;
  opacity: 1;
  transform: translate3d(-110vw, 0, 0);
  transition: transform 1.3225s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--group-delay, 100ms);
}

.hero-stage.js-enabled .group-one {
  --group-delay: 100ms;
}

.hero-stage.js-enabled .group-two {
  --group-delay: 500ms;
}

.hero-stage.js-enabled .group-three {
  --group-delay: 660ms;
}

.hero-stage.js-enabled .layer-date {
  will-change: transform;
  opacity: 1;
  transform: translate3d(110vw, 0, 0);
  transition: transform 1.3225s cubic-bezier(.22, .61, .36, 1);
  transition-delay: 100ms;
}

.hero-stage.js-enabled .layer-photo {
  will-change: transform, opacity;
  opacity: 0;
  transform: scale(1.035);
  transform-origin: center center;
  transition:
    opacity 1.25s cubic-bezier(.2, .65, .25, 1),
    transform 1.8s cubic-bezier(.2, .65, .25, 1);
}

.hero-stage.is-entered .moving-letter {
  transform: translate3d(0, 0, 0);
}

.hero-stage.is-entered .layer-date {
  transform: translate3d(0, 0, 0);
}

.hero-stage.photo-entered .layer-photo {
  opacity: 1;
  transform: scale(1);
}

.hero-asset-warning {
  position: absolute;
  z-index: 20;
  left: 2%;
  bottom: 2%;
  max-width: 90%;
  padding: 10px 14px;
  color: #fff;
  background: rgba(0, 0, 0, .78);
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
}

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

  .hero-stage.animation-pending .moving-letter,
  .hero-stage.animation-pending .layer-date,
  .hero-stage.animation-pending .layer-photo,
  .hero-stage.js-enabled .moving-letter,
  .hero-stage.js-enabled .layer-date,
  .hero-stage.js-enabled .layer-photo {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.schedule-section {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #171c1b;
}

.schedule-section .page-shell {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.schedule-section .artboard {
  position: relative;
  width: 100%;
  aspect-ratio: 3345 / 1898;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.schedule-section .background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

.schedule-section .object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
  pointer-events: none;
}

.schedule-section .object img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  transition: transform .25s ease, filter .25s ease;
  transform-origin: center;
}

.schedule-section .hit-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.schedule-section .hit-area use {
  fill: transparent;
  stroke: none;
  pointer-events: fill;
  cursor: pointer;
}

.schedule-section .object.is-hovered img {
  transform: scale(1.02);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .19));
}

.schedule-section .object-2 {
  z-index: 3;
}

.schedule-section .object:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

@media screen and (max-width: 768px) {
  .hero-stage {
    width: 100%;
    aspect-ratio: 3000 / 1622;
  }

  .schedule-section .artboard {
    width: 100%;
    aspect-ratio: 3345 / 1898;
  }
}

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

  .hero-layer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .schedule-section .object img {
    transition: none !important;
  }
}

.schedule-section .object {
  pointer-events: none;
}

.schedule-section .hit-area {
  pointer-events: none;
}

.schedule-section .hit-area use {
  pointer-events: fill;
  cursor: pointer;
}


/* Contact footer */
.contact-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(24px, 3vw, 42px) clamp(24px, 4vw, 64px) 18px;
  color: #b8afa5;
  background-color: #2e3f3d;
  background-image: url("/images/intro-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr);
  column-gap: clamp(28px, 5vw, 80px);
  row-gap: 22px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.contact-heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.contact-heading h2 {
  margin: 0;
  color: #b8afa5;
  font-family: "BareunBatang", serif;
  font-size: clamp(25px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .04em;
}

.contact-heading p,
.contact-label,
.contact-credit {
  margin: 0;
  color: #b8afa5;
  font-family: Arial, sans-serif;
  font-size: clamp(9px, .75vw, 11px);
  font-weight: 400;
  letter-spacing: .14em;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  gap: clamp(18px, 3vw, 48px);
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 5px 0;
  color: #b8afa5;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 175, 165, .45);
  transition: color .2s ease, border-color .2s ease;
}

.contact-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b8afa5;
  font-family: Arial, sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: .04em;
}

.contact-arrow {
  font-size: .9em;
  transition: transform .2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #e0d8ce;
  border-color: #e0d8ce;
}

.contact-link:hover .contact-name,
.contact-link:focus-visible .contact-name {
  color: #e0d8ce;
}

.contact-link:hover .contact-arrow {
  transform: translate(2px, -2px);
}

.contact-link:focus-visible {
  outline: 1px solid #e0d8ce;
  outline-offset: 5px;
}

.contact-credit {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 175, 165, .35);
  font-size: 9px;
  letter-spacing: .12em;
}

@media (max-width: 600px) {
  .contact-section {
    padding: 24px 20px 18px;
    background-position: center center;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .contact-heading {
    gap: 7px;
  }

  .contact-heading h2 {
    font-size: 27px;
  }

  .contact-heading p,
  .contact-label {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-link {
    min-height: 52px;
    gap: 7px;
    padding: 5px 0 9px;
  }

  .contact-name {
    font-size: 14px;
  }

  .contact-credit {
    padding-top: 10px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-link,
  .contact-arrow {
    transition: none;
  }
}
