/* ================================================================
   구재희 포트폴리오 — style.css v5
   변환 서사 (Transformation Narrative) 기반
   Design ref: Instrument.com
   v5: 구재희 중심 재설계, About 신설, Journey+Broadcasting 통합,
       Recognition(Press+Award) 통합, 다국어 lang-switch, 변환 카드
   ================================================================ */

/* ── Variables ── */
:root {
  --color-bg: #0a0a0a;
  --color-bg-light: #f7f7f7;
  --color-bg-alt: #ffffff;
  --color-text: #1a1a1a;
  --color-text-inv: #ffffff;
  --color-text-muted: #888888;
  --color-accent: #00B8FF;
  --color-border: #e0e0e0;
  --color-border-dark: #2a2a2a;

  --t-display: clamp(2.5rem, 5vw, 4.5rem);
  --t-headline-1: clamp(2rem, 3.5vw, 3rem);
  --t-headline-2: clamp(1.5rem, 2.2vw, 2rem);
  --t-headline-3: clamp(1.25rem, 1.8vw, 1.5rem);
  --t-body: clamp(1rem, 1.2vw, 1.125rem);
  --t-body-sm: clamp(0.875rem, 1vw, 0.9375rem);
  --t-caption: clamp(0.75rem, 0.85vw, 0.8125rem);
  --t-overline: clamp(0.6875rem, 0.75vw, 0.75rem);

  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-96: 6rem;
  --space-128: 8rem;
  --space-chapter: 10rem;
  --space-side: clamp(1.25rem, 5vw, 5rem);

  --radius: 8px;
  --nav-height: 64px;
}

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

/* ── Base ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system,
               BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--color-accent);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Accessibility: Focus Visible ── */
:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:focus-visible,
.filter-tab:focus-visible,
.play-btn:focus-visible,
.modal__close:focus-visible,
.nav__link:focus-visible,
.nav-overlay a:focus-visible,
.lang-switch__btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.35);
  border-radius: var(--radius);
}

ul,
ol {
  list-style: none;
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── Version Tag ── */
/* style.css v5 — 구재희 PORTFOLIO */

/* ── Noise/Grain Overlay (v4) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-conic-gradient(#808080 0.0001%, transparent 0.0002%)
              50% 50% / 200px 200px;
  mix-blend-mode: overlay;
}


/* ================================================================
   Container
   ================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-side);
}


/* ================================================================
   Section
   ================================================================ */

.section {
  padding: var(--space-128) 0;
}

.section--dark {
  background: var(--color-bg);
  color: var(--color-text-inv);
}
.section--dark .section-header__title {
  color: var(--color-text-inv);
}
.section--dark .section-header {
  border-top-color: var(--color-border-dark);
}

.section--light {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.section--hero {
  background: var(--color-bg);
  color: var(--color-text-inv);
  padding: 0;
}

.section--chapter-start {
  padding-top: var(--space-chapter);
}
@media (max-width: 767px) {
  .section--chapter-start {
    padding-top: var(--space-96);
  }
}


/* ================================================================
   Section Header
   ================================================================ */

.section-header {
  margin-bottom: var(--space-64);
}

.section-header__number {
  display: block;
  font-size: var(--t-overline);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.section-header__title {
  font-size: var(--t-headline-1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-header__desc {
  font-size: var(--t-body);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
}


/* ================================================================
   Common Components
   ================================================================ */

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--t-body-sm);
  font-weight: 500;
  padding: var(--space-12) var(--space-24);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: all 0.2s ease-out;
}
.btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

/* ── Media Wrap ── */
.media-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}
.media-wrap--16x9 {
  aspect-ratio: 16 / 9;
}
.media-wrap--3x4 {
  aspect-ratio: 3 / 4;
}
.media-wrap--1x1 {
  aspect-ratio: 1 / 1;
}
.media-wrap img,
.media-wrap video,
.media-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-wrap img {
  transition: transform 0.3s ease-out;
}
.media-wrap:hover img {
  transform: scale(1.03);
}

/* ── Play Button (shared) ── */
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s;
}
.play-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}
.play-btn::after {
  content: '\25B6';
  font-size: 2rem;
  color: white;
}

