.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.fade.in {
  opacity: 1;
  transform: none;
}

/* Hero Section */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero.section {
  padding: 0 !important;
}

.hero .fp-controlArrow.fp-prev,
.hero .fp-controlArrow.fp-next {
  display: none;
}
.hero-slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  text-align: center;
  max-width: 1240px;
  margin: 0 auto;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 100;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.slide-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* 슬라이드 배경 */
.slide-1 {
  background: url(../img/main_1.jpg) center;
  background-size: cover;
}

.slide-2 {
  background: url(../img/main_2.jpg) center;
  background-size: cover;
}

.slide-3 {
  background: url(../img/main_3.jpg) center;
  background-size: cover;
}

/* 커스텀 네비게이션 */

.custom-navigation {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  bottom: 8rem;
  pointer-events: all;
  width: fit-content;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slide-counter {
  font-size: 16px;
  font-weight: 600;
  display: none;
  color: white;
  min-width: 25px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-circle {
  position: relative;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.progress-ring {
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100.53; /* 2π × 16 */
  stroke-dashoffset: 100.53;
  transition: stroke-dashoffset 0.1s ease;
}

.progress-ring.animating {
  transition: stroke-dashoffset 4s linear;
}

.play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  backdrop-filter: blur(10px);
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-pause-btn svg {
  width: 16px;
  height: 16px;
}

.total-slides {
  font-size: 16px;
  display: none;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 카드형 컨텐츠 세로 정렬 */
.features .cards,
.about .roles .cards,
.course .grid,
.contact .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo-animation {
  font-size: 32px;
  font-weight: 500;
  color: var(--brand-navy);
  letter-spacing: 2px;
  opacity: 0;
  animation: logoFade 0.8s ease forwards;
}

@keyframes logoFade {
  to {
    opacity: 1;
    transform: translateY(-10px);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  box-sizing: border-box;
  color: #fff;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(247, 247, 245, 0.85);
  color: #333;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-size: 24px;
  font-weight: 500;
  color: var(--brand-navy);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: var(--black);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--point-color);
}

/* Section dots navigation */
.section-dots {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mid-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot.active {
  background: var(--brand-navy);
  transform: scale(1.2);
}

.dot:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-navy);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* Sections */
.section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.box_container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 6vw;
}

.title {
  text-align: center;
  margin-bottom: 4rem;
}

.title em {
  font-size: 16px;
}

.title h2 {
  font-size: 45px;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.title p {
  font-weight: normal;
  font-size: 19px;
  opacity: 0.6;
  letter-spacing: -0.7px;
}

/* Value Section */
.value {
  background: var(--off-white);
}

.process-container {
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  width: 100%;
  grid-gap: 31px;
}

.process-card {
  flex: 1;
  min-height: 200px;
  border: 1px solid #7a7a7a;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 50px 45px;
  position: relative;
  background: white;
  transition: all 0.3s ease;
}

.process-card:hover {
  border-color: #bbbbbb;
}

.card-title-en {
  font-size: 43px;
  font-weight: 100;
  color: #111111;
  margin: 0 0 6px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card-title-ko {
  font-size: 25px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.card-description {
  font-size: 17px;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.01em;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  z-index: 10;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  color: #333;
  transition: all 0.3s ease;
}

.process-card:hover + .arrow .arrow-icon {
  transform: translateX(3px);
}
.value-images {
  position: relative;
  height: 70vh;
  border-radius: 8px;
  overflow: hidden;
}

.value-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.value-image.active {
  opacity: 1;
}

/* Project Sections */
.project {
  background-size: cover;
  background-position: center;
  position: relative;
}

.project .slide {
  position: relative;
  width: 100%;
  height: 100%;
}
.project .slide:nth-child(1) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-4.0.3&auto=format&fit=crop&w=2558&q=80");
  background-size: cover;
  background-position: center;
}

.project .slide:nth-child(2) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/port_1.jpg");
  background-size: cover;
  background-position: center;
}

.project .slide:nth-child(3) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&auto=format&fit=crop&w=2670&q=80");
  background-size: cover;
  background-position: center;
}

.fp-controlArrow {
  background: none !important;
  border: none !important;
  width: 110px !important;
  height: 110px !important;
}

.fp-controlArrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* 왼쪽 화살표 */
.fp-controlArrow.fp-prev::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-111 0 475 475.46667"><path d="m237.964844 475.464844-237.730469-237.730469 237.730469-237.734375 15.070312 15.066406-222.667968 222.667969 222.667968 222.664063zm0 0" fill="%23333"/></svg>');
}

/* 오른쪽 화살표 */
.fp-controlArrow.fp-next::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 490 490"><polygon points="96.536,490 403.019,244.996 96.536,0 86.981,11.962 378.496,244.996 86.981,478.038" fill="%23333"/></svg>');
}

.project-info {
  position: absolute;
  bottom: 80px;
  left: 6vw;
  color: white;
}

.project-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 12px;
}

.project-meta {
  font-size: 16px;
  font-weight: 300;
  opacity: 0.9;
}

