* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
body { font-family: var(--font-sans); color: var(--hero-ink); background: var(--hero-ground); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.work-modal-scroll:focus-visible, .work-modal-info:focus-visible { outline-offset: -2px; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 88px; padding: 0 64px;
  display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
}
.gnb {
  position: relative; display: flex; gap: 44px;
  font-family: var(--font-hero); font-size: var(--fs-nav); font-weight: 400; letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(40,24,50,.35);
  pointer-events: auto;
}
.gnb a { position: relative; z-index: 1; transition: color .4s; }
.gnb-indicator { display: none; }

/* 히어로를 지나면: 위쪽 가운데 캡슐 메뉴 */
.header.is-floating { justify-content: center; height: 76px; }
.header.is-floating .gnb {
  gap: 2px; padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(var(--c-shadow-rgb), .12), 0 0 0 1px var(--line);
  color: var(--ink); text-shadow: none;
  font-size: var(--fs-body-sm); letter-spacing: .04em;
  animation: navDrop .5s cubic-bezier(.2, .8, .2, 1);
}
.header.is-floating .gnb a { padding: 9px 20px; border-radius: var(--radius-pill); }
.header.is-floating .gnb a:hover { color: var(--accent-hover); }
.header.is-floating .gnb a[aria-current="true"] { color: var(--on-accent); }
.header.is-floating .gnb-indicator {
  display: block; position: absolute; top: 6px; left: 0; height: calc(100% - 12px);
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: var(--radius-pill); background: var(--accent);
  opacity: var(--on, 0);
  transition: transform .45s cubic-bezier(.3, .7, .2, 1), width .45s cubic-bezier(.3, .7, .2, 1), opacity .3s;
}
@keyframes navDrop { from { opacity: 0; translate: 0 -12px; } }

/* 오른쪽 진주 점 내비게이션 */
.pearl-nav {
  position: fixed; right: 32px; top: 50%; z-index: 100;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  opacity: 0; translate: 12px -50%; pointer-events: none;
  transition: opacity .5s, translate .5s cubic-bezier(.2, .8, .2, 1);
}
.pearl-nav.is-visible { opacity: 1; translate: 0 -50%; pointer-events: auto; }
.pearl-nav::before {
  content: ""; position: absolute; right: 21px; top: 22px; bottom: 22px; width: 1px;
  background: var(--line-soft);
}
.pearl-nav a { position: relative; display: flex; align-items: center; gap: var(--space-2); height: 44px; }
.pearl-nav-label {
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .9); box-shadow: 0 4px 16px rgba(var(--c-shadow-rgb), .1);
  font-size: var(--fs-body-sm); color: var(--ink); white-space: nowrap;
  opacity: 0; translate: 8px 0; transition: opacity .3s, translate .3s;
}
.pearl-nav a:hover .pearl-nav-label,
.pearl-nav a:focus-visible .pearl-nav-label { opacity: 1; translate: 0 0; }
.pearl-nav a[aria-current="true"] .pearl-nav-label { color: var(--accent-text); font-weight: 500; }
.pearl-nav a:focus-visible { outline: none; }
.pearl-dot {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
}
.pearl-dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pearl) 0%, var(--pearl-mid) 45%, var(--pearl-edge) 100%);
  box-shadow: var(--shadow-pearl);
  transition: width .4s cubic-bezier(.3, .7, .2, 1), height .4s cubic-bezier(.3, .7, .2, 1), box-shadow .4s;
}
.pearl-nav a:hover .pearl-dot::after { width: 14px; height: 14px; }
.pearl-nav a[aria-current="true"] .pearl-dot::after {
  width: 20px; height: 20px; background: var(--accent);
  box-shadow: var(--shadow-pearl), 0 0 0 4px var(--accent-tint);
}
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--hero-ground) url(../images/hero-end.jpg) center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 34% 26% at 50% 30%, var(--hero-veil), transparent 70%),
    radial-gradient(ellipse 14% 12% at 50% 94%, var(--hero-veil), transparent 70%);
}