/* ── Reveal (scroll animation) ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Transitional Copy (v3/v4) ── */
.transitional-copy {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-64);
  padding-top: var(--space-32);
}

/* ── Placeholder Gradient ── */
.placeholder-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

/* ── Fantasy Underline Hover (v4) ── */
.link-hover {
  position: relative;
}
.link-hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.link-hover:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* ================================================================
   Navigation
   ================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.3s ease-out;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: var(--t-body-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-inv);
  white-space: nowrap;
}

.nav__menu {
  display: none;
  gap: var(--space-32);
}
@media (min-width: 768px) {
  .nav__menu {
    display: flex;
  }
  .nav__hamburger {
    display: none;
  }
}

.nav__link {
  font-size: var(--t-body-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.nav__link.active,
.nav__link:hover {
  color: var(--color-text-inv);
}
.nav__link--cta {
  padding: var(--space-8) var(--space-16);
  border: 1px solid var(--color-text-muted);
  border-radius: var(--radius);
}

/* Hamburger */
.nav__hamburger {
  width: 24px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-inv);
  transition: 0.3s;
}
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 10, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay a {
  font-size: var(--t-headline-2);
  color: var(--color-text-inv);
  font-weight: 500;
}


/* ── Language Switcher (v5) ── */
.lang-switch {
  display: flex;
  gap: 2px;
  align-items: center;
}

.lang-switch__btn {
  font-size: var(--t-overline);
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  color: var(--color-text-muted);
  border-radius: 4px;
  transition: all 0.2s ease-out;
  letter-spacing: 0.05em;
}

.lang-switch__btn.active,
.lang-switch__btn:hover {
  color: var(--color-text-inv);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 767px) {
  .lang-switch {
    display: none;
  }
}


/* ================================================================
   1. Hero
   ================================================================ */

.section--hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Cinematic gradient background */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 35%, rgba(0, 184, 255, 0.07) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(0, 184, 255, 0.03) 0%, transparent 100%),
    var(--color-bg);
}

/* Profile photo */
.hero__photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-24);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 60px rgba(0, 184, 255, 0.1);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-side);
  max-width: 780px;
}

.hero__name {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-inv);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
}

/* Role subtitle — 이름 바로 아래, 타이틀 위 */
.hero__role {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-24);
}

.hero__tagline {
  font-size: var(--t-headline-3);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-bottom: var(--space-32);
}

.hero__transformation {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-32);
}

.hero__line--1 {
  font-size: var(--t-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
}
.hero__line--2 {
  font-size: var(--t-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 2;
}
.hero__line--3 {
  font-size: var(--t-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
}

.hero__identity {
  font-size: var(--t-headline-3);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-32);
}

/* Actions row */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.hero__cta {
  color: var(--color-text-inv);
}

/* Play button — inline text style */
.hero__play {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.hero__play:hover {
  color: var(--color-text-inv);
}
.hero__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  color: white;
}
.hero__play:hover .hero__play-icon {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* Sequential appear animation */
.hero__line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hero__line.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hero__photo {
    width: 80px;
    height: 80px;
  }
  .hero__role {
    margin-bottom: var(--space-32);
  }
}


/* ================================================================
   2. Projects
   ================================================================ */

/* ── Signature Case Study ── */
.signature {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-32);
  margin-bottom: var(--space-48);
}

.signature__headline {
  font-size: var(--t-headline-2);
  font-weight: 600;
  margin-bottom: var(--space-24);
}

.signature__timeline {
  display: flex;
  gap: var(--space-24);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
}

.signature__step {
  flex: 1;
  min-width: 200px;
}

.signature__year {
  font-size: var(--t-overline);
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-4);
}

.signature__step p {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
}

.signature__step--highlight {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-16);
}

.signature__quote {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-16);
}

.signature__meta {
  font-size: var(--t-caption);
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-4);
}

@media (max-width: 767px) {
  .signature {
    padding: var(--space-24);
  }
  .signature__timeline {
    flex-direction: column;
  }
}

/* ── Filter Bar (pill style, v4) ── */
.filter-bar {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-32);
}