.project-button {
  position: absolute;
  bottom: 80px;
  right: 6vw;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.project-button:hover {
  background: white;
  color: var(--brand-navy);
}
/* about */
.about {
}
.about {
}

/* 데스크톱 매거진 그리드 */
.magazine-grid {
  display: grid;
  grid-template-columns: 350px 1fr 0.5fr 660px;
  grid-template-rows: auto 1fr auto;
  gap: 60px;
  height: calc(100vh - 80px);
  min-height: 700px;
}

/* 왼쪽 의자 이미지 - 전체 높이 차지 */
.chair-image {
  grid-column: 1;
  grid-row: 1 / -1;
  background: url(../img/about_1.jpg);
  overflow: hidden;
  position: relative;
  background-size: cover;
}

/* 가운데 텍스트 - 위쪽 배치 */
.text-content {
  grid-column: 2 / 4;
  grid-row: 1;
  padding-top: 60px;
}

.section-number {
  font-size: 16px;
  color: #999;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 25px;
}

.main-title {
  font-size: 64px;
  font-weight: 300;
  color: #2c2c2c;
  margin-bottom: 50px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.description {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
  font-weight: 300;
}

.emphasis {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  font-weight: 400;
}

/* 해시태그 - 하단 왼쪽 */
.hashtag-section {
  grid-column: 3;
  grid-row: 3;
  align-self: end;
}

/* 오른쪽 침실 이미지 - 하단 오른쪽 */
.bedroom-image {
  grid-column: 4;
  grid-row: 2 / 4;
  background: url(../img/about_2.jpg);
  background-size: cover;
  overflow: hidden;
  position: relative;
  height: 350px;
  align-self: end;
}

.hashtag-label {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hashtag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hashtag {
  font-size: 18px;
  color: #333;
  font-weight: 400;
  letter-spacing: -0.3px;
  transition: opacity 0.2s ease;
}

.hashtag:hover {
  opacity: 0.6;
  cursor: pointer;
}

/* Contact Section */
.contact {
  background: url(../img/contact.jpg) center;
  background-size: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  width: 100%;
  height: 100%;
  align-items: center;
}

.map-container {
  height: 400px;
  background: var(--mid-gray);
  border-radius: 8px;
  color: white;
  font-size: 18px;
}
.fp-slidesNav.fp-bottom {
  display: none;
}
.m_block {
  display: none;
}

.contact-card {
  padding: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-grid .sns {
  padding-top: 5rem;
}

.contact-card h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--brand-navy);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-detail {
  font-size: 16px;
  color: var(--black);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-btn {
  padding: 16px 24px;
  border: 1px solid var(--brand-navy);
  background: transparent;
  color: var(--brand-navy);
  text-decoration: none;
  text-align: center;
  border-radius: 9999px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--brand-navy);
  color: white;
}

.contact-btn.primary {
  background: var(--brand-navy);
  color: white;
}

.contact-btn.primary:hover {
  background: transparent;
  color: var(--brand-navy);
}
/* Responsive - 기존 코드 수정 */
@media (max-width: 1279px) {
  .section-content {
    padding: 0 4vw;
  }

  .navbar {
    padding: 0 4vw;
  }

  /* 태블릿 추가 스타일 */
  .box_container {
    padding: 0 40px;
  }

  .title h2 {
    font-size: 35px;
  }

  .title p {
    font-size: 16px;
  }

  .process-container {
    grid-gap: 20px;
  }

  .process-container .arrow {
    display: none;
  }

  .process-card {
    padding: 40px 35px;
  }

  .card-title-en {
    font-size: 35px;
  }

  .magazine-grid {
    grid-template-columns: 300px 1fr 0.5fr 500px;
    gap: 40px;
  }

  .main-title {
    font-size: 50px;
  }
}

@media (max-width: 768px) {
  /* fullpage 비활성화 */
  #fullpage {
    transform: none !important;
  }

  .section {
    height: auto !important;
    min-height: auto;
    position: relative !important;
    overflow: visible !important;
  }

  /* 히어로 섹션만 100vh 유지 */
  .hero.section {
    height: 100vh !important;
  }

  /* fullpage 관련 스타일 제거 */
  .fp-enabled body {
    overflow: auto !important;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .section-dots {
    display: none;
  }

  .value-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .value-images {
    height: 50vh;
  }

  .box_container {
    padding: 0 5vw;
  }

  .project-info {
    left: 5vw;
  }

  .cta-button,
  .project-button {
    right: 5vw;
  }

  /* 모바일 추가 스타일 */
  .navbar {
    padding: 0 20px;
    height: 60px;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .box_container {
    padding: 40px 20px;
  }

  .title h2 {
    font-size: 28px;
  }

  .process-container {
    flex-direction: column;
    gap: 20px;
  }

  .magazine-grid {
    height: auto !important;
    min-height: unset !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(4, auto) !important;
    gap: 40px !important;
    padding: 5vw;
  }

  .chair-image {
    grid-column: 1;
    grid-row: 1;
    height: 350px;
  }

  .chair-visual {
    font-size: 48px;
    height: 50%;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .text-content {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0;
  }

  .main-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

.d_block {
  display: none;
}
.m_block {
  display: block;
}

.map-container {
  height: 300px;
}

.contact-grid .sns {
  padding-top: 3rem;
}

  .description,
  .emphasis {
    font-size: 15px;
  }

  .bedroom-image {
    grid-column: 1;
    grid-row: 3;
    height: 220px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .bed-visual {
    font-size: 36px;
  }

  .hashtag-section {
    grid-column: 1;
    grid-row: 4;
  }

  .hashtag {
    font-size: 16px;
  }

  .main-title {
    font-size: 32px;
  }
}

/* 작은 모바일 */
@media (max-width: 480px) {
  .navbar {
    padding: 0 15px;
    height: 50px;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .title h2 {
    font-size: 24px;
  }

  .main-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .section.project {
    height: 500px;
    min-height: 500px !important;
    margin: 10px 0;
  }

  .chair-image {
    height: 480px;
    background-position: center;
  }

  .chair-visual {
    font-size: 36px;
  }

  .bedroom-image {
    height: 180px;
  }

  .bed-visual {
    font-size: 28px;
  }

  .description,
  .emphasis {
    font-size: 14px;
  }

  .hashtag {
    font-size: 15px;
  }

  .project-title {
    font-size: 24px;
  }
}