/* 위에서부터 문구 → (진주) → SCROLL */
.hero-copy {
  position: absolute; left: 50%; top: 21%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; white-space: nowrap;
  font-family: var(--font-hero); font-weight: 200; letter-spacing: .05em;
  font-size: var(--fs-hero-copy); line-height: 1.35;
}
.hero-copy span:last-child { font-size: var(--fs-hero-name); line-height: 1.2; letter-spacing: .03em; }
.hero-copy strong { font-weight: 400; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: var(--fs-body-sm); font-weight: 500; letter-spacing: .2em;
  text-shadow: 0 1px 6px var(--hero-shade);
}
.hero-scroll i {
  position: relative; display: block; width: 2px; height: 88px;
  background: rgba(255,255,255,.35); box-shadow: 0 0 6px rgba(40,24,50,.5);
}
.hero-scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--hero-ink);
  transform: scaleY(var(--progress, 0)); transform-origin: top;
}
html:not(.is-locked) .hero-scroll span { animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { opacity: .4; } }

html.is-locked { overflow: hidden; }

.header, .hero-veil { opacity: 0; transition: opacity 1s; }
body:not(.is-revealed) .gnb { pointer-events: none; }
.hero-copy { opacity: 0; translate: 0 12px; transition: opacity 1.2s, translate 1.2s; transition-delay: .1s; }
.header { transition-delay: 1.3s; }

.is-revealed .header, .is-revealed .hero-veil,
.is-revealed .hero-copy { opacity: 1; translate: 0 0; }

/* ---------- MAIN ---------- */
.main { background: var(--surface); color: var(--ink); }
.section-line { background: var(--line); }
.about-card { padding: var(--space-4); border-radius: var(--radius-md); background: var(--about-card-bg); color: var(--on-accent); }

.section { padding: var(--section-y) var(--section-x) 0; }
.section:last-child { padding-bottom: var(--section-y); }

/* 섹션 구분선: ── Jinju 01 · ABOUT ── */
.divider {
  max-width: 1200px; margin: 0 auto var(--space-6);
  display: flex; align-items: center; gap: 28px;
  font-weight: inherit;
}
.divider .section-line { flex: 1; height: 1px; }
.divider-text { display: flex; align-items: baseline; gap: var(--space-3); white-space: nowrap; }
.divider-name {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: var(--fs-section-sign); line-height: 1; color: var(--ink);
}
.divider-label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; color: var(--ink-muted); }

/* ---------- PROFILE ---------- */
.about-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: 96px; align-items: start;
}
/* 사진: 요약 카드와 같은 너비·둥글기. 뒤에 주색 판이 오른쪽·아래로 어긋나 깔린다 */
.about-side { --plate-offset: 12px; }
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(var(--plate-offset), var(--plate-offset));
  border-radius: var(--radius-md); background: var(--plate-bg);
}
.about-photo img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-md);
}

.about-text { display: flex; flex-direction: column; gap: var(--space-3); }
.about-title {
  margin-bottom: var(--space-2); padding-left: var(--space-4);
  font-family: var(--font-hero); font-weight: 200; letter-spacing: .03em;
  font-size: var(--fs-lead); line-height: 1.35; color: var(--ink);
}
.about-title strong { font-weight: 400; color: var(--accent); }

/* 판이 아래로 튀어나온 만큼 요약 카드를 더 띄운다 */
.about-info { margin-top: calc(var(--space-3) + var(--plate-offset, 0px)); display: grid; gap: var(--space-2); }
.about-info > div { display: grid; grid-template-columns: 88px 1fr; align-items: baseline; gap: var(--space-2); }
.about-info dt { font-size: var(--fs-label); letter-spacing: .06em; color: var(--ink-muted); }
.about-info dd { font-size: var(--fs-body); font-weight: 500; word-break: keep-all; }