.filter-tab {
  font-size: var(--t-caption);
  font-weight: 500;
  padding: var(--space-8) var(--space-16);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--color-text);
  color: var(--color-text-inv);
  border-color: var(--color-text);
}

/* ── Tier 1: Bento Grid (v4) ── */
.project-grid--tier1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  margin-bottom: var(--space-48);
}

@media (min-width: 768px) {
  .project-grid--tier1 {
    grid-template-columns: 2fr 1fr;
  }
  .project-card--large:nth-child(1) {
    grid-column: 1;
  }
  .project-card--small:nth-child(2) {
    grid-column: 2;
  }
  .project-card--small:nth-child(3) {
    grid-column: 1;
  }
  .project-card--large:nth-child(4) {
    grid-column: 2;
  }
  .project-card--full {
    grid-column: 1 / -1;
  }
}

/* ── Project Card (Tier 1) ── */
.project-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-24);
  transition: opacity 0.3s ease-out, filter 0.3s ease-out;
}

.project-card__transform {
  font-size: var(--t-body);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
}

.project-card__title {
  font-size: var(--t-headline-3);
  font-weight: 600;
  margin-top: var(--space-12);
}

.project-card__meta {
  font-size: var(--t-caption);
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-4);
}

/* ── Tier 2: 4-Column Bento (v4) ── */
.project-grid--tier2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}
@media (min-width: 768px) {
  .project-grid--tier2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .project-grid--tier2 {
    grid-template-columns: repeat(4, 1fr);
  }
  .project-card-sm--span2 {
    grid-column: span 2;
  }
}

.project-card-sm {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-16);
  transition: opacity 0.3s ease-out, filter 0.3s ease-out;
}

.project-card-sm__meta {
  font-size: var(--t-overline);
  font-weight: 500;
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-8);
}

.project-card-sm h4 {
  font-size: var(--t-body-sm);
  font-weight: 600;
  margin-top: var(--space-4);
}

.project-card-sm__link {
  display: inline-block;
  font-size: var(--t-overline);
  color: var(--color-accent);
  margin-top: var(--space-8);
}

/* ── Dim Hover (v4 — Tier 1 + Tier 2) ── */
.project-grid:hover .project-card,
.project-grid:hover .project-card-sm {
  opacity: 0.5;
  filter: brightness(0.7);
}
.project-grid:hover .project-card:hover,
.project-grid:hover .project-card-sm:hover {
  opacity: 1;
  filter: brightness(1);
}

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-top: var(--space-32);
  font-size: var(--t-caption);
  color: var(--color-text-muted);
}

.marquee__track {
  display: flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  100% {
    transform: translateX(-50%);
  }
}


/* ================================================================
   3. Numbers
   ================================================================ */

.numbers__context {
  font-size: var(--t-body);
  color: var(--color-text-inv);
  text-align: center;
  margin-bottom: var(--space-48);
  opacity: 0.8;
}

/* Main number — Display-sized */
.numbers__main {
  text-align: center;
  margin-bottom: var(--space-48);
}

.numbers__main-value {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.numbers__main-suffix {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-accent);
}

.numbers__main-label {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
}

