/* ==========================================
   CSS RESET & GLOBAL VARIABLES
   ========================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-bg-light: #FFFFFF;
  --color-bg-dark: #0A0A0A;
  --color-bg-footer: #111111;
  --color-text-dark: #1A1A1A;
  --color-text-light: #F5F5F0;
  --color-text-muted: #888888;
  --color-text-muted-light: #AAAAAA;
  --color-accent: #3A3AF4;
  --color-gray-placeholder: #C8C8C8;
  --color-gray-card: #D5D5D5;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-dark: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-script: 'Licorice', cursive;
  --font-body: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 120px;

  /* Layout */
  --max-width: 1600px;
  --header-height: 54px;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.5;
  cursor: none;
  overflow-x: hidden;
}

a, button, input, select, textarea {
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================
   PRELOADER
   ========================================== */

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-light);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

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

.preloader__counter {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 3rem);
  font-weight: 400;
  color: var(--color-text-dark);
  text-align: center;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

/* ==========================================
   HEADER
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-base), backdrop-filter var(--transition-base);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.header--dark {
  background-color: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.header--dark .header__logo,
.header--dark .header__link {
  color: var(--color-text-light);
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.32rem; /* 원본 1.1rem에서 총 20% 확대 */
  letter-spacing: 0.03em; /* 기존 0.06em에서 50% 축소 */
  color: var(--color-text-dark);
  font-weight: 400;
}

.header__logo[href="index.html"] {
  display: inline-flex;
  align-items: center;
}

.header__logo[href="index.html"]::before {
  content: '';
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.3em;
  background-color: currentColor;
  -webkit-mask-image: url('../images/Arrow.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../images/Arrow.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transform: scaleX(-1) translateY(-2px);
  transition: transform 0.3s ease;
}

.header__logo[href="index.html"]:hover::before {
  transform: scaleX(-1) translateY(-2px) translateX(4px);
}

.header__nav {
  display: flex;
  gap: 26.4px; /* 기존 var(--space-md)(24px)에서 10% 넓힘 */
  align-items: center;
}

.header__link {
  font-family: var(--font-display);
  font-size: 1.32rem; /* 원본 1.1rem에서 총 20% 확대 */
  font-weight: 400;
  letter-spacing: 0.03em; /* 기존 0.06em에서 50% 축소 */
  text-transform: uppercase;
  color: var(--color-text-dark);
  position: relative;
  padding: 4px 0;
}



.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-dark);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header--dark .header__menu-btn span {
  background-color: var(--color-text-light);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--header-height) + 60px) var(--space-lg) calc(clamp(8rem, 15vw, 15rem) - calc(var(--header-height) * 1.5) - 40px);
  background-color: var(--color-bg-light);
  position: relative;
}

.hero__content {
  text-align: left;
  max-width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
  white-space: nowrap;
}

.hero__line {
  display: block;
  font-size: clamp(6.1rem, 13.5vw, 13.5rem);
  letter-spacing: -0.02em; /* ABOUT MY SPACE와 동일한 자간 */
}

.hero__line--script-row {
  display: flex;
  align-items: center;
  gap: 0.08em;
  line-height: 1;
  margin-top: -0.02em;
  margin-bottom: -0.29em;
}

.hero__paren {
  font-family: var(--font-body);
  font-size: clamp(6.1rem, 13.5vw, 13.5rem);
  font-weight: 300;
  line-height: 0.9;
}

.hero__disclaimer {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  align-self: flex-end;
  margin-bottom: 0.5rem;
  margin-left: -1.2vw; /* 간격을 더 축소하기 위해 음수 마진 확대 */
}

.hero__flag {
  height: clamp(6.24rem, 12.48vw, 12.48rem); /* 20% 커짐 (기존 5.2/10.4) */
  width: auto;
  object-fit: contain;
  margin-right: -0.6em; /* 글자와 반 정도 겹치게 */
  vertical-align: middle;
  transform: rotate(-20deg); /* 왼쪽으로 20도 회전 */
}


.hero__cursive {
  font-family: var(--font-script);
  font-style: normal;
  font-size: clamp(6.75rem, 13.5vw, 13.5rem);
  color: var(--color-text-dark);
  padding: 0 0.05em;
  position: relative;
  z-index: 2; /* 이미지를 덮도록 보장 */
  display: inline-block;
  transform: translateY(0.12em); /* 폰트 살짝 아래로 내림 */
}

.hero__line--arrow-row {
  display: flex;
  align-items: flex-end;
  gap: 0.8em;
}

.hero__arrow--text {
  font-size: clamp(15rem, 24vw, 24rem);
  font-weight: 900;
  line-height: 0.75;
  transform: translateY(calc(30% - calc(var(--header-height) * 1.5)));
  -webkit-text-stroke: 5px currentColor;
  display: block;
}

.hero__arrow--svg {
  width: clamp(7rem, 12vw, 12rem);
  height: auto;
  transform: translateY(calc(30% - calc(var(--header-height) * 1.5)));
  display: none;
}

@media (orientation: portrait) {
  .hero__arrow--text {
    display: none;
  }
  .hero__arrow--svg {
    display: block;
  }
  .hero__line--script-row {
    margin-bottom: 0.12em;
  }
  .hero__line--arrow-row {
    margin-top: 0;
  }
}

/* Hero Bottom */
.hero__bottom {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
}

.hero__copyright {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.copyright-symbol {
  font-size: 1.25em; /* © 기호만 크게 확대 */
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: 2px; /* 미세 조정 */
}

/* ==========================================
   DARK SECTION (ABOUT / SERVICES)
   ========================================== */

.dark-section {
  background-color: var(--color-bg-dark);
  overflow: hidden;
  color: var(--color-text-light);
  padding: var(--space-2xl) var(--space-lg) calc(var(--space-2xl) * 0.8) var(--space-lg); /* THE CORE OF MY WORK 위치 아래로 조정 */
}

.dark-section.is-bouncing {
  animation: rhythmicBounce 3.0s infinite;
  cursor: pointer;
}

@keyframes rhythmicBounce {
  0% { 
    transform: translateY(0);
    animation-timing-function: ease-out;
  }
  10% { 
    transform: translateY(-20px);
    animation-timing-function: ease-in;
  }
  20% { 
    transform: translateY(0);
    animation-timing-function: ease-out;
  }
  33.3% { 
    transform: translateY(-10px);
    animation-timing-function: ease-in;
  }
  46.6%, 100% { 
    transform: translateY(0); 
  }
}

.dark-section__inner {
}

.dark-section__quote {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-top: 0;
  padding-bottom: var(--space-xl);
}

.dark-section__greeting {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--color-accent);
  margin-bottom: 0;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: greetingFadeIn 1s ease-out 0.5s forwards;
}

