/* 
  NSWORKS: Hyper-Experience Design System
*/

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Pretendard-Black.woff2') format('woff2');
}

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Pretendard-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/outfit-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/spacemono-400.woff2') format('woff2');
}

:root {
  /* Colors - Deep Premium Space */
  --bg-deep: #020205; /* Pure Deep Black-Blue */
  --bg-accent: #080a14;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.45);
  --accent-glow: #0084ff; /* Focused Sapphire Blue */
  --accent-silver: #e0e0e0;
  
  --pointer-x: 50%;
  --pointer-y: 50%;
  --hero-sheen: 50%;
  --scroll-progress: 0;
  --projects-focus: 0;
  --trace-depth-x: 0px;
  --trace-depth-y: 0px;
  
  /* Typography */
  --font-display: 'Outfit', 'Pretendard', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Pretendard', monospace;
  
  /* Motion Constants */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); /* Faster, more responsive premium curve */
  --transition-smooth: 0.8s var(--ease-expo);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; /* Across all elements for better Korean flow */
  overflow-wrap: break-word;
}

html, body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-display);
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

body.antigravity-scroll-lock {
  overflow: auto !important; /* 외부 환경에 의한 잠금 강제 해제 */
}

body {
  position: relative;
  touch-action: pan-y;
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

body.archive-page:not(.has-custom-cursor),
body.archive-page:not(.has-custom-cursor) * {
  cursor: auto !important;
}

body.archive-page:not(.has-custom-cursor) a,
body.archive-page:not(.has-custom-cursor) button,
body.archive-page:not(.has-custom-cursor) .filter-chip,
body.archive-page:not(.has-custom-cursor) .nav-menu a,
body.archive-page:not(.has-custom-cursor) .nexus-item,
body.archive-page:not(.has-custom-cursor) .work-surface {
  cursor: pointer !important;
}

.archive-page a {
  pointer-events: none;
  cursor: default !important;
}

.hyper-theme {
  isolation: isolate;
}

.glass {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Hyper-Texture: Ultra-Subtle Grain */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.015; /* More subtle */
  background-image:
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 80px 80px; /* Larger, tech-grid feel */
}

/* Custom Interactive Cursor - Hardware Accelerated */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* VFX Grid Layer */
.vfx-grid-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.12;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at var(--pointer-x) var(--pointer-y), black, transparent 40%);
    animation: vfx-flicker 8s infinite;
}

@keyframes vfx-flicker {
    0%, 100% { opacity: 0.12; }
    33% { opacity: 0.15; }
    66% { opacity: 0.1; }
}

.custom-cursor-follower {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

/* Cinematic Typography */
.giant-title {
  font-size: clamp(3.4rem, 10vw, 8.2rem); /* Slightly larger */
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  max-width: 95vw;
  text-align: center;
  margin: 0 auto;
}

.hero-title-ko {
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.title-layer {
  position: relative;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); /* Better separation */
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.1));
}

.title-layer::after {
  content: '';
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(circle at var(--hero-sheen) 50%, rgba(255, 255, 255, 0.16), transparent 32%);
  opacity: 0.28;
  pointer-events: none;
}

.giant-title span:not(:lang(en)),
.section-title span:not(:lang(en)),
.brand span:not(:lang(en)) {
  font-size: 0.72rem; 
  font-weight: 300;
  opacity: 0.4;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 2.5rem auto 0; /* 마진 오토로 중앙 정렬 */
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.58);
  max-width: 720px;
  margin: 1rem auto 0;
  line-height: 1.75;
  letter-spacing: -0.01em;
  text-align: center;
}

.variant-stamp {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 10001;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 18, 0.6);
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.archive-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.archive-entry-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.archive-entry-link.prominent {
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.32);
}

.hero-archive-entry {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
}

.trace-archive-entry {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 5;
}

.portfolio-trace-shell {
  text-align: center;
}

.trace-note,
.trace-archive-entry {
  justify-self: center;
}

