/* [1. 기초 설정 및 헤더] */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: inherit;
}
:root {
  --bg-dark: #070707;
  --bg-light: #ffffff;
  --accent: #ffe347;
  --mouse-x: -500px;
  --mouse-y: -500px;
}
body {
  background-color: var(--bg-light);
  font-family: "Pretendard", sans-serif;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  mix-blend-mode: difference;
  color: #fff;
  z-index: 2000;
  transition: 0.3s;
}
nav ul {
  display: flex;
  gap: 35px;
}
nav li {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* [2. 비주얼 영역 - FIXED] */
#visual {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-dark);
  overflow: hidden;
  z-index: 1;
}

/* 슬라이더 핵심 스타일 */
.textWrap {
  position: absolute;
  top: 50%; /* 부모의 50% 위치 */
  left: 0;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 5;
  /* 초기 상태에서도 중앙 정렬(translateY)이 먹혀있어야 함 */
  transform: translateY(-50%) translateX(0%);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
  will-change: transform;
}

.textWrap li {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 8%;
  box-sizing: border-box;
  display: flex;
  align-items: center; /* 내부 텍스트 수직 중앙 */
}

.textWrap h2 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: normal;
  word-break: keep-all;
  width: 100%;
}

/* 레이어 설정 */
.innerBlack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: var(--bg-dark);
  color: #fff;
}
.innerWhite {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  background: var(--bg-light);
  color: #000;
  clip-path: circle(250px at var(--mouse-x) var(--mouse-y));
  pointer-events: none;
}
#visual .btnWrap {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 8%;
}
#visual .btnWrap li {
  padding: 50px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* [3. 마스킹 효과] */
.innerBlack {
  z-index: 10;
  background: var(--bg-dark);
  color: #fff;
}
.innerWhite {
  z-index: 20;
  background: var(--bg-light);
  color: #000;
  clip-path: circle(250px at var(--mouse-x) var(--mouse-y));
  pointer-events: none;
  will-change: clip-path;
}

/* [그라데이션 마스크가 적용된 선 스타일] */
.light-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.moving-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.15; /* 더 가늘게 해서 세련된 느낌 */
  /* 선 길이에 맞춰 dasharray를 조절 (선이 흐르는 효과의 핵심) */
  stroke-dasharray: 150;
  will-change: stroke-dashoffset;
}

/* HTML의 클래스명과 일치하도록 수정 */
.organic-1 {
  opacity: 0.3;
  animation: flowDown 15s linear infinite;
}

.organic-2 {
  opacity: 0.15;
  animation: flowDown 10s linear infinite;
  animation-delay: -2s; /* 시작 시점 차이를 둠 */
}

@keyframes flowDown {
  0% {
    /* dasharray 값만큼 offset을 주어 이동시킵니다 */
    stroke-dashoffset: 300;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* 마스크 색상 반전 처리 */
.innerWhite .moving-path {
  stroke: #000;
}
.innerBlack .moving-path {
  stroke: #fff;
}
/* [4. 본문 스택 - REVEAL EFFECT] */
.content-stack {
  position: relative;
  z-index: 100;
  margin-top: 100vh;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.1);
}
.section-vision {
  display: flex;
  align-items: center;
  padding: 15vh 10%;
  gap: 8vw;
}
.vision-text h3 {
  font-size: 5vw;
  font-weight: 900;
  line-height: 1;
}
.vision-media {
  flex: 1.5;
  height: 70vh;
  overflow: hidden;
  background: #eee;
}
.vision-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
  transition: 1s;
}
.vision-media:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}
.vision02 {
  flex-direction: row-reverse;
}
/* [5. 저널 섹션 - SMOOTH HORIZONTAL] */
.section-journal {
  padding: 100px 0;
  background: #fff;
}
.journal-title {
  padding: 0 8%;
  margin-bottom: 50px;
}
.journal-title h3 {
  font-size: 3.5rem;
  font-weight: 900;
}

.horizontal-scroll {
  display: flex;
  gap: 60px;
  overflow-x: auto;
  padding: 40px 8%;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.journal-card {
  min-width: 450px;
  scroll-snap-align: start;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.journal-card:hover {
  transform: translateY(-20px);
}
.card-img {
  width: 100%;
  height: 450px;
  overflow: hidden;
  margin-bottom: 25px;
  background: #f0f0f0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-info h4 {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 10px 0;
}
.card-info p {
  color: #666;
  line-height: 1.6;
}

/* [6. 기타 효과] */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.ticker-text {
  font-size: 8vw;
  font-weight: 900;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  color: #111;
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

footer {
  position: relative;
  width: 100%;
  height: 100vh; /* 전체 화면 높이 */
  background-color: #070707;
  color: #fff;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10% 10% 0 10%;
}

.footer-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-logo {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.footer-slogan {
  font-size: 1.5rem;
  line-height: 1.4;
  opacity: 0.7;
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-contact span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 15px;
  color: #666;
}

.footer-email {
  font-size: 2.5rem;
  font-weight: 700;
  transition: 0.3s;
}

.footer-email:hover {
  color: #ffe347; /* 강조색 */
}

.footer-nav ul {
  display: flex;
  gap: 30px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.5;
  transition: 0.3s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #444;
  padding-top: 20px;
}