.about-history h3 { font-size: var(--fs-label); font-weight: 500; letter-spacing: .06em; color: var(--ink-muted); margin-bottom: var(--space-1); }
.about-history ul { list-style: none; }
.about-history li { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-3); padding: var(--space-2) 0; font-size: var(--fs-body); }
.about-history li + li { border-top: 1px solid var(--line-soft); }
.about-history span { font-size: var(--fs-body-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.about-history p { font-weight: 500; }
.about-history small { display: block; margin-top: 4px; font-size: var(--fs-body-sm); line-height: 1.7; color: var(--ink-soft); }

/* 소개 카드: 글자는 차콜, 날짜는 보조 글자, 라벨은 로열 퍼플 + 아래 가는 보라 선 */
.about-card dt, .about-card h3, .about-card span { color: var(--on-accent); }
.about-card small { color: var(--on-accent); }
.about-card h3 { padding-bottom: var(--space-1); border-bottom: 1px solid rgba(255, 255, 255, .6); }
.about-card li + li { border-top-color: rgba(255, 255, 255, .3); }

/* 데스크톱: 사진 + 이름 정보 = 경력 + 학력 카드 높이, 사진은 남는 높이를 채운다 */
@media (min-width: 961px) {
  .about-inner {
    grid-template-areas: ". title" "side career" "side edu";
    row-gap: var(--space-5); align-items: stretch;
  }
  .about-text { display: contents; }
  .about-title { grid-area: title; margin: 0 0 calc(var(--space-3) - var(--space-5)); align-self: end; }
  .about-career { grid-area: career; }
  .about-edu { grid-area: edu; }
  .about-side { grid-area: side; display: flex; flex-direction: column; gap: var(--space-5); }
  .about-photo { flex: 1; min-height: 0; }
  .about-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 20%; }
  .about-info { margin-top: var(--plate-offset); padding: var(--space-3) 20px; gap: 6px; }
}

/* ---------- SKILLS ---------- */
.skills { overflow: hidden; }
.skills-hint { max-width: 1200px; margin: calc(-1 * var(--space-5)) auto 0; text-align: center; font-size: var(--fs-body-sm); color: var(--ink-muted); }

.skills-stage {
  --card-w: 300px; --card-h: 400px;
  position: relative; height: calc(var(--card-h) + 80px); margin-top: var(--space-6);
  perspective: 1400px; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; outline: none;
}
.skills-stage.is-dragging { cursor: grabbing; }
.skills-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: var(--radius-lg); }
.skills-track { list-style: none; position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }

.skill-card {
  position: absolute; left: 50%; top: 50%;
  width: var(--card-w); height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  transform: var(--t); opacity: var(--o, 1); z-index: var(--z, 1);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .6s;
  transition-delay: var(--delay, 0s);
  pointer-events: auto;
}
.skill-card.is-hidden { pointer-events: none; }

.skill-inner {
  position: relative; display: block; width: 100%; height: 100%;
  border: 0; background: none; color: inherit; font: inherit; cursor: inherit;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .2, 1);
}
.skill-card:not(.is-hidden) .skill-inner { cursor: pointer; }
.skill-card.is-flipped .skill-inner { transform: rotateY(180deg); }
.skill-inner:focus-visible { outline: none; }
.skill-inner:focus-visible .skill-front,
.skill-inner:focus-visible .skill-back { outline: 2px solid var(--accent); outline-offset: 4px; }

.skill-front, .skill-back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 24px 60px rgba(var(--c-shadow-rgb), .14), var(--shadow-pearl);
}
.skill-front { align-items: center; gap: var(--space-5); background: var(--surface-raised); }
.skill-front strong { font-size: var(--fs-card-title); font-weight: 500; color: var(--ink); }
.skill-back {
  align-items: flex-start; gap: var(--space-3); text-align: left;
  background: var(--c-white); color: var(--ink); transform: rotateY(180deg);
}
.skill-back { justify-content: flex-start; overflow-y: auto; }
.skill-cat {
  font-style: normal; font-size: var(--fs-caption); letter-spacing: .06em;
  padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--accent); color: var(--accent-text);
}
.skill-back strong { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--accent); }
.skill-desc { font-size: var(--fs-body-sm); line-height: 1.8; opacity: .9; word-break: keep-all; }
.skill-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.skill-tags em {
  font-style: normal; font-size: var(--fs-caption);
  padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent-text);
}