.archive-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.contact-archive-entry {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

.footer-archive-entry {
  padding: 0 1.25rem 3rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.scene {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18vh 8vw;
  z-index: 10;
  --scene-visibility: 0;
  opacity: 1;
  transform: none;
  filter: none;
  perspective: 1600px;
}

.scene.is-visible {
  opacity: 1;
}

.bg-video-container {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 1; /* body 배경색 위로 노출 */
    overflow: hidden;
    pointer-events: none;
    background:
      radial-gradient(circle at 22% 18%, rgba(66, 117, 255, 0.24), transparent 32%),
      linear-gradient(135deg, rgba(7, 8, 14, 0.95), rgba(8, 12, 24, 0.72)),
      url('hero_preview.png') center / cover no-repeat;
}

.bg-video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(0, 210, 255, 0.12), transparent 22%),
      radial-gradient(circle at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)), rgba(255, 255, 255, 0.05), transparent 28%);
    opacity: calc(0.55 + var(--projects-focus) * 0.1);
}

.bg-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,8,0.52), rgba(5,5,8,0.24) 35%, rgba(5,5,8,0.72));
    opacity: calc(0.92 + var(--projects-focus) * 0.28);
}

.bg-video-stage,
.vc_video-bg,
.vc_video-bg .bg-video-player {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.vc_video-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 1000%;
    opacity: 0;
    filter: grayscale(0.1) brightness(0.74) contrast(1.02);
    pointer-events: none;
    border: 0;
    transition: opacity 0.45s ease;
}

.bg-video-stage.is-ready .vc_video-bg iframe {
    opacity: calc(0.34 - var(--projects-focus) * 0.18);
}

body.is-safari .vfx-grid-layer,
body.is-safari #gl-canvas {
  display: none;
}

body.is-safari .noise-overlay {
  opacity: 0.006;
}

body.is-safari .scene,
body.is-safari .scene.is-visible {
  filter: none;
}

body.is-safari .bg-video-container::before {
  opacity: calc(0.28 + var(--projects-focus) * 0.04);
}

body.is-safari .bg-video-container::after {
  opacity: calc(1 + var(--projects-focus) * 0.22);
}

body.is-safari .vc_video-bg iframe {
  filter: none;
  opacity: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.is-safari .bg-video-stage.is-ready .vc_video-bg iframe {
  opacity: calc(0.2 - var(--projects-focus) * 0.1);
}

body.is-safari .portfolio-trace-shell::before,
body.is-safari .portfolio-trace-shell::after,
body.is-safari .trace-stream::before,
body.is-safari .trace-stream::after {
  filter: none;
}

body.is-safari .trace-tile::before,
body.is-safari .trace-tile::after {
  mix-blend-mode: normal;
  opacity: 0.16;
}

body.is-safari .trace-track {
  animation: none !important;
  -webkit-animation: none !important;
}

body.is-safari .title-layer::after {
  display: none;
}

html.is-ios,
body.is-ios {
  overscroll-behavior: auto;
}

body.is-ios .bg-video-container,
body.is-ios #gl-canvas,
body.is-ios .vfx-grid-layer,
body.is-ios .noise-overlay {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body.is-ios .scene,
body.is-ios .scene.is-visible {
  filter: none;
}

.container-cinematic {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-stack {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.hero-scene::before {
  content: '';
  position: absolute;
  inset: 14% 10% auto;
  height: 46vh;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(0, 210, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 36%);
  opacity: calc(0.24 + (var(--scroll-progress) * 0.1));
  pointer-events: none;
}

.hero-scene {
  overflow: hidden;
}

.motion-layer {
  will-change: transform;
  transform-style: preserve-3d;
}

/* WebGL Background Simulation via CSS */
.dynamic-background {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--bg-accent) 0%, var(--bg-deep) 70%);
}

/* Animations */
.split-text {
  overflow: hidden;
}

.split-text span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-expo);
}

.scene.active .split-text span {
  transform: translateY(0);
}

/* Delay for staggered text */
.split-text span:nth-child(2) { transition-delay: 0.1s; }
.split-text span:nth-child(3) { transition-delay: 0.2s; }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 3rem;
  max-width: 100%;
}

.process-grid {
  margin-top: 4rem;
}

.pillars-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