/* Support cards (5-column) */
.numbers__support {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
  text-align: center;
}
@media (min-width: 768px) {
  .numbers__support {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .numbers__support {
    grid-template-columns: repeat(5, 1fr);
  }
}

.number-card__value {
  font-size: var(--t-headline-1);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.number-card__suffix {
  font-size: var(--t-headline-3);
  font-weight: 600;
  color: var(--color-accent);
}

.number-card__label {
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.number-card__sub {
  font-size: var(--t-overline);
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-top: var(--space-4);
}


/* ================================================================
   3-B. About (v5 — Resume 대체)
   ================================================================ */

/* ── Blockquote 인용문 ── */
.about__quote {
  font-size: var(--t-headline-3);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  text-align: center;
  border: none;
  padding: var(--space-48) 0;
  max-width: 720px;
  margin: 0 auto var(--space-64);
  font-style: normal;
}

/* ── 스토리 (사진 + 서사 텍스트) ── */
.about__story {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-48);
  align-items: start;
  margin-bottom: var(--space-64);
}

.about__photo {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about__story-text h3 {
  font-size: var(--t-headline-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: var(--space-24);
}

.about__story-text p {
  font-size: var(--t-body);
  line-height: 1.85;
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
}

.about__story-text p strong {
  color: var(--color-text);
  font-weight: 600;
}

.about__story-text p:last-of-type {
  margin-bottom: var(--space-24);
}

.about__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-16);
}
.about__facts li {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  padding-left: 1em;
  text-indent: -1em;
}
.about__facts li::before {
  content: '· ';
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 767px) {
  .about__story {
    grid-template-columns: 1fr;
  }
  .about__photo {
    width: 140px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }
}

/* ── 핵심 역량 ── */
.about__core {
  margin: 0 auto var(--space-48);
  max-width: 720px;
}
.about__core li {
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.8;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: 1.5em;
  text-indent: -1.5em;
}
.about__core li::before {
  content: '→  ';
  color: var(--color-accent);
  font-weight: 700;
}

/* ── 변환 카드 (Before → After) ── */
.about__transforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-64);
}
@media (min-width: 768px) {
  .about__transforms {
    grid-template-columns: repeat(2, 1fr);
  }
}

.transform-card {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease-out, background 0.3s ease-out;
}
.transform-card:hover {
  border-color: var(--color-accent);
  background: rgba(0, 184, 255, 0.03);
}
.transform-card__before {
  color: var(--color-text-muted);
  font-size: var(--t-body-sm);
  flex: 1;
}
.transform-card__arrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--t-body);
  flex-shrink: 0;
}
.transform-card__after {
  font-weight: 600;
  font-size: var(--t-body-sm);
  flex: 1;
  text-align: right;
}

/* ── 저서·특허 갤러리 (About) ── */
.about__evidence {
  margin-bottom: var(--space-48);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24) var(--space-32);
  max-width: 680px;
  margin: 0 auto;
  align-items: start;
}
@media (min-width: 768px) {
  .about-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-32);
  }
}

.about-gallery__item {
  text-align: center;
}
.about-gallery__item img {
  width: 100%;
  max-width: 160px;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.about-gallery__label {
  font-size: var(--t-overline);
  color: var(--color-text-muted);
  margin-top: var(--space-12);
  line-height: 1.5;
}


/* ================================================================
   4. Resume (v4 — v5에서는 About으로 대체됨, CSS 유지)
   ================================================================ */

/* ── Block A: Profile ── */
.resume-profile {
  display: flex;
  gap: var(--space-24);
  align-items: flex-start;
  margin-bottom: var(--space-32);
}

.resume-profile__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
}

.resume-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume-profile__info h3 {
  font-size: var(--t-headline-3);
  font-weight: 600;
}

.resume-profile__info h3 small {
  font-weight: 400;
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
}

.resume-profile__info p {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.resume-profile__info a {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .resume-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .resume-profile__photo {
    width: 100px;
    height: 100px;
  }
}

/* ── Block B: Core Capabilities ── */
.resume-core {
  margin-bottom: var(--space-24);
}

.resume-core li {
  font-size: var(--t-body-sm);
  line-height: 1.8;
  padding-left: 1em;
  text-indent: -1em;
}

.resume-core li::before {
  content: '\00B7  ';
  color: var(--color-accent);
  font-weight: 700;
}

/* ── Block C: Genre Tags ── */
.resume-tags {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-32);
}

.genre-tag {
  font-size: var(--t-caption);
  padding: var(--space-8) var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.genre-tag:hover {
  background: var(--color-text);
  color: var(--color-text-inv);
  border-color: var(--color-text);
}

.genre-tag span {
  color: var(--color-accent);
  font-weight: 600;
  margin-left: var(--space-4);
}

/* ── Block D: Career ── */
.resume-career {
  margin-bottom: var(--space-32);
}

.career-row {
  display: flex;
  gap: var(--space-16);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
}

.career-year {
  flex-shrink: 0;
  width: 80px;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--color-accent);
}

.career-row p {
  font-size: var(--t-body-sm);
}