@keyframes greetingFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dark-section__quote-text {
  font-family: var(--font-display);
  font-size: clamp(6.1rem, 13.5vw, 13.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.dark-section__quote-author {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* Philosophy Section */
.dark-section__philosophy {
  position: relative;
  text-align: center;
  padding: var(--space-lg) 0 var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.philosophy__text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: calc(clamp(4.33rem, 9.27vw, 8.65rem) * -0.4); /* 여백 늘림 (-0.5 -> -0.4) */
  transform: scale(0.95);
  transform-origin: center;
}

.philosophy__row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
}

.philosophy__row--gap-small {
  margin-top: calc(clamp(4.33rem, 9.27vw, 8.65rem) * -0.15);
}

.philosophy__row--gap-large {
  margin-top: calc(clamp(4.33rem, 9.27vw, 8.65rem) * -0.35); /* every와 becomes 20% 간격 추가 */
}

.philosophy__row--gap-xlarge {
  margin-top: calc(clamp(4.33rem, 9.27vw, 8.65rem) * -0.75); /* wasted와 every 간격 축소 */
}

.philosophy__row--no-gap {
  gap: 0;
}

.philosophy__line {
  font-family: var(--font-display);
  font-size: clamp(4.33rem, 9.27vw, 8.65rem); /* 기존 대비 20% 증가 */
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  text-transform: uppercase;
  position: relative; /* 자식 이미지 기준점 */
  display: inline-block;
}

.philosophy__line--accent {
  color: #FFFFFF;
  line-height: 1.05;
  position: relative;
}

.philosophy__cursive-paren {
  font-family: var(--font-script);
  font-size: calc(clamp(3.5rem, 7.5vw, 7rem) * 1.1); /* 기존 대비 20% 증가 */
  color: var(--color-text-muted-light);
  line-height: 1.4;
  margin: 0;
}

.philosophy__cursive {
  font-family: var(--font-script);
  font-size: calc(clamp(3.5rem, 7.5vw, 7rem) * 1.5);
  font-weight: 400; /* h2 태그의 기본 bold 제거 */
  color: #FFFFFF; /* 폰트 색상을 화이트로 변경 */
  font-style: normal;
  line-height: 1.4;
  margin: 0.25em 0 0.4em 0; /* WASTED와의 여백(위쪽)을 살짝 축소, 아래는 유지 */
  padding: 0 0.1em;
  display: inline-block;
}

/* 손그림 이미지들 */
.philosophy__doodle {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

.philosophy__doodle--smile {
  width: 0.61em; /* 0.55em에서 10% 크기 증가 */
  top: 0.4em; /* 위로 0.2em 이동 (기존 0.6em) */
  right: -1.0em; /* 오른쪽으로 0.2em 이동 (기존 -0.8em) */
  transform: rotate(-30deg);
}

.philosophy__doodle--underline {
  width: 85%;
  height: auto;
  left: 7.5%;
  bottom: 0.25em; /* 이전 위치 원복 */
  opacity: 0.85; /* 투명도 15% 다운 */
}

.philosophy__doodle--someday {
  width: 1.58em; /* 1.32em에서 20% 추가 확대 */
  left: -2.02em; /* 이미지 크기의 30%만큼 좌측으로 추가 이동 (-1.55em -> -2.02em) */
  top: 0.1em;
  transform: rotate(-10deg);
}

.philosophy__doodle--ibelieve {
  width: 1.5em;
  right: -2.3em; /* NOTHING 우측으로 띄움 */
  top: 0.1em; /* 기준점이 NOTHING으로 바뀌었으므로 top 리셋 */
  transform: rotate(10deg);
}

.philosophy__doodle--circle {
  width: 115%;
  height: 140%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: -1;
}

/* Divider */
.dark-section__divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto;
  max-width: var(--max-width);
}

/* Section Title (shared) */
.dark-section__section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
}

/* Experience Section (Replaces old stats) */
.dark-section__experience {
  padding: var(--space-xl) 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline; /* 텍스트 밑선(baseline)을 기준으로 완벽하게 수평 정렬 */
  column-gap: clamp(4rem, 18vw, 25rem); /* 초록색 영역에서 붉은 영역으로의 우측 이동을 위한 넓은 간격 */
  row-gap: calc(var(--space-xl) * 2);
}

.experience__right-group {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .dark-section__experience {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .experience__right-group {
    grid-template-columns: 1fr;
  }
}

.experience__index {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.8vw, 4.2rem); /* 기존 대비 20% 확대 */
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1;
}

.experience__paren {
  font-family: var(--font-body);
  font-weight: 300;
}

.experience__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.8vw, 4.2rem); /* 좌측 괄호와 동일한 사이즈 */
  font-weight: 400;
  color: #FFFFFF;
  margin: 0;
  margin-left: calc(clamp(4rem, 12vw, 15rem) * -0.3); /* 남은 여백(gap)의 30%만큼 좌측으로 당김 */
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .experience__title {
    margin-left: 0; /* 모바일에서는 리셋 */
  }
}

.experience__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl); /* 텍스트와 통계 사이 여백 */
}

.experience__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.experience__stats {
  display: flex;
  gap: clamp(var(--space-lg), 8vw, 120px);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-light);
  letter-spacing: -0.02em;
}

.stat-card__plus {
  font-size: calc(0.45em * 1.69); /* 기존 대비 추가로 30% 증가 (1.3 * 1.3) */
  font-weight: 700;
  color: var(--color-accent);
  vertical-align: super;
  margin-left: 2px;
}

.stat-card__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text-muted); /* 살짝 회색 계열 */
  text-transform: uppercase;
}

/* Service Tags (02 - WHAT I CAN DO) */
.service-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.service-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--space-lg); /* 좌측 여백 수정: 사용자가 지정한 좌측 붉은 영역 부근으로 텍스트 이동 */
  font-family: var(--font-display);
  font-size: clamp(1.44rem, 2.4vw, 1.92rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  border: none;
  border-radius: 10px;
  transition: all var(--transition-base);
  cursor: pointer;
  width: 100%;
}

.service-tag__number {
  color: var(--color-accent);
  margin-right: 1.5rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.service-tag:hover {
  color: var(--color-text-light);
  
  
}

.service-tag__arrow {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  margin-right: var(--space-md);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.service-tag__arrow svg {
  width: 24px;
  height: 24px;
}

.service-tag:hover .service-tag__arrow {
  opacity: 1;
}

/* Tool Tags Inline (03 - TOOLS I USE) */
.tool-tags-inline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
  width: 100%;
}

.tool-tag-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 0.85vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted-light);
  padding: 10px 6px;
  border: none;
  border-radius: 10px;
  transition: all var(--transition-base);
  cursor: default;
  white-space: nowrap;
}

.tool-tag-inline:hover {
  color: var(--color-text-light);
  
  
}

.tool-tag-inline__logo {
  height: 16px;
  width: 16px;
  object-fit: contain;
  filter: brightness(0);
  transition: filter var(--transition-base);
}

.tool-tag-inline:hover .tool-tag-inline__logo {
  filter: brightness(0) invert(100%);
}

/* Tools Tags */
.dark-section__tools {
  padding: var(--space-xl) 0 var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.tools-tags {
  display: flex;
  justify-content: space-between;
  gap: 6px; /* 12px에서 50% 축소 */
  width: 100%;
  padding: 0 8%;
  box-sizing: border-box;
  margin-top: calc(var(--space-2xl) / 2); /* 3번 항목 제목/설명과 하단 컨텐츠 간의 여백 확보 */
}

@media (max-width: 1024px) {
  .tools-tags {
    gap: 4px; /* 8px에서 50% 축소 */
  }
}

.tools-tag {
  position: relative;
  display: flex;
  width: auto;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.52vw, 1.52rem); /* 30% 추가 확대 */
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted-light);
  padding: 12px 0; /* 기존 10px에서 2px 추가하여 전체 높이 약 10% 증가 */
  border: none;
  border-radius: 10px;
  overflow: visible !important;
    transition: all var(--transition-base);
  cursor: default;
}

.tools-text {
  cursor: default;
  user-select: none;
  z-index: 10;
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  pointer-events: none !important;
}

.tools-logo {
  position: relative;
  height: 26px; /* 21.6px에서 20% 증가 */
  width: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: brightness(0);
}

.tools-tag:hover {
    z-index: 10;
  color: var(--color-text-light);
  
  
}

.tools-tag:hover .tools-text {
    z-index: 10;
  opacity: 1;
  transform: translateY(0);

    pointer-events: none !important;
}

.tools-tag:hover .tools-logo {
  opacity: 0;
  transform: translateY(-20px);
}