@media (min-width: 1400px) {
  .capabilities-grid {
    grid-template-columns: repeat(4, 1fr); /* 4컬럼으로 확장하여 풍성하게 */
  }

  .pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cap-card {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, calc(0.018 + (var(--scene-visibility) * 0.03))),
      rgba(255, 255, 255, calc(0.007 + (var(--scene-visibility) * 0.012)))
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, calc(0.03 + (var(--scene-visibility) * 0.03)));
    border-top: 1px solid rgba(255, 255, 255, calc(0.08 + (var(--scene-visibility) * 0.08)));
    border-radius: 16px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.62s var(--ease-expo), opacity 0.68s var(--ease-expo);
    box-shadow: 0 calc(14px + (var(--scene-visibility) * 10px)) calc(30px + (var(--scene-visibility) * 24px)) rgba(0, 0, 0, calc(0.18 + (var(--scene-visibility) * 0.16)));
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    --enter-y: calc((1 - var(--scene-visibility)) * 22px);
    transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(0, calc(var(--lift, 0px) + var(--enter-y)), 0);
    opacity: calc(var(--scene-visibility) * 1);
}

/* Lusion-style Organic Edge Glow 가상 요소 */
/* 클릭 시 펄스 애니메이션 */
@keyframes card-pulse {
    0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.34); }
    100% { box-shadow: 0 0 0 30px rgba(96, 165, 250, 0); }
}

.cap-card.clicked {
    animation: card-pulse 2s cubic-bezier(0.12, 0.82, 0.22, 1);
}

.cap-card:active {
    filter: brightness(1.06);
}

.cap-card::before {
    content: '';
    position: absolute;
    inset: -24%;
    background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(147, 197, 253, 0.22) 0%, rgba(147, 197, 253, 0.04) 24%, transparent 52%);
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cap-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cap-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 26px 48px rgba(0, 0, 0, 0.34),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.cap-card.is-interacting::before {
  opacity: 0.85;
}

.cap-card.is-interacting {
  border-color: rgba(150, 205, 255, 0.28);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.34),
    inset 0 0 40px rgba(255, 255, 255, 0.04);
}

.cap-card > * {
  position: relative;
  z-index: 2;
}

.cap-card h3 {
  font-family: 'Pretendard', var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transform: translateZ(30px);
}

.process-grid .cap-card h3,
.cases-grid .cap-card h3,
.expanded-grid .cap-card h3,
.pillars-grid .cap-card h3 {
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.cap-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transform: translateZ(20px);
}

.section-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.8s var(--ease-expo);
}

.section-tag,
.tech-detail,
.scroll-ind {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.56);
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-scene {
  --trace-overlap: clamp(4rem, 9vh, 8rem);
  overflow: visible;
  align-items: center;
  z-index: 12;
  margin-top: calc(var(--trace-overlap) * -1);
  margin-bottom: calc(var(--trace-overlap) * -1);
  padding-top: calc(18vh + var(--trace-overlap));
  padding-bottom: calc(18vh + var(--trace-overlap));
}

.portfolio-scene::before {
  content: '';
  position: absolute;
  inset: calc(var(--trace-overlap) * -1) 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(38, 74, 166, 0.16), transparent 34%),
    linear-gradient(
      180deg,
      rgba(3, 5, 12, 0) 0%,
      rgba(4, 7, 15, 0.34) 10%,
      rgba(4, 7, 15, 0.82) 28%,
      rgba(4, 7, 15, 0.82) 72%,
      rgba(4, 7, 15, 0.34) 90%,
      rgba(3, 5, 12, 0) 100%
    );
}

.portfolio-trace-shell {
  --trace-bg-bleed: clamp(7rem, 14vw, 18rem);
  position: relative;
  width: min(1880px, calc(100% - 1rem));
  max-width: calc(100% - 1rem);
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(8.5rem, 16vw, 11rem);
  display: grid;
  justify-items: center;
  z-index: 3;
  perspective: 2200px;
  border-radius: 32px;
  overflow: visible;
  opacity: calc(0.28 + (var(--scene-visibility) * 0.72));
  transform: translateY(calc((1 - var(--scene-visibility)) * 26px)) scale(calc(0.985 + (var(--scene-visibility) * 0.015)));
  transition: opacity 0.82s var(--ease-expo), transform 0.82s var(--ease-expo);
}

.trace-note {
  width: min(100%, 42rem);
  max-width: 42rem;
  margin: 1.2rem auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
  line-height: 1.7;
  position: relative;
  z-index: 4;
  opacity: calc(var(--scene-visibility) * 1);
  transform: translateY(calc((1 - var(--scene-visibility)) * 16px));
  transition: opacity 0.72s var(--ease-expo), transform 0.72s var(--ease-expo);
}