.skill-logo { position: relative; width: 140px; height: 140px; }
.skill-mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 22%; background: var(--mark-bg); color: var(--mark-fg);
  font: 700 56px/1 var(--font-sans); letter-spacing: -.02em;
}
.skill-mark[hidden] { display: none; }
.skill-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.skills-tabs {
  max-width: 1200px; margin: var(--space-5) auto 0;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.skills-tabs::-webkit-scrollbar { display: none; }
.skills-tabs button:first-child { margin-left: auto; }
.skills-tabs button:last-child { margin-right: auto; }
.skills-tabs button {
  flex: none; padding: var(--space-1) 10px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-soft);
  font: 500 13px var(--font-sans); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.skills-tabs button:hover { border-color: var(--line); color: var(--ink); }
.skills-tabs button[aria-selected="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-text); }

.skills-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-4); }
.skills-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer; transition: background .3s, color .3s;
}
.skills-arrow:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.skills-dots { display: flex; gap: var(--space-1); }
.skills-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: var(--line-soft); cursor: pointer; transition: width .4s, background .4s;
}
.skills-dots button[aria-current="true"] { width: 24px; background: var(--accent); }

/* ---------- PORTFOLIO ---------- */
.work-hint { max-width: 1200px; margin: calc(-1 * var(--space-5)) auto 0; text-align: center; font-size: var(--fs-body-sm); color: var(--ink-muted); }
.work-hint-mobile { display: none; }

/* 슬라이드: 사용자만 넘긴다 (자동 넘김 없음). 다음 장이 오른쪽에 살짝 보인다 */
.work-slider { max-width: 1200px; margin: var(--space-6) auto 0; }
.work-track {
  list-style: none; display: flex; gap: var(--space-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius-lg); }

.work-slide {
  /* 화면 영역 높이 고정: 420px × 1.15, 화면 높이의 70% 이하,
     그리고 메뉴·여백·화살표(230px)를 뺀 높이 이하라 노트북에서도 화살표·번호가 화면 안에 보인다 */
  --media-h: min(483px, 70vh, calc(100vh - 230px));
  flex: 0 0 88%; min-width: 0; scroll-snap-align: start;
  display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-5); align-items: center;
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--work-slide-bg);
}

/* 왼쪽: 브라우저 창 / 휴대폰 목업. 화면은 창 '안'에서 잘리고, 호버하면 창 안에서만 스크롤 */
.work-media { height: var(--media-h); min-width: 0; cursor: pointer; }
/* 짙은 배경에서도 보이는 그림자: 어두운 그림자 + 아주 옅은 밝은 테두리 */
.work-media .work-frame {
  border-radius: var(--radius-md);   /* 네 모서리 모두 온전히 */
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1);
}
.work-media .work-phone { box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18); }
.work-slide--mobile .work-media { display: flex; justify-content: center; }

/* 오른쪽: 번호 · 이름 · 설명 · 태그 · 링크 */
.work-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.work-num { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: .04em; color: var(--purple-400); font-variant-numeric: tabular-nums; }
.work-info h3 { font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--c-white); }
.work-open { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.work-summary { font-size: var(--fs-body-sm); line-height: 1.7; color: var(--ink-soft); word-break: keep-all; }
/* 한 단어만 다음 줄로 떨어지지 않게 */
.work-slide .work-summary { color: rgba(255, 255, 255, .7); text-wrap: pretty; }

.work-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags li {
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--accent-tint); color: var(--accent-text); font-size: var(--fs-caption);
}
.work-slide .work-tags li { background: rgba(255, 255, 255, .12); color: var(--purple-200); }

/* 핵심 요약: 작은 라벨 + 내용, 라벨 폭을 맞춰 줄을 정렬 */
.work-facts { display: grid; gap: 6px; width: 100%; }
.work-facts > div { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-2); align-items: baseline; }
.work-facts dt { font-size: var(--fs-caption); font-weight: 500; letter-spacing: .04em; color: var(--purple-200); }
.work-facts dd { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .85); word-break: keep-all; }
.work-facts:empty { display: none; }

.work-links { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
button.work-link { border: 0; background: transparent; font-family: inherit; line-height: inherit; cursor: pointer; }
.work-link {
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm); font-weight: 500; color: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-white); transition: background .3s, color .3s;
}
.work-link:hover { background: rgba(255, 255, 255, .1); }
.work-link--primary { background: var(--purple-500); color: var(--on-accent); box-shadow: none; }
.work-link--primary:hover { background: var(--purple-600); }