/* 로고가 없는 툴을 위한 클래스 */
.tools-tag--text .tools-text {
    z-index: 10;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects {
  padding: calc(var(--space-2xl) * 1.4) var(--space-lg) calc(var(--space-2xl) * 0.75);
  background-color: var(--color-bg-light);
}

.projects__header {
  margin-bottom: 35px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.projects__header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}

.projects__anyways {
  font-family: var(--font-script);
  font-size: clamp(5.1rem, 8.5vw, 8.5rem); /* 크기 20% 추가 확대 */
  color: var(--color-text-muted); /* 기존 겹침 유지 */
  margin-bottom: -32px; /* 기존 겹침 유지 */
  margin-left: 10px;
  display: block;
  position: relative;
  z-index: 0;
  transform: translateY(20%); /* 세로 크기의 20%만큼 아래로 이동 */
}

.script-paren {
  font-family: var(--font-body);
  font-weight: 300;
  display: inline-block;
  transform: translateY(5%);
}

.projects__title {
  font-family: var(--font-display);
  font-size: clamp(6.1rem, 13.5vw, 13.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.72;
  position: relative;
  z-index: 2;
}

.projects__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-md);
  max-width: 650px; /* 늘려서 CV까지 한 줄에 들어가게 함 */
  margin-right: clamp(40px, 8vw, 120px); /* 우측 여백을 줄여서 공간 확보 */
  margin-bottom: 0; /* 좌측 하단 라인과 맞추기 위해 띄움 제거 */
}

.projects__description {
  font-family: var(--font-body);
  font-size: 1.05rem; /* 기존 0.95rem 대비 10% 확대 */
  font-weight: 300;
  color: #444; /* 상세 페이지의 TEXT TEXT와 동일한 색상 */
  line-height: 1.6;
  margin: 0;
}

.projects__subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 400px;
}

.projects__description-highlight {
  color: var(--color-text-dark);
  font-weight: 600;
}

.projects__more-link {
  font-family: var(--font-display);
  font-size: 1.75rem; /* MORE PROJECTS 5% 추가 축소 */
  font-weight: 400;
  letter-spacing: 0.004em;
  color: var(--color-text-dark);
  transition: color 0.3s ease, text-shadow 0.3s ease, border-color 0.3s ease;
  margin-bottom: 2px; /* 좌측 서브타이틀 텍스트 중앙에 오도록 하단 여백 축소 */
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  position: relative;
  padding-right: 8px; /* 화살표 이동 공간 */
  z-index: 0; /* 별이 글자 뒤로만 가고 배경 뒤로 숨지 않도록 스태킹 컨텍스트 생성 */
}

.projects__star {
  position: absolute;
  width: 0.96em;
  top: -0.2em; /* 0.2em 더 아래로 이동 (기존 -0.4em) */
  left: -0.6em; /* 원래 좌측에 두되 우측으로 살짝 이동 (기존 -0.9em) */
  pointer-events: none;
  z-index: -1; /* 글자 뒤로 배치 */
  transform: rotate(-7deg); /* 좌측 기울기로 복구 */
}

.projects__more-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 1px; /* 4px에서 1px로 줄여 글자와 선 사이의 여백(간격)을 넓힘 */
  width: calc(100% - 0.4em); /* 밑줄 우측 길이를 살짝 줄임 */
  height: 1.5px;
  background-color: currentColor;
  transition: background-color 0.3s ease;
}
.dark-section__more-wrap {
  text-align: center;
  margin-top: 1rem;
  padding-bottom: 2rem;
}
.projects__more-link--white {
  color: #fff;
  font-size: 1.94rem; /* MORE ABOUT ME 5% 축소 */
}
.projects__more-link::after {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-left: 0.15em;
  background-color: currentColor;
  -webkit-mask-image: url('../images/Arrow.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../images/Arrow.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transform: translateY(6px);
  transition: transform 0.3s ease, color 0.3s ease;
}
.projects__more-link:hover,
.projects__more-link--white:hover {
  color: var(--color-accent) !important;
}
.projects__more-link:hover::after {
  transform: translateY(6px) translateX(8px);
}

/* Project Grid */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.project-card {
  cursor: pointer;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--color-gray-placeholder);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.project-card:hover .project-card__image {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__img {
  transform: scale(1.025); /* 기존 1.05 확대 폭을 50% 줄여 1.025로 변경 */
}

/* Confidential Overlay */
.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  opacity: 1;
  transition: opacity var(--transition-base);
  z-index: 10;
}

.project-card__lock {
  width: 36px;
  height: 36px;
  fill: white;
}

.project-card__confidential-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: white;
}

.project-card__info {
  padding-top: 24px;
  padding-bottom: 24px;
  cursor: default;
}

.project-card__name {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 400;
  letter-spacing: 0.004em; /* LET'S 문구 자간과 동일하게 맞춤 */
  text-transform: uppercase;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 6.4px; /* 기존 8px에서 20% 축소 */
}

.project-card__description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 0;
  color: #444;
}

/* ==========================================
   INQUIRIES SECTION
   ========================================== */

.inquiries {
  position: relative;
  padding: var(--space-2xl) var(--space-lg);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inquiries__bg-image {
  position: absolute;
  inset: 0;
  background-color: #B0B0B0;
  background-image: url('../images/opt_Background_01_v2.webp?v=3');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.inquiries__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.inquiries__content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--space-lg);
}

.inquiries__divider {
  width: 1px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.2);
  align-self: center;
}

.inquiries__card {
  color: var(--color-text-light);
}

.inquiries__card-title {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.inquiries__card-title a {
  border-bottom: 1px solid var(--color-text-light);
  padding-bottom: 4px;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.inquiries__card-title a:hover {
  color: var(--color-accent);
  
}

.inquiries__card-desc-en {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
}

.inquiries__card-desc-ko {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background-color: var(--color-bg-light);
  color: var(--color-text-light);
  padding: calc(var(--space-2xl) * 0.6) var(--space-lg) calc(var(--space-lg) * 0.6);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.4s ease, background-color 0.4s ease;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--color-bg-footer);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/opt_Background_01_v2.webp?v=3');
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform-origin: 80% 80%;
  transition: all 0.9s cubic-bezier(0.7, -0.3, 0, 1.5);
}

.footer.is-card-open {
  color: #111;
}

.footer.is-card-open::before {
  transform: scale(0.1) translate(300px, 500px);
  opacity: 0;
  border-radius: 50%;
}

.footer.is-card-open .footer__brand-name,
.footer.is-card-open .footer__brand-tagline span {
  color: #ffffff; /* White fill to blend with background */
  -webkit-text-stroke-color: rgba(0, 0, 0, 0.25); /* Faint outline */
}

.footer__brand-name, .footer__brand-tagline span {
  transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
  -webkit-text-stroke: 1px transparent;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer__top-links {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: calc(var(--space-2xl) * 1.5);
  margin-bottom: 0;
  justify-items: start;
  text-align: left;
}

@media (max-width: 768px) {
  .footer__top-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__top-links {

  grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
  }
}

.footer__brand {
  margin-bottom: var(--space-lg); /* Moved down by reducing bottom margin */
  margin-left: -13vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 우측 정렬 */
  width: fit-content; /* 가장 긴 요소(이름)에 너비 맞춤 */
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: clamp(6.1rem, 13.5vw, 13.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.8;
  position: relative;
  top: 0.12em;
  display: inline-block;
}

.footer__brand-tagline {
  display: flex;
  gap: calc(var(--space-md) / 2);
  margin-top: var(--space-sm);
  position: relative;
}

.footer__doodle-can {
  position: absolute;
  width: 290px;
  height: auto;
  right: 95%; /* 다시 좌측으로 5% 후퇴 (이전 위치로 원상복구) */
  top: 35%; /* 30%에서 35%로 미세 하향 조정 */
  transform: translateY(-50%) rotate(-30deg) scale(0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2), visibility 0.5s;
  pointer-events: none;
}

.footer.is-card-open .footer__doodle-can {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) rotate(-10deg) scale(1);
}

.footer__doodle-likethis {
  position: absolute;
  width: 189px;
  height: auto;
  left: 22%; /* 좌측으로 미세하게 다시 이동 (기존 25% -> 22%) */
  bottom: 100%; /* 명함 위쪽 유지 */
  transform: translateX(-50%) rotate(-3deg) scale(0.5); /* 숨김 상태: 등장 각도(-3deg)와 동일하게 맞춰 회전 효과 제거 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2), visibility 0.5s;
  pointer-events: none;
  z-index: 20;
}

.footer.is-card-open .footer__doodle-likethis {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) rotate(-3deg) scale(1); /* 팝업: 좌측으로 2도 추가 회전 (-1deg -> -3deg) */
}

.footer__brand-tagline span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.5); /* 흰색, 50% 투명도 */
}