.portfolio-trace-shell::before,
.portfolio-trace-shell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--trace-bg-bleed) * -1);
  right: calc(var(--trace-bg-bleed) * -1);
  pointer-events: none;
  z-index: 2;
  border-radius: 0;
}

.portfolio-trace-shell::before {
  background:
    linear-gradient(
      180deg,
      rgba(5, 7, 14, 0) 0%,
      rgba(5, 7, 14, calc(0.32 + (var(--scene-visibility) * 0.26))) 14%,
      rgba(5, 7, 14, calc(0.5 + (var(--scene-visibility) * 0.44))) 32%,
      rgba(5, 7, 14, calc(0.28 + (var(--scene-visibility) * 0.34))) 78%,
      rgba(5, 7, 14, calc(0.18 + (var(--scene-visibility) * 0.18))) 90%,
      rgba(5, 7, 14, 0) 100%
    );
}

.portfolio-trace-shell::after {
  background:
    radial-gradient(circle at 18% 24%, rgba(123, 152, 255, calc(0.08 + var(--projects-focus) * 0.06)), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(94, 214, 255, calc(0.06 + var(--projects-focus) * 0.05)), transparent 30%),
    linear-gradient(180deg, rgba(5, 7, 14, 0) 0%, rgba(5, 7, 14, 0.24) 10%, rgba(5, 7, 14, 0.08) 20%, rgba(5, 7, 14, 0.08) 80%, rgba(5, 7, 14, 0.28) 90%, rgba(5, 7, 14, 0) 100%),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, calc(0.01 + var(--projects-focus) * 0.03)), transparent 22%);
}

.trace-stream {
  --trace-bleed: clamp(5rem, 12vw, 14rem);
  position: relative;
  width: calc(100% + (var(--trace-bleed) * 2));
  margin-inline: calc(var(--trace-bleed) * -1);
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 2.6rem;
  mask-image: none;
  -webkit-mask-image: none;
  z-index: 3;
  opacity: calc(0.3 + (var(--scene-visibility) * 0.7));
  transition: opacity 0.88s var(--ease-expo);
}

.trace-stream::before,
.trace-stream::after {
  content: '';
  position: absolute;
  inset: 12% 8%;
  pointer-events: none;
  z-index: 2;
  border-radius: 40px;
}

.trace-stream::before {
  background:
    radial-gradient(circle at 30% 45%, rgba(118, 153, 255, calc(0.08 + var(--projects-focus) * 0.08)), transparent 20%),
    radial-gradient(circle at 70% 55%, rgba(81, 212, 255, calc(0.05 + var(--projects-focus) * 0.06)), transparent 24%);
  filter: blur(32px);
}

.trace-stream::after {
  inset: 22% 18%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, calc(0.02 + var(--projects-focus) * 0.04)), transparent 34%);
  filter: blur(56px);
}

.trace-row {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.16);
  transform-style: preserve-3d;
  transform:
    translate3d(calc(var(--trace-row-shift-x, 0px) + var(--trace-depth-x) * 0.18), calc(var(--trace-row-shift-y, 0px) + var(--trace-depth-y) * 0.14), 0)
    rotateZ(var(--trace-row-tilt, 0deg));
}

.trace-row::before,
.trace-row::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.trace-row::before {
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.16), transparent 17%, transparent 72%, rgba(5, 7, 14, 0.24));
}

.trace-row::after {
  background: linear-gradient(
    90deg,
    rgba(5, 7, 14, 0.86) 0%,
    rgba(5, 7, 14, 0.26) 7%,
    rgba(5, 7, 14, 0.08) 14%,
    rgba(5, 7, 14, 0.08) 86%,
    rgba(5, 7, 14, 0.26) 93%,
    rgba(5, 7, 14, 0.86) 100%
  );
}

.trace-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: none;
  will-change: transform;
  opacity: calc(0.88 + var(--projects-focus) * 0.08);
  transition: opacity 1.1s var(--ease-expo);
}

.trace-row.is-reverse .trace-track {
  animation-direction: normal;
}

.trace-tile {
  position: relative;
  flex: 0 0 clamp(420px, 35vw, 580px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateZ(var(--trace-depth, 32px));
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.trace-tile + .trace-tile {
  margin-left: -1px;
}

.trace-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%);
  mix-blend-mode: screen;
  opacity: calc(0.16 + var(--projects-focus) * 0.06);
  z-index: 1;
}

