* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  background: #fff;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html {
  scrollbar-gutter: stable;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
#bg-line {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#bg-line .circ {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #000;
  opacity: 0.06;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.content {
  position: absolute;
  inset: 0;
  z-index: 3;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #3e3f44;
}
#ci-logo {
  position: fixed;
  z-index: 60;
  display: block;
  left: clamp(48px, calc(1.7857vw + 29.71px), 64px);
  top: 48px;
  width: clamp(105px, calc(3.9063vw + 65px), 140.12px);
  height: clamp(18px, calc(0.6696vw + 11.14px), 24.04px);
}
#ci-logo img {
  display: block;
  width: 100%;
  height: 100%;
}
#full-menu {
  position: fixed;
  z-index: 60;
  right: clamp(48px, calc(1.7857vw + 29.71px), 64px);
  top: clamp(32px, calc(-0.4464vw + 40.57px), 36px);
  width: clamp(48px, calc(0.8929vw + 38.86px), 56px);
  height: clamp(48px, calc(0.8929vw + 38.86px), 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
}
#full-menu img {
  width: clamp(20.57px, calc(0.3828vw + 16.65px), 24px);
  height: clamp(12px, calc(0.2232vw + 9.71px), 14px);
}
#head-title.in .line-1,
#head-title.in .line-2 {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
#sub-title.in .subtitle-head,
#sub-title.in .subtitle-body {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
@media (min-width: 1900px) {
  .projects .proj-name {
    font-size: clamp(48px, calc(1.25vw + 24px), 56px);
  }
  .projects .proj-slide {
    top: clamp(458px, calc(12.5vw + 218px), 538px);
  }
  .projects .proj-more {
    bottom: clamp(80px, calc(6.25vw - 40px), 120px);
  }
  .footer .footer-logo {
    left: clamp(216px, calc(0.3125vw + 210px), 218px);
    width: clamp(576px, calc(49.375vw - 372px), 892px);
  }
  .footer .footer-bottom {
    left: clamp(216px, calc(0.3125vw + 210px), 218px);
    right: clamp(216px, calc(0.3125vw + 210px), 218px);
    bottom: clamp(64px, calc(2.5vw + 16px), 80px);
  }
  .projects .proj-info {
    left: clamp(216px, calc(0.3125vw + 210px), 218px);
  }
}
#scroll-hint {
  position: fixed;
  z-index: 60;
  right: clamp(48px, calc(1.7857vw + 29.71px), 64px);
  bottom: 64px;
  width: 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: opacity 0.4s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
#scroll-hint.is-hidden {
  opacity: 0;
}
#scroll-hint .bar {
  position: relative;
  width: 1px;
  height: 64px;
  background: rgba(62, 63, 68, 0.15);
  overflow: hidden;
}
#scroll-hint .bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #3e3f44;
  transform-origin: top;
  transform: translateY(0) scaleY(0);
  animation: scroll-draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
/* ⚠️ 키프레임에 transform-origin 을 섞지 말 것 — 컴포지터 가속이 꺼지고 메인 쓰레드로
   내려온다. 상세 문서에는 #scroll-hint 가 없어 지금은 죽은 규칙이지만, 본문 style.css /
   project-detail.css 의 같은 쌍과 갈리지 않게 함께 맞춰 둔다. */
@keyframes scroll-draw {
  0% {
    transform: translateY(0) scaleY(0);
  }
  45% {
    transform: translateY(0) scaleY(1);
  }
  55% {
    transform: translateY(0) scaleY(1);
  }
  100% {
    transform: translateY(100%) scaleY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #scroll-hint .bar {
    background: #3e3f44;
  }
  #scroll-hint .bar::after {
    display: none;
  }
}
#scroll-hint .label {
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: clamp(11px, calc(0.3348vw + 7.57px), 14px);
  font-weight: 700;
  line-height: 150%;
  color: #3e3f44;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}
