/* =========================================================
   KIM GI HONG – Portfolio  (V-Works inspired dark theme)
========================================================= */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #111111;
  --bg-card:   #161616;
  --line:      #2a2a2a;
  --text:      #f2f2f2;
  --text-dim:  #9a9a9a;
  --accent:    #ff4d00;
  --header-h:  72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;          /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: break-word;     /* 긴 URL 등만 예외적으로 줄바꿈 */
}

.poppins { font-family: 'Poppins', 'Pretendard Variable', sans-serif; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.inner {
  width: min(1280px, 92%);
  margin: 0 auto;
}

.pc-only { display: inline; }
@media (max-width: 768px) { .pc-only { display: none; } }

/* ----------------- 커스텀 커서 ----------------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .25s, height .25s, opacity .25s;
  opacity: 0;
}
body:hover .cursor-dot { opacity: 1; }
.cursor-dot.grow { width: 56px; height: 56px; }
@media (hover: none) { .cursor-dot { display: none; } }

/* ----------------- Header ----------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: transform .4s;
}
.header.hide { transform: translateY(-100%); }

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

.logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }

.nav { display: flex; gap: 36px; }
.nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: .3s;
}

/* ----------------- Hero ----------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050505;
}
.hero-bg-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.4) 45%, var(--bg) 100%);
}

/* 거대 배경 타이포 */
.hero-giant {
  position: absolute;
  bottom: -2vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-weight: 900;
  font-size: clamp(80px, 16vw, 280px);
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.16);
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 5%;
}