/* 화살표 + 01 / 05 */
.work-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-4); }
.work-arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }
.work-count { min-width: 64px; text-align: center; font-size: var(--fs-label); letter-spacing: .1em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.work-count b { font-weight: 700; color: var(--ink); }

.work-frame {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden;
  background: var(--surface-raised); box-shadow: 0 10px 30px rgba(var(--c-shadow-rgb), .12);
}
.work-frame-bar {
  flex: none; display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; background: var(--surface-card);
}
.work-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.work-frame-url {
  flex: 1; max-width: 220px; margin: 0 auto; padding: 2px 12px;
  border-radius: var(--radius-pill); background: var(--surface-raised);
  font-size: 11px; color: var(--ink-muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.work-phone {
  height: 100%; aspect-ratio: 9 / 18.5;
  padding: 6px; border-radius: 26px; background: var(--ink);
  box-shadow: 0 14px 34px rgba(var(--c-shadow-rgb), .22);
}
.work-phone .work-screen { height: 100%; border-radius: 20px; }

.work-screen { position: relative; flex: 1; overflow: hidden; }
.work-screen img {
  display: block; width: 100%; height: auto;
  transition: transform 1s cubic-bezier(.3, .7, .2, 1);
}
.work-media:hover .work-screen img,
.work-slide:focus-within .work-screen img {
  transform: translateY(var(--dist, 0));
  transition: transform var(--dur, 12s) linear .2s;
}

/* 상세 보기 */
html.modal-open { overflow: hidden; }
.work-modal {
  width: min(1200px, calc(100% - 48px)); height: min(860px, calc(100% - 48px));
  max-width: none; max-height: none; margin: auto; padding: 0; border: 0;
  border-radius: 16px; background: var(--surface-raised); color: var(--ink);
  box-shadow: 0 30px 80px rgba(var(--c-shadow-rgb), .35);
}
.work-modal::backdrop { background: rgba(var(--c-shadow-rgb), .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.work-modal[open] { animation: modalIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes modalIn { from { opacity: 0; translate: 0 16px; } }

.work-modal-inner { position: relative; display: grid; grid-template-columns: 1.45fr 1fr; height: 100%; }
.work-modal-view { min-height: 0; padding: 32px 32px 0; background: var(--surface-card); }
.work-modal-view .work-frame { height: 100%; }
.work-modal-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.work-modal-scroll img { display: block; width: 100%; height: auto; }

.work-modal.is-mobile .work-modal-view { padding: 32px; }
.work-modal.is-mobile .work-frame {
  width: min(380px, 100%); margin: 0 auto;
  border: 8px solid var(--ink); border-radius: 34px;
}
.work-modal.is-mobile .work-frame-bar { display: none; }

.work-modal-info { min-height: 0; overflow-y: auto; padding: 48px 40px 40px; display: flex; flex-direction: column; gap: var(--space-3); }
.work-modal-count { font-size: var(--fs-caption); letter-spacing: .14em; color: var(--ink-muted); }
.work-modal-title { font-weight: 700; font-size: 30px; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.work-modal-summary { font-size: var(--fs-body); line-height: 1.7; color: var(--ink-soft); }
.work-modal-meta {
  display: grid; gap: var(--space-2);
  padding: var(--space-3) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.work-modal-meta > div { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-2); }
.work-modal-meta dt { padding-top: 2px; font-size: var(--fs-caption); letter-spacing: .06em; color: var(--ink-muted); }
.work-modal-meta dd { font-size: var(--fs-body-sm); font-weight: 500; }
.tool-row { display: grid; grid-template-columns: 76px 1fr; gap: var(--space-1); line-height: 1.7; }
.tool-row b { font-weight: 400; color: var(--ink-muted); }

.work-modal-highlight {
  display: grid; gap: 6px; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); background: var(--accent-tint); color: var(--accent-text);
}
.work-modal-highlight[hidden] { display: none; }
.work-modal-highlight-label { font-size: var(--fs-caption); letter-spacing: .14em; }
.work-modal-highlight strong { font-size: var(--fs-card-title); font-weight: 700; }
.work-modal-highlight p { font-size: var(--fs-body-sm); line-height: 1.75; opacity: .92; word-break: keep-all; }
.work-modal-info h4 { margin-top: var(--space-1); font-size: var(--fs-label); font-weight: 700; }
.work-modal-points { padding-left: 1.2em; display: grid; gap: var(--space-1); font-size: var(--fs-body-sm); line-height: 1.7; color: var(--ink-soft); }
.work-modal-points li::marker { color: var(--ink-muted); font-weight: 700; }
.work-modal-links { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-1); }
.work-modal-visit,
.work-modal-plan {
  padding: 12px 24px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font-size: var(--fs-body-sm); font-weight: 500;
  transition: background .3s;
}
.work-modal-visit:hover { background: var(--accent-hover); }
.work-modal-plan { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.work-modal-plan:hover { background: var(--accent-tint); }
.work-modal-visit[hidden],
.work-modal-plan[hidden] { display: none; }
.work-modal-nav { margin-top: auto; padding-top: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-2); }
.work-modal-nav button {
  padding: 10px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); font: 500 var(--fs-body-sm) var(--font-sans); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.work-modal-nav button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.work-modal-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink);
  font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(var(--c-shadow-rgb), .12);
}
.work-modal-close:hover { background: var(--accent-hover); color: var(--on-accent); }

/* ---------- CONTACT ---------- */
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.contact-title { font-size: 30px; font-weight: 700; line-height: 1.5; }
.contact-story {
  display: grid; gap: var(--space-3); max-width: 680px;
  font-size: var(--fs-body); line-height: 1.9; color: var(--ink-soft); text-align: left; word-break: keep-all;
}
.contact-text { font-size: var(--fs-body); color: var(--ink-soft); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-1); }
.contact-btn {
  padding: 14px 28px; border-radius: var(--radius-pill);
  background: var(--placeholder); color: var(--ink); font-size: var(--fs-label);
  transition: background .3s, color .3s;
}
.contact-btn:hover { background: var(--line-soft); }
.contact-btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.contact-btn--primary:hover { background: var(--accent-hover); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px var(--section-x);
  border-top: 1px solid var(--line-soft); background: var(--surface);
  text-align: center; font-family: var(--font-hero); font-size: 12px; letter-spacing: .04em; color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .skill-card, .skill-inner { transition-duration: .01s; }
  .work-track { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 72px; }
  .work-slide { --media-h: min(368px, 70vh); gap: var(--space-4); padding: var(--space-4); }
  .work-modal { width: calc(100% - 24px); height: calc(100% - 24px); }
  .work-modal-inner { grid-template-columns: 1fr; grid-template-rows: 55% 1fr; }
  .work-modal-view { padding: 20px 20px 0; }
  .work-modal.is-mobile .work-modal-view { padding: 20px; }
  .work-modal-info { padding: 28px 24px 24px; }
}

@media (max-width: 768px) {
  .about-side { --plate-offset: 6px; }
  .about-history li { grid-template-columns: 1fr; gap: 2px; }
  .skills-stage { --card-w: 250px; --card-h: 360px; }
  .skill-logo { width: 104px; height: 104px; }
  .skill-mark { font-size: 42px; }
  .skill-desc { font-size: 13px; line-height: 1.7; }
  .skills-tabs { margin-right: calc(-1 * var(--section-x)); padding-right: var(--section-x); }
  .divider { gap: var(--space-3); }
  .divider-text { flex-direction: column; align-items: center; gap: 4px; }
  .work-hint-desktop { display: none; }
  .work-hint-mobile { display: inline; }
  .work-track { gap: var(--space-2); }
  .work-slide {
    --media-h: min(276px, 70vh);
    grid-template-columns: 1fr; align-items: stretch; gap: var(--space-3);
    padding: var(--space-3);
  }
  .work-num { font-size: 22px; }
  .work-info h3 { font-size: 20px; }
  .contact-title { font-size: 22px; }
  .skill-front, .skill-back { padding: var(--space-4); }
  .header { height: 64px; padding: 0 20px; justify-content: center; }
  .gnb { gap: 22px; }
  .header.is-floating { height: 64px; }
  .header.is-floating .gnb a { padding: 8px 14px; }
  .pearl-nav { display: none; }
  .hero-scroll { bottom: 20px; font-size: var(--fs-caption); }
  .hero-scroll i { height: 64px; }
}