.trace-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(3, 5, 11, 0.12), rgba(3, 5, 11, 0.42)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.06), transparent 32%);
  mix-blend-mode: screen;
  opacity: calc(0.32 + var(--projects-focus) * 0.08);
  z-index: 2;
}

.trace-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  filter: grayscale(0.86) saturate(0.38) brightness(0.72) contrast(1.03);
  opacity: calc(0.78 + var(--projects-focus) * 0.08);
  transform: scale(1.14);
  transform-origin: center center;
  transition: opacity 1.2s var(--ease-expo), filter 1.2s var(--ease-expo);
}

.trace-image-fallback {
  background:
    linear-gradient(145deg, rgba(248, 249, 251, 0.08), rgba(248, 249, 251, 0.01) 38%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.08), rgba(7, 9, 15, 0.42)),
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(24, 32, 54, 0.5), rgba(8, 10, 16, 0.78));
}

@keyframes trace-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.archive-shell {
  display: grid;
  gap: 1.5rem;
}

.archive-desc {
  max-width: 40rem;
  font-size: 0.98rem;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.archive-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  display: grid;
  gap: 0.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.archive-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.archive-stat strong {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1;
}

.archive-summary {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.taxonomy-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.taxonomy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.taxonomy-chip strong {
  color: var(--text-primary);
  font-size: 0.72rem;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-chip:hover {
  border-color: rgba(0, 210, 255, 0.44);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.52);
  color: var(--text-primary);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.works-grid.is-featured {
  margin-top: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.work-surface {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-surface.is-static {
  cursor: default;
}

.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(45, 54, 96, 0.92), rgba(7, 10, 20, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(0, 210, 255, 0.18), transparent 30%);
}

.work-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.01);
}

.work-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.02), rgba(4, 6, 12, 0.42) 46%, rgba(4, 6, 12, 0.86));
}

.work-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
    padding: 1.25rem 1.4rem 1.4rem;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-title {
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-access {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  padding: 1.2rem 1.2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.archive-access-copy {
  display: grid;
  gap: 0.45rem;
  max-width: 42rem;
}

.archive-access-copy p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
  line-height: 1.75;
}

.archive-subtle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.archive-subtle-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.work-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.archive-page .scene {
  min-height: auto;
}

.archive-page .archive-hero {
  min-height: 58vh;
  padding-top: 11rem;
}

.archive-page .archive-shell {
  padding-bottom: 4rem;
}

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

.text-center {
  text-align: center;
}

.scene-desc {
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-top: 1.25rem;
}

.section-stack {
  display: grid;
  gap: 3.2rem;
}

.section-intro {
  display: grid;
  gap: 0.75rem;
  opacity: calc(var(--scene-visibility) * 1);
  transform: translateY(calc((1 - var(--scene-visibility)) * 18px));
  transition: opacity 0.68s var(--ease-expo), transform 0.68s var(--ease-expo);
}

.section-title-wide {
  max-width: none;
}

.wide-copy {
  max-width: 48rem;
}

.expanded-grid,
.validation-grid,
.cases-grid,
.pillars-grid {
  margin-top: 0;
}

.morph-info {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  opacity: calc(var(--scene-visibility) * 1);
  transform: translateY(calc((1 - var(--scene-visibility)) * 20px));
  transition: opacity 0.68s var(--ease-expo), transform 0.68s var(--ease-expo);
}

.morph-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 0 22%),
    radial-gradient(circle at 78% 24%, rgba(0, 210, 255, 0.22), transparent 0 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 28%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.78), rgba(7, 10, 18, 0.48) 35%, rgba(2, 3, 6, 0.88));
  opacity: 0.94;
}

.morph-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(0, 210, 255, 0.22), transparent 18%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0, 210, 255, 0.18), transparent 44%);
  background-size: 100% 100%, 56px 56px, 56px 56px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.25));
  opacity: 0.55;
}

