@import url("./base.css");

html.page-home,
html.page-home body {
  height: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: visible;
  background: var(--color-surface);
}

.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-crossfade 30s infinite;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

.hero__slide--1 { animation-delay: 0s; }
.hero__slide--2 { animation-delay: 5s; }
.hero__slide--3 { animation-delay: 10s; }
.hero__slide--4 { animation-delay: 15s; }
.hero__slide--5 { animation-delay: 20s; }
.hero__slide--6 { animation-delay: 25s; }

.hero__slide--1 img { animation: hero-pan-1 30s linear infinite; animation-delay: 0s; }
.hero__slide--2 img { animation: hero-pan-2 30s linear infinite; animation-delay: 5s; }
.hero__slide--3 img { animation: hero-pan-3 30s linear infinite; animation-delay: 10s; }
.hero__slide--4 img { animation: hero-pan-4 30s linear infinite; animation-delay: 15s; }
.hero__slide--5 img { animation: hero-pan-5 30s linear infinite; animation-delay: 20s; }
.hero__slide--6 img { animation: hero-pan-6 30s linear infinite; animation-delay: 25s; }

@keyframes hero-crossfade {
  0% { opacity: 0; }
  1.5% { opacity: 1; }
  15% { opacity: 1; }
  16.67% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-pan-1 {
  0% { transform: scale(1.05) translateX(-4%); }
  16.67% { transform: scale(1.05) translateX(4%); }
  100% { transform: scale(1.05) translateX(4%); }
}

@keyframes hero-pan-2 {
  0% { transform: scale(1.07) translateY(4%); }
  16.67% { transform: scale(1.07) translateY(-4%); }
  100% { transform: scale(1.07) translateY(-4%); }
}

@keyframes hero-pan-3 {
  0% { transform: scale(1.05) translateX(4%); }
  16.67% { transform: scale(1.05) translateX(-4%); }
  100% { transform: scale(1.05) translateX(-4%); }
}

@keyframes hero-pan-4 {
  0% { transform: scale(1.07) translateY(-4%); }
  16.67% { transform: scale(1.07) translateY(4%); }
  100% { transform: scale(1.07) translateY(4%); }
}

@keyframes hero-pan-5 {
  0% { transform: scale(1.05) translate(-3%, 3%); }
  16.67% { transform: scale(1.05) translate(3%, -3%); }
  100% { transform: scale(1.05) translate(3%, -3%); }
}

@keyframes hero-pan-6 {
  0% { transform: scale(1.02); }
  16.67% { transform: scale(1.08); }
  100% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none;
    opacity: 0;
  }

  .hero__slide--1 {
    opacity: 1;
  }

  .hero__slide img {
    animation: none;
    transform: none;
  }
}

.hero__panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  min-width: 720px;
  height: 100%;
  background: var(--color-surface);
  clip-path: polygon(0 0, 87% 0, 70% 100%, 0 100%);
  z-index: 2;
  padding: 40px 52px;
  display: flex;
  flex-direction: column;
}

.hero__accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  min-width: 720px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  clip-path: polygon(86.5% 0, 87.3% 0, 70.3% 100%, 69.5% 100%);
  background: var(--color-primary);
  opacity: 0.35;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 52px;
  box-sizing: border-box;
  z-index: 20;
  background: color-mix(in srgb, var(--color-surface) 68%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-off-white) 28%, transparent);
}

.page-home .nav-dropdown__menu {
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links > a,
.nav__links .nav-dropdown__trigger {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.nav__links > a:hover,
.nav__links .nav-dropdown__trigger:hover,
.nav__links .nav-dropdown__trigger.is-active {
  color: var(--color-primary);
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 24px;
  max-width: 560px;
  min-height: 0;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.eyebrow__line {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--color-primary);
}

.eyebrow span:last-child {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.name-block {
  position: relative;
}

.name-block__hj {
  font-size: clamp(72px, 10.7vw, 154px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -0.045em;
  position: relative;
  z-index: 2;
  user-select: none;
}

.name-block__chae {
  font-size: clamp(72px, 10.7vw, 154px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.045em;
  margin-top: -0.42em;
  margin-left: 0.195em;
  position: relative;
  z-index: 1;
  user-select: none;
}

.painter-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 32px;
}

.painter-label__line {
  width: 38px;
  height: 1px;
  background: var(--color-primary-muted);
}

.painter-label span:last-child {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--color-primary-dim);
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.tag {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-tag);
  border: 1px solid var(--color-primary-subtle);
  padding: 7px 13px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cta-text);
  background: var(--color-primary);
  text-decoration: none;
  padding: 15px 32px;
  align-self: flex-start;
  transition: background 200ms ease;
  flex-shrink: 0;
}

.cta:hover {
  background: var(--color-primary-hover);
}

.cta svg path {
  stroke: var(--color-cta-text);
}

@media (max-width: 900px) {
  html.page-home,
  html.page-home body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding-top: clamp(28vh, 34vh, 38vh);
  }

  .hero__carousel {
    position: fixed;
    inset: 0;
    z-index: 0;
  }

  .hero__panel {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin-top: auto;
    clip-path: none;
    padding: 28px 32px 36px;
    background: color-mix(in srgb, var(--color-surface) 68%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid color-mix(in srgb, var(--color-off-white) 28%, transparent);
    flex-shrink: 0;
  }

  .hero__content {
    flex: none;
    min-height: auto;
    overflow: visible;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .hero__accent {
    display: none;
  }

  .nav {
    position: fixed;
    z-index: 20;
    padding: 24px 32px;
  }

  .nav__links {
    gap: 18px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .name-block__hj,
  .name-block__chae {
    font-size: clamp(48px, 14vw, 80px);
  }

  .painter-label {
    margin-top: 14px;
    margin-bottom: 20px;
  }

  .tags {
    margin-bottom: 24px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: clamp(24vh, 30vh, 34vh);
  }

  .hero__panel {
    padding: 24px 24px 32px;
  }

  .nav {
    padding: 20px 24px;
  }

  .nav__wordmark {
    font-size: 12px;
  }

  .nav__links {
    gap: 12px;
  }

  .nav__links > a,
  .nav__links .nav-dropdown__trigger {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .name-block__hj,
  .name-block__chae {
    font-size: clamp(44px, 13vw, 64px);
  }

  .painter-label {
    margin-top: 10px;
    margin-bottom: 16px;
  }

  .tags {
    margin-bottom: 20px;
  }

  .cta {
    padding: 13px 28px;
  }
}
