@charset "UTF-8";

/* ================================
   Header
================================ */
header {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 75px;
  z-index: 99;
  border-bottom: 0.5px solid #3d3d3d;
  background-color: #111;
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .menu {
  display: flex;
}

header .has-sub > a,
.mobile-menu .has-sub > a {
  position: relative;
  font-family: "Mark Pro", sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.04em;
}

header .has-sub > a {
  padding: 1rem 3.3rem;
}

header .has-sub a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;
}

header .sub_menu {
  position: absolute;
  top: calc(100% + 6px);
  background-color: #222;
  white-space: nowrap;
  border-radius: 1px;
  padding: 2rem 0;
  display: none;
}

header .sub_menu a {
  padding: 1rem 3rem;
  transition: ease 0.4s;
}

header .sub_menu li {
  font-size: 15px;
  color: #7d7d7d;
  font-weight: 500;
  padding: 1rem 0;
}

header .sub_menu a:hover,
header .sub_menu a.active {
  color: #fff;
}

header .logo img {
  max-width: 65px;
}

/* 모바일 메뉴 */
header .hamburger {
  margin-left: auto;
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: calc(var(--vh, 1vh) * 100);
  background-color: #111;
  color: #fff;
  z-index: 999;
  transition: right 0.6s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
  border-bottom: 0.5px solid #3d3d3d;
  height: 70px;
}

.mobile-menu .ci img {
  max-width: 110px;
}

.mobile-menu .has-sub {
  border-bottom: 0.5px solid #3d3d3d;
  padding: 3rem 0;
}

.mobile-menu .has-sub > a {
  font-size: 16px;
  display: block;
  font-weight: 700;
  padding: 1.5rem 2rem;
}

.mobile-menu .sub_menu a {
  display: block;
  font-size: 14px;
  padding: 1.5rem 2rem;
  color: #7d7d7d;
  transition: ease 0.4s;
}

.mobile-menu .sub_menu a:hover,
.mobile-menu .sub_menu a.active {
  color: #fff;
}

/* Overlay for mobile menu */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998; /* below .mobile-menu (999), above header/content */
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ================================
   Popup
================================ */

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 1000;
}

.popup .content {
  width: 44rem;
  height: 50rem;
  border-radius: 2.5rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.popup .downbox {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  background-color: #fff;
  padding: 1.5rem 2.2rem;
  border-radius: 0 0 2rem 2rem;
}

.popup button {
  font-size: clamp(13px, 2vw, 1.5rem);
  color: #111;
  line-height: 1.3em;
  background: none;
  border: none;
  cursor: pointer;
}

.popup .btn-today {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  border: none;
  background-color: transparent;
  cursor: pointer;
  color: #111;
  font-size: clamp(13px, 2vw, 1.5rem);
  transition: color 0.3s ease;
}

.popup .btn-today .icon-wrapper {
  position: relative;
  width: 2rem;
  height: 2rem;
}

.popup .btn-today img {
  width: 2rem;
  height: 2rem;
  transition: opacity 0.4s ease;
}

.popup .btn-today .icon-default {
  opacity: 1;
  position: absolute;
  left: 0;
}

.popup .btn-today .icon-full {
  opacity: 0;
  position: absolute;
  left: 0;
}

.popup .btn-today:hover .icon-default {
  opacity: 0;
}

.popup .btn-today:hover .icon-full {
  opacity: 1;
}

/* ================================
   Main
================================ */
main {
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
}

main .mobile {
  display: none;
}

main .textbox {
  text-align: left;
}

main h4 {
  font-size: clamp(16px, 2vw, 2rem);
  margin-bottom: 1.6rem;
}

main h2 {
  font-size: clamp(34px, 6vw, 5.8rem);
  margin-bottom: 3.2rem;
  font-weight: 700;
}

main .p18 {
  color: #d9d9d9;
  margin-bottom: 6rem;
}

main .titlebox {
  position: relative;
  display: inline-block;
}

main .circle {
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  background-color: #c63224; /* 붉은 원색 */
  border-radius: 50%;
  bottom: 40%; /* 원의 수직 위치 */
  right: -4.5%; /* 원의 수평 위치 */
}

main a {
  color: #fff;
  font-size: clamp(12px, 2vw, 15px);
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  padding: 1.25rem 2.4rem;
  background-color: var(--main);
  border-radius: 50px;
  transform: translateY(0);
  animation: cta-bob 2s ease-in-out infinite;
  will-change: transform;
}

@keyframes cta-bob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

main .ticker {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: clamp(120px, 14vw, 190px);
  overflow: hidden; /* ★ 오른쪽을 자르기 */
  pointer-events: none; /* 클릭 막기(선택) */
}

main .ticker .font {
  font-family: "pretendard";
  font-weight: 800;
}

.ticker__track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}

.ticker span {
  display: inline-block;
  padding-inline-end: 4rem;
  font-family: "Mark Pro", sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 15vw, 150px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.03em;
}

@keyframes marquee {
  from {
    transform: translateX(6%);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 모션 최소화 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

/* ================================
   시계 애니메이션
================================ */

.sticky-wrapper {
  height: 800vh;
}

.clock-animation {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1000px;
}

/* 3D 효과를 위한 시계판 래퍼 */

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform: rotateX(55deg);
}

/* 애니메이션 요소 스타일 */

.timeline {
  position: absolute;
  top: 10vh;
  left: 50%;
  width: 1px;
  background-color: #fff;
  transform: translateX(-50%);
  height: 0; /* JS가 0 -> 40vh 조절 */
  transition: opacity 0.3s ease;
}

.center-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  z-index: 10;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.markers-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.marker-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) rotate(var(--rotation));
}

.marker {
  position: absolute;

  width: 1px;
  left: -0.5px;
  height: 10px;
  background-color: #fff;
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.2s ease;
}