/* HUD Top Bar */
.hud-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    pointer-events: none;
    color: var(--text-secondary);
    background: linear-gradient(
      180deg,
      rgba(8, 10, 18, 0.68) 0%,
      rgba(8, 10, 18, 0.42) 32%,
      rgba(8, 10, 18, 0.22) 58%,
      rgba(8, 10, 18, 0.08) 82%,
      rgba(8, 10, 18, 0) 100%
    );
    backdrop-filter: blur(16px) saturate(112%);
    -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.hud-top::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.016) 18%,
      rgba(255, 255, 255, 0.006) 42%,
      rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.42;
    pointer-events: none;
}

.hud-top > * {
    position: relative;
    z-index: 1;
}

.brand {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.hud-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Nav & Footer Details */
.cinematic-nav {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  padding: 3rem 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5,5,8,0.8), transparent);
}

.nav-brand, .nav-menu {
  pointer-events: auto; /* 메뉴는 클릭 가능 */
}

.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), rgba(0, 210, 255, 0.9), rgba(0, 210, 255, 0.1));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.nav-menu a:hover {
  opacity: 1;
  color: var(--accent-glow);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  transform: scaleX(1);
}

.nav-menu a.is-active {
  opacity: 1;
  color: var(--text-primary);
}

.hero-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  width: 100%;
}

.tech-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.8;
  text-align: right;
  opacity: 0.4;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Nexus Links */
.nexus-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4rem;
  opacity: calc(var(--scene-visibility) * 1);
  transform: translateY(calc((1 - var(--scene-visibility)) * 18px));
  transition: opacity 0.95s var(--ease-expo), transform 0.95s var(--ease-expo);
}

.contact-copy {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  text-align: center;
}

.contact-actions {
  max-width: 32rem;
  margin: 2rem auto 0;
  display: grid;
  gap: 0.9rem;
}

.contact-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-primary-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 210, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.contact-inline-note {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-fallbacks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contact-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.84);
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  text-decoration: none;
}

.contact-secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.contact-secondary-button.is-copied {
  border-color: rgba(0, 210, 255, 0.34);
  background: rgba(0, 210, 255, 0.08);
  color: rgba(220, 248, 255, 0.96);
}

.contact-copy-source {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inquiry-lab {
  width: min(100%, 46rem);
  margin-top: 0.65rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028));
  display: grid;
  gap: 1.15rem;
}

.inquiry-lab[hidden] {
  display: none;
}

.inquiry-lab-intro {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.93rem;
  line-height: 1.7;
}

.inquiry-grid {
  display: grid;
  gap: 1rem;
}

.inquiry-group {
  display: grid;
  gap: 0.75rem;
}

.inquiry-group h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.inquiry-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.inquiry-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  min-height: 40px;
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.inquiry-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.inquiry-chip.is-selected {
  border-color: rgba(0, 210, 255, 0.34);
  background: rgba(0, 210, 255, 0.08);
  color: rgba(235, 250, 255, 0.96);
}

.inquiry-note-field {
  display: grid;
  gap: 0.55rem;
}

.inquiry-note-field span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.inquiry-note-field textarea {
  width: 100%;
  min-height: 112px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font: inherit;
  line-height: 1.65;
  resize: vertical;
}

.inquiry-note-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.inquiry-summary {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

.inquiry-summary-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.inquiry-summary p {
  margin: 0;
}

.inquiry-submit-form {
  display: grid;
  gap: 0.9rem;
}

.inquiry-contact-fields {
  display: grid;
  gap: 0.8rem;
}

.inquiry-field {
  display: grid;
  gap: 0.45rem;
}

.inquiry-field span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
}

.inquiry-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font: inherit;
  line-height: 1.4;
}