.footer-bottom-wrap {
  background-color: #ffffff;
  padding: 0 var(--space-lg);
}

.footer-bottom-wrap .footer__inner {
  max-width: none;
  margin: 0 auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(var(--space-lg) * 5);
    padding-bottom: var(--space-lg);
  border-top: none; /* 흰색 여백이므로 테두리 제거 */
}

.footer__credits {
  font-size: 0.75rem;
}
.footer__credits .header__logo {
  font-size: 1.9rem;
  color: #000000;
  letter-spacing: 0.03em;
}

.footer__credits a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__credits a:hover {
  color: var(--color-accent);
}

.footer__copyright {
  font-family: var(--font-display);
  font-size: 1.42rem; /* 카피라이트 10% 확대 */
  font-weight: 400;
  color: #777;
  letter-spacing: 0.05em;
}

.footer__copyright a {
  color: inherit;
}

.footer__copyright a:hover {
  color: var(--color-accent);
}

/* ==========================================
   SCROLL-BASED ANIMATIONS (Reveal)
   ========================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .services-list__item {
    grid-template-columns: 36px 1fr;
    gap: var(--space-sm);
  }

  .services-list__desc {
    grid-column: 1 / -1;
    text-align: left;
  }

  .projects__grid {
  grid-template-columns: repeat(2, 1fr);
  }

  .inquiries__content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .inquiries__divider {
    width: 100%;
    height: 1px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-lg: 24px;
    --space-xl: 48px;
    --space-2xl: 72px;
  }

  .header {
    padding: 0 var(--space-md);
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 94vh;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    transition: right var(--transition-smooth);
  }

  .header__nav--open {
    right: 0;
  }

  .header--dark .header__nav {
    background-color: var(--color-bg-dark);
  }

  .header__nav .header__link {
    font-size: 2rem;
  font-weight: 300;
    letter-spacing: 0.2em;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__menu-btn--open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .header__menu-btn--open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero {
    padding: calc(var(--header-height) + 16px) var(--space-md) var(--space-md);
  }

  .hero__line--script-row {
    gap: 0.05em;
  }

  .services-list__item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .services-list__number {
    display: none;
  }

  .services-list__desc {
    grid-column: 1;
    text-align: left;
  }

  .philosophy__side-note {
    position: static;
    display: block;
    transform: none;
    text-align: center;
    margin-top: var(--space-md);
  }

  .philosophy__doodle--arrow,
  .philosophy__doodle--zigzag {
    display: none;
  }
  line-height: 0.8;
  display: block;
}

.footer__brand-tagline {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer__brand-tagline span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.5); /* 흰색, 50% 투명도 */
}

.footer-bottom-wrap {
  background-color: #ffffff;
  padding: 0 var(--space-lg);
}

.footer-bottom-wrap .footer__inner {
  max-width: none;
  margin: 0 auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(var(--space-lg) * 5);
    padding-bottom: var(--space-lg);
  border-top: none; /* 흰색 여백이므로 테두리 제거 */
}

.footer__credits {
  font-size: 0.75rem;
}
.footer__credits .header__logo {
  font-size: 1.9rem;
  color: #000000;
  letter-spacing: 0.03em;
}

.footer__credits a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__credits a:hover {
  color: var(--color-accent);
}

.footer__copyright {
  font-family: var(--font-display);
  font-size: 1.42rem; /* 카피라이트 10% 확대 */
  font-weight: 400;
  color: #777;
  letter-spacing: 0.05em;
}

.footer__copyright a {
  color: inherit;
}

.footer__copyright a:hover {
  color: var(--color-accent);
}

/* ==========================================
   SCROLL-BASED ANIMATIONS (Reveal)
   ========================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .services-list__item {
    grid-template-columns: 36px 1fr;
    gap: var(--space-sm);
  }

  .services-list__desc {
    grid-column: 1 / -1;
    text-align: left;
  }

  .projects__grid {
  grid-template-columns: repeat(2, 1fr);
  }

  .inquiries__content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .inquiries__divider {
    width: 100%;
    height: 1px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-lg: 24px;
    --space-xl: 48px;
    --space-2xl: 72px;
  }

  .header {
    padding: 0 var(--space-md);
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 94vh;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    transition: right var(--transition-smooth);
  }

  .header__nav--open {
    right: 0;
  }

  .header--dark .header__nav {
    background-color: var(--color-bg-dark);
  }

  .header__nav .header__link {
    font-size: 2rem;
  font-weight: 300;
    letter-spacing: 0.2em;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__menu-btn--open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .header__menu-btn--open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero {
    padding: calc(var(--header-height) + 16px) var(--space-md) var(--space-md);
  }

  .hero__line--script-row {
    gap: 0.05em;
  }

  .services-list__item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .services-list__number {
    display: none;
  }

  .services-list__desc {
    grid-column: 1;
    text-align: left;
  }

  .philosophy__side-note {
    position: static;
    display: block;
    transform: none;
    text-align: center;
    margin-top: var(--space-md);
  }

  .philosophy__doodle--arrow,
  .philosophy__doodle--zigzag {
    display: none;
  }

  .dark-section__stats {
    gap: var(--space-xl);
  }

  .projects__header {
  flex-direction: column;
    align-items: flex-start;
  }

  .projects__header-right {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    margin-top: var(--space-md);
  }

  .projects__grid {
  grid-template-columns: 1fr;
      gap: calc(var(--space-lg) / 2);
    }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero__line {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero__subtitle {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .footer__brand-name {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .footer__brand-tagline span {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(150, 150, 150, 0.4);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor--hover {
  width: 36px;
  height: 36px;
  background-color: rgba(200, 200, 200, 0.2);
}

.cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  filter: url(#crayon);
}

/* ==========================================
   PROJECT TRANSITION & PAGE
   ========================================== */

/* Black transition screen that slides up */
.project-transition {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-dark);
  z-index: 9100;
  transform: translateY(100%);
  pointer-events: none;
}