#scroll-hint .label {
  transition: color 0.35s ease;
}
#full-menu img {
  transition: filter 0.35s ease;
}
#ci-logo {
  transition: filter 0.35s ease;
}
#scroll-hint .bar,
#scroll-hint .bar::after {
  transition: background-color 0.35s ease;
}
#ci-logo.on-dark {
  filter: brightness(0) invert(1);
}
#full-menu.on-dark img {
  filter: brightness(0) invert(1);
}
#scroll-hint.on-dark .label {
  color: #fff;
}
#scroll-hint.on-dark .bar {
  background: rgba(255, 255, 255, 0.28);
}
#scroll-hint.on-dark .bar::after {
  background: #fff;
}
.svc-card.in {
  opacity: 1;
  transform: none;
}
.projects {
  position: relative;
  z-index: 1;
  background: transparent;
  height: 120vh;
}
.contact-cta.in .cta-title {
  opacity: 1;
  filter: blur(0);
}
.contact-cta.in .cta-sub {
  opacity: 1;
  filter: blur(0);
  transition-delay: 0.18s;
}
.contact-cta.in .cta-arrow {
  opacity: 1;
  filter: blur(0);
  transition-delay: 0.36s;
}
.footer {
  position: relative;
  z-index: 1;
  height: 100vh;
  background: transparent;
  overflow: hidden;
  color: #3e3f44;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
.footer-logo {
  position: absolute;
  left: clamp(48px, calc(18.75vw - 144px), 216px);
  top: 38%;
  width: clamp(448px, calc(14.286vw + 301.71px), 576px);
  line-height: 0;
}
.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
}
.footer-planet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.footer-wordmark,
.footer-planet {
  opacity: 0;
  will-change: opacity, filter, transform;
}
.footer-wordmark {
  filter: blur(14px);
  transform: translateY(12px);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-planet {
  transform-origin: 90% 33%;
  transform: scale(0.35);
  transition:
    opacity 0.4s ease 0.24s,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.24s;
}
.footer.in .footer-wordmark {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.footer.in .footer-planet {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .footer-wordmark,
  .footer-planet {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
.footer-bottom {
  position: absolute;
  bottom: clamp(48px, calc(1.7857vw + 29.71px), 64px);
  left: clamp(48px, calc(18.75vw - 144px), 216px);
  right: clamp(48px, calc(18.75vw - 144px), 216px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: clamp(50px, calc(1.0045vw + 39.71px), 59px);
}
.footer-links {
  display: flex;
  gap: 80px;
}
.footer-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 4px 0;
  border-bottom: 1px solid #3e3f44;
  font-size: clamp(14px, calc(0.2232vw + 11.71px), 16px);
}
.footer-copy {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.5;
  font-size: clamp(12px, calc(0.4464vw + 7.43px), 16px);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 600;
  line-height: 1.5;
  font-size: clamp(12px, calc(0.4464vw + 7.43px), 16px);
  margin-right: min(0.9375vw, 24px);
}
.footer-contact p {
  margin: 0;
}
.footer-tf {
  display: flex;
}
.footer-tf span:first-child {
  flex: 0 0 159px;
}
#cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  #cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    z-index: 9999;
    -webkit-backdrop-filter: invert(1) saturate(2.2) contrast(1.5);
    backdrop-filter: invert(1) saturate(2.2) contrast(1.5);
    will-change: transform;
    transition:
      width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease;
  }
  #cursor .cursor-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:
      "Pretendard",
      -apple-system,
      sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  #cursor.is-view {
    width: 96px;
    height: 96px;
    background: #3e3f44;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  #cursor.is-view .cursor-label {
    opacity: 1;
    transition-delay: 0.08s;
  }
}
#page-root.pg-blank > :not(#menu-overlay):not(#cursor) {
  opacity: 0;
}
.ps-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow: visible;
  background: #fff;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.2, 1.1, 0.3, 1);
}
.ps-sheet.is-open {
  transform: none;
}
.ps-sheet::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12vh;
  background: #0c0c0c;
}
.ps-close {
  position: fixed;
  z-index: 2;
  top: 16px;
  right: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: #3e3f44;
}
.ps-close svg {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ps-close:hover svg {
  transform: rotate(90deg);
}
@media (min-width: 1024px) {
  .ps-close {
    top: 48px;
    right: 48px;
    width: 56px;
    height: 56px;
  }
  .ps-close svg {
    width: 28px;
    height: 28px;
  }
}
.ps-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ps-sheet.is-own-close .ps-close {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .ps-sheet {
    transition: none;
  }
  .ps-close svg {
    transition: none;
  }
  .ps-close:hover svg {
    transform: none;
  }
}
@media (max-width: 1023px) {
  #ci-logo {
    left: 20px;
    top: 31px;
    width: 104.9px;
    height: 18px;
  }
  #full-menu {
    right: 12px;
    top: 16px;
    width: 48px;
    height: 48px;
  }
  #full-menu img {
    width: 20.57px;
    height: 12px;
  }
  #scroll-hint {
    right: 20px;
    bottom: 24px;
  }
  #scroll-hint .bar {
    height: 64px;
  }
  #scroll-hint .label {
    font-size: 11px;
  }
  .m-svc-card.in {
    opacity: 1;
    transform: none;
  }
  .m-partners-heading.in,
  .m-partners-desc.in,
  .m-partner-row.in {
    opacity: 1;
    transform: none;
  }
  .m-cta.in .m-cta-title {
    opacity: 1;
    filter: blur(0);
  }
  .m-cta.in .m-cta-sub {
    opacity: 1;
    filter: blur(0);
    transition-delay: 0.18s;
  }
  .m-cta.in .m-cta-arrow {
    opacity: 1;
    filter: blur(0);
    transition-delay: 0.36s;
  }
  .m-footer.in .m-footer-ci-wordmark {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  .m-footer.in .m-footer-ci-planet {
    opacity: 1;
    transform: scale(1);
  }
  .mc-hero.in .mc-t1,
  .mc-hero.in .mc-t2,
  .mc-hero.in .mc-t3,
  .mc-hero.in .mc-sub-head,
  .mc-hero.in .mc-sub-body,
  .mc-hero.in .mc-brief {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
  .mc-hero.in .mc-dot {
    opacity: 1;
    transform: scale(1);
    transition:
      transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 1.34s,
      opacity 0.18s ease 1.32s;
  }
  .ct-rv .mc-field.in {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .ct-rv .mc-consent.in,
  .ct-rv .mc-submit.in {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .mp-hero.in .mp-t1,
  .mp-hero.in .mp-t2,
  .mp-hero.in .mp-sub-head,
  .mp-hero.in .mp-sub-body,
  .mp-hero.in .mp-filter {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
  .mp-hero.in .mp-dot {
    opacity: 1;
    transform: scale(1);
    transition:
      transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s,
      opacity 0.18s ease 1.18s;
  }
  .ct-rv .mp-card.in {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .ma-hero.in .ma-t1,
  .ma-hero.in .ma-t2,
  .ma-hero.in .ma-sub-head,
  .ma-hero.in .ma-sub-body {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
  .ma-hero.in .ma-dot {
    opacity: 1;
    transform: scale(1);
    transition:
      transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s,
      opacity 0.18s ease 1.18s;
  }
  .ct-rv .ma-mission-head.in > * {
    opacity: 1;
    transform: none;
  }
  .ct-rv .ma-value.in {
    opacity: 1;
    transform: none;
  }
  .ct-rv .ma-exp-title.in {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
  .ct-rv .ma-exp-copy.in {
    opacity: 1;
    transform: none;
  }
  .ct-rv .ma-cap.in {
    opacity: 1;
    transform: none;
  }
  .ct-rv .ma-gallery.in {
    opacity: 1;
    transform: none;
  }
  .ma-gallery.in .ma-gallery-track {
    animation-play-state: running;
  }
  .ct-rv .ma-beyond-head.in .ma-beyond-title,
  .ct-rv .ma-beyond-head.in .ma-beyond-copy {
    opacity: 1;
    transform: none;
  }
  .ct-rv .ma-stats.in .ma-stat {
    opacity: 1;
    transform: none;
  }
}