.inquiry-field input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.inquiry-field input:focus,
.inquiry-note-field textarea:focus {
  outline: none;
  border-color: rgba(0, 210, 255, 0.26);
  background: rgba(255, 255, 255, 0.055);
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.inquiry-summary-actions {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.inquiry-fallbacks {
  width: 100%;
}

.inquiry-submit-button {
  appearance: none;
  cursor: pointer;
}

.inquiry-summary-note {
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.7;
}

.inquiry-status {
  min-height: 1.5rem;
  text-align: center;
  font-size: 0.89rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.inquiry-status.is-success {
  color: rgba(177, 244, 207, 0.94);
}

.inquiry-status.is-error {
  color: rgba(255, 206, 206, 0.94);
}

.contact-email-inline {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.nexus-item {
  display: inline-block;
  font-size: 1.1rem; /* 한글 텍스트 디자인 요청 반영: 대폭 축소 */
  font-weight: 400;
  color: var(--text-secondary);
  transition: 0.4s var(--ease-expo);
  cursor: pointer;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  text-decoration: none;
}

.nexus-item:hover {
  color: var(--accent-glow);
  padding-left: 1rem;
}

/* Hyper Detail Overlay */
.hyper-detail-overlay {
  position: fixed;
  bottom: 40px; left: 40px;
  z-index: 2000;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.h-data {
  position: relative;
  padding-left: 15px;
}

.h-data::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 1px;
  background: var(--accent-glow);
}

/* Morphing Media Player */
.morph-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.morph-media {
  position: relative;
  aspect-ratio: 16/9;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, calc(0.018 + (var(--scene-visibility) * 0.028))),
      rgba(255, 255, 255, calc(0.008 + (var(--scene-visibility) * 0.014)))
    ),
    rgba(255, 255, 255, calc(0.012 + (var(--scene-visibility) * 0.018)));
  border: 1px solid rgba(255, 255, 255, calc(0.04 + (var(--scene-visibility) * 0.06)));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, calc(0.02 + (var(--scene-visibility) * 0.03))),
    0 calc(14px + (var(--scene-visibility) * 10px)) calc(24px + (var(--scene-visibility) * 20px)) rgba(0, 0, 0, calc(0.14 + (var(--scene-visibility) * 0.1)));
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  --enter-y: calc((1 - var(--scene-visibility)) * 20px);
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(0, calc(var(--lift, 0px) + var(--enter-y)), 0);
  transition: transform 0.64s var(--ease-expo), opacity 0.7s var(--ease-expo);
  opacity: calc(var(--scene-visibility) * 1);
}

.media-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  opacity: 0.7;
  position: relative;
  z-index: 2;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 18, 0.38);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.morph-media.is-interacting {
  border-color: rgba(146, 220, 255, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 52px rgba(0, 0, 0, 0.24);
}

.morph-media.is-interacting .media-label {
  transform: translate3d(0, -6px, 26px);
  border-color: rgba(145, 216, 255, 0.32);
  background: rgba(8, 14, 25, 0.52);
}

/* GLSL Canvas */
#gl-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1; /* 비디오 바로 위 */
  opacity: calc(0.22 + var(--projects-focus) * 0.12);
}

body.performance-tuned .noise-overlay {
  opacity: 0.015;
}

#nexus .giant-title {
  opacity: calc(var(--scene-visibility) * 1);
  transform: translateY(calc((1 - var(--scene-visibility)) * 18px));
  transition: opacity 0.68s var(--ease-expo), transform 0.68s var(--ease-expo);
}

.trace-archive-entry {
  width: fit-content;
  max-width: 100%;
  opacity: calc(var(--scene-visibility) * 1);
  transform: translateY(calc((1 - var(--scene-visibility)) * 16px));
  display: grid;
  place-items: center;
  margin-inline: auto;
  transition: opacity 0.72s var(--ease-expo), transform 0.72s var(--ease-expo);
}

.pillars-grid .cap-card:nth-child(1),
.process-grid .cap-card:nth-child(1),
.expanded-grid .cap-card:nth-child(1),
.validation-grid .cap-card:nth-child(1),
.cases-grid .cap-card:nth-child(1) {
  transition-delay: 0.06s;
}

.pillars-grid .cap-card:nth-child(2),
.process-grid .cap-card:nth-child(2),
.expanded-grid .cap-card:nth-child(2),
.validation-grid .cap-card:nth-child(2),
.cases-grid .cap-card:nth-child(2) {
  transition-delay: 0.12s;
}

.pillars-grid .cap-card:nth-child(3),
.process-grid .cap-card:nth-child(3),
.expanded-grid .cap-card:nth-child(3),
.validation-grid .cap-card:nth-child(3),
.cases-grid .cap-card:nth-child(3) {
  transition-delay: 0.18s;
}

.process-grid .cap-card:nth-child(4),
.expanded-grid .cap-card:nth-child(4),
.validation-grid .cap-card:nth-child(4),
.cases-grid .cap-card:nth-child(4) {
  transition-delay: 0.24s;
}