/* ── Block E: Evidence (v4) ── */
.resume-evidence {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}
@media (min-width: 768px) {
  .resume-evidence {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.evidence-group h4 {
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-12);
}

.evidence-items {
  display: flex;
  gap: var(--space-12);
}

.evidence-item {
  width: 80px;
}

.evidence-item img {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.evidence-item--text {
  width: auto;
}

.evidence-item__title {
  font-size: var(--t-caption);
  font-weight: 500;
}

.evidence-item--text span {
  font-size: var(--t-overline);
  color: var(--color-text-muted);
}

.evidence-badges {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.badge {
  font-size: var(--t-overline);
  padding: var(--space-4) var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
}

/* ── Block F: Purpose Statement (v4) ── */
.resume-purpose {
  font-size: var(--t-body);
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
  margin-bottom: var(--space-32);
  padding: var(--space-24);
}


/* ================================================================
   5. Timeline (Journey)
   ================================================================ */

.journey__intro {
  font-size: var(--t-headline-3);
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-64);
  line-height: 1.6;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--space-32);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__node {
  position: relative;
  padding-bottom: var(--space-48);
  padding-left: var(--space-24);
}

.timeline__node::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-32) - 4px);
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  border: 2px solid var(--color-bg-light);
}

.timeline__year {
  font-size: var(--t-overline);
  font-weight: 700;
  color: var(--color-accent);
}

.timeline__node h4 {
  font-size: var(--t-headline-3);
  font-weight: 600;
  margin-top: var(--space-4);
}