.hero-eyebrow {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: .35em;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 7.5vw, 104px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.hero-sub {
  margin-top: 30px;
  font-size: clamp(14px, 1.8vw, 19px);
  color: var(--text-dim);
  letter-spacing: .12em;
}

.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-bar {
  width: 1px; height: 48px;
  background: rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.scroll-bar::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { top: -50%; }
  100% { top: 110%; }
}

/* ----------------- Marquee ----------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  display: inline-block;
  flex: 0 0 auto;
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.35);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ----------------- Statement ----------------- */
.statement {
  padding: clamp(110px, 16vw, 220px) 0;
  background: var(--bg);
  text-align: center;
}
.statement-eyebrow {
  font-size: 13px;
  letter-spacing: .5em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 34px;
}
.statement-title {
  font-size: clamp(30px, 5.4vw, 72px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.statement-title .char { display: inline-block; }
.t-line { display: block; }
.statement-sub {
  margin-top: 36px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.9;
}

/* 카운터 */
.stats {
  margin-top: clamp(70px, 9vw, 130px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 44px 12px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.stat-num .count { color: var(--accent); }
.stat-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: .02em;
}

/* ----------------- 공통 섹션 ----------------- */
.section { padding: clamp(90px, 12vw, 170px) 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: clamp(50px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
.sec-index {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.sec-title {
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.sub-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ----------------- About ----------------- */
.about { background: var(--bg-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
}
.about-photo {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 26px;
  aspect-ratio: 4 / 5;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.about-intro {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 26px;
}
.profile-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}
.profile-list strong {
  color: var(--text);
  min-width: 56px;
  font-weight: 600;
}

/* 스킬 (그룹형) */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}
.skill-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 16px;
}
.skill-list { display: flex; flex-direction: column; gap: 18px; }
.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.skill-item img {
  width: 38px; height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}
.skill-item img.ico-invert { filter: brightness(0) invert(1); }
.skill-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.skill-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.skill-role {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: .01em;
}
.skill-bar {
  margin-top: 8px;
  height: 4px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8a50);
  border-radius: 3px;
  transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* 경력 */
.exp-wrap { margin-top: clamp(70px, 9vw, 120px); }
.exp-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.exp-list li:last-child { border-bottom: 1px solid var(--line); }
.exp-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
}
.exp-list h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.exp-list h4 em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 10px;
}
.exp-list p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ----------------- Feature project ----------------- */
.project-feature { background: var(--bg); }
.project-feature.alt { background: var(--bg-soft); padding-top: clamp(90px, 12vw, 170px); }

.feature-head { margin-bottom: clamp(40px, 6vw, 70px); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .35em;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-title {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.feature-title .char { display: inline-block; }
.feature-tags {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: .06em;
}

.feature-summary {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(30px, 4vw, 50px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: clamp(50px, 7vw, 80px);
}
.feature-summary h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.feature-summary h4:not(:first-child) { margin-top: 30px; }
.feature-summary li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.feature-summary li strong {
  color: var(--text);
  min-width: 96px;
  font-weight: 600;
}
.feature-summary p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim);
}

/* 프로젝트 카드 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-grid.four { grid-template-columns: repeat(4, 1fr); }

.project-card { cursor: pointer; }
.project-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s;
  filter: grayscale(25%) brightness(.92);
}
.project-card:hover .project-thumb img,
.work-card:hover .work-thumb img {
  transform: scale(1.07);
  filter: grayscale(0%) brightness(1);
}
.project-meta { padding: 18px 4px 0; }
.project-meta h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}
.project-meta p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}
.project-link { display: block; }

/* ----------------- Work grid ----------------- */
.work { background: var(--bg); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 26px;
}
.work-card {
  position: relative;
  cursor: pointer;
}
.work-num {
  position: absolute;
  top: -14px; left: 14px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  background: var(--bg);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.work-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s;
  filter: grayscale(25%) brightness(.92);
}
.work-meta { padding: 18px 4px 0; }
.work-meta h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.work-meta p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ----------------- Contact ----------------- */
.contact {
  background: var(--bg-soft);
  padding: clamp(110px, 15vw, 200px) 0 0;
  text-align: center;
}
.contact-eyebrow {
  font-size: 13px;
  letter-spacing: .5em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 30px;
}
.contact-title {
  font-size: clamp(54px, 11vw, 160px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
}
.contact-title .char { display: inline-block; }
.contact-mail {
  display: inline-block;
  margin-top: 50px;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  transition: color .3s, letter-spacing .4s;
}
.contact-mail:hover {
  color: var(--accent);
  letter-spacing: .04em;
}

.footer {
  margin-top: clamp(80px, 10vw, 140px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .08em;
}

/* ----------------- Modal ----------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-content {
  position: relative;
  width: min(1100px, 92%);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content img,
.modal-content video {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  display: none;
}
.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  backdrop-filter: blur(6px);
}
.modal-close:hover,
.modal-prev:hover,
.modal-next:hover { background: var(--accent); border-color: var(--accent); }

.modal-close { top: -64px; right: 0; }
.modal-prev  { left: -16px; top: 50%; transform: translateY(-50%); }
.modal-next  { right: -16px; top: 50%; transform: translateY(-50%); }

/* ----------------- 애니메이션 기본 상태 ----------------- */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
}
html.no-gsap .fade-up { opacity: 1; transform: none; }

/* ----------------- 반응형 ----------------- */
@media (max-width: 1024px) {
  .project-grid,
  .project-grid.four { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-top: 34px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 34px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,10,.97);
    backdrop-filter: blur(16px);
    width: 70%;
    max-width: 320px;
    height: calc(100vh - var(--header-h));
    padding: 30px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22,1,.36,1);
    border-left: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }

  .menu-toggle { display: flex; }

  .about-grid,
  .feature-summary { grid-template-columns: 1fr; }

  .exp-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-grid,
  .project-grid.four,
  .work-grid { grid-template-columns: 1fr; }

  .modal-prev { left: 4px; }
  .modal-next { right: 4px; }
  .modal-close { top: -58px; right: 4px; }
}

/* ----------------- FILM (coverflow) ----------------- */
.film {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.film-bg {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-weight: 900;
  font-size: clamp(80px, 19vw, 360px);
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 77, 0, .20);
  user-select: none;
  pointer-events: none;
}
.film .inner { position: relative; z-index: 2; }

.film-intro {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.film-headline {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.film-accent { color: var(--accent); }
.film-sub {
  margin-top: 18px;
  font-size: clamp(14px, 1.7vw, 17px);
  color: var(--text-dim);
  line-height: 1.8;
}

/* coverflow */
.coverflow { position: relative; width: 100%; }
.cf-stage {
  position: relative;
  height: clamp(220px, 42vw, 540px);
  margin: 0 auto;
}
.cf-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 56vw, 860px);
  transform: translate(-50%, -50%);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .5s ease;
  will-change: transform, opacity;
}
.cf-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.cf-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cf-item:not(.is-active) .cf-card { filter: grayscale(45%) brightness(.5); }
.cf-item.is-active { cursor: pointer; }
.cf-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 99px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.cf-item.is-active .cf-badge { opacity: 1; transform: none; }

/* arrows */
.cf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s;
}
.cf-arrow:hover { background: var(--accent); border-color: var(--accent); }
.cf-prev { left: 2%; }
.cf-next { right: 2%; }

/* caption + dots */
.film-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 50px);
  flex-wrap: wrap;
}
.film-caption .cf-title {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.film-caption .cf-tags {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.cf-dots { display: flex; gap: 12px; }
.cf-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.cf-dots button.active { background: var(--accent); transform: scale(1.35); }

@media (max-width: 768px) {
  .cf-arrow { width: 44px; height: 44px; font-size: 20px; }
  .cf-prev { left: 0; }
  .cf-next { right: 0; }
  .cf-item { width: 78vw; }
  .film-footer { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* =========================================================
   추가 개선 — Hero 문구 · Featured · Workflow · Projects · Contact · A11y
========================================================= */

/* 앵커 이동 시 고정 헤더 높이만큼 오프셋 */
section[id] { scroll-margin-top: 96px; }
#project-venti,
#project-compose { scroll-margin-top: 100px; }

/* 키보드 포커스 표시 (마우스 클릭 시엔 표시 안 함) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.project-card:focus-visible,
.work-card:focus-visible,
.feat-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ----------------- Hero 한국어 리드 + 영문 키워드 ----------------- */
.hero-sub { line-height: 1.7; letter-spacing: .01em; }
.hero-keywords {
  margin-top: 18px;
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--accent);
}

/* ----------------- About 프로필 조정 ----------------- */
.profile-list li { padding: 9px 0; align-items: baseline; flex-wrap: wrap; }
.profile-list strong { min-width: 68px; }
.profile-list a { color: var(--text-dim); transition: color .3s; }
.profile-list a:hover { color: var(--accent); }

/* ----------------- Featured Projects ----------------- */
.featured { background: var(--bg); }
.featured .sec-head { margin-bottom: 24px; }
.featured-sub {
  color: var(--text-dim);
  font-size: clamp(14px, 1.7vw, 17px);
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 640px;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 데스크톱 4×1 */
  grid-auto-rows: 1fr;                    /* 네 카드 높이 동일 */
  gap: 22px;
}
.feat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s;
}
.feat-card:hover { border-color: var(--accent); }
.feat-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.feat-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1), filter .5s;
  filter: grayscale(20%) brightness(.92);
}
.feat-card:hover .feat-thumb img { transform: scale(1.06); filter: none; }
.feat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}
.feat-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.feat-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.feat-result {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}
.feat-context {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .62); /* 역할 목록보다 밝고 메인 문구보다 어둡게 */
  line-height: 1.6;
  margin-bottom: 12px;
}