.project-transition--up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.project-transition--down {
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes slideDown {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ── SCROLL INDICATOR ANIMATION ── */
@keyframes scrollDown {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ── FLOATING BACK BUTTON ── */
.floating-back-btn {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  padding: 15px 17px 11px 17px; /* Increased padding by 40% from baseline */
  background-color: rgba(17, 17, 17, 0.5); /* Changed opacity to 50% */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff; /* White text */
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1; /* Added to fix vertical centering */
  letter-spacing: 0em; /* Reduced letter-spacing */
  text-transform: uppercase;
  border-radius: 10px; /* Changed to 10px as requested */
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.floating-back-btn:hover {
  background-color: rgba(17, 17, 17, 0.5); /* Keep background same as non-hover */
  color: var(--color-accent); /* Text becomes point color */
  transform: translateX(-50%); /* Removed translateY to stop the jumping effect */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.floating-back-btn--hidden {
  transform: translateX(-50%) translateY(100px) !important;
  opacity: 0;
  pointer-events: none;
}
.floating-back-btn::after {
  content: '';
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.2em; /* Reduced from 0.4em */
  background-color: currentColor;
  -webkit-mask-image: url('../images/Arrow.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../images/Arrow.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transform: translateY(-2px); /* Moved arrow up */
  transition: transform 0.3s ease;
}
.floating-back-btn:hover::after {
  transform: translateY(-2px) translateX(6px);
}

/* White background project page */
.project-page {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 9050;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}

.project-page--open {
  opacity: 1;
  pointer-events: auto;
}

/* ── PP HEADER ── */
.pp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-lg);
  background-color: transparent;
  transition: background-color 0.3s;
}

.pp-header__logo {
  font-family: var(--font-display);
  font-size: 1.32rem; /* 원본 1.1rem에서 총 20% 확대 */
  letter-spacing: 0.05em; /* 기존 0.1em에서 50% 축소 */
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
}

.pp-header__logo::before {
  content: '';
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.3em;
  background-color: currentColor;
  -webkit-mask-image: url('../images/Arrow.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../images/Arrow.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transform: scaleX(-1) translateY(-2px);
  transition: transform 0.3s ease;
}

.pp-header__logo:hover { opacity: 0.4; }
.pp-header__logo:hover::before {
  transform: scaleX(-1) translateY(-2px) translateX(4px);
}

.pp-header__nav {
  display: flex;
  gap: 26.4px; /* 기존 var(--space-md)(24px)에서 10% 넓힘 */
  align-items: center;
}

.pp-header__link {
  font-family: var(--font-display);
  font-size: 1.32rem; /* 원본 1.1rem에서 총 20% 확대 */
  letter-spacing: 0.05em; /* 기존 0.1em에서 50% 축소 */
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s, opacity 0.2s;
}

.pp-header--scrolled .pp-header__logo,
.pp-header--scrolled .pp-header__link {
  color: #111;
}

.pp-header__link:hover { opacity: 0.4; }

/* ── PP HERO (full-bleed: covers from very top, header floats above) ── */
.pp-hero {
  position: relative;
  width: 100%;
  height: 89vh; /* 상단 끝(0)부터 88vh - 헤더는 fixed로 그 위에 떠있음 */
  margin-top: calc(-1 * var(--header-height)); /* 헤더 높이만큼 위로 당겨 완전 풀블리드 */
  overflow: hidden;
}

.pp-hero__img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #c0c0c0;
  object-fit: cover;
  object-position: center 54%;
}

.pp-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(32px, 5vw, 64px) 10.4vw clamp(51px, 8vh, 96px) 5.2vw; /* 붉은 박스 좌우 여백 */
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0; /* 강제로 간격 제거 */
}

.pp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.675rem, 8.4vw, 9.45rem); /* 기존 3.5, 8, 9 에서 5% 증가 */
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: #ffffff;
  margin: 0;
}

.pp-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.134rem, 1.89vw, 1.386rem); /* 기존 1.08, 1.8, 1.32 에서 5% 증가 */
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0;
  margin: 0;
  margin-top: -5px; /* 약간만 위로 올림 (-10px에서 조절) */
}

/* Year tag: top-right corner of hero image (below header) */
.pp-hero__year {
  position: absolute;
  top: calc(var(--header-height) + 4vw);
  right: 4vw; /* 우측 잉여 여백의 50% 지점 */
  font-family: var(--font-display);
  font-size: clamp(3.675rem, 8.4vw, 9.45rem); /* 5% 증가 */
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: #ffffff;
  z-index: 2;
  pointer-events: none;
}

.pp-hero__paren {
  font-family: var(--font-body);
  font-weight: 600; /* 두께 600 */
  font-size: 0.9em; /* 크기 10% 키움 */
}

.pp-hero__num {
  display: inline-block;
  transform: translateY(12%); /* 숫자만 살짝 내림 */
}

/* ── PP CONTENT (3-col layout matching reference image) ── */
.pp-content {
  display: grid;
  /* 좌: 라벨 | 가운데: 큰 본문 | 우: 일반 본문 */
  grid-template-columns: auto 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(58.08px, 8.47vw, 116.16px) 10.4vw; /* 상하 여백 10% 추가 증가 */
  align-items: start;
}

.pp-content__left {
  display: flex;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
  margin-top: calc(-1 * clamp(24px, 3.5vw, 48px)); /* 좌측 라벨만 위로 이동 */
}

/* 좌측 라벨: 메인페이지 TOOLS I USE와 동일한 폰트·크기 */
.pp-content__label {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.8vw, 4.2rem);
  font-weight: 400;
  color: #111;
  letter-spacing: 0.02em;
  line-height: 0.85;
  margin: 0;
}

.projects__subtitle {
  font-family: var(--font-display);
  font-size: 2.72rem; /* 3.4rem에서 20% 축소 */
  font-weight: 400;
  letter-spacing: 0.004em; /* 기존 대비 30% 축소 */
  color: var(--color-text-dark);
  white-space: nowrap;
  line-height: 0.8;
}

.pp-content__meta {
  margin-top: clamp(44px, 5.5vw, 88px); /* 기존 40px, 5vw, 80px에서 10% 증가 */
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: clamp(42px, 6vw, 84px);
  row-gap: clamp(1.08px, 0.162vw, 2.7px); /* 기존 1.2px, 0.18vw, 3px 에서 10% 축소 */
}

.pp-content__meta p {
  font-family: var(--font-display);
  font-size: clamp(1.425rem, 2.28vw, 1.995rem); /* 기존 대비 5% 축소 */
  font-weight: 400;
  color: #111;
  letter-spacing: 0; /* 자간 0 */
  line-height: 0.918; /* 기존 1.02 에서 10% 축소 */
  margin: 0;
}

/* 가운데 본문: experience__desc 크기 (RESIDENTIAL 영역 폰트·크기) */
.pp-content__center .pp-content__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
  margin: 0;
}

.pp-content__right {
  grid-column: 3; /* 우측 끝으로 고정 */
  /* Type 리스트의 상단과 위치를 정확히 맞추기 위한 동적 계산식: 
     (라벨 2줄 높이) + (meta 리스트 상단 여백) - (좌측 라벨 끌어올린 여백) */
  margin-top: calc((clamp(3rem, 4.8vw, 4.2rem) * 0.85 * 2) + clamp(40px, 5vw, 80px) - clamp(24px, 3.5vw, 48px));
}

.pp-content__right--wide {
  grid-column: 2 / 4; /* 우측으로 치우친 것을 안쪽으로 당겨 더 넓게 씀 */
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding-left: clamp(20px, 8vw, 120px); /* 왼쪽에서부터 영역을 줄이기 위한 안쪽 여백 */
}

/* 우측 본문: 일반 body 사이즈 */
.pp-content__right .pp-content__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.44; /* 기존 1.6에서 10% 축소 */
  color: #444;
  margin: 0;
  max-width: none;
}

.pp-content__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* ── PP GALLERY ── */
.pp-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 0.75vw, 12px); /* 50% reduced gap applied globally to all projects */
  padding: clamp(24px, 4vw, 48px) 10.4vw clamp(80px, 10vw, 120px); /* 좌우 좁은 여백 (가장 넓은 본문 영역) */
}

.pp-gallery__img-placeholder {
  width: 100%;
  height: auto;
  background-color: var(--color-gray-placeholder);
  border-radius: 0; /* R값 모두 제거 */
  object-fit: cover;
}

.pp-gallery__img-placeholder.landscape {
  grid-column: span 2;
  aspect-ratio: auto 4 / 3;
}

.pp-gallery__img-placeholder.portrait {
  grid-column: span 1;
  aspect-ratio: auto 2 / 3;
}

.pp-gallery__empty {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vw; /* 텍스트가 박스 가장자리에 붙지 않도록 여유 공간 */
}

.pp-gallery__caption {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.84vw, 3.36rem); /* 기존 크기에서 20% 축소 */
  font-weight: 400;
  color: #111;
  letter-spacing: 0.02em;
  line-height: 0.85;
  text-align: left; /* 글자 자체는 좌측 정렬 */
  width: max-content; /* 박스 너비를 내용물에 맞춰 전체 박스가 중앙에 오게 함 */
  max-width: 100%; /* 부모를 넘지 않도록 제한 */
}