.marker-long {
  height: 20px;
}

.number {
  position: absolute;
  top: 0%;
  left: 0;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: clamp(12px, 2vw, 1.4rem);
  color: #fff;
  transform: translate(-50%, -340px) rotate(var(--number-rotation));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.second-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 2px;
  background-color: #fff;
  transform: translateX(-50%);
  transform-origin: bottom center;
  height: 0;
  z-index: 5;
  transition: opacity 0.2s ease;
}

.rotate-360 {
  animation: spin 0.8s ease-out forwards;
}

@keyframes spin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.text-content {
  position: absolute;
  text-align: center;
  opacity: 0;
}

.text-content h2 {
  opacity: 0;
}

.text-content p {
  font-size: clamp(16px, 2vw, 2rem);
  opacity: 0;
  color: #d9d9d9;
}

.spacer {
  height: 100vh;
}

.sticky-wrapper .mobile {
  display: none;
}

/* ================================
   Differ
================================ */
.differ {
  padding: 0 0 20rem 0;
}

.differ .title.left {
  margin-bottom: 10rem;
}

.differ .downbox {
  display: flex;
  justify-content: space-between;
  position: relative;
  align-items: flex-start;
}

.differ .leftbox {
  position: sticky;
  top: 10%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.differ .rightbox {
  display: flex;
  flex-direction: column;
  gap: 20rem;
}

.differ .leftbox .pill {
  font-size: clamp(24px, 2vw, 4rem);
  color: #555;
  font-family: "Mark Pro", sans-serif;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-align: left;
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

.differ .leftbox .pill.active {
  color: #fff;
}

.differ .leftbox .pill:focus-visible {
  outline: 2px solid #888;
  outline-offset: 2px;
}

.differ img {
  width: 100%;
  height: auto;
  max-width: 22.4rem;
  margin-bottom: 4rem;
  animation: upDownLoop 2s infinite linear alternate;
}

@keyframes upDownLoop {
  0% {
    /* 시작 지점: 원래 위치 */
    transform: translateY(0);
  }
  50% {
    /* 중간 지점: 가장 위로 이동 (최고점) */
    transform: translateY(-20px); /* 20px 위로 이동 */
  }
  100% {
    /* 끝 지점: 다시 원래 위치로 복귀 */
    transform: translateY(0);
  }
}

.differ p {
  width: 59.6rem;
}

.differ h2 {
  margin-bottom: 0;
}

.differ h4 {
  margin-bottom: 1.5rem;
}

/* ================================
   Introduce
================================ */
.introduce {
  padding: 14rem 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url("../img/profile.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.introduce .wrap {
  display: flex;
  justify-content: space-between;
}

.introduce .rightbox {
  display: flex;
  align-items: center;
  gap: 7.6rem;
}

.introduce img {
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: 47rem;
  border-radius: 18px;
}

.introduce span {
  display: block;
  font-size: clamp(18px, 2vw, 2.8rem);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.introduce ul {
  margin-top: 4rem;
}

.introduce li {
  width: 42rem;
  color: #999;
  font-size: clamp(12px, 2vw, 1.5rem);
  margin-bottom: 0.25rem;
}

.introduce li::before {
  content: "• ";
  color: #999;
}

.introduce p {
  color: #d9d9d9;
}

/* ================================
   portfolio
================================ */

.portfolio .downbox {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 2.4rem;
  justify-content: center;
  align-items: center;
}

.portfolio .imgbox {
  position: relative;
}

.portfolio a:hover img {
  transform: scale(1.05);
}

.portfolio .imgbox .p14 {
  font-size: clamp(10px, 2vw, 1.4rem);
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  padding: 0.7rem 2.4rem;
  color: #fff;
  background-color: var(--main);
  border-radius: 99px;
  font-weight: 500;
}

.portfolio span {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  font-size: clamp(10px, 2vw, 1.4rem);
  padding: 0.8rem 2.4rem;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 99px;
}

.portfolio img {
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: 71rem;
  border-radius: 2rem;
  transition: transform 0.3s ease-in-out;
}

.portfolio h2 {
  margin-bottom: 0;
}

/* ================================
   statistics
================================ */
.statistics h2 {
  margin-bottom: 0;
}

/* ================================
   benefit
================================ */
.benefit {
  width: 100%; /* 전체 너비 사용 */
  padding: 0;
}

/* 각 카드 사이의 간격은 margin으로 줍니다. */
.benefit .card {
  margin: 0 20px; /* 좌우 20px씩 주면 총 40px 간격이 됩니다. */
  transition: transform 0.5s ease;
  background: linear-gradient(#b70422 0%, #7d091c 100%);
  padding: 5.4rem 3rem;
  border-radius: 1.6rem;
}

/* 이미지 크기 유지 */
.benefit img {
  width: 3rem;
  height: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.benefit h4 {
  width: 28rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.benefit p {
  color: #fff;
}

/* ================================
   service
================================ */
.service .downbox {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 2.4rem;
}

.service .card {
  background-color: #191919;
  padding: 1rem 3.5rem;
  border-radius: 16px;
  width: 34.8rem;
  height: 24rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service span {
  display: block;
  color: var(--main);
  font-size: clamp(16px, 2vw, 2rem);
  margin-bottom: 4rem;
  font-weight: 700;
}

.service h4 {
  margin-bottom: 1.6rem;
}

/* ================================
   Footer
================================ */
footer {
  padding: 6rem 0;
  border-top: 0.5px solid #3d3d3d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20rem;
  z-index: 999;
}

footer img {
  width: 100%;
  height: auto;
  max-width: 5.5rem;
  margin-bottom: 1rem;
}

footer span {
  font-size: clamp(12px, 2vw, 14px);
  color: #555555;
}