/* 데스크톱 4열에서만 카테고리 2줄 기준 높이 통일 → 제목·본문 시작선 정렬 */
@media (min-width: 1025px) {
  .feat-cat { min-height: 36px; }
}
.feat-role { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.feat-arrow {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s, color .3s;
}
.feat-card:hover .feat-arrow { opacity: 1; transform: none; color: var(--accent); }

/* ----------------- AI Creative Workflow ----------------- */
.workflow { background: var(--bg-soft); }
.workflow-intro { max-width: 720px; margin-bottom: clamp(44px, 6vw, 70px); }
.workflow-headline {
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.workflow-desc {
  margin-top: 20px;
  font-size: clamp(14px, 1.7vw, 17px);
  color: var(--text-dim);
  line-height: 1.85;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
  max-width: 900px;
}
.flow-card {
  background: var(--bg-card);
  border: 1px solid #383838;
  border-radius: 14px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.flow-num { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
.flow-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  margin-bottom: 18px;
  min-height: 46px;
}
.flow-text { font-size: 15px; color: #b6b6b6; line-height: 1.7; flex: 1; }
.flow-tools {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

/* ----------------- Projects 카드 정보 위계 ----------------- */
.work-meta .work-type { font-size: 13px; color: var(--text); margin-top: 2px; }
.work-meta .work-role { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: 4px; }

/* ----------------- Contact 보조 문구 ----------------- */
.contact-note {
  margin-top: 26px;
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-dim);
  word-break: keep-all;
  overflow-wrap: normal;
}

/* ----------------- 신규 섹션 반응형 ----------------- */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); } /* 태블릿·모바일 2×2 */
}
@media (max-width: 767px) {
  .feat-grid { gap: 14px; }
  .feat-body { padding: 16px 14px 18px; }
  .feat-cat { font-size: 9.5px; margin-bottom: 10px; }
  .feat-title { font-size: 16px; margin-bottom: 8px; }
  .feat-result { font-size: 12px; margin-bottom: 6px; }
  .feat-context { font-size: 10.5px; margin-bottom: 9px; }
  .feat-role { font-size: 11.5px; }
  .feat-arrow { padding-top: 12px; font-size: 11px; }
}
@media (max-width: 768px) {
  .flow-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow-card { padding: 24px 22px; }
  .flow-title { min-height: 0; margin-bottom: 14px; }
  .skill-groups { grid-template-columns: 1fr; }
}

/* =========================================================
   추가 개선 v2 — 통계(SINCE) · 교육 위계 · 모달 정보 · picture · 모션감소
========================================================= */

/* picture 래퍼가 레이아웃에 영향 주지 않도록 (기존 img 스타일 그대로 적용) */
picture { display: contents; }

/* 통계 — SINCE 2012 */
.stat-since {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.stat-since .since-label {
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-dim);
}

/* EDUCATION — 경력보다 한 단계 낮은 위계 */
.sub-title-edu { margin-top: clamp(40px, 5vw, 64px); }
.edu-list li { opacity: .9; }
.edu-list h4 { font-size: 16px; }

/* 모달 정보 (제목 + 카운터) */
.modal-info {
  position: absolute;
  left: 0;
  bottom: -52px;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
.modal-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: .08em;
  flex-shrink: 0;
}
.modal-prev.is-hidden,
.modal-next.is-hidden { display: none; }

@media (max-width: 768px) {
  .modal-info {
    bottom: -46px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .modal-title { font-size: 13px; }
  .modal-counter { font-size: 12px; }
}

/* 모션 감소 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   추가 v3 — AI 프로젝트(바이브 코딩) · FILM 분리(편집/직접 촬영)
========================================================= */

/* ----------------- AI Built Projects ----------------- */
.ai-projects { margin-top: 0; }
.ai-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 18px;
}
.ai-headline {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.ai-desc {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(14px, 1.7vw, 16px);
  color: var(--text-dim);
  line-height: 1.85;
}
.ai-grid {
  margin-top: clamp(34px, 5vw, 50px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.ai-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s;
}
.ai-card:hover { border-color: var(--accent); }
.ai-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.ai-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.ai-card:hover .ai-thumb img { transform: scale(1.04); }
.ai-body { padding: 24px 24px 26px; }
.ai-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.ai-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.ai-result { font-size: 14px; color: var(--text); line-height: 1.65; margin-bottom: 8px; }
.ai-role { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.ai-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .3s, border-color .3s;
}
.ai-link:hover,
.ai-card:hover .ai-link { color: var(--accent); border-color: var(--accent); }

/* ----------------- FILM — 인터뷰(세로형) 스트립 ----------------- */
.shorts-wrap { margin-top: clamp(60px, 8vw, 100px); }
.shorts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.shorts-title {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.shorts-sub { font-size: 13.5px; color: var(--text-dim); }
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 900px;
}
.shorts-card { cursor: pointer; }
.shorts-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.shorts-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s;
  filter: grayscale(20%) brightness(.92);
}
.shorts-card:hover .shorts-thumb img { transform: scale(1.05); filter: none; }
.shorts-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  background: var(--accent);
  padding: 7px 12px;
  border-radius: 99px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.shorts-card:hover .shorts-badge { opacity: 1; transform: none; }

/* ----------------- FILM — 직접 촬영 ----------------- */
.shoot { position: relative; background: var(--bg-soft); overflow: hidden; }
.shoot-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-weight: 900;
  font-size: clamp(80px, 17vw, 320px);
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.07);
  user-select: none;
  pointer-events: none;
}
.shoot .inner { position: relative; z-index: 2; }
.shoot-intro { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.shoot-headline {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.shoot-sub {
  margin-top: 18px;
  font-size: clamp(14px, 1.7vw, 17px);
  color: var(--text-dim);
  line-height: 1.85;
}
.shoot-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 26px;
  align-items: start;
}
.shoot-card { cursor: pointer; }
.shoot-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.shoot-thumb.wide { aspect-ratio: 16 / 9; }
.shoot-thumb.tall { aspect-ratio: 9 / 16; }
.shoot-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s;
  filter: grayscale(15%) brightness(.94);
}
.shoot-card:hover .shoot-thumb img { transform: scale(1.04); filter: none; }
.shoot-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 99px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.shoot-card:hover .shoot-badge { opacity: 1; transform: none; }
.shoot-meta { padding: 18px 4px 0; }
.shoot-meta h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.shoot-meta p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* 반응형 */
@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: 1fr; }
  .shoot-grid { grid-template-columns: 1fr; }
  .shoot-thumb.tall { max-width: 420px; }
}
@media (max-width: 768px) {
  .shorts-grid { grid-template-columns: 1fr; max-width: 420px; }
}