.pp-gallery__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pp-gallery__img-placeholder--half {
  aspect-ratio: 16 / 10;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .pp-content { grid-template-columns: 1fr 1fr; }
  .pp-content__left { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 600px) {
  .pp-content { grid-template-columns: 1fr; }
  .pp-header { padding: 0 var(--space-md); }
  .pp-header__nav { gap: var(--space-md); }
  .pp-gallery__row { grid-template-columns: 1fr; }
}

/* ==========================================
   SERVICE MODAL
   ========================================== */

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.service-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal__overlay {
  display: none;
}

.service-modal__content {
  position: relative;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1400px;
  width: 90vw;
  height: 70vh; /* 확대 */
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  z-index: 1;
}

.service-modal.is-active .service-modal__content {
  transform: translateY(0);
}

.service-modal__close {
  position: absolute;
  top: 40px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}

.service-modal__close:hover {
  color: var(--color-text-light);
}

.service-modal__close svg {
  width: 27px;
  height: 27px;
}

.service-modal__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.8vw, 4.2rem);
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.service-modal__body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted-light);
}

/* ==========================================
   MODAL LAYOUT
   ========================================== */
.service-modal__layout {
  display: flex; /* grid 대신 flex를 사용하여 우측 영역이 내용물 너비만큼만 차지하도록 함 */
  justify-content: space-between;
  gap: var(--space-xl);
  flex-grow: 1;
  min-height: 0; /* 내용물이 대지를 뚫고 나가는 것 방지 */
}

/* Left Side: Texts */
.service-modal__left {
  flex: 1; /* 남은 공간을 모두 차지 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* transform: translateY(10%); */
}

.service-modal__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted-light);
  margin-bottom: 0; /* 사진 최하단 라인과 맞추기 위해 여백 제거 */
}

/* Right Side: Gallery */
.service-modal__right {
  display: flex; /* 우측으로 치우치도록 flex 사용 */
  gap: var(--space-sm);
  align-items: stretch;
  min-height: 0;
  transform: scale(0.96);
  transform-origin: bottom right;
}