@media (max-width: 1024px) {
  .scene {
    min-height: auto;
    padding: 8rem 6vw;
  }

  .portfolio-scene {
    --trace-overlap: clamp(2.5rem, 7vh, 4.5rem);
    padding-top: calc(8rem + var(--trace-overlap));
    padding-bottom: calc(8rem + var(--trace-overlap));
  }

  .portfolio-trace-shell {
    --trace-bg-bleed: clamp(3rem, 10vw, 7rem);
    width: calc(100% - 1.25rem);
    max-width: calc(100% - 1.25rem);
    padding: 5rem 0 7rem;
  }

  .trace-stream {
    gap: 1rem;
    padding: 0.9rem 0 1.9rem;
  }

  .trace-track {
    gap: 0;
  }

  .trace-tile {
    flex-basis: clamp(320px, 82vw, 460px);
  }

  .trace-row {
    transform:
      translate3d(calc(var(--trace-row-shift-x, 0px) * 0.35), calc(var(--trace-row-shift-y, 0px) * 0.35), 0)
      rotateZ(calc(var(--trace-row-tilt, 0deg) * 0.6));
  }

  .capabilities-grid,
  .morph-container,
  .works-grid,
  .archive-stats {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .morph-container {
    gap: 32px;
  }

  .section-stack {
    gap: 2rem;
  }

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

  .works-grid.is-featured {
    grid-template-columns: 1fr;
  }

  .cinematic-nav {
    padding: 1.5rem 6vw;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hyper-detail-overlay {
    left: 24px;
    bottom: 24px;
  }
}

@media (max-width: 768px) {
  .custom-cursor,
  .custom-cursor-follower,
  .hyper-detail-overlay {
    display: none;
  }

  .trace-row:nth-child(2),
  .trace-row:nth-child(3),
  .trace-row:nth-child(4) {
    transform:
      translate3d(calc(var(--trace-row-shift-x, 0px) * 0.18), calc(var(--trace-row-shift-y, 0px) * 0.18), 0)
      rotateZ(calc(var(--trace-row-tilt, 0deg) * 0.22));
  }

  .trace-image {
    opacity: calc(0.72 + var(--projects-focus) * 0.06);
  }

  .hud-top {
    padding: 1rem 1.25rem;
    font-size: 0.58rem;
  }

  .brand {
    font-size: 0.64rem;
    max-width: 12rem;
    line-height: 1.4;
  }

  .hud-stats {
    gap: 0.75rem;
  }

  .cinematic-nav {
    position: static;
    background: none;
    padding: 0 1.25rem 1rem;
    margin-top: -1rem;
    justify-content: flex-start;
    gap: 1rem;
    z-index: 20;
  }

  .nav-brand {
    display: none;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .scene {
    padding: 6.5rem 1.25rem 4rem;
  }

  .giant-title {
    font-size: clamp(2.35rem, 15vw, 4rem);
    line-height: 0.98;
  }

  .variant-stamp {
    top: 72px;
    right: 14px;
    padding: 0.4rem 0.65rem;
    font-size: 0.56rem;
  }

  .hero-desc,
  .scene-desc {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .section-title {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }

  .hero-footer {
    padding-top: 1.25rem;
  }

  .scroll-ind,
  .tech-detail,
  .section-tag {
    font-size: 0.66rem;
    line-height: 1.6;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-stack {
    gap: 1.5rem;
  }

  .archive-filters {
    gap: 0.55rem;
  }

  .taxonomy-cluster {
    gap: 0.55rem;
  }

  .filter-chip {
    padding: 0.65rem 0.85rem;
    font-size: 0.64rem;
  }

  .taxonomy-chip {
    padding: 0.65rem 0.85rem;
    font-size: 0.62rem;
  }

  .work-body {
    padding: 1rem;
  }

  .work-title {
    font-size: 1rem;
  }

  .cap-card {
    padding: 1.5rem;
  }

  .cap-card h3 {
    font-size: 1.3rem;
  }

  .process-grid .cap-card h3,
  .cases-grid .cap-card h3,
  .expanded-grid .cap-card h3,
  .pillars-grid .cap-card h3 {
    font-size: 1.12rem;
  }

  .nexus-item {
    font-size: 0.98rem;
  }

  .archive-entry-link {
    padding: 0.65rem 0.85rem;
    font-size: 0.62rem;
  }
}