.timeline__node p {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* Pivot nodes (accent left border, larger dot) */
.timeline__node--pivot {
  border-left: 4px solid var(--color-accent);
  padding-left: calc(var(--space-24) - 4px);
}

.timeline__node--pivot::before {
  background: var(--color-accent);
  width: 14px;
  height: 14px;
  left: calc(-1 * var(--space-32) - 6px);
}

.timeline__node--pivot h4 {
  font-size: calc(var(--t-headline-3) * 1.2);
}

/* Timeline image */
.timeline__image {
  margin-top: var(--space-12);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 300px;
}

/* Desktop: 타임라인 중앙 선, 노드는 모두 오른쪽 (v5 Phase 라벨과 호환) */
@media (min-width: 768px) {
  .timeline {
    padding-left: var(--space-64);
  }
  .timeline::before {
    left: 0;
  }
  .timeline__node {
    padding-left: var(--space-48);
    text-align: left;
    transform: none;
  }
  .timeline__node::before {
    left: calc(-1 * var(--space-64) + var(--space-24) - 4px);
    right: auto;
  }
  .timeline__node--pivot {
    border-left: 4px solid var(--color-accent);
    border-right: none;
    padding-left: calc(var(--space-48) - 4px);
    padding-right: 0;
    text-align: left;
    transform: none;
  }
  .timeline__node--pivot::before {
    left: calc(-1 * var(--space-64) + var(--space-24) - 6px);
    right: auto;
  }
  .timeline__node--pivot:nth-child(odd) {
    border-left: 4px solid var(--color-accent);
    border-right: none;
    padding-right: 0;
  }
  .timeline__node--pivot:nth-child(odd)::before {
    left: calc(-1 * var(--space-64) + var(--space-24) - 6px);
    right: auto;
  }
  .timeline__node:nth-child(odd) {
    text-align: left;
    padding-left: var(--space-48);
    padding-right: 0;
    transform: none;
  }
  .timeline__node:nth-child(odd) .timeline__image {
    margin-left: 0;
  }
  .timeline__node:nth-child(odd)::before {
    left: calc(-1 * var(--space-64) + var(--space-24) - 4px);
    right: auto;
  }
  .timeline__phase {
    padding-left: 0;
    margin-left: 0;
    text-align: left;
    transform: none;
    width: 100%;
  }
}


/* ── Timeline Phase Label (v5) ── */
.timeline__phase {
  font-size: var(--t-overline);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 2px solid var(--color-accent);
  margin-top: var(--space-64);
  margin-bottom: var(--space-8);
  /* Phase는 타임라인 컬럼 중앙 선 왼편에 표시 */
}

/* Phase는 timeline__node nth-child 계산에서 제외 */
@media (min-width: 768px) {
  .timeline__phase {
    grid-column: 1 / -1;
    text-align: center;
    /* 타임라인이 column 기반이므로 full-width 표시 */
    padding-left: 0;
    transform: none;
    /* 양쪽 타임라인 구분선 역할 */
    position: relative;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Timeline Pivot Quote (v5) ── */
.timeline__pivot-quote {
  font-size: var(--t-headline-3);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  border-left: none;
  padding: 0;
  margin: var(--space-8) 0;
  line-height: 1.6;
}

/* ── Timeline Quote paragraph ── */
.timeline__quote {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-4);
}


/* ================================================================
   6. Broadcasting (v4 — v5에서는 Journey에 통합됨, CSS 유지)
   ================================================================ */

.broadcast__intro {
  font-size: var(--t-body);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-48);
  line-height: 1.8;
}

/* v4: 3-column responsive grid (NOT horizontal scroll) */
.broadcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}
@media (min-width: 768px) {
  .broadcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .broadcast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.broadcast-card__title {
  font-size: var(--t-headline-3);
  font-weight: 600;
  color: var(--color-text-inv);
  margin-top: var(--space-12);
}

.broadcast-card__desc {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.broadcast-card__year {
  font-size: var(--t-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  display: block;
}


/* ================================================================
   7. Press
   ================================================================ */

/* v4: 2-column responsive grid (NOT horizontal scroll) */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}
@media (min-width: 768px) {
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.press-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.press-card__source {
  font-size: var(--t-overline);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.press-card__title {
  font-size: var(--t-headline-3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.press-card__quote {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.press-card__link {
  font-size: var(--t-caption);
  color: var(--color-accent);
  margin-top: auto;
}


/* ================================================================
   7-B. Recognition (v5 — Press + Awards 통합)
   ================================================================ */

/* ── 수상 하이라이트 ── */
.recognition__award {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-16);
  background: rgba(0, 184, 255, 0.06);
  border: 1px solid rgba(0, 184, 255, 0.2);
  border-radius: var(--radius);
  padding: var(--space-32);
  margin-bottom: var(--space-64);
}

.recognition__badge {
  display: inline-block;
  flex-shrink: 0;
  font-size: var(--t-body-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--space-8) var(--space-16);
  background: var(--color-accent);
  color: #000;
  border-radius: 4px;
  white-space: nowrap;
}

.recognition__award-desc {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ================================================================
   8. Contact + Footer
   ================================================================ */

.contact__headline {
  font-size: var(--t-headline-2);
  font-weight: 400;
  color: var(--color-text-inv);
  margin-bottom: var(--space-48);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-32);
}

.contact__company,
.contact__name,
.contact__address {
  font-size: var(--t-body-sm);
  color: var(--color-text-muted);
}

.contact__phone a,
.contact__web a,
.contact__email a {
  font-size: var(--t-body);
  color: var(--color-accent);
}

.contact__social {
  display: flex;
  justify-content: center;
  gap: var(--space-24);
  margin-bottom: var(--space-48);
}

.contact__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.2s ease-out;
}

.contact__social a:hover {
  color: var(--color-text-inv);
}

.contact__social svg {
  width: 24px;
  height: 24px;
}

.footer {
  text-align: center;
  padding: var(--space-24) var(--space-side);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-dark);
}

.footer p {
  font-size: var(--t-caption);
  color: var(--color-text-muted);
}


/* ================================================================
   Modal (37 Projects)
   ================================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal__content {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-32);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
}

.modal__note {
  font-size: var(--t-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
}

.modal__header h3 {
  font-size: var(--t-headline-3);
  font-weight: 600;
}

.modal__close {
  font-size: var(--t-headline-2);
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-body-sm);
}

.modal__table th {
  text-align: left;
  font-weight: 600;
  padding: var(--space-8);
  border-bottom: 2px solid var(--color-border);
  font-size: var(--t-caption);
  color: var(--color-text-muted);
}

.modal__table td {
  padding: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.modal__table tfoot td {
  font-weight: 600;
  border-top: 2px solid var(--color-border);
}