/* Main Image Area */
.service-modal__gallery-main {
  position: relative;
  height: 100%;
  width: 100%;
  background: none; 
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.gallery-image-container {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}

/* 좌측 하단 사진 설명 캡션 (위치는 스크립트에서 자동 계산) */
.gallery-caption {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  color: var(--color-text-muted-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-placeholder-text {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ffffff; 
  /* 세련된 이중 드롭 섀도우: 짙고 좁은 그림자 + 넓고 부드러운 그림자로 어떤 배경에서도 흰 화살표가 선명하게 보임 */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 2;
}

.gallery-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav--next.disabled,
.gallery-nav--prev.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.gallery-nav--prev {
  left: 0px; /* 사진 테두리에 딱 붙도록 0으로 조정 */
}

.gallery-nav--next {
  right: 0px; /* 사진 테두리에 딱 붙도록 0으로 조정 */
}

.gallery-nav svg {
  width: 36px;
  height: 36px;
}

/* Side Thumbnails (vertical, 3 items) */
.service-modal__gallery-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 120px;
  flex-shrink: 0;
  min-height: 0;
}

.gallery-side-thumb {
  position: relative;
  flex: 1;
  background-color: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-side-thumb .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 비활성 썸네일: 검은색 70% 오버레이 */
.gallery-side-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  transition: opacity var(--transition-base);
  pointer-events: none;
}

/* Hover on inactive thumb to reveal a bit */
.gallery-side-thumb:not(.is-active):hover .gallery-side-overlay {
  opacity: 0.2;
}

/* ==========================================
   HORIZONTAL LAYOUT FOR TAB 02, 03, 04
   ========================================== */
.service-modal--horizontal .service-modal__right {
  flex-direction: column;
  align-items: center; /* 전체 너비를 메인 이미지 너비에 맞춤 */
  height: 100%; /* 명시적 높이 제공 */
}

.service-modal--horizontal .service-modal__gallery-main {
  height: calc(100% - 150px - var(--space-sm)); 
  flex: none;
  width: auto; 
  aspect-ratio: 16 / 9; /* 가로 크기 16:9로 변경 */
  max-width: 100%;
}

/* 2번 탭 가로 이미지 꽉 채우기 (크롭되더라도 빈 여백 없이 16:9 꽉 차게) */
.service-modal--horizontal .gallery-image-container {
  width: 100%;
  height: 100%;
}

.service-modal--horizontal .gallery-image-container .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 가로를 꽉 채우고 넘치는 부분은 잘라냄 */
  object-position: center; /* 가운데 정렬 */
}

/* 2번 탭에서는 사진 설명(캡션) 스타일 덮어쓰기 없음 */


.service-modal--horizontal .service-modal__gallery-side {
  flex-direction: row;
  width: 100%;
  height: auto; /* 섬네일 높이 자동 (16:9 비율) */
}

.service-modal--horizontal .gallery-side-thumb {
  width: auto;
  flex: 1; /* 3개의 썸네일이 가로 영역을 균등하게 나눠 가짐 */
}

/* 활성(중앙) 썸네일: 오버레이 숨김 */
.gallery-side-thumb.is-active .gallery-side-overlay {
  opacity: 0;
}

.gallery-side-thumb:hover .gallery-side-overlay {
  opacity: 0.3;
}

@media (max-width: 1024px) {
  .service-modal__layout {
    grid-template-columns: 1fr;
  }
}

/* --- ABOUT PAGE LIGHT THEME OVERRIDES --- */
.page-about {
  background-color: #ffffff;
  color: #000000;
}
.page-about .dark-section {
  background-color: #ffffff;
  color: #000000;
}
.page-about .header__logo,
.page-about .header__link {
  color: #000000;
}
.page-about .header__menu-btn span {
  background-color: #000000;
}
.page-about .experience__title,
.page-about .experience__index,
.page-about .experience__desc,
.page-about .stat-card__number,
.page-about .stat-card__label,
.page-about .tools__desc,
.page-about .tools__pill,
.page-about .dark-section__section-title,
.page-about .experience__paren,
.page-about .footer__brand-name,
.page-about .footer__brand-tagline span,
.page-about .footer__link,
.page-about .footer__copyright {
  color: #000000;
}
.page-about .tools__pill {
  
}
.page-about .dark-section__divider { background: #e0e0e0; }
.page-about .footer-bottom-wrap { border-top-color: #e0e0e0; background-color: #ffffff; }

.page-about .service-tag {
  color: #000000;
  border-bottom-color: rgba(0, 0, 0, 0.2);
}
.page-about .service-tag:hover {
  color: #000000;
  
  
}
.page-about .tools-tag {
  color: #000000;
  
}
.page-about .tools-tag:hover {
    z-index: 10;
  color: #000000;
}
.page-about .tools-tag:hover .tools-text {
  opacity: 1;
  transform: translateY(0);
  color: #000000;
}
.page-about .tools-tag:hover .tools-logo {
  opacity: 0;
  transform: translateY(-20px);
}
.page-about .tools-text {
    z-index: 10;
  color: #000000;
}

/* --- ABOUT LAYOUT --- */
.about-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.about-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 22%;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-left-image {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  display: block;
}
.about-right {
  margin: 0 auto;
  width: 85%;
  max-width: none;
  position: relative;
  overflow: visible !important;
}
.about-section {
  width: 100%;
  overflow: visible !important;
  padding: var(--space-2xl) var(--space-lg) calc(var(--space-2xl) * 2);
}

.contact-info__wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align text lines */
  text-align: left;
  gap: 4px; /* Reduced vertical gap by another 50% */
  margin-right: 0.5rem; /* Shifted slightly right (was 1.5rem) */
}

.page-about .header {
  /* Let header naturally be transparent and turn white on scroll via JS */
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.page-about .header.header--scrolled {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.page-about .header--dark {
  /* Nullify dark header effect just in case */
  background-color: transparent !important;
}

@media (max-width: 1024px) {
  .about-layout {
    flex-direction: column;
  }
  .about-left {
    position: relative;
    width: 100%;
    height: 50vh;
  }
  .about-right {
    margin-left: 0;
    width: 100%;
  }
}

.footer__top-links .projects__more-link::before {
  display: none;
}
.footer__top-links .projects__more-link {
  font-size: 3.6rem; /* 3rem에서 20% 확대 */
  letter-spacing: -0.02em;
}

.footer__top-links .pp-hero__paren {
  position: relative;
  top: -3px;
}

.footer__divider {
  font-family: var(--font-display);
  font-size: 3.3rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  top: 4px;
}

.footer__top-links .projects__more-link::after {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-left: 0.15em;
  background-color: currentColor;
  -webkit-mask-image: url('../images/Arrow.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../images/Arrow.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transform: translateY(0.25em);
}

.footer__top-links .projects__more-link:hover::after {
  transform: translateY(0.25em) translateX(8px);
}





.footer__top-links > div:nth-child(3) {
  transform: translateX(-7rem);
}

/* Footer Contact Info (Hidden by default) */


.contact-info__link {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.contact-info__link:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .footer__contact-info {
    text-align: left;
    margin-top: 20px;
    margin-left: -13vw;
  }
}


/* Footer Business Card */
.footer__contact-info {
  width: 26.4rem; /* Increased size by 10% */
  max-width: 90vw;
  aspect-ratio: 3.5 / 2;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/opt_Background_01_v2.webp?v=3');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: flex-end; /* Align wrapper to bottom */
  align-items: flex-end; /* Align wrapper to right */
  margin-bottom: var(--space-2xl); /* Shifted slightly down */
  /* margin-right removed for strict JUST alignment */
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  
  /* TV Animation states */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.01, 0.01);
  transform-origin: center center;
}

.footer__contact-info.is-visible {
  opacity: 1;
  visibility: visible;
  animation: tv-turn-on 0.5s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

.footer__contact-info.is-hiding {
  animation: tv-turn-off 0.4s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes tv-turn-on {
  0% {
    transform: scale(0.01, 0.01);
  }
  50% {
    transform: scale(1, 0.01);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes tv-turn-off {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1, 0.01);
  }
  100% {
    transform: scale(0.01, 0.01);
    opacity: 0;
  }
}

.footer__contact-info .contact-info__name {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 600; /* Thicker for contrast */
  margin-bottom: 6px; /* Gap separating name from links */
}

.footer__contact-info .contact-info__link {
  color: #fff; /* White text for dark card */
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 300; /* Thinner links */
}

/* Adjust parentheses height in footer */
footer .pp-hero__paren,
.footer-bottom-wrap .pp-hero__paren,
.footer__contact-info .pp-hero__paren {
  display: inline-block;
  transform: translateY(-0.08em); /* 괄호를 위로 살짝 올림 (기존 -0.04em에서 수정) */
  font-weight: 500; /* 400에서 한 단계 더 두껍게 */
  font-size: 0.98em; /* 1.08em에서 약 10% 감소 */
}

/* Hanging punctuation for the right parenthesis so 'E' aligns with 'CHANGE' */
.footer__brand-name .pp-hero__paren:last-child {
  position: absolute;
  left: 100%;
}

.footer__contact-info .contact-info__link:hover {
  color: var(--color-accent);
}


/* ========================================
   PROJECTS PAGE
   ======================================== */
.page-projects {
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

.projects-main {
  padding: 120px 0 var(--space-2xl);
  max-width: 100%; /* Stretch to ends, no margin */
  margin: 0 auto;
}

.projects-main .projects__header-left, .projects-filter {
  padding: 0 var(--space-lg); /* Keep padding for title and filter only in projects page */
}

.projects-filter {
  list-style: none;
  display: flex;
  gap: calc(var(--space-lg) * 0.7); /* Reduced gap by 30% */
  margin: 0;
  margin-bottom: calc(var(--space-2xl) * 0.3); /* Reduced gap to thumbnails by 70% */
  flex-wrap: wrap;
}

.projects-filter__item {
  font-family: var(--font-display);
  font-size: 2.39rem; /* 1.84rem + 30% */
  color: var(--color-text); /* Black when unclicked too */
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.projects-filter__checkbox {
  display: inline-block;
  width: 16px; /* Slightly larger to match 30% larger text */
  height: 16px;
  border: 1.5px solid #000000; /* Made visible with black border */
  margin-right: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.projects-filter__item.is-active .projects-filter__checkbox {
  background-color: #000000;
  
}

.projects-filter__item.is-active::after {
  display: none !important; /* Hide previous underline effect */
}

.projects-filter__item:hover {
  color: var(--color-accent);
}

.projects-filter__item.is-active {
  color: var(--color-text);
}

.projects-filter__item.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Reduced by 80% */
  width: 100%;
}

.projects-list__item {
  width: 100%;
  aspect-ratio: 21 / 5.4; /* Reduced height by 40% from 21/9 */
  background-color: #e0e0e0;
  border-radius: 0; /* R removed */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hover effect removed as requested */
.projects-list__item:hover {
  /* No transform or box-shadow */
}

/* Thumbnail 4 Corners Text */
.thumb-corner {
  position: absolute;
  color: #ffffff;
  padding: calc(var(--space-md) * 1.2); /* Increased margin from corners by 20% */
  z-index: 2;
  pointer-events: none;
}

.thumb-top-left {
  top: 0;
  left: 0;
  font-family: var(--font-body);
  font-size: 0.95rem; /* Matched project-card__description */
  font-weight: 500; /* Thicker than 300 */
  color: #ffffff; /* Matched bottom-right but white */
  text-align: left;
  line-height: 1.6; /* Matched bottom-right */
}

.thumb-top-right {
  top: 0;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 4.8vw, 6rem); /* Decreased 20% */
  font-weight: 400;
  letter-spacing: -0.01em; /* Matching pp-hero__year */
  line-height: 0.95; /* Matching pp-hero__year */
  text-align: right;
}

.thumb-paren {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9em;
}

.thumb-num {
  display: inline-block;
  transform: translateY(12%);
}

.thumb-bottom-left {
  bottom: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 6.3rem; /* Increased by 20% from 5.25rem */
  font-weight: 400;
  letter-spacing: -0.02em; /* Matched JUST GET IN TOUCH */
  text-transform: uppercase;
  line-height: 0.9;
}

.thumb-bottom-right {
  bottom: 0;
  right: 0;
  font-family: var(--font-body);
  font-size: 0.95rem; /* Matched project-card__description */
  font-weight: 300; /* Restored to 300 */
  color: #ffffff; /* Matched project-card__description but white */
  text-align: left; /* Left-align the text itself */
  max-width: 400px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .projects-list__item {
    aspect-ratio: 16 / 9;
  }
  .projects-filter {
    gap: var(--space-sm);
  }
  .projects-filter__item {
    font-size: 2rem;
  font-weight: 300;
  }
}


/* ========================================
   ARCHIVE PAGE
   ======================================== */
.page-archive {
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.page-archive::-webkit-scrollbar {
  display: none;
}

.archive-main {
  padding: 20px var(--space-lg) var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.archive-header {
  margin-bottom: var(--space-xl);
  text-align: left;
}

.archive-title {
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.archive-desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
}

/* Masonry Layout via Flexbox */
.archive-gallery {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}

.archive-column {
  display: flex;
  flex-direction: column;
  gap: 19px;
  flex: 1;
}

.archive-item {
  width: 100%;
  display: block;
  break-inside: avoid;
  background: transparent;
  transition: transform 0.3s ease;
  position: relative;
}

.archive-item:hover {
  transform: translateY(-4px);
}

.archive-item__img-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.archive-item:hover .archive-item__img-wrapper {
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.archive-item__img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.archive-item:hover img {
  transform: scale(1.05);
}

.archive-item__text-area {
  padding: 12px 4px 0 4px;
}

.archive-item__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.archive-item__title {
  font-weight: 500;
  font-size: 1.05rem;
  color: #111;
  margin: 0;
  letter-spacing: 0;
}

.archive-item__heart {
  width: 26px; 
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.archive-item__heart:hover {
  transform: scale(1.2);
}

.archive-item__desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin: 0;
}

.archive-sentinel {
  text-align: center;
  padding: 40px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .archive-title {
    font-size: 3.5rem;
  }
}

.page-about .dark-section__divider {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.page-about .projects__header {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.page-about .experience__title-wrapper {
  margin-left: -3vw;
}
.page-about .experience__content {
  margin-left: 3vw;
}

.project-card__auth {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  padding: 8px;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.project-card__pw-container {
  display: flex;
  align-items: center;
  gap: 1px;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__auth.is-active .project-card__pw-container {
  width: 146px;
  opacity: 1;
  pointer-events: auto;
  padding-right: 8px;
}

.project-card__password {
  border: none;
  background: transparent;
  color: white;
  border-radius: 0;
  padding: 4px 0 4px 4px;
  width: 92px;
  font-family: sans-serif;
  font-size: 1.2rem;
  letter-spacing: 16px;
  text-indent: 0;
  outline: none;
  background-image: repeating-linear-gradient(to right, white 0, white 14px, transparent 14px, transparent 23px);
  background-size: 100% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
}
.project-card__password::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.project-card__submit {
  background: transparent;
  color: transparent;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 1px;
}


@keyframes shakeAuth { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }
.project-card__auth.is-error { animation: shakeAuth 0.21s ease-in-out; }
.project-card__auth.is-red .project-card__password {
  border: none;
  background: transparent;
  color: white;
  border-radius: 0;
  padding: 4px 0 4px 4px;
  width: 92px;
  font-family: sans-serif;
  font-size: 1.2rem;
  letter-spacing: 16px;
  text-indent: 0;
  outline: none;
  background-image: repeating-linear-gradient(to right, white 0, white 14px, transparent 14px, transparent 23px);
  background-size: 100% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.project-card__password.is-error {
  animation: shakeAuth 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  color: #ff4d4d;
  background-image: repeating-linear-gradient(to right, #ff4d4d 0, #ff4d4d 14px, transparent 14px, transparent 23px) !important;
}

.project-card__submit::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('../images/Arrow.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}


/* service-tags-h horizontal layout */
.service-tags-h {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
  padding: 0 8%; /* 좌우 여백을 더 주어 양끝 요소들을 좀 더 안쪽으로 모음 */
  box-sizing: border-box;
  overflow: visible !important;
}
.service-tag-h {
  position: relative;
  cursor: pointer;
  z-index: 3;
}
.service-tag-h__default {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.6rem 0; /* flex로 바꾸면서 좌우 여백을 최소화하여 간격 제어를 더 정확하게 함 */
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}
.service-tag-h__num {
  font-family: var(--font-display);
  font-size: 1.46rem;
  font-weight: 600;
  color: #3A3AF4;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}
.service-tag-h__name {
  font-family: var(--font-display);
  font-size: clamp(1.52rem, 2.24vw, 2.03rem); /* 텍스트만 기존대비 30% 증가 */
  font-weight: 400;
  color: #000;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-top: -0.2em; /* 폰트 자체의 상하 여백을 무시하고 강제로 위로 끌어올림 */
  transition: color 0.25s ease;
}
.service-tags-h.is-hovering .service-tag-h__name { color: #fff; }
.service-tags-h.is-hovering .service-tag-h__num  { color: #6a6aff; }

.service-tags-h__overlay {
  position: fixed;
  left: 0;
  width: 100vw;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}
.service-tags-h.is-animating .service-tags-h__overlay {
  transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1), top 0.55s cubic-bezier(0.16, 1, 0.3, 1), height 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.service-tags-h__overlay-text {
  font-family: var(--font-script);
  font-size: calc(clamp(3.5rem, 7.5vw, 7rem) * 1.65);
  font-weight: 400;
  color: #fff;
  opacity: 0.2;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  transition: opacity 0.3s ease;
}
.service-tags-h.is-hovering .service-tags-h__overlay {
  clip-path: inset(0% 0 0% 0);
  pointer-events: none !important;
}
.service-tags-h.is-open .service-tags-h__overlay {
  clip-path: inset(0% 0 0% 0);
  pointer-events: auto;
  top: 0 !important;
  left: 0 !important;
  height: 100vh !important;
  width: 100vw !important;
  z-index: 8000;
}
.service-tags-h.is-open .service-tags-h__overlay-text {
  opacity: 0;
}

/* 1번 전용 */
.service-modal:not(.service-modal--horizontal) .service-modal__left { padding-left: 4vw; }
.service-modal:not(.service-modal--horizontal) .service-modal__right { margin-right: 4vw; }


/* ====================================================
   LAYOUT & SCALING OVERRIDES (Fixed)
   ==================================================== */
.service-modal__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.8vw, 4.2rem);
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.service-modal__content { max-width: 1700px !important; width: 96vw !important; }
.gallery-caption { font-size: 0.88rem !important; font-weight: 200 !important; }

/* Item 1 (Vertical) Layout Fixes */
.service-modal__left { transform: none !important; }
.service-modal:not(.service-modal--horizontal) .service-modal__gallery-side { width: 120px !important; } /* Fix: Apply 120px ONLY to vertical layout */
.service-modal:not(.service-modal--horizontal) .service-modal__left { padding-left: 4vw !important; }
.service-modal:not(.service-modal--horizontal) .service-modal__right { margin-right: 4vw !important; transform: scale(0.96) !important; transform-origin: bottom right !important; }

/* Items 2, 3, 4 (Horizontal) Layout Fixes */
.service-modal--horizontal .service-modal__left { transform: translateX(-2vw) !important; } /* 글박스 크기 유지하며 좌측으로 2vw 이동 */

/* 1. Reset right container */
.service-modal--horizontal .service-modal__right { 
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important; /* Push contents to the right */
  justify-content: flex-end !important; /* Push contents to the bottom */
  transform: translateX(2vw) scale(0.96) !important; /* 사진 크기 유지하며 우측으로 2vw 이동 */
  transform-origin: bottom right !important;
}

/* 3D VISUALIZATION 예외: 텍스트와 이미지 간격 원상복구 */
.service-modal--horizontal.service-modal--3d .service-modal__left {
  transform: none !important;
}
.service-modal--horizontal.service-modal--3d .service-modal__right {
  transform: scale(0.96) !important;
}

/* 2. Main Image: Height = 3 * ThumbHeight + (2 * Gap * 9/16). 
   ThumbHeight = 23.75%. Gap = 16px. (16 * 2 * 9/16 = 18px)
   Height = 71.25% + 18px. */
.service-modal--horizontal .service-modal__gallery-main { 
  flex: 0 0 calc(71.25% + 18px) !important;
  height: calc(71.25% + 18px) !important;
  width: auto !important;
  aspect-ratio: 16 / 9 !important;
  margin-left: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  max-width: 100% !important; 
  max-height: none !important;
}
.service-modal--horizontal .gallery-image-container {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
}

/* 3. Thumbnails Container */
.service-modal--horizontal .service-modal__gallery-side {
  flex: 0 0 23.75% !important;
  height: 23.75% !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  margin-left: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  gap: 16px !important; /* 2x elegant spacing */
}

/* 4. Thumbnails */
.service-modal--horizontal .gallery-side-thumb {
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  width: auto !important;
  flex: none !important;
}

/* Shift 3D visualization first image downwards */
img.gallery-image[src*="3d_visualization/1.webp"] {
  object-position: center 40% !important;
}






























.pp-content__meta .meta-label {
    color: #a2a2a2;
}


.about-cv-link:hover {
    transform: scale(1.05) rotate(-5deg);
}

/* Tools hover fix: prevent right-group from blocking tools-tags hover */
.page-about .experience__right-group {
  pointer-events: none;
}
.page-about .experience__right-group * {
  pointer-events: none;
}

/* Force all tools-tags to receive pointer events above any overlapping elements */
.tools-tags {
  position: relative;
  z-index: 50;
}
.tools-tag {
  isolation: isolate;
  z-index: 50 !important;
  pointer-events: all !important;
}
